source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsTrainingPipelines.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.7 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\GoogleCloudAiplatformV1CancelTrainingPipelineRequest;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListTrainingPipelinesResponse;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1TrainingPipeline;
23use Google\Service\Aiplatform\GoogleLongrunningOperation;
24use Google\Service\Aiplatform\GoogleProtobufEmpty;
25
26/**
27 * The "trainingPipelines" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $aiplatformService = new Google\Service\Aiplatform(...);
31 * $trainingPipelines = $aiplatformService->projects_locations_trainingPipelines;
32 * </code>
33 */
34class ProjectsLocationsTrainingPipelines extends \Google\Service\Resource
35{
36 /**
37 * Cancels a TrainingPipeline. Starts asynchronous cancellation on the
38 * TrainingPipeline. The server makes a best effort to cancel the pipeline, but
39 * success is not guaranteed. Clients can use
40 * PipelineService.GetTrainingPipeline or other methods to check whether the
41 * cancellation succeeded or whether the pipeline completed despite
42 * cancellation. On successful cancellation, the TrainingPipeline is not
43 * deleted; instead it becomes a pipeline with a TrainingPipeline.error value
44 * with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and
45 * TrainingPipeline.state is set to `CANCELLED`. (trainingPipelines.cancel)
46 *
47 * @param string $name Required. The name of the TrainingPipeline to cancel.
48 * Format: `projects/{project}/locations/{location}/trainingPipelines/{training_
49 * pipeline}`
50 * @param GoogleCloudAiplatformV1CancelTrainingPipelineRequest $postBody
51 * @param array $optParams Optional parameters.
52 * @return GoogleProtobufEmpty
53 * @throws \Google\Service\Exception
54 */
55 public function cancel($name, GoogleCloudAiplatformV1CancelTrainingPipelineRequest $postBody, $optParams = [])
56 {
57 $params = ['name' => $name, 'postBody' => $postBody];
58 $params = array_merge($params, $optParams);
59 return $this->call('cancel', [$params], GoogleProtobufEmpty::class);
60 }
61 /**
62 * Creates a TrainingPipeline. A created TrainingPipeline right away will be
63 * attempted to be run. (trainingPipelines.create)
64 *
65 * @param string $parent Required. The resource name of the Location to create
66 * the TrainingPipeline in. Format: `projects/{project}/locations/{location}`
67 * @param GoogleCloudAiplatformV1TrainingPipeline $postBody
68 * @param array $optParams Optional parameters.
69 * @return GoogleCloudAiplatformV1TrainingPipeline
70 * @throws \Google\Service\Exception
71 */
72 public function create($parent, GoogleCloudAiplatformV1TrainingPipeline $postBody, $optParams = [])
73 {
74 $params = ['parent' => $parent, 'postBody' => $postBody];
75 $params = array_merge($params, $optParams);
76 return $this->call('create', [$params], GoogleCloudAiplatformV1TrainingPipeline::class);
77 }
78 /**
79 * Deletes a TrainingPipeline. (trainingPipelines.delete)
80 *
81 * @param string $name Required. The name of the TrainingPipeline resource to be
82 * deleted. Format: `projects/{project}/locations/{location}/trainingPipelines/{
83 * training_pipeline}`
84 * @param array $optParams Optional parameters.
85 * @return GoogleLongrunningOperation
86 * @throws \Google\Service\Exception
87 */
88 public function delete($name, $optParams = [])
89 {
90 $params = ['name' => $name];
91 $params = array_merge($params, $optParams);
92 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
93 }
94 /**
95 * Gets a TrainingPipeline. (trainingPipelines.get)
96 *
97 * @param string $name Required. The name of the TrainingPipeline resource.
98 * Format: `projects/{project}/locations/{location}/trainingPipelines/{training_
99 * pipeline}`
100 * @param array $optParams Optional parameters.
101 * @return GoogleCloudAiplatformV1TrainingPipeline
102 * @throws \Google\Service\Exception
103 */
104 public function get($name, $optParams = [])
105 {
106 $params = ['name' => $name];
107 $params = array_merge($params, $optParams);
108 return $this->call('get', [$params], GoogleCloudAiplatformV1TrainingPipeline::class);
109 }
110 /**
111 * Lists TrainingPipelines in a Location.
112 * (trainingPipelines.listProjectsLocationsTrainingPipelines)
113 *
114 * @param string $parent Required. The resource name of the Location to list the
115 * TrainingPipelines from. Format: `projects/{project}/locations/{location}`
116 * @param array $optParams Optional parameters.
117 *
118 * @opt_param string filter The standard list filter. Supported fields: *
119 * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state`
120 * supports `=`, `!=` comparisons. * `training_task_definition` `=`, `!=`
121 * comparisons, and `:` wildcard. * `create_time` supports `=`, `!=`,`<`,
122 * `<=`,`>`, `>=` comparisons. `create_time` must be in RFC 3339 format. *
123 * `labels` supports general map functions that is: `labels.key=value` -
124 * key:value equality `labels.key:* - key existence Some examples of using the
125 * filter are: * `state="PIPELINE_STATE_SUCCEEDED" AND
126 * display_name:"my_pipeline_*"` * `state!="PIPELINE_STATE_FAILED" OR
127 * display_name="my_pipeline"` * `NOT display_name="my_pipeline"` *
128 * `create_time>"2021-05-18T00:00:00Z"` *
129 * `training_task_definition:"*automl_text_classification*"`
130 * @opt_param int pageSize The standard list page size.
131 * @opt_param string pageToken The standard list page token. Typically obtained
132 * via ListTrainingPipelinesResponse.next_page_token of the previous
133 * PipelineService.ListTrainingPipelines call.
134 * @opt_param string readMask Mask specifying which fields to read.
135 * @return GoogleCloudAiplatformV1ListTrainingPipelinesResponse
136 * @throws \Google\Service\Exception
137 */
138 public function listProjectsLocationsTrainingPipelines($parent, $optParams = [])
139 {
140 $params = ['parent' => $parent];
141 $params = array_merge($params, $optParams);
142 return $this->call('list', [$params], GoogleCloudAiplatformV1ListTrainingPipelinesResponse::class);
143 }
144}
145
146// Adding a class alias for backwards compatibility with the previous class name.
147class_alias(ProjectsLocationsTrainingPipelines::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsTrainingPipelines');
Note: See TracBrowser for help on using the repository browser.