source: vendor/google/apiclient-services/src/OracleDatabase/Resource/ProjectsLocationsCloudVmClusters.php

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

Upload project files

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