source: vendor/google/apiclient-services/src/Compute/Resource/NetworkEdgeSecurityServices.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 12.1 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\Compute\Resource;
19
20use Google\Service\Compute\NetworkEdgeSecurityService;
21use Google\Service\Compute\NetworkEdgeSecurityServiceAggregatedList;
22use Google\Service\Compute\Operation;
23
24/**
25 * The "networkEdgeSecurityServices" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $computeService = new Google\Service\Compute(...);
29 * $networkEdgeSecurityServices = $computeService->networkEdgeSecurityServices;
30 * </code>
31 */
32class NetworkEdgeSecurityServices extends \Google\Service\Resource
33{
34 /**
35 * Retrieves the list of all NetworkEdgeSecurityService resources available to
36 * the specified project. To prevent failure, Google recommends that you set the
37 * `returnPartialSuccess` parameter to `true`.
38 * (networkEdgeSecurityServices.aggregatedList)
39 *
40 * @param string $project Name of the project scoping this request.
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string filter A filter expression that filters resources listed in
44 * the response. Most Compute resources support two types of filter expressions:
45 * expressions that support regular expressions and expressions that follow API
46 * improvement proposal AIP-160. These two types of filter expressions cannot be
47 * mixed in one request. If you want to use AIP-160, your expression must
48 * specify the field name, an operator, and the value that you want to use for
49 * filtering. The value must be a string, a number, or a boolean. The operator
50 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
51 * are filtering Compute Engine instances, you can exclude instances named
52 * `example-instance` by specifying `name != example-instance`. The `:*`
53 * comparison can be used to test whether a key has been defined. For example,
54 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
55 * also filter nested fields. For example, you could specify
56 * `scheduling.automaticRestart = false` to include instances only if they are
57 * not scheduled for automatic restarts. You can use filtering on nested fields
58 * to filter based on resource labels. To filter on multiple expressions,
59 * provide each separate expression within parentheses. For example: ```
60 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
61 * default, each expression is an `AND` expression. However, you can include
62 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
63 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
64 * (scheduling.automaticRestart = true) ``` If you want to use a regular
65 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
66 * single un-parenthesized expression with or without quotes or against multiple
67 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
68 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
69 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
70 * interpreted as a regular expression using Google RE2 library syntax. The
71 * literal value must match the entire field. For example, to filter for
72 * instances that do not end with name "instance", you would use `name ne
73 * .*instance`. You cannot combine constraints on multiple fields using regular
74 * expressions.
75 * @opt_param bool includeAllScopes Indicates whether every visible scope for
76 * each scope type (zone, region, global) should be included in the response.
77 * For new resource types added after this field, the flag has no effect as new
78 * resource types will always include every visible scope for each scope type in
79 * response. For resource types which predate this field, if this flag is
80 * omitted or false, only scopes of the scope types where the resource type is
81 * expected to be found will be included.
82 * @opt_param string maxResults The maximum number of results per page that
83 * should be returned. If the number of available results is larger than
84 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
85 * get the next page of results in subsequent list requests. Acceptable values
86 * are `0` to `500`, inclusive. (Default: `500`)
87 * @opt_param string orderBy Sorts list results by a certain order. By default,
88 * results are returned in alphanumerical order based on the resource name. You
89 * can also sort results in descending order based on the creation timestamp
90 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
91 * `creationTimestamp` field in reverse chronological order (newest result
92 * first). Use this to sort resources like operations so that the newest
93 * operation is returned first. Currently, only sorting by `name` or
94 * `creationTimestamp desc` is supported.
95 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
96 * the `nextPageToken` returned by a previous list request to get the next page
97 * of results.
98 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
99 * which provides partial results in case of failure. The default value is
100 * false. For example, when partial success behavior is enabled, aggregatedList
101 * for a single zone scope either returns all resources in the zone or no
102 * resources, with an error code.
103 * @opt_param string serviceProjectNumber The Shared VPC service project id or
104 * service project number for which aggregated list request is invoked for
105 * subnetworks list-usable api.
106 * @return NetworkEdgeSecurityServiceAggregatedList
107 * @throws \Google\Service\Exception
108 */
109 public function aggregatedList($project, $optParams = [])
110 {
111 $params = ['project' => $project];
112 $params = array_merge($params, $optParams);
113 return $this->call('aggregatedList', [$params], NetworkEdgeSecurityServiceAggregatedList::class);
114 }
115 /**
116 * Deletes the specified service. (networkEdgeSecurityServices.delete)
117 *
118 * @param string $project Project ID for this request.
119 * @param string $region Name of the region scoping this request.
120 * @param string $networkEdgeSecurityService Name of the network edge security
121 * service to delete.
122 * @param array $optParams Optional parameters.
123 *
124 * @opt_param string requestId An optional request ID to identify requests.
125 * Specify a unique request ID so that if you must retry your request, the
126 * server will know to ignore the request if it has already been completed. For
127 * example, consider a situation where you make an initial request and the
128 * request times out. If you make the request again with the same request ID,
129 * the server can check if original operation with the same request ID was
130 * received, and if so, will ignore the second request. This prevents clients
131 * from accidentally creating duplicate commitments. The request ID must be a
132 * valid UUID with the exception that zero UUID is not supported (
133 * 00000000-0000-0000-0000-000000000000).
134 * @return Operation
135 * @throws \Google\Service\Exception
136 */
137 public function delete($project, $region, $networkEdgeSecurityService, $optParams = [])
138 {
139 $params = ['project' => $project, 'region' => $region, 'networkEdgeSecurityService' => $networkEdgeSecurityService];
140 $params = array_merge($params, $optParams);
141 return $this->call('delete', [$params], Operation::class);
142 }
143 /**
144 * Gets a specified NetworkEdgeSecurityService.
145 * (networkEdgeSecurityServices.get)
146 *
147 * @param string $project Project ID for this request.
148 * @param string $region Name of the region scoping this request.
149 * @param string $networkEdgeSecurityService Name of the network edge security
150 * service to get.
151 * @param array $optParams Optional parameters.
152 * @return NetworkEdgeSecurityService
153 * @throws \Google\Service\Exception
154 */
155 public function get($project, $region, $networkEdgeSecurityService, $optParams = [])
156 {
157 $params = ['project' => $project, 'region' => $region, 'networkEdgeSecurityService' => $networkEdgeSecurityService];
158 $params = array_merge($params, $optParams);
159 return $this->call('get', [$params], NetworkEdgeSecurityService::class);
160 }
161 /**
162 * Creates a new service in the specified project using the data included in the
163 * request. (networkEdgeSecurityServices.insert)
164 *
165 * @param string $project Project ID for this request.
166 * @param string $region Name of the region scoping this request.
167 * @param NetworkEdgeSecurityService $postBody
168 * @param array $optParams Optional parameters.
169 *
170 * @opt_param string requestId An optional request ID to identify requests.
171 * Specify a unique request ID so that if you must retry your request, the
172 * server will know to ignore the request if it has already been completed. For
173 * example, consider a situation where you make an initial request and the
174 * request times out. If you make the request again with the same request ID,
175 * the server can check if original operation with the same request ID was
176 * received, and if so, will ignore the second request. This prevents clients
177 * from accidentally creating duplicate commitments. The request ID must be a
178 * valid UUID with the exception that zero UUID is not supported (
179 * 00000000-0000-0000-0000-000000000000).
180 * @opt_param bool validateOnly If true, the request will not be committed.
181 * @return Operation
182 * @throws \Google\Service\Exception
183 */
184 public function insert($project, $region, NetworkEdgeSecurityService $postBody, $optParams = [])
185 {
186 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
187 $params = array_merge($params, $optParams);
188 return $this->call('insert', [$params], Operation::class);
189 }
190 /**
191 * Patches the specified policy with the data included in the request.
192 * (networkEdgeSecurityServices.patch)
193 *
194 * @param string $project Project ID for this request.
195 * @param string $region Name of the region scoping this request.
196 * @param string $networkEdgeSecurityService Name of the network edge security
197 * service to update.
198 * @param NetworkEdgeSecurityService $postBody
199 * @param array $optParams Optional parameters.
200 *
201 * @opt_param string paths
202 * @opt_param string requestId An optional request ID to identify requests.
203 * Specify a unique request ID so that if you must retry your request, the
204 * server will know to ignore the request if it has already been completed. For
205 * example, consider a situation where you make an initial request and the
206 * request times out. If you make the request again with the same request ID,
207 * the server can check if original operation with the same request ID was
208 * received, and if so, will ignore the second request. This prevents clients
209 * from accidentally creating duplicate commitments. The request ID must be a
210 * valid UUID with the exception that zero UUID is not supported (
211 * 00000000-0000-0000-0000-000000000000).
212 * @opt_param string updateMask Indicates fields to be updated as part of this
213 * request.
214 * @return Operation
215 * @throws \Google\Service\Exception
216 */
217 public function patch($project, $region, $networkEdgeSecurityService, NetworkEdgeSecurityService $postBody, $optParams = [])
218 {
219 $params = ['project' => $project, 'region' => $region, 'networkEdgeSecurityService' => $networkEdgeSecurityService, 'postBody' => $postBody];
220 $params = array_merge($params, $optParams);
221 return $this->call('patch', [$params], Operation::class);
222 }
223}
224
225// Adding a class alias for backwards compatibility with the previous class name.
226class_alias(NetworkEdgeSecurityServices::class, 'Google_Service_Compute_Resource_NetworkEdgeSecurityServices');
Note: See TracBrowser for help on using the repository browser.