source: vendor/google/apiclient-services/src/NetworkSecurity/Resource/OrganizationsLocationsFirewallEndpoints.php@ e3d4e0a

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

Upload project files

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