Skip to content

Commit bb65826

Browse files
1 parent 9740158 commit bb65826

6 files changed

+331
-0
lines changed

src/CloudRun/GoogleDevtoolsCloudbuildV1Artifacts.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
class GoogleDevtoolsCloudbuildV1Artifacts extends \Google\Collection
2121
{
2222
protected $collection_key = 'pythonPackages';
23+
protected $genericArtifactsType = GoogleDevtoolsCloudbuildV1GenericArtifact::class;
24+
protected $genericArtifactsDataType = 'array';
2325
protected $goModulesType = GoogleDevtoolsCloudbuildV1GoModule::class;
2426
protected $goModulesDataType = 'array';
2527
/**
@@ -43,6 +45,24 @@ class GoogleDevtoolsCloudbuildV1Artifacts extends \Google\Collection
4345
protected $pythonPackagesType = GoogleDevtoolsCloudbuildV1PythonPackage::class;
4446
protected $pythonPackagesDataType = 'array';
4547

48+
/**
49+
* Optional. A list of generic artifacts to be uploaded to Artifact Registry
50+
* upon successful completion of all build steps. If any artifacts fail to be
51+
* pushed, the build is marked FAILURE.
52+
*
53+
* @param GoogleDevtoolsCloudbuildV1GenericArtifact[] $genericArtifacts
54+
*/
55+
public function setGenericArtifacts($genericArtifacts)
56+
{
57+
$this->genericArtifacts = $genericArtifacts;
58+
}
59+
/**
60+
* @return GoogleDevtoolsCloudbuildV1GenericArtifact[]
61+
*/
62+
public function getGenericArtifacts()
63+
{
64+
return $this->genericArtifacts;
65+
}
4666
/**
4767
* Optional. A list of Go modules to be uploaded to Artifact Registry upon
4868
* successful completion of all build steps. If any objects fail to be pushed,

src/CloudRun/GoogleDevtoolsCloudbuildV1Dependency.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class GoogleDevtoolsCloudbuildV1Dependency extends \Google\Model
2626
* @var bool
2727
*/
2828
public $empty;
29+
protected $genericArtifactType = GoogleDevtoolsCloudbuildV1GenericArtifactDependency::class;
30+
protected $genericArtifactDataType = '';
2931
protected $gitSourceType = GoogleDevtoolsCloudbuildV1GitSourceDependency::class;
3032
protected $gitSourceDataType = '';
3133

@@ -46,6 +48,22 @@ public function getEmpty()
4648
{
4749
return $this->empty;
4850
}
51+
/**
52+
* Represents a generic artifact as a build dependency.
53+
*
54+
* @param GoogleDevtoolsCloudbuildV1GenericArtifactDependency $genericArtifact
55+
*/
56+
public function setGenericArtifact(GoogleDevtoolsCloudbuildV1GenericArtifactDependency $genericArtifact)
57+
{
58+
$this->genericArtifact = $genericArtifact;
59+
}
60+
/**
61+
* @return GoogleDevtoolsCloudbuildV1GenericArtifactDependency
62+
*/
63+
public function getGenericArtifact()
64+
{
65+
return $this->genericArtifact;
66+
}
4967
/**
5068
* Represents a git repository as a build dependency.
5169
*
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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\CloudRun;
19+
20+
class GoogleDevtoolsCloudbuildV1GenericArtifact extends \Google\Model
21+
{
22+
/**
23+
* Required. Path to the generic artifact in the build's workspace to be
24+
* uploaded to Artifact Registry.
25+
*
26+
* @var string
27+
*/
28+
public $folder;
29+
/**
30+
* Required. Registry path to upload the generic artifact to, in the form proj
31+
* ects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/vers
32+
* ions/$VERSION
33+
*
34+
* @var string
35+
*/
36+
public $registryPath;
37+
38+
/**
39+
* Required. Path to the generic artifact in the build's workspace to be
40+
* uploaded to Artifact Registry.
41+
*
42+
* @param string $folder
43+
*/
44+
public function setFolder($folder)
45+
{
46+
$this->folder = $folder;
47+
}
48+
/**
49+
* @return string
50+
*/
51+
public function getFolder()
52+
{
53+
return $this->folder;
54+
}
55+
/**
56+
* Required. Registry path to upload the generic artifact to, in the form proj
57+
* ects/$PROJECT/locations/$LOCATION/repositories/$REPO/packages/$PACKAGE/vers
58+
* ions/$VERSION
59+
*
60+
* @param string $registryPath
61+
*/
62+
public function setRegistryPath($registryPath)
63+
{
64+
$this->registryPath = $registryPath;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getRegistryPath()
70+
{
71+
return $this->registryPath;
72+
}
73+
}
74+
75+
// Adding a class alias for backwards compatibility with the previous class name.
76+
class_alias(GoogleDevtoolsCloudbuildV1GenericArtifact::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1GenericArtifact');
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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\CloudRun;
19+
20+
class GoogleDevtoolsCloudbuildV1GenericArtifactDependency extends \Google\Model
21+
{
22+
/**
23+
* Required. Where the artifact files should be placed on the worker.
24+
*
25+
* @var string
26+
*/
27+
public $destPath;
28+
/**
29+
* Required. The location to download the artifact files from. Ex:
30+
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
31+
*
32+
* @var string
33+
*/
34+
public $resource;
35+
36+
/**
37+
* Required. Where the artifact files should be placed on the worker.
38+
*
39+
* @param string $destPath
40+
*/
41+
public function setDestPath($destPath)
42+
{
43+
$this->destPath = $destPath;
44+
}
45+
/**
46+
* @return string
47+
*/
48+
public function getDestPath()
49+
{
50+
return $this->destPath;
51+
}
52+
/**
53+
* Required. The location to download the artifact files from. Ex:
54+
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
55+
*
56+
* @param string $resource
57+
*/
58+
public function setResource($resource)
59+
{
60+
$this->resource = $resource;
61+
}
62+
/**
63+
* @return string
64+
*/
65+
public function getResource()
66+
{
67+
return $this->resource;
68+
}
69+
}
70+
71+
// Adding a class alias for backwards compatibility with the previous class name.
72+
class_alias(GoogleDevtoolsCloudbuildV1GenericArtifactDependency::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1GenericArtifactDependency');

src/CloudRun/GoogleDevtoolsCloudbuildV1Results.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class GoogleDevtoolsCloudbuildV1Results extends \Google\Collection
4747
* @var string[]
4848
*/
4949
public $buildStepOutputs;
50+
protected $genericArtifactsType = GoogleDevtoolsCloudbuildV1UploadedGenericArtifact::class;
51+
protected $genericArtifactsDataType = 'array';
5052
protected $goModulesType = GoogleDevtoolsCloudbuildV1UploadedGoModule::class;
5153
protected $goModulesDataType = 'array';
5254
protected $imagesType = GoogleDevtoolsCloudbuildV1BuiltImage::class;
@@ -136,6 +138,23 @@ public function getBuildStepOutputs()
136138
{
137139
return $this->buildStepOutputs;
138140
}
141+
/**
142+
* Output only. Generic artifacts uploaded to Artifact Registry at the end of
143+
* the build.
144+
*
145+
* @param GoogleDevtoolsCloudbuildV1UploadedGenericArtifact[] $genericArtifacts
146+
*/
147+
public function setGenericArtifacts($genericArtifacts)
148+
{
149+
$this->genericArtifacts = $genericArtifacts;
150+
}
151+
/**
152+
* @return GoogleDevtoolsCloudbuildV1UploadedGenericArtifact[]
153+
*/
154+
public function getGenericArtifacts()
155+
{
156+
return $this->genericArtifacts;
157+
}
139158
/**
140159
* Optional. Go module artifacts uploaded to Artifact Registry at the end of
141160
* the build.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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\CloudRun;
19+
20+
class GoogleDevtoolsCloudbuildV1UploadedGenericArtifact extends \Google\Model
21+
{
22+
protected $artifactFingerprintType = GoogleDevtoolsCloudbuildV1FileHashes::class;
23+
protected $artifactFingerprintDataType = '';
24+
/**
25+
* Output only. Path to the artifact in Artifact Registry.
26+
*
27+
* @var string
28+
*/
29+
public $artifactRegistryPackage;
30+
protected $fileHashesType = GoogleDevtoolsCloudbuildV1FileHashes::class;
31+
protected $fileHashesDataType = 'map';
32+
protected $pushTimingType = GoogleDevtoolsCloudbuildV1TimeSpan::class;
33+
protected $pushTimingDataType = '';
34+
/**
35+
* Output only. URI of the uploaded artifact. Ex:
36+
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
37+
*
38+
* @var string
39+
*/
40+
public $uri;
41+
42+
/**
43+
* Output only. The hash of the whole artifact.
44+
*
45+
* @param GoogleDevtoolsCloudbuildV1FileHashes $artifactFingerprint
46+
*/
47+
public function setArtifactFingerprint(GoogleDevtoolsCloudbuildV1FileHashes $artifactFingerprint)
48+
{
49+
$this->artifactFingerprint = $artifactFingerprint;
50+
}
51+
/**
52+
* @return GoogleDevtoolsCloudbuildV1FileHashes
53+
*/
54+
public function getArtifactFingerprint()
55+
{
56+
return $this->artifactFingerprint;
57+
}
58+
/**
59+
* Output only. Path to the artifact in Artifact Registry.
60+
*
61+
* @param string $artifactRegistryPackage
62+
*/
63+
public function setArtifactRegistryPackage($artifactRegistryPackage)
64+
{
65+
$this->artifactRegistryPackage = $artifactRegistryPackage;
66+
}
67+
/**
68+
* @return string
69+
*/
70+
public function getArtifactRegistryPackage()
71+
{
72+
return $this->artifactRegistryPackage;
73+
}
74+
/**
75+
* Output only. The file hashes that make up the generic artifact.
76+
*
77+
* @param GoogleDevtoolsCloudbuildV1FileHashes[] $fileHashes
78+
*/
79+
public function setFileHashes($fileHashes)
80+
{
81+
$this->fileHashes = $fileHashes;
82+
}
83+
/**
84+
* @return GoogleDevtoolsCloudbuildV1FileHashes[]
85+
*/
86+
public function getFileHashes()
87+
{
88+
return $this->fileHashes;
89+
}
90+
/**
91+
* Output only. Stores timing information for pushing the specified artifact.
92+
*
93+
* @param GoogleDevtoolsCloudbuildV1TimeSpan $pushTiming
94+
*/
95+
public function setPushTiming(GoogleDevtoolsCloudbuildV1TimeSpan $pushTiming)
96+
{
97+
$this->pushTiming = $pushTiming;
98+
}
99+
/**
100+
* @return GoogleDevtoolsCloudbuildV1TimeSpan
101+
*/
102+
public function getPushTiming()
103+
{
104+
return $this->pushTiming;
105+
}
106+
/**
107+
* Output only. URI of the uploaded artifact. Ex:
108+
* projects/p1/locations/us/repositories/r1/packages/p1/versions/v1
109+
*
110+
* @param string $uri
111+
*/
112+
public function setUri($uri)
113+
{
114+
$this->uri = $uri;
115+
}
116+
/**
117+
* @return string
118+
*/
119+
public function getUri()
120+
{
121+
return $this->uri;
122+
}
123+
}
124+
125+
// Adding a class alias for backwards compatibility with the previous class name.
126+
class_alias(GoogleDevtoolsCloudbuildV1UploadedGenericArtifact::class, 'Google_Service_CloudRun_GoogleDevtoolsCloudbuildV1UploadedGenericArtifact');

0 commit comments

Comments
 (0)