source: vendor/google/apiclient-services/src/Dataform/Resource/ProjectsLocationsRepositoriesWorkflowInvocations.php

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

Upload project files

  • Property mode set to 100644
File size: 6.3 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\Dataform\Resource;
19
20use Google\Service\Dataform\CancelWorkflowInvocationRequest;
21use Google\Service\Dataform\DataformEmpty;
22use Google\Service\Dataform\ListWorkflowInvocationsResponse;
23use Google\Service\Dataform\QueryWorkflowInvocationActionsResponse;
24use Google\Service\Dataform\WorkflowInvocation;
25
26/**
27 * The "workflowInvocations" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $dataformService = new Google\Service\Dataform(...);
31 * $workflowInvocations = $dataformService->projects_locations_repositories_workflowInvocations;
32 * </code>
33 */
34class ProjectsLocationsRepositoriesWorkflowInvocations extends \Google\Service\Resource
35{
36 /**
37 * Requests cancellation of a running WorkflowInvocation.
38 * (workflowInvocations.cancel)
39 *
40 * @param string $name Required. The workflow invocation resource's name.
41 * @param CancelWorkflowInvocationRequest $postBody
42 * @param array $optParams Optional parameters.
43 * @return DataformEmpty
44 * @throws \Google\Service\Exception
45 */
46 public function cancel($name, CancelWorkflowInvocationRequest $postBody, $optParams = [])
47 {
48 $params = ['name' => $name, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('cancel', [$params], DataformEmpty::class);
51 }
52 /**
53 * Creates a new WorkflowInvocation in a given Repository.
54 * (workflowInvocations.create)
55 *
56 * @param string $parent Required. The repository in which to create the
57 * workflow invocation. Must be in the format `projects/locations/repositories`.
58 * @param WorkflowInvocation $postBody
59 * @param array $optParams Optional parameters.
60 * @return WorkflowInvocation
61 * @throws \Google\Service\Exception
62 */
63 public function create($parent, WorkflowInvocation $postBody, $optParams = [])
64 {
65 $params = ['parent' => $parent, 'postBody' => $postBody];
66 $params = array_merge($params, $optParams);
67 return $this->call('create', [$params], WorkflowInvocation::class);
68 }
69 /**
70 * Deletes a single WorkflowInvocation. (workflowInvocations.delete)
71 *
72 * @param string $name Required. The workflow invocation resource's name.
73 * @param array $optParams Optional parameters.
74 * @return DataformEmpty
75 * @throws \Google\Service\Exception
76 */
77 public function delete($name, $optParams = [])
78 {
79 $params = ['name' => $name];
80 $params = array_merge($params, $optParams);
81 return $this->call('delete', [$params], DataformEmpty::class);
82 }
83 /**
84 * Fetches a single WorkflowInvocation. (workflowInvocations.get)
85 *
86 * @param string $name Required. The workflow invocation resource's name.
87 * @param array $optParams Optional parameters.
88 * @return WorkflowInvocation
89 * @throws \Google\Service\Exception
90 */
91 public function get($name, $optParams = [])
92 {
93 $params = ['name' => $name];
94 $params = array_merge($params, $optParams);
95 return $this->call('get', [$params], WorkflowInvocation::class);
96 }
97 /**
98 * Lists WorkflowInvocations in a given Repository.
99 * (workflowInvocations.listProjectsLocationsRepositoriesWorkflowInvocations)
100 *
101 * @param string $parent Required. The parent resource of the WorkflowInvocation
102 * type. Must be in the format `projects/locations/repositories`.
103 * @param array $optParams Optional parameters.
104 *
105 * @opt_param string filter Optional. Filter for the returned list.
106 * @opt_param string orderBy Optional. This field only supports ordering by
107 * `name`. If unspecified, the server will choose the ordering. If specified,
108 * the default order is ascending for the `name` field.
109 * @opt_param int pageSize Optional. Maximum number of workflow invocations to
110 * return. The server may return fewer items than requested. If unspecified, the
111 * server will pick an appropriate default.
112 * @opt_param string pageToken Optional. Page token received from a previous
113 * `ListWorkflowInvocations` call. Provide this to retrieve the subsequent page.
114 * When paginating, all other parameters provided to `ListWorkflowInvocations`,
115 * with the exception of `page_size`, must match the call that provided the page
116 * token.
117 * @return ListWorkflowInvocationsResponse
118 * @throws \Google\Service\Exception
119 */
120 public function listProjectsLocationsRepositoriesWorkflowInvocations($parent, $optParams = [])
121 {
122 $params = ['parent' => $parent];
123 $params = array_merge($params, $optParams);
124 return $this->call('list', [$params], ListWorkflowInvocationsResponse::class);
125 }
126 /**
127 * Returns WorkflowInvocationActions in a given WorkflowInvocation.
128 * (workflowInvocations.query)
129 *
130 * @param string $name Required. The workflow invocation's name.
131 * @param array $optParams Optional parameters.
132 *
133 * @opt_param int pageSize Optional. Maximum number of workflow invocations to
134 * return. The server may return fewer items than requested. If unspecified, the
135 * server will pick an appropriate default.
136 * @opt_param string pageToken Optional. Page token received from a previous
137 * `QueryWorkflowInvocationActions` call. Provide this to retrieve the
138 * subsequent page. When paginating, all other parameters provided to
139 * `QueryWorkflowInvocationActions`, with the exception of `page_size`, must
140 * match the call that provided the page token.
141 * @return QueryWorkflowInvocationActionsResponse
142 * @throws \Google\Service\Exception
143 */
144 public function query($name, $optParams = [])
145 {
146 $params = ['name' => $name];
147 $params = array_merge($params, $optParams);
148 return $this->call('query', [$params], QueryWorkflowInvocationActionsResponse::class);
149 }
150}
151
152// Adding a class alias for backwards compatibility with the previous class name.
153class_alias(ProjectsLocationsRepositoriesWorkflowInvocations::class, 'Google_Service_Dataform_Resource_ProjectsLocationsRepositoriesWorkflowInvocations');
Note: See TracBrowser for help on using the repository browser.