source: vendor/google/apiclient-services/src/BeyondCorp/Resource/ProjectsLocationsAppConnections.php

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

Upload project files

  • Property mode set to 100644
File size: 14.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\BeyondCorp\Resource;
19
20use Google\Service\BeyondCorp\GoogleCloudBeyondcorpAppconnectionsV1AppConnection;
21use Google\Service\BeyondCorp\GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse;
22use Google\Service\BeyondCorp\GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse;
23use Google\Service\BeyondCorp\GoogleIamV1Policy;
24use Google\Service\BeyondCorp\GoogleIamV1SetIamPolicyRequest;
25use Google\Service\BeyondCorp\GoogleIamV1TestIamPermissionsRequest;
26use Google\Service\BeyondCorp\GoogleIamV1TestIamPermissionsResponse;
27use Google\Service\BeyondCorp\GoogleLongrunningOperation;
28
29/**
30 * The "appConnections" collection of methods.
31 * Typical usage is:
32 * <code>
33 * $beyondcorpService = new Google\Service\BeyondCorp(...);
34 * $appConnections = $beyondcorpService->projects_locations_appConnections;
35 * </code>
36 */
37class ProjectsLocationsAppConnections extends \Google\Service\Resource
38{
39 /**
40 * Creates a new AppConnection in a given project and location.
41 * (appConnections.create)
42 *
43 * @param string $parent Required. The resource project name of the
44 * AppConnection location using the form:
45 * `projects/{project_id}/locations/{location_id}`
46 * @param GoogleCloudBeyondcorpAppconnectionsV1AppConnection $postBody
47 * @param array $optParams Optional parameters.
48 *
49 * @opt_param string appConnectionId Optional. User-settable AppConnection
50 * resource ID. * Must start with a letter. * Must contain between 4-63
51 * characters from `/a-z-/`. * Must end with a number or a letter.
52 * @opt_param string requestId Optional. An optional request ID to identify
53 * requests. Specify a unique request ID so that if you must retry your request,
54 * the server will know to ignore the request if it has already been completed.
55 * The server will guarantee that for at least 60 minutes since the first
56 * request. For example, consider a situation where you make an initial request
57 * and the request times out. If you make the request again with the same
58 * request ID, the server can check if original operation with the same request
59 * ID was received, and if so, will ignore the second request. This prevents
60 * clients from accidentally creating duplicate commitments. The request ID must
61 * be a valid UUID with the exception that zero UUID is not supported
62 * (00000000-0000-0000-0000-000000000000).
63 * @opt_param bool validateOnly Optional. If set, validates request by executing
64 * a dry-run which would not alter the resource in any way.
65 * @return GoogleLongrunningOperation
66 * @throws \Google\Service\Exception
67 */
68 public function create($parent, GoogleCloudBeyondcorpAppconnectionsV1AppConnection $postBody, $optParams = [])
69 {
70 $params = ['parent' => $parent, 'postBody' => $postBody];
71 $params = array_merge($params, $optParams);
72 return $this->call('create', [$params], GoogleLongrunningOperation::class);
73 }
74 /**
75 * Deletes a single AppConnection. (appConnections.delete)
76 *
77 * @param string $name Required. BeyondCorp Connector name using the form: `proj
78 * ects/{project_id}/locations/{location_id}/appConnections/{app_connection_id}`
79 * @param array $optParams Optional parameters.
80 *
81 * @opt_param string requestId Optional. An optional request ID to identify
82 * requests. Specify a unique request ID so that if you must retry your request,
83 * the server will know to ignore the request if it has already been completed.
84 * The server will guarantee that for at least 60 minutes after the first
85 * request. For example, consider a situation where you make an initial request
86 * and the request times out. If you make the request again with the same
87 * request ID, the server can check if original operation with the same request
88 * ID was received, and if so, will ignore the second request. This prevents
89 * clients from accidentally creating duplicate commitments. The request ID must
90 * be a valid UUID with the exception that zero UUID is not supported
91 * (00000000-0000-0000-0000-000000000000).
92 * @opt_param bool validateOnly Optional. If set, validates request by executing
93 * a dry-run which would not alter the resource in any way.
94 * @return GoogleLongrunningOperation
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], GoogleLongrunningOperation::class);
102 }
103 /**
104 * Gets details of a single AppConnection. (appConnections.get)
105 *
106 * @param string $name Required. BeyondCorp AppConnection name using the form: `
107 * projects/{project_id}/locations/{location_id}/appConnections/{app_connection_
108 * id}`
109 * @param array $optParams Optional parameters.
110 * @return GoogleCloudBeyondcorpAppconnectionsV1AppConnection
111 * @throws \Google\Service\Exception
112 */
113 public function get($name, $optParams = [])
114 {
115 $params = ['name' => $name];
116 $params = array_merge($params, $optParams);
117 return $this->call('get', [$params], GoogleCloudBeyondcorpAppconnectionsV1AppConnection::class);
118 }
119 /**
120 * Gets the access control policy for a resource. Returns an empty policy if the
121 * resource exists and does not have a policy set. (appConnections.getIamPolicy)
122 *
123 * @param string $resource REQUIRED: The resource for which the policy is being
124 * requested. See [Resource
125 * names](https://cloud.google.com/apis/design/resource_names) for the
126 * appropriate value for this field.
127 * @param array $optParams Optional parameters.
128 *
129 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
130 * version that will be used to format the policy. Valid values are 0, 1, and 3.
131 * Requests specifying an invalid value will be rejected. Requests for policies
132 * with any conditional role bindings must specify version 3. Policies with no
133 * conditional role bindings may specify any valid value or leave the field
134 * unset. The policy in the response might use the policy version that you
135 * specified, or it might use a lower policy version. For example, if you
136 * specify version 3, but the policy has no conditional role bindings, the
137 * response uses version 1. To learn which resources support conditions in their
138 * IAM policies, see the [IAM
139 * documentation](https://cloud.google.com/iam/help/conditions/resource-
140 * policies).
141 * @return GoogleIamV1Policy
142 * @throws \Google\Service\Exception
143 */
144 public function getIamPolicy($resource, $optParams = [])
145 {
146 $params = ['resource' => $resource];
147 $params = array_merge($params, $optParams);
148 return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
149 }
150 /**
151 * Lists AppConnections in a given project and location.
152 * (appConnections.listProjectsLocationsAppConnections)
153 *
154 * @param string $parent Required. The resource name of the AppConnection
155 * location using the form: `projects/{project_id}/locations/{location_id}`
156 * @param array $optParams Optional parameters.
157 *
158 * @opt_param string filter Optional. A filter specifying constraints of a list
159 * operation.
160 * @opt_param string orderBy Optional. Specifies the ordering of results. See
161 * [Sorting
162 * order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
163 * for more information.
164 * @opt_param int pageSize Optional. The maximum number of items to return. If
165 * not specified, a default value of 50 will be used by the service. Regardless
166 * of the page_size value, the response may include a partial list and a caller
167 * should only rely on response's next_page_token to determine if there are more
168 * instances left to be queried.
169 * @opt_param string pageToken Optional. The next_page_token value returned from
170 * a previous ListAppConnectionsRequest, if any.
171 * @return GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse
172 * @throws \Google\Service\Exception
173 */
174 public function listProjectsLocationsAppConnections($parent, $optParams = [])
175 {
176 $params = ['parent' => $parent];
177 $params = array_merge($params, $optParams);
178 return $this->call('list', [$params], GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse::class);
179 }
180 /**
181 * Updates the parameters of a single AppConnection. (appConnections.patch)
182 *
183 * @param string $name Required. Unique resource name of the AppConnection. The
184 * name is ignored when creating a AppConnection.
185 * @param GoogleCloudBeyondcorpAppconnectionsV1AppConnection $postBody
186 * @param array $optParams Optional parameters.
187 *
188 * @opt_param bool allowMissing Optional. If set as true, will create the
189 * resource if it is not found.
190 * @opt_param string requestId Optional. An optional request ID to identify
191 * requests. Specify a unique request ID so that if you must retry your request,
192 * the server will know to ignore the request if it has already been completed.
193 * The server will guarantee that for at least 60 minutes since the first
194 * request. For example, consider a situation where you make an initial request
195 * and the request times out. If you make the request again with the same
196 * request ID, the server can check if original operation with the same request
197 * ID was received, and if so, will ignore the second request. This prevents
198 * clients from accidentally creating duplicate commitments. The request ID must
199 * be a valid UUID with the exception that zero UUID is not supported
200 * (00000000-0000-0000-0000-000000000000).
201 * @opt_param string updateMask Required. Mask of fields to update. At least one
202 * path must be supplied in this field. The elements of the repeated paths field
203 * may only include these fields from [BeyondCorp.AppConnection]: * `labels` *
204 * `display_name` * `application_endpoint` * `connectors`
205 * @opt_param bool validateOnly Optional. If set, validates request by executing
206 * a dry-run which would not alter the resource in any way.
207 * @return GoogleLongrunningOperation
208 * @throws \Google\Service\Exception
209 */
210 public function patch($name, GoogleCloudBeyondcorpAppconnectionsV1AppConnection $postBody, $optParams = [])
211 {
212 $params = ['name' => $name, 'postBody' => $postBody];
213 $params = array_merge($params, $optParams);
214 return $this->call('patch', [$params], GoogleLongrunningOperation::class);
215 }
216 /**
217 * Resolves AppConnections details for a given AppConnector. An internal method
218 * called by a connector to find AppConnections to connect to.
219 * (appConnections.resolve)
220 *
221 * @param string $parent Required. The resource name of the AppConnection
222 * location using the form: `projects/{project_id}/locations/{location_id}`
223 * @param array $optParams Optional parameters.
224 *
225 * @opt_param string appConnectorId Required. BeyondCorp Connector name of the
226 * connector associated with those AppConnections using the form: `projects/{pro
227 * ject_id}/locations/{location_id}/appConnectors/{app_connector_id}`
228 * @opt_param int pageSize Optional. The maximum number of items to return. If
229 * not specified, a default value of 50 will be used by the service. Regardless
230 * of the page_size value, the response may include a partial list and a caller
231 * should only rely on response's next_page_token to determine if there are more
232 * instances left to be queried.
233 * @opt_param string pageToken Optional. The next_page_token value returned from
234 * a previous ResolveAppConnectionsResponse, if any.
235 * @return GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse
236 * @throws \Google\Service\Exception
237 */
238 public function resolve($parent, $optParams = [])
239 {
240 $params = ['parent' => $parent];
241 $params = array_merge($params, $optParams);
242 return $this->call('resolve', [$params], GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse::class);
243 }
244 /**
245 * Sets the access control policy on the specified resource. Replaces any
246 * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
247 * `PERMISSION_DENIED` errors. (appConnections.setIamPolicy)
248 *
249 * @param string $resource REQUIRED: The resource for which the policy is being
250 * specified. See [Resource
251 * names](https://cloud.google.com/apis/design/resource_names) for the
252 * appropriate value for this field.
253 * @param GoogleIamV1SetIamPolicyRequest $postBody
254 * @param array $optParams Optional parameters.
255 * @return GoogleIamV1Policy
256 * @throws \Google\Service\Exception
257 */
258 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
259 {
260 $params = ['resource' => $resource, 'postBody' => $postBody];
261 $params = array_merge($params, $optParams);
262 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
263 }
264 /**
265 * Returns permissions that a caller has on the specified resource. If the
266 * resource does not exist, this will return an empty set of permissions, not a
267 * `NOT_FOUND` error. Note: This operation is designed to be used for building
268 * permission-aware UIs and command-line tools, not for authorization checking.
269 * This operation may "fail open" without warning.
270 * (appConnections.testIamPermissions)
271 *
272 * @param string $resource REQUIRED: The resource for which the policy detail is
273 * being requested. See [Resource
274 * names](https://cloud.google.com/apis/design/resource_names) for the
275 * appropriate value for this field.
276 * @param GoogleIamV1TestIamPermissionsRequest $postBody
277 * @param array $optParams Optional parameters.
278 * @return GoogleIamV1TestIamPermissionsResponse
279 * @throws \Google\Service\Exception
280 */
281 public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
282 {
283 $params = ['resource' => $resource, 'postBody' => $postBody];
284 $params = array_merge($params, $optParams);
285 return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
286 }
287}
288
289// Adding a class alias for backwards compatibility with the previous class name.
290class_alias(ProjectsLocationsAppConnections::class, 'Google_Service_BeyondCorp_Resource_ProjectsLocationsAppConnections');
Note: See TracBrowser for help on using the repository browser.