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

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

Upload new project files

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