source: vendor/google/apiclient-services/src/CloudDeploy/Resource/ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns.php

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

Upload project files

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[e3d4e0a]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\CloudDeploy\Resource;
19
20use Google\Service\CloudDeploy\JobRun;
21use Google\Service\CloudDeploy\ListJobRunsResponse;
22use Google\Service\CloudDeploy\TerminateJobRunRequest;
23use Google\Service\CloudDeploy\TerminateJobRunResponse;
24
25/**
26 * The "jobRuns" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $clouddeployService = new Google\Service\CloudDeploy(...);
30 * $jobRuns = $clouddeployService->projects_locations_deliveryPipelines_releases_rollouts_jobRuns;
31 * </code>
32 */
33class ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns extends \Google\Service\Resource
34{
35 /**
36 * Gets details of a single JobRun. (jobRuns.get)
37 *
38 * @param string $name Required. Name of the `JobRun`. Format must be `projects/
39 * {project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/rele
40 * ases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`.
41 * @param array $optParams Optional parameters.
42 * @return JobRun
43 * @throws \Google\Service\Exception
44 */
45 public function get($name, $optParams = [])
46 {
47 $params = ['name' => $name];
48 $params = array_merge($params, $optParams);
49 return $this->call('get', [$params], JobRun::class);
50 }
51 /**
52 * Lists JobRuns in a given project and location.
53 * (jobRuns.listProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns)
54 *
55 * @param string $parent Required. The `Rollout` which owns this collection of
56 * `JobRun` objects.
57 * @param array $optParams Optional parameters.
58 *
59 * @opt_param string filter Optional. Filter results to be returned. See
60 * https://google.aip.dev/160 for more details.
61 * @opt_param string orderBy Optional. Field to sort by. See
62 * https://google.aip.dev/132#ordering for more details.
63 * @opt_param int pageSize Optional. The maximum number of `JobRun` objects to
64 * return. The service may return fewer than this value. If unspecified, at most
65 * 50 `JobRun` objects will be returned. The maximum value is 1000; values above
66 * 1000 will be set to 1000.
67 * @opt_param string pageToken Optional. A page token, received from a previous
68 * `ListJobRuns` call. Provide this to retrieve the subsequent page. When
69 * paginating, all other provided parameters match the call that provided the
70 * page token.
71 * @return ListJobRunsResponse
72 * @throws \Google\Service\Exception
73 */
74 public function listProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns($parent, $optParams = [])
75 {
76 $params = ['parent' => $parent];
77 $params = array_merge($params, $optParams);
78 return $this->call('list', [$params], ListJobRunsResponse::class);
79 }
80 /**
81 * Terminates a Job Run in a given project and location. (jobRuns.terminate)
82 *
83 * @param string $name Required. Name of the `JobRun`. Format must be `projects/
84 * {project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/
85 * {release}/rollouts/{rollout}/jobRuns/{jobRun}`.
86 * @param TerminateJobRunRequest $postBody
87 * @param array $optParams Optional parameters.
88 * @return TerminateJobRunResponse
89 * @throws \Google\Service\Exception
90 */
91 public function terminate($name, TerminateJobRunRequest $postBody, $optParams = [])
92 {
93 $params = ['name' => $name, 'postBody' => $postBody];
94 $params = array_merge($params, $optParams);
95 return $this->call('terminate', [$params], TerminateJobRunResponse::class);
96 }
97}
98
99// Adding a class alias for backwards compatibility with the previous class name.
100class_alias(ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns::class, 'Google_Service_CloudDeploy_Resource_ProjectsLocationsDeliveryPipelinesReleasesRolloutsJobRuns');
Note: See TracBrowser for help on using the repository browser.