source: vendor/google/apiclient-services/src/DeploymentManager/Resource/Operations.php@ f9c482b

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

Upload new project files

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