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 |
|
---|
18 | namespace Google\Service\CloudBuild;
|
---|
19 |
|
---|
20 | class Results extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'pythonPackages';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $artifactManifest;
|
---|
27 | protected $artifactTimingType = TimeSpan::class;
|
---|
28 | protected $artifactTimingDataType = '';
|
---|
29 | /**
|
---|
30 | * @var string[]
|
---|
31 | */
|
---|
32 | public $buildStepImages;
|
---|
33 | /**
|
---|
34 | * @var string[]
|
---|
35 | */
|
---|
36 | public $buildStepOutputs;
|
---|
37 | protected $imagesType = BuiltImage::class;
|
---|
38 | protected $imagesDataType = 'array';
|
---|
39 | protected $mavenArtifactsType = UploadedMavenArtifact::class;
|
---|
40 | protected $mavenArtifactsDataType = 'array';
|
---|
41 | protected $npmPackagesType = UploadedNpmPackage::class;
|
---|
42 | protected $npmPackagesDataType = 'array';
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $numArtifacts;
|
---|
47 | protected $pythonPackagesType = UploadedPythonPackage::class;
|
---|
48 | protected $pythonPackagesDataType = 'array';
|
---|
49 |
|
---|
50 | /**
|
---|
51 | * @param string
|
---|
52 | */
|
---|
53 | public function setArtifactManifest($artifactManifest)
|
---|
54 | {
|
---|
55 | $this->artifactManifest = $artifactManifest;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @return string
|
---|
59 | */
|
---|
60 | public function getArtifactManifest()
|
---|
61 | {
|
---|
62 | return $this->artifactManifest;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @param TimeSpan
|
---|
66 | */
|
---|
67 | public function setArtifactTiming(TimeSpan $artifactTiming)
|
---|
68 | {
|
---|
69 | $this->artifactTiming = $artifactTiming;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @return TimeSpan
|
---|
73 | */
|
---|
74 | public function getArtifactTiming()
|
---|
75 | {
|
---|
76 | return $this->artifactTiming;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @param string[]
|
---|
80 | */
|
---|
81 | public function setBuildStepImages($buildStepImages)
|
---|
82 | {
|
---|
83 | $this->buildStepImages = $buildStepImages;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @return string[]
|
---|
87 | */
|
---|
88 | public function getBuildStepImages()
|
---|
89 | {
|
---|
90 | return $this->buildStepImages;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @param string[]
|
---|
94 | */
|
---|
95 | public function setBuildStepOutputs($buildStepOutputs)
|
---|
96 | {
|
---|
97 | $this->buildStepOutputs = $buildStepOutputs;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @return string[]
|
---|
101 | */
|
---|
102 | public function getBuildStepOutputs()
|
---|
103 | {
|
---|
104 | return $this->buildStepOutputs;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @param BuiltImage[]
|
---|
108 | */
|
---|
109 | public function setImages($images)
|
---|
110 | {
|
---|
111 | $this->images = $images;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @return BuiltImage[]
|
---|
115 | */
|
---|
116 | public function getImages()
|
---|
117 | {
|
---|
118 | return $this->images;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @param UploadedMavenArtifact[]
|
---|
122 | */
|
---|
123 | public function setMavenArtifacts($mavenArtifacts)
|
---|
124 | {
|
---|
125 | $this->mavenArtifacts = $mavenArtifacts;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @return UploadedMavenArtifact[]
|
---|
129 | */
|
---|
130 | public function getMavenArtifacts()
|
---|
131 | {
|
---|
132 | return $this->mavenArtifacts;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @param UploadedNpmPackage[]
|
---|
136 | */
|
---|
137 | public function setNpmPackages($npmPackages)
|
---|
138 | {
|
---|
139 | $this->npmPackages = $npmPackages;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @return UploadedNpmPackage[]
|
---|
143 | */
|
---|
144 | public function getNpmPackages()
|
---|
145 | {
|
---|
146 | return $this->npmPackages;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @param string
|
---|
150 | */
|
---|
151 | public function setNumArtifacts($numArtifacts)
|
---|
152 | {
|
---|
153 | $this->numArtifacts = $numArtifacts;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @return string
|
---|
157 | */
|
---|
158 | public function getNumArtifacts()
|
---|
159 | {
|
---|
160 | return $this->numArtifacts;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @param UploadedPythonPackage[]
|
---|
164 | */
|
---|
165 | public function setPythonPackages($pythonPackages)
|
---|
166 | {
|
---|
167 | $this->pythonPackages = $pythonPackages;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @return UploadedPythonPackage[]
|
---|
171 | */
|
---|
172 | public function getPythonPackages()
|
---|
173 | {
|
---|
174 | return $this->pythonPackages;
|
---|
175 | }
|
---|
176 | }
|
---|
177 |
|
---|
178 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
179 | class_alias(Results::class, 'Google_Service_CloudBuild_Results');
|
---|