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

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

Upload project files

  • Property mode set to 100644
File size: 10.3 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\GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse;
23use Google\Service\Aiplatform\GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse;
24use Google\Service\Aiplatform\GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse;
25use Google\Service\Aiplatform\GoogleCloudAiplatformV1TensorboardTimeSeries;
26use Google\Service\Aiplatform\GoogleLongrunningOperation;
27
28/**
29 * The "timeSeries" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $aiplatformService = new Google\Service\Aiplatform(...);
33 * $timeSeries = $aiplatformService->projects_locations_tensorboards_experiments_runs_timeSeries;
34 * </code>
35 */
36class ProjectsLocationsTensorboardsExperimentsRunsTimeSeries extends \Google\Service\Resource
37{
38 /**
39 * Creates a TensorboardTimeSeries. (timeSeries.create)
40 *
41 * @param string $parent Required. The resource name of the TensorboardRun to
42 * create the TensorboardTimeSeries in. Format: `projects/{project}/locations/{l
43 * ocation}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
44 * @param GoogleCloudAiplatformV1TensorboardTimeSeries $postBody
45 * @param array $optParams Optional parameters.
46 *
47 * @opt_param string tensorboardTimeSeriesId Optional. The user specified unique
48 * ID to use for the TensorboardTimeSeries, which becomes the final component of
49 * the TensorboardTimeSeries's resource name. This value should match "a-z0-9{0,
50 * 127}"
51 * @return GoogleCloudAiplatformV1TensorboardTimeSeries
52 * @throws \Google\Service\Exception
53 */
54 public function create($parent, GoogleCloudAiplatformV1TensorboardTimeSeries $postBody, $optParams = [])
55 {
56 $params = ['parent' => $parent, 'postBody' => $postBody];
57 $params = array_merge($params, $optParams);
58 return $this->call('create', [$params], GoogleCloudAiplatformV1TensorboardTimeSeries::class);
59 }
60 /**
61 * Deletes a TensorboardTimeSeries. (timeSeries.delete)
62 *
63 * @param string $name Required. The name of the TensorboardTimeSeries to be
64 * deleted. Format: `projects/{project}/locations/{location}/tensorboards/{tenso
65 * rboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}`
66 * @param array $optParams Optional parameters.
67 * @return GoogleLongrunningOperation
68 * @throws \Google\Service\Exception
69 */
70 public function delete($name, $optParams = [])
71 {
72 $params = ['name' => $name];
73 $params = array_merge($params, $optParams);
74 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
75 }
76 /**
77 * Exports a TensorboardTimeSeries' data. Data is returned in paginated
78 * responses. (timeSeries.exportTensorboardTimeSeries)
79 *
80 * @param string $tensorboardTimeSeries Required. The resource name of the
81 * TensorboardTimeSeries to export data from. Format: `projects/{project}/locati
82 * ons/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}
83 * /timeSeries/{time_series}`
84 * @param GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest $postBody
85 * @param array $optParams Optional parameters.
86 * @return GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse
87 * @throws \Google\Service\Exception
88 */
89 public function exportTensorboardTimeSeries($tensorboardTimeSeries, GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest $postBody, $optParams = [])
90 {
91 $params = ['tensorboardTimeSeries' => $tensorboardTimeSeries, 'postBody' => $postBody];
92 $params = array_merge($params, $optParams);
93 return $this->call('exportTensorboardTimeSeries', [$params], GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse::class);
94 }
95 /**
96 * Gets a TensorboardTimeSeries. (timeSeries.get)
97 *
98 * @param string $name Required. The name of the TensorboardTimeSeries resource.
99 * Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/e
100 * xperiments/{experiment}/runs/{run}/timeSeries/{time_series}`
101 * @param array $optParams Optional parameters.
102 * @return GoogleCloudAiplatformV1TensorboardTimeSeries
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], GoogleCloudAiplatformV1TensorboardTimeSeries::class);
110 }
111 /**
112 * Lists TensorboardTimeSeries in a Location.
113 * (timeSeries.listProjectsLocationsTensorboardsExperimentsRunsTimeSeries)
114 *
115 * @param string $parent Required. The resource name of the TensorboardRun to
116 * list TensorboardTimeSeries. Format: `projects/{project}/locations/{location}/
117 * tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`
118 * @param array $optParams Optional parameters.
119 *
120 * @opt_param string filter Lists the TensorboardTimeSeries that match the
121 * filter expression.
122 * @opt_param string orderBy Field to use to sort the list.
123 * @opt_param int pageSize The maximum number of TensorboardTimeSeries to
124 * return. The service may return fewer than this value. If unspecified, at most
125 * 50 TensorboardTimeSeries are returned. The maximum value is 1000; values
126 * above 1000 are coerced to 1000.
127 * @opt_param string pageToken A page token, received from a previous
128 * TensorboardService.ListTensorboardTimeSeries call. Provide this to retrieve
129 * the subsequent page. When paginating, all other parameters provided to
130 * TensorboardService.ListTensorboardTimeSeries must match the call that
131 * provided the page token.
132 * @opt_param string readMask Mask specifying which fields to read.
133 * @return GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse
134 * @throws \Google\Service\Exception
135 */
136 public function listProjectsLocationsTensorboardsExperimentsRunsTimeSeries($parent, $optParams = [])
137 {
138 $params = ['parent' => $parent];
139 $params = array_merge($params, $optParams);
140 return $this->call('list', [$params], GoogleCloudAiplatformV1ListTensorboardTimeSeriesResponse::class);
141 }
142 /**
143 * Updates a TensorboardTimeSeries. (timeSeries.patch)
144 *
145 * @param string $name Output only. Name of the TensorboardTimeSeries.
146 * @param GoogleCloudAiplatformV1TensorboardTimeSeries $postBody
147 * @param array $optParams Optional parameters.
148 *
149 * @opt_param string updateMask Required. Field mask is used to specify the
150 * fields to be overwritten in the TensorboardTimeSeries resource by the update.
151 * The fields specified in the update_mask are relative to the resource, not the
152 * full request. A field is overwritten if it's in the mask. If the user does
153 * not provide a mask then all fields are overwritten if new values are
154 * specified.
155 * @return GoogleCloudAiplatformV1TensorboardTimeSeries
156 * @throws \Google\Service\Exception
157 */
158 public function patch($name, GoogleCloudAiplatformV1TensorboardTimeSeries $postBody, $optParams = [])
159 {
160 $params = ['name' => $name, 'postBody' => $postBody];
161 $params = array_merge($params, $optParams);
162 return $this->call('patch', [$params], GoogleCloudAiplatformV1TensorboardTimeSeries::class);
163 }
164 /**
165 * Reads a TensorboardTimeSeries' data. By default, if the number of data points
166 * stored is less than 1000, all data is returned. Otherwise, 1000 data points
167 * is randomly selected from this time series and returned. This value can be
168 * changed by changing max_data_points, which can't be greater than 10k.
169 * (timeSeries.read)
170 *
171 * @param string $tensorboardTimeSeries Required. The resource name of the
172 * TensorboardTimeSeries to read data from. Format: `projects/{project}/location
173 * s/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/t
174 * imeSeries/{time_series}`
175 * @param array $optParams Optional parameters.
176 *
177 * @opt_param string filter Reads the TensorboardTimeSeries' data that match the
178 * filter expression.
179 * @opt_param int maxDataPoints The maximum number of TensorboardTimeSeries'
180 * data to return. This value should be a positive integer. This value can be
181 * set to -1 to return all data.
182 * @return GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse
183 * @throws \Google\Service\Exception
184 */
185 public function read($tensorboardTimeSeries, $optParams = [])
186 {
187 $params = ['tensorboardTimeSeries' => $tensorboardTimeSeries];
188 $params = array_merge($params, $optParams);
189 return $this->call('read', [$params], GoogleCloudAiplatformV1ReadTensorboardTimeSeriesDataResponse::class);
190 }
191 /**
192 * Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in
193 * consumer project's Cloud Storage bucket without users having to obtain Cloud
194 * Storage access permission. (timeSeries.readBlobData)
195 *
196 * @param string $timeSeries Required. The resource name of the
197 * TensorboardTimeSeries to list Blobs. Format: `projects/{project}/locations/{l
198 * ocation}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeS
199 * eries/{time_series}`
200 * @param array $optParams Optional parameters.
201 *
202 * @opt_param string blobIds IDs of the blobs to read.
203 * @return GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse
204 * @throws \Google\Service\Exception
205 */
206 public function readBlobData($timeSeries, $optParams = [])
207 {
208 $params = ['timeSeries' => $timeSeries];
209 $params = array_merge($params, $optParams);
210 return $this->call('readBlobData', [$params], GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse::class);
211 }
212}
213
214// Adding a class alias for backwards compatibility with the previous class name.
215class_alias(ProjectsLocationsTensorboardsExperimentsRunsTimeSeries::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsTensorboardsExperimentsRunsTimeSeries');
Note: See TracBrowser for help on using the repository browser.