[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\OracleDatabase\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\OracleDatabase\CloudExadataInfrastructure;
|
---|
| 21 | use Google\Service\OracleDatabase\ListCloudExadataInfrastructuresResponse;
|
---|
| 22 | use Google\Service\OracleDatabase\Operation;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "cloudExadataInfrastructures" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $oracledatabaseService = new Google\Service\OracleDatabase(...);
|
---|
| 29 | * $cloudExadataInfrastructures = $oracledatabaseService->projects_locations_cloudExadataInfrastructures;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class ProjectsLocationsCloudExadataInfrastructures extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Creates a new Exadata Infrastructure in a given project and location.
|
---|
| 36 | * (cloudExadataInfrastructures.create)
|
---|
| 37 | *
|
---|
| 38 | * @param string $parent Required. The parent value for
|
---|
| 39 | * CloudExadataInfrastructure in the following format:
|
---|
| 40 | * projects/{project}/locations/{location}.
|
---|
| 41 | * @param CloudExadataInfrastructure $postBody
|
---|
| 42 | * @param array $optParams Optional parameters.
|
---|
| 43 | *
|
---|
| 44 | * @opt_param string cloudExadataInfrastructureId Required. The ID of the
|
---|
| 45 | * Exadata Infrastructure to create. This value is restricted to
|
---|
| 46 | * (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
|
---|
| 47 | * length. The value must start with a letter and end with a letter or a number.
|
---|
| 48 | * @opt_param string requestId Optional. An optional ID to identify the request.
|
---|
| 49 | * This value is used to identify duplicate requests. If you make a request with
|
---|
| 50 | * the same request ID and the original request is still in progress or
|
---|
| 51 | * completed, the server ignores the second request. This prevents clients from
|
---|
| 52 | * accidentally creating duplicate commitments. The request ID must be a valid
|
---|
| 53 | * UUID with the exception that zero UUID is not supported
|
---|
| 54 | * (00000000-0000-0000-0000-000000000000).
|
---|
| 55 | * @return Operation
|
---|
| 56 | * @throws \Google\Service\Exception
|
---|
| 57 | */
|
---|
| 58 | public function create($parent, CloudExadataInfrastructure $postBody, $optParams = [])
|
---|
| 59 | {
|
---|
| 60 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
| 61 | $params = array_merge($params, $optParams);
|
---|
| 62 | return $this->call('create', [$params], Operation::class);
|
---|
| 63 | }
|
---|
| 64 | /**
|
---|
| 65 | * Deletes a single Exadata Infrastructure. (cloudExadataInfrastructures.delete)
|
---|
| 66 | *
|
---|
| 67 | * @param string $name Required. The name of the Cloud Exadata Infrastructure in
|
---|
| 68 | * the following format: projects/{project}/locations/{location}/cloudExadataInf
|
---|
| 69 | * rastructures/{cloud_exadata_infrastructure}.
|
---|
| 70 | * @param array $optParams Optional parameters.
|
---|
| 71 | *
|
---|
| 72 | * @opt_param bool force Optional. If set to true, all VM clusters for this
|
---|
| 73 | * Exadata Infrastructure will be deleted. An Exadata Infrastructure can only be
|
---|
| 74 | * deleted once all its VM clusters have been deleted.
|
---|
| 75 | * @opt_param string requestId Optional. An optional ID to identify the request.
|
---|
| 76 | * This value is used to identify duplicate requests. If you make a request with
|
---|
| 77 | * the same request ID and the original request is still in progress or
|
---|
| 78 | * completed, the server ignores the second request. This prevents clients from
|
---|
| 79 | * accidentally creating duplicate commitments. The request ID must be a valid
|
---|
| 80 | * UUID with the exception that zero UUID is not supported
|
---|
| 81 | * (00000000-0000-0000-0000-000000000000).
|
---|
| 82 | * @return Operation
|
---|
| 83 | * @throws \Google\Service\Exception
|
---|
| 84 | */
|
---|
| 85 | public function delete($name, $optParams = [])
|
---|
| 86 | {
|
---|
| 87 | $params = ['name' => $name];
|
---|
| 88 | $params = array_merge($params, $optParams);
|
---|
| 89 | return $this->call('delete', [$params], Operation::class);
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * Gets details of a single Exadata Infrastructure.
|
---|
| 93 | * (cloudExadataInfrastructures.get)
|
---|
| 94 | *
|
---|
| 95 | * @param string $name Required. The name of the Cloud Exadata Infrastructure in
|
---|
| 96 | * the following format: projects/{project}/locations/{location}/cloudExadataInf
|
---|
| 97 | * rastructures/{cloud_exadata_infrastructure}.
|
---|
| 98 | * @param array $optParams Optional parameters.
|
---|
| 99 | * @return CloudExadataInfrastructure
|
---|
| 100 | * @throws \Google\Service\Exception
|
---|
| 101 | */
|
---|
| 102 | public function get($name, $optParams = [])
|
---|
| 103 | {
|
---|
| 104 | $params = ['name' => $name];
|
---|
| 105 | $params = array_merge($params, $optParams);
|
---|
| 106 | return $this->call('get', [$params], CloudExadataInfrastructure::class);
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * Lists Exadata Infrastructures in a given project and location. (cloudExadataI
|
---|
| 110 | * nfrastructures.listProjectsLocationsCloudExadataInfrastructures)
|
---|
| 111 | *
|
---|
| 112 | * @param string $parent Required. The parent value for
|
---|
| 113 | * CloudExadataInfrastructure in the following format:
|
---|
| 114 | * projects/{project}/locations/{location}.
|
---|
| 115 | * @param array $optParams Optional parameters.
|
---|
| 116 | *
|
---|
| 117 | * @opt_param int pageSize Optional. The maximum number of items to return. If
|
---|
| 118 | * unspecified, at most 50 Exadata infrastructures will be returned. The maximum
|
---|
| 119 | * value is 1000; values above 1000 will be coerced to 1000.
|
---|
| 120 | * @opt_param string pageToken Optional. A token identifying a page of results
|
---|
| 121 | * the server should return.
|
---|
| 122 | * @return ListCloudExadataInfrastructuresResponse
|
---|
| 123 | * @throws \Google\Service\Exception
|
---|
| 124 | */
|
---|
| 125 | public function listProjectsLocationsCloudExadataInfrastructures($parent, $optParams = [])
|
---|
| 126 | {
|
---|
| 127 | $params = ['parent' => $parent];
|
---|
| 128 | $params = array_merge($params, $optParams);
|
---|
| 129 | return $this->call('list', [$params], ListCloudExadataInfrastructuresResponse::class);
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 134 | class_alias(ProjectsLocationsCloudExadataInfrastructures::class, 'Google_Service_OracleDatabase_Resource_ProjectsLocationsCloudExadataInfrastructures');
|
---|