source: vendor/google/apiclient-services/src/BeyondCorp/Resource/ProjectsLocationsSecurityGatewaysApplications.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: 7.9 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\GoogleCloudBeyondcorpSecuritygatewaysV1Application;
21use Google\Service\BeyondCorp\GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse;
22use Google\Service\BeyondCorp\GoogleIamV1Policy;
23use Google\Service\BeyondCorp\GoogleIamV1SetIamPolicyRequest;
24use Google\Service\BeyondCorp\GoogleLongrunningOperation;
25
26/**
27 * The "applications" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $beyondcorpService = new Google\Service\BeyondCorp(...);
31 * $applications = $beyondcorpService->projects_locations_securityGateways_applications;
32 * </code>
33 */
34class ProjectsLocationsSecurityGatewaysApplications extends \Google\Service\Resource
35{
36 /**
37 * Deletes a single Application. (applications.delete)
38 *
39 * @param string $name Required. Name of the resource.
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string requestId Optional. An optional request ID to identify
43 * requests. Specify a unique request ID so that if you must retry your request,
44 * the server will know to ignore the request if it has already been completed.
45 * The server will guarantee that for at least 60 minutes after the first
46 * request. For example, consider a situation where you make an initial request
47 * and the request times out. If you make the request again with the same
48 * request ID, the server can check if original operation with the same request
49 * ID was received, and if so, will ignore the second request. This prevents
50 * clients from accidentally creating duplicate commitments. The request ID must
51 * be a valid UUID with the exception that zero UUID is not supported
52 * (00000000-0000-0000-0000-000000000000).
53 * @opt_param bool validateOnly Optional. If set, validates request by executing
54 * a dry-run which would not alter the resource in any way.
55 * @return GoogleLongrunningOperation
56 * @throws \Google\Service\Exception
57 */
58 public function delete($name, $optParams = [])
59 {
60 $params = ['name' => $name];
61 $params = array_merge($params, $optParams);
62 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
63 }
64 /**
65 * Gets details of a single Application. (applications.get)
66 *
67 * @param string $name Required. The resource name of the Application using the
68 * form: `projects/{project_id}/locations/global/securityGateway/{security_gatew
69 * ay_id}/applications/{application_id}`
70 * @param array $optParams Optional parameters.
71 * @return GoogleCloudBeyondcorpSecuritygatewaysV1Application
72 * @throws \Google\Service\Exception
73 */
74 public function get($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], GoogleCloudBeyondcorpSecuritygatewaysV1Application::class);
79 }
80 /**
81 * Gets the access control policy for a resource. Returns an empty policy if the
82 * resource exists and does not have a policy set. (applications.getIamPolicy)
83 *
84 * @param string $resource REQUIRED: The resource for which the policy is being
85 * requested. See [Resource
86 * names](https://cloud.google.com/apis/design/resource_names) for the
87 * appropriate value for this field.
88 * @param array $optParams Optional parameters.
89 *
90 * @opt_param int options.requestedPolicyVersion Optional. The maximum policy
91 * version that will be used to format the policy. Valid values are 0, 1, and 3.
92 * Requests specifying an invalid value will be rejected. Requests for policies
93 * with any conditional role bindings must specify version 3. Policies with no
94 * conditional role bindings may specify any valid value or leave the field
95 * unset. The policy in the response might use the policy version that you
96 * specified, or it might use a lower policy version. For example, if you
97 * specify version 3, but the policy has no conditional role bindings, the
98 * response uses version 1. To learn which resources support conditions in their
99 * IAM policies, see the [IAM
100 * documentation](https://cloud.google.com/iam/help/conditions/resource-
101 * policies).
102 * @return GoogleIamV1Policy
103 * @throws \Google\Service\Exception
104 */
105 public function getIamPolicy($resource, $optParams = [])
106 {
107 $params = ['resource' => $resource];
108 $params = array_merge($params, $optParams);
109 return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
110 }
111 /**
112 * Lists Applications in a given project and location.
113 * (applications.listProjectsLocationsSecurityGatewaysApplications)
114 *
115 * @param string $parent Required. The parent location to which the resources
116 * belong. `projects/{project_id}/locations/global/securityGateways/{security_ga
117 * teway_id}`
118 * @param array $optParams Optional parameters.
119 *
120 * @opt_param string filter Optional. A filter specifying constraints of a list
121 * operation. All fields in the Application message are supported. For example,
122 * the following query will return the Application with displayName "test-
123 * application" For more information, please refer to
124 * https://google.aip.dev/160.
125 * @opt_param string orderBy Optional. Specifies the ordering of results. See
126 * [Sorting
127 * order](https://cloud.google.com/apis/design/design_patterns#sorting_order)
128 * for more information.
129 * @opt_param int pageSize Optional. The maximum number of items to return. If
130 * not specified, a default value of 50 will be used by the service. Regardless
131 * of the page_size value, the response may include a partial list and a caller
132 * should only rely on response's next_page_token to determine if there are more
133 * instances left to be queried.
134 * @opt_param string pageToken Optional. The next_page_token value returned from
135 * a previous ListApplicationsRequest, if any.
136 * @return GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse
137 * @throws \Google\Service\Exception
138 */
139 public function listProjectsLocationsSecurityGatewaysApplications($parent, $optParams = [])
140 {
141 $params = ['parent' => $parent];
142 $params = array_merge($params, $optParams);
143 return $this->call('list', [$params], GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse::class);
144 }
145 /**
146 * Sets the access control policy on the specified resource. Replaces any
147 * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
148 * `PERMISSION_DENIED` errors. (applications.setIamPolicy)
149 *
150 * @param string $resource REQUIRED: The resource for which the policy is being
151 * specified. See [Resource
152 * names](https://cloud.google.com/apis/design/resource_names) for the
153 * appropriate value for this field.
154 * @param GoogleIamV1SetIamPolicyRequest $postBody
155 * @param array $optParams Optional parameters.
156 * @return GoogleIamV1Policy
157 * @throws \Google\Service\Exception
158 */
159 public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
160 {
161 $params = ['resource' => $resource, 'postBody' => $postBody];
162 $params = array_merge($params, $optParams);
163 return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
164 }
165}
166
167// Adding a class alias for backwards compatibility with the previous class name.
168class_alias(ProjectsLocationsSecurityGatewaysApplications::class, 'Google_Service_BeyondCorp_Resource_ProjectsLocationsSecurityGatewaysApplications');
Note: See TracBrowser for help on using the repository browser.