[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\AIPlatformNotebooks\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\AIPlatformNotebooks\CheckInstanceUpgradabilityResponse;
|
---|
| 21 | use Google\Service\AIPlatformNotebooks\Config;
|
---|
| 22 | use Google\Service\AIPlatformNotebooks\DiagnoseInstanceRequest;
|
---|
| 23 | use Google\Service\AIPlatformNotebooks\Instance;
|
---|
| 24 | use Google\Service\AIPlatformNotebooks\ListInstancesResponse;
|
---|
| 25 | use Google\Service\AIPlatformNotebooks\Operation;
|
---|
| 26 | use Google\Service\AIPlatformNotebooks\Policy;
|
---|
| 27 | use Google\Service\AIPlatformNotebooks\ReportInstanceInfoSystemRequest;
|
---|
| 28 | use Google\Service\AIPlatformNotebooks\ResetInstanceRequest;
|
---|
| 29 | use Google\Service\AIPlatformNotebooks\ResizeDiskRequest;
|
---|
| 30 | use Google\Service\AIPlatformNotebooks\RestoreInstanceRequest;
|
---|
| 31 | use Google\Service\AIPlatformNotebooks\RollbackInstanceRequest;
|
---|
| 32 | use Google\Service\AIPlatformNotebooks\SetIamPolicyRequest;
|
---|
| 33 | use Google\Service\AIPlatformNotebooks\StartInstanceRequest;
|
---|
| 34 | use Google\Service\AIPlatformNotebooks\StopInstanceRequest;
|
---|
| 35 | use Google\Service\AIPlatformNotebooks\TestIamPermissionsRequest;
|
---|
| 36 | use Google\Service\AIPlatformNotebooks\TestIamPermissionsResponse;
|
---|
| 37 | use Google\Service\AIPlatformNotebooks\UpgradeInstanceRequest;
|
---|
| 38 | use Google\Service\AIPlatformNotebooks\UpgradeInstanceSystemRequest;
|
---|
| 39 |
|
---|
| 40 | /**
|
---|
| 41 | * The "instances" collection of methods.
|
---|
| 42 | * Typical usage is:
|
---|
| 43 | * <code>
|
---|
| 44 | * $notebooksService = new Google\Service\AIPlatformNotebooks(...);
|
---|
| 45 | * $instances = $notebooksService->projects_locations_instances;
|
---|
| 46 | * </code>
|
---|
| 47 | */
|
---|
| 48 | class ProjectsLocationsInstances extends \Google\Service\Resource
|
---|
| 49 | {
|
---|
| 50 | /**
|
---|
| 51 | * Checks whether a notebook instance is upgradable.
|
---|
| 52 | * (instances.checkUpgradability)
|
---|
| 53 | *
|
---|
| 54 | * @param string $notebookInstance Required. Format:
|
---|
| 55 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 56 | * @param array $optParams Optional parameters.
|
---|
| 57 | * @return CheckInstanceUpgradabilityResponse
|
---|
| 58 | * @throws \Google\Service\Exception
|
---|
| 59 | */
|
---|
| 60 | public function checkUpgradability($notebookInstance, $optParams = [])
|
---|
| 61 | {
|
---|
| 62 | $params = ['notebookInstance' => $notebookInstance];
|
---|
| 63 | $params = array_merge($params, $optParams);
|
---|
| 64 | return $this->call('checkUpgradability', [$params], CheckInstanceUpgradabilityResponse::class);
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * Creates a new Instance in a given project and location. (instances.create)
|
---|
| 68 | *
|
---|
| 69 | * @param string $parent Required. Format:
|
---|
| 70 | * `parent=projects/{project_id}/locations/{location}`
|
---|
| 71 | * @param Instance $postBody
|
---|
| 72 | * @param array $optParams Optional parameters.
|
---|
| 73 | *
|
---|
| 74 | * @opt_param string instanceId Required. User-defined unique ID of this
|
---|
| 75 | * instance.
|
---|
| 76 | * @opt_param string requestId Optional. Idempotent request UUID.
|
---|
| 77 | * @return Operation
|
---|
| 78 | * @throws \Google\Service\Exception
|
---|
| 79 | */
|
---|
| 80 | public function create($parent, Instance $postBody, $optParams = [])
|
---|
| 81 | {
|
---|
| 82 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 83 | $params = array_merge($params, $optParams);
|
---|
| 84 | return $this->call('create', [$params], Operation::class);
|
---|
| 85 | }
|
---|
| 86 | /**
|
---|
| 87 | * Deletes a single Instance. (instances.delete)
|
---|
| 88 | *
|
---|
| 89 | * @param string $name Required. Format:
|
---|
| 90 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 91 | * @param array $optParams Optional parameters.
|
---|
| 92 | *
|
---|
| 93 | * @opt_param string requestId Optional. Idempotent request UUID.
|
---|
| 94 | * @return Operation
|
---|
| 95 | * @throws \Google\Service\Exception
|
---|
| 96 | */
|
---|
| 97 | public function delete($name, $optParams = [])
|
---|
| 98 | {
|
---|
| 99 | $params = ['name' => $name];
|
---|
| 100 | $params = array_merge($params, $optParams);
|
---|
| 101 | return $this->call('delete', [$params], Operation::class);
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
|
---|
| 105 | * (instances.diagnose)
|
---|
| 106 | *
|
---|
| 107 | * @param string $name Required. Format:
|
---|
| 108 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 109 | * @param DiagnoseInstanceRequest $postBody
|
---|
| 110 | * @param array $optParams Optional parameters.
|
---|
| 111 | * @return Operation
|
---|
| 112 | * @throws \Google\Service\Exception
|
---|
| 113 | */
|
---|
| 114 | public function diagnose($name, DiagnoseInstanceRequest $postBody, $optParams = [])
|
---|
| 115 | {
|
---|
| 116 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 117 | $params = array_merge($params, $optParams);
|
---|
| 118 | return $this->call('diagnose', [$params], Operation::class);
|
---|
| 119 | }
|
---|
| 120 | /**
|
---|
| 121 | * Gets details of a single Instance. (instances.get)
|
---|
| 122 | *
|
---|
| 123 | * @param string $name Required. Format:
|
---|
| 124 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 125 | * @param array $optParams Optional parameters.
|
---|
| 126 | * @return Instance
|
---|
| 127 | * @throws \Google\Service\Exception
|
---|
| 128 | */
|
---|
| 129 | public function get($name, $optParams = [])
|
---|
| 130 | {
|
---|
| 131 | $params = ['name' => $name];
|
---|
| 132 | $params = array_merge($params, $optParams);
|
---|
| 133 | return $this->call('get', [$params], Instance::class);
|
---|
| 134 | }
|
---|
| 135 | /**
|
---|
| 136 | * Gets general backend configurations that might also affect the frontend.
|
---|
| 137 | * Location is required by CCFE. Although we could bypass it to send location-
|
---|
| 138 | * less request directly to the backend job, we would need CPE (go/cloud-cpe).
|
---|
| 139 | * Having the location might also be useful depending on the query.
|
---|
| 140 | * (instances.getConfig)
|
---|
| 141 | *
|
---|
| 142 | * @param string $name Required. Format:
|
---|
| 143 | * `projects/{project_id}/locations/{location}`
|
---|
| 144 | * @param array $optParams Optional parameters.
|
---|
| 145 | * @return Config
|
---|
| 146 | * @throws \Google\Service\Exception
|
---|
| 147 | */
|
---|
| 148 | public function getConfig($name, $optParams = [])
|
---|
| 149 | {
|
---|
| 150 | $params = ['name' => $name];
|
---|
| 151 | $params = array_merge($params, $optParams);
|
---|
| 152 | return $this->call('getConfig', [$params], Config::class);
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * Gets the access control policy for a resource. Returns an empty policy if the
|
---|
| 156 | * resource exists and does not have a policy set. (instances.getIamPolicy)
|
---|
| 157 | *
|
---|
| 158 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
| 159 | * requested. See [Resource
|
---|
| 160 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 161 | * appropriate value for this field.
|
---|
| 162 | * @param array $optParams Optional parameters.
|
---|
| 163 | *
|
---|
| 164 | * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
|
---|
| 165 | * version that will be used to format the policy. Valid values are 0, 1, and 3.
|
---|
| 166 | * Requests specifying an invalid value will be rejected. Requests for policies
|
---|
| 167 | * with any conditional role bindings must specify version 3. Policies with no
|
---|
| 168 | * conditional role bindings may specify any valid value or leave the field
|
---|
| 169 | * unset. The policy in the response might use the policy version that you
|
---|
| 170 | * specified, or it might use a lower policy version. For example, if you
|
---|
| 171 | * specify version 3, but the policy has no conditional role bindings, the
|
---|
| 172 | * response uses version 1. To learn which resources support conditions in their
|
---|
| 173 | * IAM policies, see the [IAM
|
---|
| 174 | * documentation](https://cloud.google.com/iam/help/conditions/resource-
|
---|
| 175 | * policies).
|
---|
| 176 | * @return Policy
|
---|
| 177 | * @throws \Google\Service\Exception
|
---|
| 178 | */
|
---|
| 179 | public function getIamPolicy($resource, $optParams = [])
|
---|
| 180 | {
|
---|
| 181 | $params = ['resource' => $resource];
|
---|
| 182 | $params = array_merge($params, $optParams);
|
---|
| 183 | return $this->call('getIamPolicy', [$params], Policy::class);
|
---|
| 184 | }
|
---|
| 185 | /**
|
---|
| 186 | * Lists instances in a given project and location.
|
---|
| 187 | * (instances.listProjectsLocationsInstances)
|
---|
| 188 | *
|
---|
| 189 | * @param string $parent Required. Format:
|
---|
| 190 | * `parent=projects/{project_id}/locations/{location}`
|
---|
| 191 | * @param array $optParams Optional parameters.
|
---|
| 192 | *
|
---|
| 193 | * @opt_param string filter Optional. List filter.
|
---|
| 194 | * @opt_param string orderBy Optional. Sort results. Supported values are
|
---|
| 195 | * "name", "name desc" or "" (unsorted).
|
---|
| 196 | * @opt_param int pageSize Optional. Maximum return size of the list call.
|
---|
| 197 | * @opt_param string pageToken Optional. A previous returned page token that can
|
---|
| 198 | * be used to continue listing from the last result.
|
---|
| 199 | * @return ListInstancesResponse
|
---|
| 200 | * @throws \Google\Service\Exception
|
---|
| 201 | */
|
---|
| 202 | public function listProjectsLocationsInstances($parent, $optParams = [])
|
---|
| 203 | {
|
---|
| 204 | $params = ['parent' => $parent];
|
---|
| 205 | $params = array_merge($params, $optParams);
|
---|
| 206 | return $this->call('list', [$params], ListInstancesResponse::class);
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * UpdateInstance updates an Instance. (instances.patch)
|
---|
| 210 | *
|
---|
| 211 | * @param string $name Output only. The name of this notebook instance. Format:
|
---|
| 212 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 213 | * @param Instance $postBody
|
---|
| 214 | * @param array $optParams Optional parameters.
|
---|
| 215 | *
|
---|
| 216 | * @opt_param string requestId Optional. Idempotent request UUID.
|
---|
| 217 | * @opt_param string updateMask Required. Mask used to update an instance
|
---|
| 218 | * @return Operation
|
---|
| 219 | * @throws \Google\Service\Exception
|
---|
| 220 | */
|
---|
| 221 | public function patch($name, Instance $postBody, $optParams = [])
|
---|
| 222 | {
|
---|
| 223 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 224 | $params = array_merge($params, $optParams);
|
---|
| 225 | return $this->call('patch', [$params], Operation::class);
|
---|
| 226 | }
|
---|
| 227 | /**
|
---|
| 228 | * Allows notebook instances to report their latest instance information to the
|
---|
| 229 | * Notebooks API server. The server will merge the reported information to the
|
---|
| 230 | * instance metadata store. Do not use this method directly.
|
---|
| 231 | * (instances.reportInfoSystem)
|
---|
| 232 | *
|
---|
| 233 | * @param string $name Required. Format:
|
---|
| 234 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 235 | * @param ReportInstanceInfoSystemRequest $postBody
|
---|
| 236 | * @param array $optParams Optional parameters.
|
---|
| 237 | * @return Operation
|
---|
| 238 | * @throws \Google\Service\Exception
|
---|
| 239 | */
|
---|
| 240 | public function reportInfoSystem($name, ReportInstanceInfoSystemRequest $postBody, $optParams = [])
|
---|
| 241 | {
|
---|
| 242 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 243 | $params = array_merge($params, $optParams);
|
---|
| 244 | return $this->call('reportInfoSystem', [$params], Operation::class);
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * Resets a notebook instance. (instances.reset)
|
---|
| 248 | *
|
---|
| 249 | * @param string $name Required. Format:
|
---|
| 250 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 251 | * @param ResetInstanceRequest $postBody
|
---|
| 252 | * @param array $optParams Optional parameters.
|
---|
| 253 | * @return Operation
|
---|
| 254 | * @throws \Google\Service\Exception
|
---|
| 255 | */
|
---|
| 256 | public function reset($name, ResetInstanceRequest $postBody, $optParams = [])
|
---|
| 257 | {
|
---|
| 258 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 259 | $params = array_merge($params, $optParams);
|
---|
| 260 | return $this->call('reset', [$params], Operation::class);
|
---|
| 261 | }
|
---|
| 262 | /**
|
---|
| 263 | * Resize a notebook instance disk to a higher capacity. (instances.resizeDisk)
|
---|
| 264 | *
|
---|
| 265 | * @param string $notebookInstance Required. Format:
|
---|
| 266 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 267 | * @param ResizeDiskRequest $postBody
|
---|
| 268 | * @param array $optParams Optional parameters.
|
---|
| 269 | * @return Operation
|
---|
| 270 | * @throws \Google\Service\Exception
|
---|
| 271 | */
|
---|
| 272 | public function resizeDisk($notebookInstance, ResizeDiskRequest $postBody, $optParams = [])
|
---|
| 273 | {
|
---|
| 274 | $params = ['notebookInstance' => $notebookInstance, 'postBody' => $postBody];
|
---|
| 275 | $params = array_merge($params, $optParams);
|
---|
| 276 | return $this->call('resizeDisk', [$params], Operation::class);
|
---|
| 277 | }
|
---|
| 278 | /**
|
---|
| 279 | * RestoreInstance restores an Instance from a BackupSource. (instances.restore)
|
---|
| 280 | *
|
---|
| 281 | * @param string $name Required. Format:
|
---|
| 282 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 283 | * @param RestoreInstanceRequest $postBody
|
---|
| 284 | * @param array $optParams Optional parameters.
|
---|
| 285 | * @return Operation
|
---|
| 286 | * @throws \Google\Service\Exception
|
---|
| 287 | */
|
---|
| 288 | public function restore($name, RestoreInstanceRequest $postBody, $optParams = [])
|
---|
| 289 | {
|
---|
| 290 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 291 | $params = array_merge($params, $optParams);
|
---|
| 292 | return $this->call('restore', [$params], Operation::class);
|
---|
| 293 | }
|
---|
| 294 | /**
|
---|
| 295 | * Rollbacks a notebook instance to the previous version. (instances.rollback)
|
---|
| 296 | *
|
---|
| 297 | * @param string $name Required. Format:
|
---|
| 298 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 299 | * @param RollbackInstanceRequest $postBody
|
---|
| 300 | * @param array $optParams Optional parameters.
|
---|
| 301 | * @return Operation
|
---|
| 302 | * @throws \Google\Service\Exception
|
---|
| 303 | */
|
---|
| 304 | public function rollback($name, RollbackInstanceRequest $postBody, $optParams = [])
|
---|
| 305 | {
|
---|
| 306 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 307 | $params = array_merge($params, $optParams);
|
---|
| 308 | return $this->call('rollback', [$params], Operation::class);
|
---|
| 309 | }
|
---|
| 310 | /**
|
---|
| 311 | * Sets the access control policy on the specified resource. Replaces any
|
---|
| 312 | * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
|
---|
| 313 | * `PERMISSION_DENIED` errors. (instances.setIamPolicy)
|
---|
| 314 | *
|
---|
| 315 | * @param string $resource REQUIRED: The resource for which the policy is being
|
---|
| 316 | * specified. See [Resource
|
---|
| 317 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 318 | * appropriate value for this field.
|
---|
| 319 | * @param SetIamPolicyRequest $postBody
|
---|
| 320 | * @param array $optParams Optional parameters.
|
---|
| 321 | * @return Policy
|
---|
| 322 | * @throws \Google\Service\Exception
|
---|
| 323 | */
|
---|
| 324 | public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
|
---|
| 325 | {
|
---|
| 326 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
| 327 | $params = array_merge($params, $optParams);
|
---|
| 328 | return $this->call('setIamPolicy', [$params], Policy::class);
|
---|
| 329 | }
|
---|
| 330 | /**
|
---|
| 331 | * Starts a notebook instance. (instances.start)
|
---|
| 332 | *
|
---|
| 333 | * @param string $name Required. Format:
|
---|
| 334 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 335 | * @param StartInstanceRequest $postBody
|
---|
| 336 | * @param array $optParams Optional parameters.
|
---|
| 337 | * @return Operation
|
---|
| 338 | * @throws \Google\Service\Exception
|
---|
| 339 | */
|
---|
| 340 | public function start($name, StartInstanceRequest $postBody, $optParams = [])
|
---|
| 341 | {
|
---|
| 342 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 343 | $params = array_merge($params, $optParams);
|
---|
| 344 | return $this->call('start', [$params], Operation::class);
|
---|
| 345 | }
|
---|
| 346 | /**
|
---|
| 347 | * Stops a notebook instance. (instances.stop)
|
---|
| 348 | *
|
---|
| 349 | * @param string $name Required. Format:
|
---|
| 350 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 351 | * @param StopInstanceRequest $postBody
|
---|
| 352 | * @param array $optParams Optional parameters.
|
---|
| 353 | * @return Operation
|
---|
| 354 | * @throws \Google\Service\Exception
|
---|
| 355 | */
|
---|
| 356 | public function stop($name, StopInstanceRequest $postBody, $optParams = [])
|
---|
| 357 | {
|
---|
| 358 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 359 | $params = array_merge($params, $optParams);
|
---|
| 360 | return $this->call('stop', [$params], Operation::class);
|
---|
| 361 | }
|
---|
| 362 | /**
|
---|
| 363 | * Returns permissions that a caller has on the specified resource. If the
|
---|
| 364 | * resource does not exist, this will return an empty set of permissions, not a
|
---|
| 365 | * `NOT_FOUND` error. Note: This operation is designed to be used for building
|
---|
| 366 | * permission-aware UIs and command-line tools, not for authorization checking.
|
---|
| 367 | * This operation may "fail open" without warning.
|
---|
| 368 | * (instances.testIamPermissions)
|
---|
| 369 | *
|
---|
| 370 | * @param string $resource REQUIRED: The resource for which the policy detail is
|
---|
| 371 | * being requested. See [Resource
|
---|
| 372 | * names](https://cloud.google.com/apis/design/resource_names) for the
|
---|
| 373 | * appropriate value for this field.
|
---|
| 374 | * @param TestIamPermissionsRequest $postBody
|
---|
| 375 | * @param array $optParams Optional parameters.
|
---|
| 376 | * @return TestIamPermissionsResponse
|
---|
| 377 | * @throws \Google\Service\Exception
|
---|
| 378 | */
|
---|
| 379 | public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
|
---|
| 380 | {
|
---|
| 381 | $params = ['resource' => $resource, 'postBody' => $postBody];
|
---|
| 382 | $params = array_merge($params, $optParams);
|
---|
| 383 | return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
|
---|
| 384 | }
|
---|
| 385 | /**
|
---|
| 386 | * Upgrades a notebook instance to the latest version. (instances.upgrade)
|
---|
| 387 | *
|
---|
| 388 | * @param string $name Required. Format:
|
---|
| 389 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 390 | * @param UpgradeInstanceRequest $postBody
|
---|
| 391 | * @param array $optParams Optional parameters.
|
---|
| 392 | * @return Operation
|
---|
| 393 | * @throws \Google\Service\Exception
|
---|
| 394 | */
|
---|
| 395 | public function upgrade($name, UpgradeInstanceRequest $postBody, $optParams = [])
|
---|
| 396 | {
|
---|
| 397 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 398 | $params = array_merge($params, $optParams);
|
---|
| 399 | return $this->call('upgrade', [$params], Operation::class);
|
---|
| 400 | }
|
---|
| 401 | /**
|
---|
| 402 | * Allows notebook instances to upgrade themselves. Do not use this method
|
---|
| 403 | * directly. (instances.upgradeSystem)
|
---|
| 404 | *
|
---|
| 405 | * @param string $name Required. Format:
|
---|
| 406 | * `projects/{project_id}/locations/{location}/instances/{instance_id}`
|
---|
| 407 | * @param UpgradeInstanceSystemRequest $postBody
|
---|
| 408 | * @param array $optParams Optional parameters.
|
---|
| 409 | * @return Operation
|
---|
| 410 | * @throws \Google\Service\Exception
|
---|
| 411 | */
|
---|
| 412 | public function upgradeSystem($name, UpgradeInstanceSystemRequest $postBody, $optParams = [])
|
---|
| 413 | {
|
---|
| 414 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
| 415 | $params = array_merge($params, $optParams);
|
---|
| 416 | return $this->call('upgradeSystem', [$params], Operation::class);
|
---|
| 417 | }
|
---|
| 418 | }
|
---|
| 419 |
|
---|
| 420 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 421 | class_alias(ProjectsLocationsInstances::class, 'Google_Service_AIPlatformNotebooks_Resource_ProjectsLocationsInstances');
|
---|