source: vendor/google/apiclient-services/src/Compute/Resource/RegionZones.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: 5.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\ZoneList;
21
22/**
23 * The "regionZones" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $computeService = new Google\Service\Compute(...);
27 * $regionZones = $computeService->regionZones;
28 * </code>
29 */
30class RegionZones extends \Google\Service\Resource
31{
32 /**
33 * Retrieves the list of Zone resources under the specific region available to
34 * the specified project. (regionZones.listRegionZones)
35 *
36 * @param string $project Project ID for this request.
37 * @param string $region Region for this request.
38 * @param array $optParams Optional parameters.
39 *
40 * @opt_param string filter A filter expression that filters resources listed in
41 * the response. Most Compute resources support two types of filter expressions:
42 * expressions that support regular expressions and expressions that follow API
43 * improvement proposal AIP-160. These two types of filter expressions cannot be
44 * mixed in one request. If you want to use AIP-160, your expression must
45 * specify the field name, an operator, and the value that you want to use for
46 * filtering. The value must be a string, a number, or a boolean. The operator
47 * must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you
48 * are filtering Compute Engine instances, you can exclude instances named
49 * `example-instance` by specifying `name != example-instance`. The `:*`
50 * comparison can be used to test whether a key has been defined. For example,
51 * to find all objects with `owner` label use: ``` labels.owner:* ``` You can
52 * also filter nested fields. For example, you could specify
53 * `scheduling.automaticRestart = false` to include instances only if they are
54 * not scheduled for automatic restarts. You can use filtering on nested fields
55 * to filter based on resource labels. To filter on multiple expressions,
56 * provide each separate expression within parentheses. For example: ```
57 * (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
58 * default, each expression is an `AND` expression. However, you can include
59 * `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
60 * Skylake") OR (cpuPlatform = "Intel Broadwell") AND
61 * (scheduling.automaticRestart = true) ``` If you want to use a regular
62 * expression, use the `eq` (equal) or `ne` (not equal) operator against a
63 * single un-parenthesized expression with or without quotes or against multiple
64 * parenthesized expressions. Examples: `fieldname eq unquoted literal`
65 * `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"`
66 * `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
67 * interpreted as a regular expression using Google RE2 library syntax. The
68 * literal value must match the entire field. For example, to filter for
69 * instances that do not end with name "instance", you would use `name ne
70 * .*instance`. You cannot combine constraints on multiple fields using regular
71 * expressions.
72 * @opt_param string maxResults The maximum number of results per page that
73 * should be returned. If the number of available results is larger than
74 * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to
75 * get the next page of results in subsequent list requests. Acceptable values
76 * are `0` to `500`, inclusive. (Default: `500`)
77 * @opt_param string orderBy Sorts list results by a certain order. By default,
78 * results are returned in alphanumerical order based on the resource name. You
79 * can also sort results in descending order based on the creation timestamp
80 * using `orderBy="creationTimestamp desc"`. This sorts results based on the
81 * `creationTimestamp` field in reverse chronological order (newest result
82 * first). Use this to sort resources like operations so that the newest
83 * operation is returned first. Currently, only sorting by `name` or
84 * `creationTimestamp desc` is supported.
85 * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
86 * the `nextPageToken` returned by a previous list request to get the next page
87 * of results.
88 * @opt_param bool returnPartialSuccess Opt-in for partial success behavior
89 * which provides partial results in case of failure. The default value is
90 * false. For example, when partial success behavior is enabled, aggregatedList
91 * for a single zone scope either returns all resources in the zone or no
92 * resources, with an error code.
93 * @return ZoneList
94 * @throws \Google\Service\Exception
95 */
96 public function listRegionZones($project, $region, $optParams = [])
97 {
98 $params = ['project' => $project, 'region' => $region];
99 $params = array_merge($params, $optParams);
100 return $this->call('list', [$params], ZoneList::class);
101 }
102}
103
104// Adding a class alias for backwards compatibility with the previous class name.
105class_alias(RegionZones::class, 'Google_Service_Compute_Resource_RegionZones');
Note: See TracBrowser for help on using the repository browser.