source: vendor/google/apiclient-services/src/NetworkSecurity/Resource/ProjectsLocationsFirewallEndpointAssociations.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: 7.7 KB
RevLine 
[e3d4e0a]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\NetworkSecurity\Resource;
19
20use Google\Service\NetworkSecurity\FirewallEndpointAssociation;
21use Google\Service\NetworkSecurity\ListFirewallEndpointAssociationsResponse;
22use Google\Service\NetworkSecurity\Operation;
23
24/**
25 * The "firewallEndpointAssociations" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $networksecurityService = new Google\Service\NetworkSecurity(...);
29 * $firewallEndpointAssociations = $networksecurityService->projects_locations_firewallEndpointAssociations;
30 * </code>
31 */
32class ProjectsLocationsFirewallEndpointAssociations extends \Google\Service\Resource
33{
34 /**
35 * Creates a new FirewallEndpointAssociation in a given project and location.
36 * (firewallEndpointAssociations.create)
37 *
38 * @param string $parent Required. Value for parent.
39 * @param FirewallEndpointAssociation $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string firewallEndpointAssociationId Optional. Id of the
43 * requesting object. If auto-generating Id server-side, remove this field and
44 * firewall_endpoint_association_id from the method_signature of Create RPC.
45 * @opt_param string requestId Optional. An optional request ID to identify
46 * requests. Specify a unique request ID so that if you must retry your request,
47 * the server will know to ignore the request if it has already been completed.
48 * The server will guarantee that for at least 60 minutes since the first
49 * request. For example, consider a situation where you make an initial request
50 * and the request times out. If you make the request again with the same
51 * request ID, the server can check if original operation with the same request
52 * ID was received, and if so, will ignore the second request. This prevents
53 * clients from accidentally creating duplicate commitments. The request ID must
54 * be a valid UUID with the exception that zero UUID is not supported
55 * (00000000-0000-0000-0000-000000000000).
56 * @return Operation
57 * @throws \Google\Service\Exception
58 */
59 public function create($parent, FirewallEndpointAssociation $postBody, $optParams = [])
60 {
61 $params = ['parent' => $parent, 'postBody' => $postBody];
62 $params = array_merge($params, $optParams);
63 return $this->call('create', [$params], Operation::class);
64 }
65 /**
66 * Deletes a single FirewallEndpointAssociation.
67 * (firewallEndpointAssociations.delete)
68 *
69 * @param string $name Required. Name of the resource
70 * @param array $optParams Optional parameters.
71 *
72 * @opt_param string requestId Optional. An optional request ID to identify
73 * requests. Specify a unique request ID so that if you must retry your request,
74 * the server will know to ignore the request if it has already been completed.
75 * The server will guarantee that for at least 60 minutes after the first
76 * request. For example, consider a situation where you make an initial request
77 * and the request times out. If you make the request again with the same
78 * request ID, the server can check if original operation with the same request
79 * ID was received, and if so, will ignore the second request. This prevents
80 * clients from accidentally creating duplicate commitments. The request ID must
81 * be a valid UUID with the exception that zero UUID is not supported
82 * (00000000-0000-0000-0000-000000000000).
83 * @return Operation
84 * @throws \Google\Service\Exception
85 */
86 public function delete($name, $optParams = [])
87 {
88 $params = ['name' => $name];
89 $params = array_merge($params, $optParams);
90 return $this->call('delete', [$params], Operation::class);
91 }
92 /**
93 * Gets details of a single FirewallEndpointAssociation.
94 * (firewallEndpointAssociations.get)
95 *
96 * @param string $name Required. Name of the resource
97 * @param array $optParams Optional parameters.
98 * @return FirewallEndpointAssociation
99 * @throws \Google\Service\Exception
100 */
101 public function get($name, $optParams = [])
102 {
103 $params = ['name' => $name];
104 $params = array_merge($params, $optParams);
105 return $this->call('get', [$params], FirewallEndpointAssociation::class);
106 }
107 /**
108 * Lists Associations in a given project and location. (firewallEndpointAssociat
109 * ions.listProjectsLocationsFirewallEndpointAssociations)
110 *
111 * @param string $parent Required. Parent value for ListAssociationsRequest
112 * @param array $optParams Optional parameters.
113 *
114 * @opt_param string filter Optional. Filtering results
115 * @opt_param string orderBy Hint for how to order the results
116 * @opt_param int pageSize Optional. Requested page size. Server may return
117 * fewer items than requested. If unspecified, server will pick an appropriate
118 * default.
119 * @opt_param string pageToken A token identifying a page of results the server
120 * should return.
121 * @return ListFirewallEndpointAssociationsResponse
122 * @throws \Google\Service\Exception
123 */
124 public function listProjectsLocationsFirewallEndpointAssociations($parent, $optParams = [])
125 {
126 $params = ['parent' => $parent];
127 $params = array_merge($params, $optParams);
128 return $this->call('list', [$params], ListFirewallEndpointAssociationsResponse::class);
129 }
130 /**
131 * Update a single FirewallEndpointAssociation.
132 * (firewallEndpointAssociations.patch)
133 *
134 * @param string $name Immutable. Identifier. name of resource
135 * @param FirewallEndpointAssociation $postBody
136 * @param array $optParams Optional parameters.
137 *
138 * @opt_param string requestId Optional. An optional request ID to identify
139 * requests. Specify a unique request ID so that if you must retry your request,
140 * the server will know to ignore the request if it has already been completed.
141 * The server will guarantee that for at least 60 minutes since the first
142 * request. For example, consider a situation where you make an initial request
143 * and the request times out. If you make the request again with the same
144 * request ID, the server can check if original operation with the same request
145 * ID was received, and if so, will ignore the second request. This prevents
146 * clients from accidentally creating duplicate commitments. The request ID must
147 * be a valid UUID with the exception that zero UUID is not supported
148 * (00000000-0000-0000-0000-000000000000).
149 * @opt_param string updateMask Required. Field mask is used to specify the
150 * fields to be overwritten in the Association resource by the update. The
151 * fields specified in the update_mask are relative to the resource, not the
152 * full request. A field will be overwritten if it is in the mask. If the user
153 * does not provide a mask then all fields will be overwritten.
154 * @return Operation
155 * @throws \Google\Service\Exception
156 */
157 public function patch($name, FirewallEndpointAssociation $postBody, $optParams = [])
158 {
159 $params = ['name' => $name, 'postBody' => $postBody];
160 $params = array_merge($params, $optParams);
161 return $this->call('patch', [$params], Operation::class);
162 }
163}
164
165// Adding a class alias for backwards compatibility with the previous class name.
166class_alias(ProjectsLocationsFirewallEndpointAssociations::class, 'Google_Service_NetworkSecurity_Resource_ProjectsLocationsFirewallEndpointAssociations');
Note: See TracBrowser for help on using the repository browser.