source: vendor/google/apiclient-services/src/CloudLifeSciences/Resource/ProjectsLocationsOperations.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 4.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\CloudLifeSciences\Resource;
19
20use Google\Service\CloudLifeSciences\CancelOperationRequest;
21use Google\Service\CloudLifeSciences\LifesciencesEmpty;
22use Google\Service\CloudLifeSciences\ListOperationsResponse;
23use Google\Service\CloudLifeSciences\Operation;
24
25/**
26 * The "operations" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $lifesciencesService = new Google\Service\CloudLifeSciences(...);
30 * $operations = $lifesciencesService->projects_locations_operations;
31 * </code>
32 */
33class ProjectsLocationsOperations extends \Google\Service\Resource
34{
35 /**
36 * Starts asynchronous cancellation on a long-running operation. The server
37 * makes a best effort to cancel the operation, but success is not guaranteed.
38 * Clients may use Operations.GetOperation or Operations.ListOperations to check
39 * whether the cancellation succeeded or the operation completed despite
40 * cancellation. Authorization requires the following [Google
41 * IAM](https://cloud.google.com/iam) permission: *
42 * `lifesciences.operations.cancel` (operations.cancel)
43 *
44 * @param string $name The name of the operation resource to be cancelled.
45 * @param CancelOperationRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return LifesciencesEmpty
48 * @throws \Google\Service\Exception
49 */
50 public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
51 {
52 $params = ['name' => $name, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('cancel', [$params], LifesciencesEmpty::class);
55 }
56 /**
57 * Gets the latest state of a long-running operation. Clients can use this
58 * method to poll the operation result at intervals as recommended by the API
59 * service. Authorization requires the following [Google
60 * IAM](https://cloud.google.com/iam) permission: *
61 * `lifesciences.operations.get` (operations.get)
62 *
63 * @param string $name The name of the operation resource.
64 * @param array $optParams Optional parameters.
65 * @return Operation
66 * @throws \Google\Service\Exception
67 */
68 public function get($name, $optParams = [])
69 {
70 $params = ['name' => $name];
71 $params = array_merge($params, $optParams);
72 return $this->call('get', [$params], Operation::class);
73 }
74 /**
75 * Lists operations that match the specified filter in the request.
76 * Authorization requires the following [Google
77 * IAM](https://cloud.google.com/iam) permission: *
78 * `lifesciences.operations.list` (operations.listProjectsLocationsOperations)
79 *
80 * @param string $name The name of the operation's parent resource.
81 * @param array $optParams Optional parameters.
82 *
83 * @opt_param string filter A string for filtering Operations. The following
84 * filter fields are supported: * createTime: The time this job was created *
85 * events: The set of event (names) that have occurred while running the
86 * pipeline. The : operator can be used to determine if a particular event has
87 * occurred. * error: If the pipeline is running, this value is NULL. Once the
88 * pipeline finishes, the value is the standard Google error code. * labels.key
89 * or labels."key with space" where key is a label key. * done: If the pipeline
90 * is running, this value is false. Once the pipeline finishes, the value is
91 * true.
92 * @opt_param int pageSize The maximum number of results to return. The maximum
93 * value is 256.
94 * @opt_param string pageToken The standard list page token.
95 * @return ListOperationsResponse
96 * @throws \Google\Service\Exception
97 */
98 public function listProjectsLocationsOperations($name, $optParams = [])
99 {
100 $params = ['name' => $name];
101 $params = array_merge($params, $optParams);
102 return $this->call('list', [$params], ListOperationsResponse::class);
103 }
104}
105
106// Adding a class alias for backwards compatibility with the previous class name.
107class_alias(ProjectsLocationsOperations::class, 'Google_Service_CloudLifeSciences_Resource_ProjectsLocationsOperations');
Note: See TracBrowser for help on using the repository browser.