source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsHyperparameterTuningJobs.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 6.8 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Aiplatform\Resource;
19
20use Google\Service\Aiplatform\GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1HyperparameterTuningJob;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse;
23use Google\Service\Aiplatform\GoogleLongrunningOperation;
24use Google\Service\Aiplatform\GoogleProtobufEmpty;
25
26/**
27 * The "hyperparameterTuningJobs" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $aiplatformService = new Google\Service\Aiplatform(...);
31 * $hyperparameterTuningJobs = $aiplatformService->projects_locations_hyperparameterTuningJobs;
32 * </code>
33 */
34class ProjectsLocationsHyperparameterTuningJobs extends \Google\Service\Resource
35{
36 /**
37 * Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the
38 * HyperparameterTuningJob. The server makes a best effort to cancel the job,
39 * but success is not guaranteed. Clients can use
40 * JobService.GetHyperparameterTuningJob or other methods to check whether the
41 * cancellation succeeded or whether the job completed despite cancellation. On
42 * successful cancellation, the HyperparameterTuningJob is not deleted; instead
43 * it becomes a job with a HyperparameterTuningJob.error value with a
44 * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and
45 * HyperparameterTuningJob.state is set to `CANCELLED`.
46 * (hyperparameterTuningJobs.cancel)
47 *
48 * @param string $name Required. The name of the HyperparameterTuningJob to
49 * cancel. Format: `projects/{project}/locations/{location}/hyperparameterTuning
50 * Jobs/{hyperparameter_tuning_job}`
51 * @param GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest $postBody
52 * @param array $optParams Optional parameters.
53 * @return GoogleProtobufEmpty
54 * @throws \Google\Service\Exception
55 */
56 public function cancel($name, GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest $postBody, $optParams = [])
57 {
58 $params = ['name' => $name, 'postBody' => $postBody];
59 $params = array_merge($params, $optParams);
60 return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
61 }
62 /**
63 * Creates a HyperparameterTuningJob (hyperparameterTuningJobs.create)
64 *
65 * @param string $parent Required. The resource name of the Location to create
66 * the HyperparameterTuningJob in. Format:
67 * `projects/{project}/locations/{location}`
68 * @param GoogleCloudAiplatformV1HyperparameterTuningJob $postBody
69 * @param array $optParams Optional parameters.
70 * @return GoogleCloudAiplatformV1HyperparameterTuningJob
71 * @throws \Google\Service\Exception
72 */
73 public function create($parent, GoogleCloudAiplatformV1HyperparameterTuningJob $postBody, $optParams = [])
74 {
75 $params = ['parent' => $parent, 'postBody' => $postBody];
76 $params = array_merge($params, $optParams);
77 return $this->call('create', [$params], GoogleCloudAiplatformV1HyperparameterTuningJob::class);
78 }
79 /**
80 * Deletes a HyperparameterTuningJob. (hyperparameterTuningJobs.delete)
81 *
82 * @param string $name Required. The name of the HyperparameterTuningJob
83 * resource to be deleted. Format: `projects/{project}/locations/{location}/hype
84 * rparameterTuningJobs/{hyperparameter_tuning_job}`
85 * @param array $optParams Optional parameters.
86 * @return GoogleLongrunningOperation
87 * @throws \Google\Service\Exception
88 */
89 public function delete($name, $optParams = [])
90 {
91 $params = ['name' => $name];
92 $params = array_merge($params, $optParams);
93 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
94 }
95 /**
96 * Gets a HyperparameterTuningJob (hyperparameterTuningJobs.get)
97 *
98 * @param string $name Required. The name of the HyperparameterTuningJob
99 * resource. Format: `projects/{project}/locations/{location}/hyperparameterTuni
100 * ngJobs/{hyperparameter_tuning_job}`
101 * @param array $optParams Optional parameters.
102 * @return GoogleCloudAiplatformV1HyperparameterTuningJob
103 * @throws \Google\Service\Exception
104 */
105 public function get($name, $optParams = [])
106 {
107 $params = ['name' => $name];
108 $params = array_merge($params, $optParams);
109 return $this->call('get', [$params], GoogleCloudAiplatformV1HyperparameterTuningJob::class);
110 }
111 /**
112 * Lists HyperparameterTuningJobs in a Location.
113 * (hyperparameterTuningJobs.listProjectsLocationsHyperparameterTuningJobs)
114 *
115 * @param string $parent Required. The resource name of the Location to list the
116 * HyperparameterTuningJobs from. Format:
117 * `projects/{project}/locations/{location}`
118 * @param array $optParams Optional parameters.
119 *
120 * @opt_param string filter The standard list filter. Supported fields: *
121 * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state`
122 * supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`<`,
123 * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. *
124 * `labels` supports general map functions that is: `labels.key=value` -
125 * key:value equality `labels.key:* - key existence Some examples of using the
126 * filter are: * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` *
127 * `state!="JOB_STATE_FAILED" OR display_name="my_job"` * `NOT
128 * display_name="my_job"` * `create_time>"2021-05-18T00:00:00Z"` *
129 * `labels.keyA=valueA` * `labels.keyB:*`
130 * @opt_param int pageSize The standard list page size.
131 * @opt_param string pageToken The standard list page token. Typically obtained
132 * via ListHyperparameterTuningJobsResponse.next_page_token of the previous
133 * JobService.ListHyperparameterTuningJobs call.
134 * @opt_param string readMask Mask specifying which fields to read.
135 * @return GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse
136 * @throws \Google\Service\Exception
137 */
138 public function listProjectsLocationsHyperparameterTuningJobs($parent, $optParams = [])
139 {
140 $params = ['parent' => $parent];
141 $params = array_merge($params, $optParams);
142 return $this->call('list', [$params], GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse::class);
143 }
144}
145
146// Adding a class alias for backwards compatibility with the previous class name.
147class_alias(ProjectsLocationsHyperparameterTuningJobs::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsHyperparameterTuningJobs');
Note: See TracBrowser for help on using the repository browser.