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