source: vendor/google/apiclient-services/src/CloudBuild/PipelineSpec.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 2.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\CloudBuild;
19
20class PipelineSpec extends \Google\Collection
21{
22 protected $collection_key = 'workspaces';
23 protected $finallyTasksType = PipelineTask::class;
24 protected $finallyTasksDataType = 'array';
25 /**
26 * @var string
27 */
28 public $generatedYaml;
29 protected $paramsType = ParamSpec::class;
30 protected $paramsDataType = 'array';
31 protected $resultsType = PipelineResult::class;
32 protected $resultsDataType = 'array';
33 protected $tasksType = PipelineTask::class;
34 protected $tasksDataType = 'array';
35 protected $workspacesType = PipelineWorkspaceDeclaration::class;
36 protected $workspacesDataType = 'array';
37
38 /**
39 * @param PipelineTask[]
40 */
41 public function setFinallyTasks($finallyTasks)
42 {
43 $this->finallyTasks = $finallyTasks;
44 }
45 /**
46 * @return PipelineTask[]
47 */
48 public function getFinallyTasks()
49 {
50 return $this->finallyTasks;
51 }
52 /**
53 * @param string
54 */
55 public function setGeneratedYaml($generatedYaml)
56 {
57 $this->generatedYaml = $generatedYaml;
58 }
59 /**
60 * @return string
61 */
62 public function getGeneratedYaml()
63 {
64 return $this->generatedYaml;
65 }
66 /**
67 * @param ParamSpec[]
68 */
69 public function setParams($params)
70 {
71 $this->params = $params;
72 }
73 /**
74 * @return ParamSpec[]
75 */
76 public function getParams()
77 {
78 return $this->params;
79 }
80 /**
81 * @param PipelineResult[]
82 */
83 public function setResults($results)
84 {
85 $this->results = $results;
86 }
87 /**
88 * @return PipelineResult[]
89 */
90 public function getResults()
91 {
92 return $this->results;
93 }
94 /**
95 * @param PipelineTask[]
96 */
97 public function setTasks($tasks)
98 {
99 $this->tasks = $tasks;
100 }
101 /**
102 * @return PipelineTask[]
103 */
104 public function getTasks()
105 {
106 return $this->tasks;
107 }
108 /**
109 * @param PipelineWorkspaceDeclaration[]
110 */
111 public function setWorkspaces($workspaces)
112 {
113 $this->workspaces = $workspaces;
114 }
115 /**
116 * @return PipelineWorkspaceDeclaration[]
117 */
118 public function getWorkspaces()
119 {
120 return $this->workspaces;
121 }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(PipelineSpec::class, 'Google_Service_CloudBuild_PipelineSpec');
Note: See TracBrowser for help on using the repository browser.