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