google-cloud-build-v1 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/build/v1/cloud_build/client.rb +40 -46
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +12 -14
- data/lib/google/cloud/build/v1/cloud_build/rest/client.rb +1773 -0
- data/lib/google/cloud/build/v1/cloud_build/rest/operations.rb +808 -0
- data/lib/google/cloud/build/v1/cloud_build/rest/service_stub.rb +1227 -0
- data/lib/google/cloud/build/v1/cloud_build/rest.rb +60 -0
- data/lib/google/cloud/build/v1/cloud_build.rb +7 -1
- data/lib/google/cloud/build/v1/rest.rb +37 -0
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/cloud/build/v1.rb +7 -2
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +32 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +123 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -8
@@ -184,6 +184,36 @@ module Google
|
|
184
184
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
185
185
|
end
|
186
186
|
|
187
|
+
# Artifact uploaded using the PythonPackage directive.
|
188
|
+
# @!attribute [rw] uri
|
189
|
+
# @return [::String]
|
190
|
+
# URI of the uploaded artifact.
|
191
|
+
# @!attribute [rw] file_hashes
|
192
|
+
# @return [::Google::Cloud::Build::V1::FileHashes]
|
193
|
+
# Hash types and values of the Python Artifact.
|
194
|
+
# @!attribute [r] push_timing
|
195
|
+
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
196
|
+
# Output only. Stores timing information for pushing the specified artifact.
|
197
|
+
class UploadedPythonPackage
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
202
|
+
# A Maven artifact uploaded using the MavenArtifact directive.
|
203
|
+
# @!attribute [rw] uri
|
204
|
+
# @return [::String]
|
205
|
+
# URI of the uploaded artifact.
|
206
|
+
# @!attribute [rw] file_hashes
|
207
|
+
# @return [::Google::Cloud::Build::V1::FileHashes]
|
208
|
+
# Hash types and values of the Maven Artifact.
|
209
|
+
# @!attribute [r] push_timing
|
210
|
+
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
211
|
+
# Output only. Stores timing information for pushing the specified artifact.
|
212
|
+
class UploadedMavenArtifact
|
213
|
+
include ::Google::Protobuf::MessageExts
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
215
|
+
end
|
216
|
+
|
187
217
|
# A step in the build pipeline.
|
188
218
|
# @!attribute [rw] name
|
189
219
|
# @return [::String]
|
@@ -277,6 +307,21 @@ module Google
|
|
277
307
|
# Output only. Status of the build step. At this time, build step status is
|
278
308
|
# only updated on build completion; step status is not updated in real-time
|
279
309
|
# as the build progresses.
|
310
|
+
# @!attribute [rw] allow_failure
|
311
|
+
# @return [::Boolean]
|
312
|
+
# Allow this build step to fail without failing the entire build.
|
313
|
+
#
|
314
|
+
# If false, the entire build will fail if this step fails. Otherwise, the
|
315
|
+
# build will succeed, but this step will still have a failure status.
|
316
|
+
# Error information will be reported in the failure_detail field.
|
317
|
+
# @!attribute [r] exit_code
|
318
|
+
# @return [::Integer]
|
319
|
+
# Output only. Return code from running the step.
|
320
|
+
# @!attribute [rw] allow_exit_codes
|
321
|
+
# @return [::Array<::Integer>]
|
322
|
+
# Allow this build step to fail without failing the entire build if and
|
323
|
+
# only if the exit code is one of the specified codes. If allow_failure
|
324
|
+
# is also specified, this field will take precedence.
|
280
325
|
# @!attribute [rw] script
|
281
326
|
# @return [::String]
|
282
327
|
# A shell script to be executed in the step.
|
@@ -331,6 +376,12 @@ module Google
|
|
331
376
|
# @!attribute [rw] artifact_timing
|
332
377
|
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
333
378
|
# Time to push all non-container artifacts.
|
379
|
+
# @!attribute [rw] python_packages
|
380
|
+
# @return [::Array<::Google::Cloud::Build::V1::UploadedPythonPackage>]
|
381
|
+
# Python artifacts uploaded to Artifact Registry at the end of the build.
|
382
|
+
# @!attribute [rw] maven_artifacts
|
383
|
+
# @return [::Array<::Google::Cloud::Build::V1::UploadedMavenArtifact>]
|
384
|
+
# Maven artifacts uploaded to Artifact Registry at the end of the build.
|
334
385
|
class Results
|
335
386
|
include ::Google::Protobuf::MessageExts
|
336
387
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -649,6 +700,24 @@ module Google
|
|
649
700
|
# Build resource's results field.
|
650
701
|
#
|
651
702
|
# If any objects fail to be pushed, the build is marked FAILURE.
|
703
|
+
# @!attribute [rw] maven_artifacts
|
704
|
+
# @return [::Array<::Google::Cloud::Build::V1::Artifacts::MavenArtifact>]
|
705
|
+
# A list of Maven artifacts to be uploaded to Artifact Registry upon
|
706
|
+
# successful completion of all build steps.
|
707
|
+
#
|
708
|
+
# Artifacts in the workspace matching specified paths globs will be uploaded
|
709
|
+
# to the specified Artifact Registry repository using the builder service
|
710
|
+
# account's credentials.
|
711
|
+
#
|
712
|
+
# If any artifacts fail to be pushed, the build is marked FAILURE.
|
713
|
+
# @!attribute [rw] python_packages
|
714
|
+
# @return [::Array<::Google::Cloud::Build::V1::Artifacts::PythonPackage>]
|
715
|
+
# A list of Python packages to be uploaded to Artifact Registry upon
|
716
|
+
# successful completion of all build steps.
|
717
|
+
#
|
718
|
+
# The build service account credentials will be used to perform the upload.
|
719
|
+
#
|
720
|
+
# If any objects fail to be pushed, the build is marked FAILURE.
|
652
721
|
class Artifacts
|
653
722
|
include ::Google::Protobuf::MessageExts
|
654
723
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -673,6 +742,60 @@ module Google
|
|
673
742
|
include ::Google::Protobuf::MessageExts
|
674
743
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
675
744
|
end
|
745
|
+
|
746
|
+
# A Maven artifact to upload to Artifact Registry upon successful completion
|
747
|
+
# of all build steps.
|
748
|
+
# @!attribute [rw] repository
|
749
|
+
# @return [::String]
|
750
|
+
# Artifact Registry repository, in the form
|
751
|
+
# "https://$REGION-maven.pkg.dev/$PROJECT/$REPOSITORY"
|
752
|
+
#
|
753
|
+
# Artifact in the workspace specified by path will be uploaded to
|
754
|
+
# Artifact Registry with this location as a prefix.
|
755
|
+
# @!attribute [rw] path
|
756
|
+
# @return [::String]
|
757
|
+
# Path to an artifact in the build's workspace to be uploaded to
|
758
|
+
# Artifact Registry.
|
759
|
+
# This can be either an absolute path,
|
760
|
+
# e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
|
761
|
+
# or a relative path from /workspace,
|
762
|
+
# e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
|
763
|
+
# @!attribute [rw] artifact_id
|
764
|
+
# @return [::String]
|
765
|
+
# Maven `artifactId` value used when uploading the artifact to Artifact
|
766
|
+
# Registry.
|
767
|
+
# @!attribute [rw] group_id
|
768
|
+
# @return [::String]
|
769
|
+
# Maven `groupId` value used when uploading the artifact to Artifact
|
770
|
+
# Registry.
|
771
|
+
# @!attribute [rw] version
|
772
|
+
# @return [::String]
|
773
|
+
# Maven `version` value used when uploading the artifact to Artifact
|
774
|
+
# Registry.
|
775
|
+
class MavenArtifact
|
776
|
+
include ::Google::Protobuf::MessageExts
|
777
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
778
|
+
end
|
779
|
+
|
780
|
+
# Python package to upload to Artifact Registry upon successful completion
|
781
|
+
# of all build steps. A package can encapsulate multiple objects to be
|
782
|
+
# uploaded to a single repository.
|
783
|
+
# @!attribute [rw] repository
|
784
|
+
# @return [::String]
|
785
|
+
# Artifact Registry repository, in the form
|
786
|
+
# "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
|
787
|
+
#
|
788
|
+
# Files in the workspace matching any path pattern will be uploaded to
|
789
|
+
# Artifact Registry with this location as a prefix.
|
790
|
+
# @!attribute [rw] paths
|
791
|
+
# @return [::Array<::String>]
|
792
|
+
# Path globs used to match files in the build's workspace. For Python/
|
793
|
+
# Twine, this is usually `dist/*`, and sometimes additionally an `.asc`
|
794
|
+
# file.
|
795
|
+
class PythonPackage
|
796
|
+
include ::Google::Protobuf::MessageExts
|
797
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
798
|
+
end
|
676
799
|
end
|
677
800
|
|
678
801
|
# Start and end times for a build execution phase.
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-build-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.18.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,12 +178,19 @@ files:
|
|
178
178
|
- lib/google/cloud/build/v1/cloud_build/credentials.rb
|
179
179
|
- lib/google/cloud/build/v1/cloud_build/operations.rb
|
180
180
|
- lib/google/cloud/build/v1/cloud_build/paths.rb
|
181
|
+
- lib/google/cloud/build/v1/cloud_build/rest.rb
|
182
|
+
- lib/google/cloud/build/v1/cloud_build/rest/client.rb
|
183
|
+
- lib/google/cloud/build/v1/cloud_build/rest/operations.rb
|
184
|
+
- lib/google/cloud/build/v1/cloud_build/rest/service_stub.rb
|
185
|
+
- lib/google/cloud/build/v1/rest.rb
|
181
186
|
- lib/google/cloud/build/v1/version.rb
|
182
187
|
- lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb
|
183
188
|
- lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb
|
184
189
|
- proto_docs/README.md
|
190
|
+
- proto_docs/google/api/client.rb
|
185
191
|
- proto_docs/google/api/field_behavior.rb
|
186
192
|
- proto_docs/google/api/httpbody.rb
|
193
|
+
- proto_docs/google/api/launch_stage.rb
|
187
194
|
- proto_docs/google/api/resource.rb
|
188
195
|
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
|
189
196
|
- proto_docs/google/longrunning/operations.rb
|
@@ -212,8 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
219
|
- !ruby/object:Gem::Version
|
213
220
|
version: '0'
|
214
221
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.4.2
|
216
223
|
signing_key:
|
217
224
|
specification_version: 4
|
218
|
-
summary:
|
225
|
+
summary: Creates and manages builds on Google Cloud Platform.
|
219
226
|
test_files: []
|