source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsTensorboards.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: 8.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\GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListTensorboardsResponse;
22use Google\Service\Aiplatform\GoogleCloudAiplatformV1ReadTensorboardSizeResponse;
23use Google\Service\Aiplatform\GoogleCloudAiplatformV1ReadTensorboardUsageResponse;
24use Google\Service\Aiplatform\GoogleCloudAiplatformV1Tensorboard;
25use Google\Service\Aiplatform\GoogleLongrunningOperation;
26
27/**
28 * The "tensorboards" collection of methods.
29 * Typical usage is:
30 * <code>
31 * $aiplatformService = new Google\Service\Aiplatform(...);
32 * $tensorboards = $aiplatformService->projects_locations_tensorboards;
33 * </code>
34 */
35class ProjectsLocationsTensorboards extends \Google\Service\Resource
36{
37 /**
38 * Reads multiple TensorboardTimeSeries' data. The data point number limit is
39 * 1000 for scalars, 100 for tensors and blob references. If the number of data
40 * points stored is less than the limit, all data is returned. Otherwise, the
41 * number limit of data points is randomly selected from this time series and
42 * returned. (tensorboards.batchRead)
43 *
44 * @param string $tensorboard Required. The resource name of the Tensorboard
45 * containing TensorboardTimeSeries to read data from. Format:
46 * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The
47 * TensorboardTimeSeries referenced by time_series must be sub resources of this
48 * Tensorboard.
49 * @param array $optParams Optional parameters.
50 *
51 * @opt_param string timeSeries Required. The resource names of the
52 * TensorboardTimeSeries to read data from. Format: `projects/{project}/location
53 * s/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/t
54 * imeSeries/{time_series}`
55 * @return GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse
56 * @throws \Google\Service\Exception
57 */
58 public function batchRead($tensorboard, $optParams = [])
59 {
60 $params = ['tensorboard' => $tensorboard];
61 $params = array_merge($params, $optParams);
62 return $this->call('batchRead', [$params], GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse::class);
63 }
64 /**
65 * Creates a Tensorboard. (tensorboards.create)
66 *
67 * @param string $parent Required. The resource name of the Location to create
68 * the Tensorboard in. Format: `projects/{project}/locations/{location}`
69 * @param GoogleCloudAiplatformV1Tensorboard $postBody
70 * @param array $optParams Optional parameters.
71 * @return GoogleLongrunningOperation
72 * @throws \Google\Service\Exception
73 */
74 public function create($parent, GoogleCloudAiplatformV1Tensorboard $postBody, $optParams = [])
75 {
76 $params = ['parent' => $parent, 'postBody' => $postBody];
77 $params = array_merge($params, $optParams);
78 return $this->call('create', [$params], GoogleLongrunningOperation::class);
79 }
80 /**
81 * Deletes a Tensorboard. (tensorboards.delete)
82 *
83 * @param string $name Required. The name of the Tensorboard to be deleted.
84 * Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
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 Tensorboard. (tensorboards.get)
97 *
98 * @param string $name Required. The name of the Tensorboard resource. Format:
99 * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
100 * @param array $optParams Optional parameters.
101 * @return GoogleCloudAiplatformV1Tensorboard
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], GoogleCloudAiplatformV1Tensorboard::class);
109 }
110 /**
111 * Lists Tensorboards in a Location.
112 * (tensorboards.listProjectsLocationsTensorboards)
113 *
114 * @param string $parent Required. The resource name of the Location to list
115 * Tensorboards. Format: `projects/{project}/locations/{location}`
116 * @param array $optParams Optional parameters.
117 *
118 * @opt_param string filter Lists the Tensorboards that match the filter
119 * expression.
120 * @opt_param string orderBy Field to use to sort the list.
121 * @opt_param int pageSize The maximum number of Tensorboards to return. The
122 * service may return fewer than this value. If unspecified, at most 100
123 * Tensorboards are returned. The maximum value is 100; values above 100 are
124 * coerced to 100.
125 * @opt_param string pageToken A page token, received from a previous
126 * TensorboardService.ListTensorboards call. Provide this to retrieve the
127 * subsequent page. When paginating, all other parameters provided to
128 * TensorboardService.ListTensorboards must match the call that provided the
129 * page token.
130 * @opt_param string readMask Mask specifying which fields to read.
131 * @return GoogleCloudAiplatformV1ListTensorboardsResponse
132 * @throws \Google\Service\Exception
133 */
134 public function listProjectsLocationsTensorboards($parent, $optParams = [])
135 {
136 $params = ['parent' => $parent];
137 $params = array_merge($params, $optParams);
138 return $this->call('list', [$params], GoogleCloudAiplatformV1ListTensorboardsResponse::class);
139 }
140 /**
141 * Updates a Tensorboard. (tensorboards.patch)
142 *
143 * @param string $name Output only. Name of the Tensorboard. Format:
144 * `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
145 * @param GoogleCloudAiplatformV1Tensorboard $postBody
146 * @param array $optParams Optional parameters.
147 *
148 * @opt_param string updateMask Required. Field mask is used to specify the
149 * fields to be overwritten in the Tensorboard resource by the update. The
150 * fields specified in the update_mask are relative to the resource, not the
151 * full request. A field is overwritten if it's in the mask. If the user does
152 * not provide a mask then all fields are overwritten if new values are
153 * specified.
154 * @return GoogleLongrunningOperation
155 * @throws \Google\Service\Exception
156 */
157 public function patch($name, GoogleCloudAiplatformV1Tensorboard $postBody, $optParams = [])
158 {
159 $params = ['name' => $name, 'postBody' => $postBody];
160 $params = array_merge($params, $optParams);
161 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
162 }
163 /**
164 * Returns the storage size for a given TensorBoard instance.
165 * (tensorboards.readSize)
166 *
167 * @param string $tensorboard Required. The name of the Tensorboard resource.
168 * Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
169 * @param array $optParams Optional parameters.
170 * @return GoogleCloudAiplatformV1ReadTensorboardSizeResponse
171 * @throws \Google\Service\Exception
172 */
173 public function readSize($tensorboard, $optParams = [])
174 {
175 $params = ['tensorboard' => $tensorboard];
176 $params = array_merge($params, $optParams);
177 return $this->call('readSize', [$params], GoogleCloudAiplatformV1ReadTensorboardSizeResponse::class);
178 }
179 /**
180 * Returns a list of monthly active users for a given TensorBoard instance.
181 * (tensorboards.readUsage)
182 *
183 * @param string $tensorboard Required. The name of the Tensorboard resource.
184 * Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
185 * @param array $optParams Optional parameters.
186 * @return GoogleCloudAiplatformV1ReadTensorboardUsageResponse
187 * @throws \Google\Service\Exception
188 */
189 public function readUsage($tensorboard, $optParams = [])
190 {
191 $params = ['tensorboard' => $tensorboard];
192 $params = array_merge($params, $optParams);
193 return $this->call('readUsage', [$params], GoogleCloudAiplatformV1ReadTensorboardUsageResponse::class);
194 }
195}
196
197// Adding a class alias for backwards compatibility with the previous class name.
198class_alias(ProjectsLocationsTensorboards::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsTensorboards');
Note: See TracBrowser for help on using the repository browser.