source: vendor/google/apiclient-services/src/Compute/Resource/RegionUrlMaps.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: 10.7 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\Operation;
21use Google\Service\Compute\RegionUrlMapsValidateRequest;
22use Google\Service\Compute\UrlMap;
23use Google\Service\Compute\UrlMapList;
24use Google\Service\Compute\UrlMapsValidateResponse;
25
26/**
27 * The "regionUrlMaps" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $computeService = new Google\Service\Compute(...);
31 * $regionUrlMaps = $computeService->regionUrlMaps;
32 * </code>
33 */
34class RegionUrlMaps extends \Google\Service\Resource
35{
36 /**
37 * Deletes the specified UrlMap resource. (regionUrlMaps.delete)
38 *
39 * @param string $project Project ID for this request.
40 * @param string $region Name of the region scoping this request.
41 * @param string $urlMap Name of the UrlMap resource to delete.
42 * @param array $optParams Optional parameters.
43 *
44 * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
45 * Request ID to support idempotency.
46 * @return Operation
47 * @throws \Google\Service\Exception
48 */
49 public function delete($project, $region, $urlMap, $optParams = [])
50 {
51 $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap];
52 $params = array_merge($params, $optParams);
53 return $this->call('delete', [$params], Operation::class);
54 }
55 /**
56 * Returns the specified UrlMap resource. (regionUrlMaps.get)
57 *
58 * @param string $project Project ID for this request.
59 * @param string $region Name of the region scoping this request.
60 * @param string $urlMap Name of the UrlMap resource to return.
61 * @param array $optParams Optional parameters.
62 * @return UrlMap
63 * @throws \Google\Service\Exception
64 */
65 public function get($project, $region, $urlMap, $optParams = [])
66 {
67 $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap];
68 $params = array_merge($params, $optParams);
69 return $this->call('get', [$params], UrlMap::class);
70 }
71 /**
72 * Creates a UrlMap resource in the specified project using the data included in
73 * the request. (regionUrlMaps.insert)
74 *
75 * @param string $project Project ID for this request.
76 * @param string $region Name of the region scoping this request.
77 * @param UrlMap $postBody
78 * @param array $optParams Optional parameters.
79 *
80 * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
81 * Request ID to support idempotency.
82 * @return Operation
83 * @throws \Google\Service\Exception
84 */
85 public function insert($project, $region, UrlMap $postBody, $optParams = [])
86 {
87 $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody];
88 $params = array_merge($params, $optParams);
89 return $this->call('insert', [$params], Operation::class);
90 }
91 /**
92 * Retrieves the list of UrlMap resources available to the specified project in
93 * the specified region. (regionUrlMaps.listRegionUrlMaps)
94 *
95 * @param string $project Project ID for this request.
96 * @param string $region Name of the region scoping this request.
97 * @param array $optParams Optional parameters.
98 *
99 * @opt_param string filter A filter expression that filters resources listed in
100 * the response. Most Compute resources support two types of filter expressions:
101 * expressions that support regular expressions and expressions that follow API
102 * improvement proposal AIP-160. These two types of filter expressions cannot be
103 * mixed in one request. If you want to use AIP-160, your expression must
104 * specify the field name, an operator, and the value that you want to use for
105 * filtering. The value must be a string, a number, or a boolean. The operator
106 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
107 * are filtering Compute Engine instances, you can exclude instances named
108 * `example-instance` by specifying `name != example-instance`. The `:*`
109 * comparison can be used to test whether a key has been defined. For example,
110 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
111 * also filter nested fields. For example, you could specify
112 * `scheduling.automaticRestart = false` to include instances only if they are
113 * not scheduled for automatic restarts. You can use filtering on nested fields
114 * to filter based on resource labels. To filter on multiple expressions,
115 * provide each separate expression within parentheses. For example: ```
116 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
117 * default, each expression is an `AND` expression. However, you can include
118 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
119 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
120 * (scheduling.automaticRestart = true) ``` If you want to use a regular
121 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
122 * single un-parenthesized expression with or without quotes or against multiple
123 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
124 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
125 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
126 * interpreted as a regular expression using Google RE2 library syntax. The
127 * literal value must match the entire field. For example, to filter for
128 * instances that do not end with name "instance", you would use `name ne
129 * .*instance`. You cannot combine constraints on multiple fields using regular
130 * expressions.
131 * @opt_param string maxResults The maximum number of results per page that
132 * should be returned. If the number of available results is larger than
133 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
134 * get the next page of results in subsequent list requests. Acceptable values
135 * are `0` to `500`, inclusive. (Default: `500`)
136 * @opt_param string orderBy Sorts list results by a certain order. By default,
137 * results are returned in alphanumerical order based on the resource name. You
138 * can also sort results in descending order based on the creation timestamp
139 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
140 * `creationTimestamp` field in reverse chronological order (newest result
141 * first). Use this to sort resources like operations so that the newest
142 * operation is returned first. Currently, only sorting by `name` or
143 * `creationTimestamp desc` is supported.
144 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
145 * the `nextPageToken` returned by a previous list request to get the next page
146 * of results.
147 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
148 * which provides partial results in case of failure. The default value is
149 * false. For example, when partial success behavior is enabled, aggregatedList
150 * for a single zone scope either returns all resources in the zone or no
151 * resources, with an error code.
152 * @return UrlMapList
153 * @throws \Google\Service\Exception
154 */
155 public function listRegionUrlMaps($project, $region, $optParams = [])
156 {
157 $params = ['project' => $project, 'region' => $region];
158 $params = array_merge($params, $optParams);
159 return $this->call('list', [$params], UrlMapList::class);
160 }
161 /**
162 * Patches the specified UrlMap resource with the data included in the request.
163 * This method supports PATCH semantics and uses JSON merge patch format and
164 * processing rules. (regionUrlMaps.patch)
165 *
166 * @param string $project Project ID for this request.
167 * @param string $region Name of the region scoping this request.
168 * @param string $urlMap Name of the UrlMap resource to patch.
169 * @param UrlMap $postBody
170 * @param array $optParams Optional parameters.
171 *
172 * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
173 * Request ID to support idempotency.
174 * @return Operation
175 * @throws \Google\Service\Exception
176 */
177 public function patch($project, $region, $urlMap, UrlMap $postBody, $optParams = [])
178 {
179 $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
180 $params = array_merge($params, $optParams);
181 return $this->call('patch', [$params], Operation::class);
182 }
183 /**
184 * Updates the specified UrlMap resource with the data included in the request.
185 * (regionUrlMaps.update)
186 *
187 * @param string $project Project ID for this request.
188 * @param string $region Name of the region scoping this request.
189 * @param string $urlMap Name of the UrlMap resource to update.
190 * @param UrlMap $postBody
191 * @param array $optParams Optional parameters.
192 *
193 * @opt_param string requestId begin_interface: MixerMutationRequestBuilder
194 * Request ID to support idempotency.
195 * @return Operation
196 * @throws \Google\Service\Exception
197 */
198 public function update($project, $region, $urlMap, UrlMap $postBody, $optParams = [])
199 {
200 $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
201 $params = array_merge($params, $optParams);
202 return $this->call('update', [$params], Operation::class);
203 }
204 /**
205 * Runs static validation for the UrlMap. In particular, the tests of the
206 * provided UrlMap will be run. Calling this method does NOT create the UrlMap.
207 * (regionUrlMaps.validate)
208 *
209 * @param string $project Project ID for this request.
210 * @param string $region Name of the region scoping this request.
211 * @param string $urlMap Name of the UrlMap resource to be validated as.
212 * @param RegionUrlMapsValidateRequest $postBody
213 * @param array $optParams Optional parameters.
214 * @return UrlMapsValidateResponse
215 * @throws \Google\Service\Exception
216 */
217 public function validate($project, $region, $urlMap, RegionUrlMapsValidateRequest $postBody, $optParams = [])
218 {
219 $params = ['project' => $project, 'region' => $region, 'urlMap' => $urlMap, 'postBody' => $postBody];
220 $params = array_merge($params, $optParams);
221 return $this->call('validate', [$params], UrlMapsValidateResponse::class);
222 }
223}
224
225// Adding a class alias for backwards compatibility with the previous class name.
226class_alias(RegionUrlMaps::class, 'Google_Service_Compute_Resource_RegionUrlMaps');
Note: See TracBrowser for help on using the repository browser.