source: vendor/google/apiclient-services/src/Spanner/Resource/ProjectsInstanceConfigOperations.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.6 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\Spanner\Resource;
19
20use Google\Service\Spanner\ListInstanceConfigOperationsResponse;
21
22/**
23 * The "instanceConfigOperations" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $spannerService = new Google\Service\Spanner(...);
27 * $instanceConfigOperations = $spannerService->projects_instanceConfigOperations;
28 * </code>
29 */
30class ProjectsInstanceConfigOperations extends \Google\Service\Resource
31{
32 /**
33 * Lists the user-managed instance configuration long-running operations in the
34 * given project. An instance configuration operation has a name of the form
35 * `projects//instanceConfigs//operations/`. The long-running operation metadata
36 * field type `metadata.type_url` describes the type of the metadata. Operations
37 * returned include those that have completed/failed/canceled within the last 7
38 * days, and pending operations. Operations returned are ordered by
39 * `operation.metadata.value.start_time` in descending order starting from the
40 * most recently started operation.
41 * (instanceConfigOperations.listProjectsInstanceConfigOperations)
42 *
43 * @param string $parent Required. The project of the instance configuration
44 * operations. Values are of the form `projects/`.
45 * @param array $optParams Optional parameters.
46 *
47 * @opt_param string filter An expression that filters the list of returned
48 * operations. A filter expression consists of a field name, a comparison
49 * operator, and a value for filtering. The value must be a string, a number, or
50 * a boolean. The comparison operator must be one of: `<`, `>`, `<=`, `>=`,
51 * `!=`, `=`, or `:`. Colon `:` is the contains operator. Filter rules are not
52 * case sensitive. The following fields in the Operation are eligible for
53 * filtering: * `name` - The name of the long-running operation * `done` - False
54 * if the operation is in progress, else true. * `metadata.@type` - the type of
55 * metadata. For example, the type string for CreateInstanceConfigMetadata is `t
56 * ype.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetad
57 * ata`. * `metadata.` - any field in metadata.value. `metadata.@type` must be
58 * specified first, if filtering on metadata fields. * `error` - Error
59 * associated with the long-running operation. * `response.@type` - the type of
60 * response. * `response.` - any field in response.value. You can combine
61 * multiple expressions by enclosing each expression in parentheses. By default,
62 * expressions are combined with AND logic. However, you can specify AND, OR,
63 * and NOT logic explicitly. Here are a few examples: * `done:true` - The
64 * operation is complete. * `(metadata.@type=` \ `type.googleapis.com/google.spa
65 * nner.admin.instance.v1.CreateInstanceConfigMetadata) AND` \
66 * `(metadata.instance_config.name:custom-config) AND` \
67 * `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \ `(error:*)`
68 * - Return operations where: * The operation's metadata type is
69 * CreateInstanceConfigMetadata. * The instance configuration name contains
70 * "custom-config". * The operation started before 2021-03-28T14:50:00Z. * The
71 * operation resulted in an error.
72 * @opt_param int pageSize Number of operations to be returned in the response.
73 * If 0 or less, defaults to the server's maximum allowed page size.
74 * @opt_param string pageToken If non-empty, `page_token` should contain a
75 * next_page_token from a previous ListInstanceConfigOperationsResponse to the
76 * same `parent` and with the same `filter`.
77 * @return ListInstanceConfigOperationsResponse
78 * @throws \Google\Service\Exception
79 */
80 public function listProjectsInstanceConfigOperations($parent, $optParams = [])
81 {
82 $params = ['parent' => $parent];
83 $params = array_merge($params, $optParams);
84 return $this->call('list', [$params], ListInstanceConfigOperationsResponse::class);
85 }
86}
87
88// Adding a class alias for backwards compatibility with the previous class name.
89class_alias(ProjectsInstanceConfigOperations::class, 'Google_Service_Spanner_Resource_ProjectsInstanceConfigOperations');
Note: See TracBrowser for help on using the repository browser.