source: vendor/google/apiclient-services/src/CloudBuild/TaskSpec.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: 3.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\CloudBuild;
19
20class TaskSpec extends \Google\Collection
21{
22 protected $collection_key = 'workspaces';
23 /**
24 * @var string
25 */
26 public $description;
27 /**
28 * @var string[]
29 */
30 public $managedSidecars;
31 protected $paramsType = ParamSpec::class;
32 protected $paramsDataType = 'array';
33 protected $resultsType = TaskResult::class;
34 protected $resultsDataType = 'array';
35 protected $sidecarsType = Sidecar::class;
36 protected $sidecarsDataType = 'array';
37 protected $stepTemplateType = StepTemplate::class;
38 protected $stepTemplateDataType = '';
39 protected $stepsType = Step::class;
40 protected $stepsDataType = 'array';
41 protected $volumesType = VolumeSource::class;
42 protected $volumesDataType = 'array';
43 protected $workspacesType = WorkspaceDeclaration::class;
44 protected $workspacesDataType = 'array';
45
46 /**
47 * @param string
48 */
49 public function setDescription($description)
50 {
51 $this->description = $description;
52 }
53 /**
54 * @return string
55 */
56 public function getDescription()
57 {
58 return $this->description;
59 }
60 /**
61 * @param string[]
62 */
63 public function setManagedSidecars($managedSidecars)
64 {
65 $this->managedSidecars = $managedSidecars;
66 }
67 /**
68 * @return string[]
69 */
70 public function getManagedSidecars()
71 {
72 return $this->managedSidecars;
73 }
74 /**
75 * @param ParamSpec[]
76 */
77 public function setParams($params)
78 {
79 $this->params = $params;
80 }
81 /**
82 * @return ParamSpec[]
83 */
84 public function getParams()
85 {
86 return $this->params;
87 }
88 /**
89 * @param TaskResult[]
90 */
91 public function setResults($results)
92 {
93 $this->results = $results;
94 }
95 /**
96 * @return TaskResult[]
97 */
98 public function getResults()
99 {
100 return $this->results;
101 }
102 /**
103 * @param Sidecar[]
104 */
105 public function setSidecars($sidecars)
106 {
107 $this->sidecars = $sidecars;
108 }
109 /**
110 * @return Sidecar[]
111 */
112 public function getSidecars()
113 {
114 return $this->sidecars;
115 }
116 /**
117 * @param StepTemplate
118 */
119 public function setStepTemplate(StepTemplate $stepTemplate)
120 {
121 $this->stepTemplate = $stepTemplate;
122 }
123 /**
124 * @return StepTemplate
125 */
126 public function getStepTemplate()
127 {
128 return $this->stepTemplate;
129 }
130 /**
131 * @param Step[]
132 */
133 public function setSteps($steps)
134 {
135 $this->steps = $steps;
136 }
137 /**
138 * @return Step[]
139 */
140 public function getSteps()
141 {
142 return $this->steps;
143 }
144 /**
145 * @param VolumeSource[]
146 */
147 public function setVolumes($volumes)
148 {
149 $this->volumes = $volumes;
150 }
151 /**
152 * @return VolumeSource[]
153 */
154 public function getVolumes()
155 {
156 return $this->volumes;
157 }
158 /**
159 * @param WorkspaceDeclaration[]
160 */
161 public function setWorkspaces($workspaces)
162 {
163 $this->workspaces = $workspaces;
164 }
165 /**
166 * @return WorkspaceDeclaration[]
167 */
168 public function getWorkspaces()
169 {
170 return $this->workspaces;
171 }
172}
173
174// Adding a class alias for backwards compatibility with the previous class name.
175class_alias(TaskSpec::class, 'Google_Service_CloudBuild_TaskSpec');
Note: See TracBrowser for help on using the repository browser.