source: vendor/google/apiclient-services/src/VMwareEngine/Resource/ProjectsLocationsVmwareEngineNetworks.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: 11.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\VMwareEngine\Resource;
19
20use Google\Service\VMwareEngine\ListVmwareEngineNetworksResponse;
21use Google\Service\VMwareEngine\Operation;
22use Google\Service\VMwareEngine\VmwareEngineNetwork;
23
24/**
25 * The "vmwareEngineNetworks" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $vmwareengineService = new Google\Service\VMwareEngine(...);
29 * $vmwareEngineNetworks = $vmwareengineService->projects_locations_vmwareEngineNetworks;
30 * </code>
31 */
32class ProjectsLocationsVmwareEngineNetworks extends \Google\Service\Resource
33{
34 /**
35 * Creates a new VMware Engine network that can be used by a private cloud.
36 * (vmwareEngineNetworks.create)
37 *
38 * @param string $parent Required. The resource name of the location to create
39 * the new VMware Engine network in. A VMware Engine network of type `LEGACY` is
40 * a regional resource, and a VMware Engine network of type `STANDARD` is a
41 * global resource. Resource names are schemeless URIs that follow the
42 * conventions in https://cloud.google.com/apis/design/resource_names. For
43 * example: `projects/my-project/locations/global`
44 * @param VmwareEngineNetwork $postBody
45 * @param array $optParams Optional parameters.
46 *
47 * @opt_param string requestId Optional. A request ID to identify requests.
48 * Specify a unique request ID so that if you must retry your request, the
49 * server will know to ignore the request if it has already been completed. The
50 * server guarantees that a request doesn't result in creation of duplicate
51 * commitments for at least 60 minutes. For example, consider a situation where
52 * you make an initial request and the request times out. If you make the
53 * request again with the same request ID, the server can check if original
54 * operation with the same request ID was received, and if so, will ignore the
55 * second request. This prevents clients from accidentally creating duplicate
56 * commitments. The request ID must be a valid UUID with the exception that zero
57 * UUID is not supported (00000000-0000-0000-0000-000000000000).
58 * @opt_param string vmwareEngineNetworkId Required. The user-provided
59 * identifier of the new VMware Engine network. This identifier must be unique
60 * among VMware Engine network resources within the parent and becomes the final
61 * token in the name URI. The identifier must meet the following requirements: *
62 * For networks of type LEGACY, adheres to the format: `{region-id}-default`.
63 * Replace `{region-id}` with the region where you want to create the VMware
64 * Engine network. For example, "us-central1-default". * Only contains 1-63
65 * alphanumeric characters and hyphens * Begins with an alphabetical character *
66 * Ends with a non-hyphen character * Not formatted as a UUID * Complies with
67 * [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
68 * @return Operation
69 * @throws \Google\Service\Exception
70 */
71 public function create($parent, VmwareEngineNetwork $postBody, $optParams = [])
72 {
73 $params = ['parent' => $parent, 'postBody' => $postBody];
74 $params = array_merge($params, $optParams);
75 return $this->call('create', [$params], Operation::class);
76 }
77 /**
78 * Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine
79 * network after all resources that refer to it are deleted. For example, a
80 * private cloud, a network peering, and a network policy can all refer to the
81 * same VMware Engine network. (vmwareEngineNetworks.delete)
82 *
83 * @param string $name Required. The resource name of the VMware Engine network
84 * to be deleted. Resource names are schemeless URIs that follow the conventions
85 * in https://cloud.google.com/apis/design/resource_names. For example:
86 * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
87 * @param array $optParams Optional parameters.
88 *
89 * @opt_param string etag Optional. Checksum used to ensure that the user-
90 * provided value is up to date before the server processes the request. The
91 * server compares provided checksum with the current checksum of the resource.
92 * If the user-provided value is out of date, this request returns an `ABORTED`
93 * error.
94 * @opt_param string requestId Optional. A request ID to identify requests.
95 * Specify a unique request ID so that if you must retry your request, the
96 * server will know to ignore the request if it has already been completed. The
97 * server guarantees that a request doesn't result in creation of duplicate
98 * commitments for at least 60 minutes. For example, consider a situation where
99 * you make an initial request and the request times out. If you make the
100 * request again with the same request ID, the server can check if original
101 * operation with the same request ID was received, and if so, will ignore the
102 * second request. This prevents clients from accidentally creating duplicate
103 * commitments. The request ID must be a valid UUID with the exception that zero
104 * UUID is not supported (00000000-0000-0000-0000-000000000000).
105 * @return Operation
106 * @throws \Google\Service\Exception
107 */
108 public function delete($name, $optParams = [])
109 {
110 $params = ['name' => $name];
111 $params = array_merge($params, $optParams);
112 return $this->call('delete', [$params], Operation::class);
113 }
114 /**
115 * Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource
116 * contains details of the VMware Engine network, such as its VMware Engine
117 * network type, peered networks in a service project, and state (for example,
118 * `CREATING`, `ACTIVE`, `DELETING`). (vmwareEngineNetworks.get)
119 *
120 * @param string $name Required. The resource name of the VMware Engine network
121 * to retrieve. Resource names are schemeless URIs that follow the conventions
122 * in https://cloud.google.com/apis/design/resource_names. For example:
123 * `projects/my-project/locations/global/vmwareEngineNetworks/my-network`
124 * @param array $optParams Optional parameters.
125 * @return VmwareEngineNetwork
126 * @throws \Google\Service\Exception
127 */
128 public function get($name, $optParams = [])
129 {
130 $params = ['name' => $name];
131 $params = array_merge($params, $optParams);
132 return $this->call('get', [$params], VmwareEngineNetwork::class);
133 }
134 /**
135 * Lists `VmwareEngineNetwork` resources in a given project and location.
136 * (vmwareEngineNetworks.listProjectsLocationsVmwareEngineNetworks)
137 *
138 * @param string $parent Required. The resource name of the location to query
139 * for VMware Engine networks. Resource names are schemeless URIs that follow
140 * the conventions in https://cloud.google.com/apis/design/resource_names. For
141 * example: `projects/my-project/locations/global`
142 * @param array $optParams Optional parameters.
143 *
144 * @opt_param string filter A filter expression that matches resources returned
145 * in the response. The expression must specify the field name, a comparison
146 * operator, and the value that you want to use for filtering. The value must be
147 * a string, a number, or a boolean. The comparison operator must be `=`, `!=`,
148 * `>`, or `<`. For example, if you are filtering a list of network peerings,
149 * you can exclude the ones named `example-network` by specifying `name !=
150 * "example-network"`. To filter on multiple expressions, provide each separate
151 * expression within parentheses. For example: ``` (name = "example-network")
152 * (createTime > "2021-04-12T08:15:10.40Z") ``` By default, each expression is
153 * an `AND` expression. However, you can include `AND` and `OR` expressions
154 * explicitly. For example: ``` (name = "example-network-1") AND (createTime >
155 * "2021-04-12T08:15:10.40Z") OR (name = "example-network-2") ```
156 * @opt_param string orderBy Sorts list results by a certain order. By default,
157 * returned results are ordered by `name` in ascending order. You can also sort
158 * results in descending order based on the `name` value using `orderBy="name
159 * desc"`. Currently, only ordering by `name` is supported.
160 * @opt_param int pageSize The maximum number of results to return in one page.
161 * The maximum value is coerced to 1000. The default value of this field is 500.
162 * @opt_param string pageToken A page token, received from a previous
163 * `ListVmwareEngineNetworks` call. Provide this to retrieve the subsequent
164 * page. When paginating, all other parameters provided to
165 * `ListVmwareEngineNetworks` must match the call that provided the page token.
166 * @return ListVmwareEngineNetworksResponse
167 * @throws \Google\Service\Exception
168 */
169 public function listProjectsLocationsVmwareEngineNetworks($parent, $optParams = [])
170 {
171 $params = ['parent' => $parent];
172 $params = array_merge($params, $optParams);
173 return $this->call('list', [$params], ListVmwareEngineNetworksResponse::class);
174 }
175 /**
176 * Modifies a VMware Engine network resource. Only the following fields can be
177 * updated: `description`. Only fields specified in `updateMask` are applied.
178 * (vmwareEngineNetworks.patch)
179 *
180 * @param string $name Output only. Identifier. The resource name of the VMware
181 * Engine network. Resource names are schemeless URIs that follow the
182 * conventions in https://cloud.google.com/apis/design/resource_names. For
183 * example: `projects/my-project/locations/global/vmwareEngineNetworks/my-
184 * network`
185 * @param VmwareEngineNetwork $postBody
186 * @param array $optParams Optional parameters.
187 *
188 * @opt_param string requestId Optional. A request ID to identify requests.
189 * Specify a unique request ID so that if you must retry your request, the
190 * server will know to ignore the request if it has already been completed. The
191 * server guarantees that a request doesn't result in creation of duplicate
192 * commitments for at least 60 minutes. For example, consider a situation where
193 * you make an initial request and the request times out. If you make the
194 * request again with the same request ID, the server can check if original
195 * operation with the same request ID was received, and if so, will ignore the
196 * second request. This prevents clients from accidentally creating duplicate
197 * commitments. The request ID must be a valid UUID with the exception that zero
198 * UUID is not supported (00000000-0000-0000-0000-000000000000).
199 * @opt_param string updateMask Required. Field mask is used to specify the
200 * fields to be overwritten in the VMware Engine network resource by the update.
201 * The fields specified in the `update_mask` are relative to the resource, not
202 * the full request. A field will be overwritten if it is in the mask. If the
203 * user does not provide a mask then all fields will be overwritten. Only the
204 * following fields can be updated: `description`.
205 * @return Operation
206 * @throws \Google\Service\Exception
207 */
208 public function patch($name, VmwareEngineNetwork $postBody, $optParams = [])
209 {
210 $params = ['name' => $name, 'postBody' => $postBody];
211 $params = array_merge($params, $optParams);
212 return $this->call('patch', [$params], Operation::class);
213 }
214}
215
216// Adding a class alias for backwards compatibility with the previous class name.
217class_alias(ProjectsLocationsVmwareEngineNetworks::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsVmwareEngineNetworks');
Note: See TracBrowser for help on using the repository browser.