source: vendor/google/apiclient-services/src/VMwareEngine/Resource/ProjectsLocationsVmwareengineGlobalNetworkPeerings.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

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