google-cloud-build-v1 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/build/v1/cloud_build/client.rb +2 -2
- data/lib/google/cloud/build/v1/cloud_build/rest/client.rb +2 -2
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +22 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +114 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44f1fe05d10b22e728084f0bac71825ecb7765b64691badd9750599e3ac68686
|
4
|
+
data.tar.gz: 9db24ccda8ee2057cdc883ee809c734b1a71cc3393603b678525277400e25488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30c5a87f77e1e37c2b67aa10eb9915f59750168d2259669dc23936997ce7987cb1197008e0e69222f29a7f11d90b5e8569db74904a61c00faf7c57e8037f61e8
|
7
|
+
data.tar.gz: c2005bf6047a8d6c4ecab83da55b53e20a9fc404f943e5dd748f337a496957d1acfd9a89f8d7c9ea2e13c2554cfee042e611ab01f808c0f83f140cb634b93ec0
|
@@ -438,7 +438,7 @@ module Google
|
|
438
438
|
#
|
439
439
|
# @param parent [::String]
|
440
440
|
# The parent of the collection of `Builds`.
|
441
|
-
# Format: `projects/{project}/locations/location`
|
441
|
+
# Format: `projects/{project}/locations/{location}`
|
442
442
|
# @param project_id [::String]
|
443
443
|
# Required. ID of the project.
|
444
444
|
# @param page_size [::Integer]
|
@@ -1734,7 +1734,7 @@ module Google
|
|
1734
1734
|
# @param name [::String]
|
1735
1735
|
# Required. The name of the `WorkerPool` to delete.
|
1736
1736
|
# Format:
|
1737
|
-
# `projects/{project}/locations/{
|
1737
|
+
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1738
1738
|
# @param etag [::String]
|
1739
1739
|
# Optional. If this is provided, it must match the server's etag on the
|
1740
1740
|
# workerpool for the request to be processed.
|
@@ -373,7 +373,7 @@ module Google
|
|
373
373
|
#
|
374
374
|
# @param parent [::String]
|
375
375
|
# The parent of the collection of `Builds`.
|
376
|
-
# Format: `projects/{project}/locations/location`
|
376
|
+
# Format: `projects/{project}/locations/{location}`
|
377
377
|
# @param project_id [::String]
|
378
378
|
# Required. ID of the project.
|
379
379
|
# @param page_size [::Integer]
|
@@ -1313,7 +1313,7 @@ module Google
|
|
1313
1313
|
# @param name [::String]
|
1314
1314
|
# Required. The name of the `WorkerPool` to delete.
|
1315
1315
|
# Format:
|
1316
|
-
# `projects/{project}/locations/{
|
1316
|
+
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1317
1317
|
# @param etag [::String]
|
1318
1318
|
# Optional. If this is provided, it must match the server's etag on the
|
1319
1319
|
# workerpool for the request to be processed.
|
@@ -32,6 +32,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
32
|
optional :object, :string, 2
|
33
33
|
optional :generation, :int64, 3
|
34
34
|
end
|
35
|
+
add_message "google.devtools.cloudbuild.v1.GitSource" do
|
36
|
+
optional :url, :string, 1
|
37
|
+
optional :dir, :string, 5
|
38
|
+
optional :revision, :string, 6
|
39
|
+
end
|
35
40
|
add_message "google.devtools.cloudbuild.v1.RepoSource" do
|
36
41
|
optional :project_id, :string, 1
|
37
42
|
optional :repo_name, :string, 2
|
@@ -53,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
58
|
oneof :source do
|
54
59
|
optional :storage_source, :message, 2, "google.devtools.cloudbuild.v1.StorageSource"
|
55
60
|
optional :repo_source, :message, 3, "google.devtools.cloudbuild.v1.RepoSource"
|
61
|
+
optional :git_source, :message, 5, "google.devtools.cloudbuild.v1.GitSource"
|
56
62
|
optional :storage_source_manifest, :message, 8, "google.devtools.cloudbuild.v1.StorageSourceManifest"
|
57
63
|
end
|
58
64
|
end
|
@@ -71,6 +77,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
71
77
|
optional :file_hashes, :message, 2, "google.devtools.cloudbuild.v1.FileHashes"
|
72
78
|
optional :push_timing, :message, 3, "google.devtools.cloudbuild.v1.TimeSpan"
|
73
79
|
end
|
80
|
+
add_message "google.devtools.cloudbuild.v1.UploadedNpmPackage" do
|
81
|
+
optional :uri, :string, 1
|
82
|
+
optional :file_hashes, :message, 2, "google.devtools.cloudbuild.v1.FileHashes"
|
83
|
+
optional :push_timing, :message, 3, "google.devtools.cloudbuild.v1.TimeSpan"
|
84
|
+
end
|
74
85
|
add_message "google.devtools.cloudbuild.v1.BuildStep" do
|
75
86
|
optional :name, :string, 1
|
76
87
|
repeated :env, :string, 2
|
@@ -103,6 +114,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
114
|
optional :artifact_timing, :message, 7, "google.devtools.cloudbuild.v1.TimeSpan"
|
104
115
|
repeated :python_packages, :message, 8, "google.devtools.cloudbuild.v1.UploadedPythonPackage"
|
105
116
|
repeated :maven_artifacts, :message, 9, "google.devtools.cloudbuild.v1.UploadedMavenArtifact"
|
117
|
+
repeated :npm_packages, :message, 12, "google.devtools.cloudbuild.v1.UploadedNpmPackage"
|
106
118
|
end
|
107
119
|
add_message "google.devtools.cloudbuild.v1.ArtifactResult" do
|
108
120
|
optional :location, :string, 1
|
@@ -179,6 +191,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
179
191
|
optional :objects, :message, 2, "google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects"
|
180
192
|
repeated :maven_artifacts, :message, 3, "google.devtools.cloudbuild.v1.Artifacts.MavenArtifact"
|
181
193
|
repeated :python_packages, :message, 5, "google.devtools.cloudbuild.v1.Artifacts.PythonPackage"
|
194
|
+
repeated :npm_packages, :message, 6, "google.devtools.cloudbuild.v1.Artifacts.NpmPackage"
|
182
195
|
end
|
183
196
|
add_message "google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects" do
|
184
197
|
optional :location, :string, 1
|
@@ -196,6 +209,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
196
209
|
optional :repository, :string, 1
|
197
210
|
repeated :paths, :string, 2
|
198
211
|
end
|
212
|
+
add_message "google.devtools.cloudbuild.v1.Artifacts.NpmPackage" do
|
213
|
+
optional :repository, :string, 1
|
214
|
+
optional :package_path, :string, 2
|
215
|
+
end
|
199
216
|
add_message "google.devtools.cloudbuild.v1.TimeSpan" do
|
200
217
|
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
201
218
|
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
@@ -220,6 +237,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
220
237
|
value :NONE, 0
|
221
238
|
value :SHA256, 1
|
222
239
|
value :MD5, 2
|
240
|
+
value :SHA512, 4
|
223
241
|
end
|
224
242
|
add_message "google.devtools.cloudbuild.v1.Secrets" do
|
225
243
|
repeated :secret_manager, :message, 1, "google.devtools.cloudbuild.v1.SecretManagerSecret"
|
@@ -491,6 +509,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
491
509
|
add_message "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig" do
|
492
510
|
optional :peered_network, :string, 1
|
493
511
|
optional :egress_option, :enum, 2, "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption"
|
512
|
+
optional :peered_network_ip_range, :string, 3
|
494
513
|
end
|
495
514
|
add_enum "google.devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption" do
|
496
515
|
value :EGRESS_OPTION_UNSPECIFIED, 0
|
@@ -551,12 +570,14 @@ module Google
|
|
551
570
|
RetryBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RetryBuildRequest").msgclass
|
552
571
|
RunBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RunBuildTriggerRequest").msgclass
|
553
572
|
StorageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSource").msgclass
|
573
|
+
GitSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitSource").msgclass
|
554
574
|
RepoSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RepoSource").msgclass
|
555
575
|
StorageSourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSourceManifest").msgclass
|
556
576
|
Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Source").msgclass
|
557
577
|
BuiltImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuiltImage").msgclass
|
558
578
|
UploadedPythonPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UploadedPythonPackage").msgclass
|
559
579
|
UploadedMavenArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UploadedMavenArtifact").msgclass
|
580
|
+
UploadedNpmPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.UploadedNpmPackage").msgclass
|
560
581
|
BuildStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildStep").msgclass
|
561
582
|
Volume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Volume").msgclass
|
562
583
|
Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Results").msgclass
|
@@ -571,6 +592,7 @@ module Google
|
|
571
592
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
572
593
|
Artifacts::MavenArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.MavenArtifact").msgclass
|
573
594
|
Artifacts::PythonPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.PythonPackage").msgclass
|
595
|
+
Artifacts::NpmPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.NpmPackage").msgclass
|
574
596
|
TimeSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.TimeSpan").msgclass
|
575
597
|
BuildOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOperationMetadata").msgclass
|
576
598
|
SourceProvenance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.SourceProvenance").msgclass
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -77,6 +77,35 @@ module Google
|
|
77
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
78
|
end
|
79
79
|
|
80
|
+
# Location of the source in any accessible Git repository.
|
81
|
+
# @!attribute [rw] url
|
82
|
+
# @return [::String]
|
83
|
+
# Location of the Git repo to build.
|
84
|
+
#
|
85
|
+
# This will be used as a `git remote`, see
|
86
|
+
# https://git-scm.com/docs/git-remote.
|
87
|
+
# @!attribute [rw] dir
|
88
|
+
# @return [::String]
|
89
|
+
# Directory, relative to the source root, in which to run the build.
|
90
|
+
#
|
91
|
+
# This must be a relative path. If a step's `dir` is specified and is an
|
92
|
+
# absolute path, this value is ignored for that step's execution.
|
93
|
+
# @!attribute [rw] revision
|
94
|
+
# @return [::String]
|
95
|
+
# The revision to fetch from the Git repository such as a branch, a tag, a
|
96
|
+
# commit SHA, or any Git ref.
|
97
|
+
#
|
98
|
+
# Cloud Build uses `git fetch` to fetch the revision from the Git
|
99
|
+
# repository; therefore make sure that the string you provide for `revision`
|
100
|
+
# is parsable by the command. For information on string values accepted by
|
101
|
+
# `git fetch`, see
|
102
|
+
# https://git-scm.com/docs/gitrevisions#_specifying_revisions. For
|
103
|
+
# information on `git fetch`, see https://git-scm.com/docs/git-fetch.
|
104
|
+
class GitSource
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
|
+
end
|
108
|
+
|
80
109
|
# Location of the source in a Google Cloud Source Repository.
|
81
110
|
# @!attribute [rw] project_id
|
82
111
|
# @return [::String]
|
@@ -158,6 +187,9 @@ module Google
|
|
158
187
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
159
188
|
# If provided, get the source from this location in a Cloud Source
|
160
189
|
# Repository.
|
190
|
+
# @!attribute [rw] git_source
|
191
|
+
# @return [::Google::Cloud::Build::V1::GitSource]
|
192
|
+
# If provided, get the source from this Git repository.
|
161
193
|
# @!attribute [rw] storage_source_manifest
|
162
194
|
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
163
195
|
# If provided, get the source from this manifest in Google Cloud Storage.
|
@@ -214,6 +246,22 @@ module Google
|
|
214
246
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
215
247
|
end
|
216
248
|
|
249
|
+
# An npm package uploaded to Artifact Registry using the NpmPackage
|
250
|
+
# directive.
|
251
|
+
# @!attribute [rw] uri
|
252
|
+
# @return [::String]
|
253
|
+
# URI of the uploaded npm package.
|
254
|
+
# @!attribute [rw] file_hashes
|
255
|
+
# @return [::Google::Cloud::Build::V1::FileHashes]
|
256
|
+
# Hash types and values of the npm package.
|
257
|
+
# @!attribute [r] push_timing
|
258
|
+
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
259
|
+
# Output only. Stores timing information for pushing the specified artifact.
|
260
|
+
class UploadedNpmPackage
|
261
|
+
include ::Google::Protobuf::MessageExts
|
262
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
263
|
+
end
|
264
|
+
|
217
265
|
# A step in the build pipeline.
|
218
266
|
# @!attribute [rw] name
|
219
267
|
# @return [::String]
|
@@ -361,10 +409,12 @@ module Google
|
|
361
409
|
# indices.
|
362
410
|
# @!attribute [rw] artifact_manifest
|
363
411
|
# @return [::String]
|
364
|
-
# Path to the artifact manifest
|
412
|
+
# Path to the artifact manifest for non-container artifacts uploaded to Cloud
|
413
|
+
# Storage. Only populated when artifacts are uploaded to Cloud Storage.
|
365
414
|
# @!attribute [rw] num_artifacts
|
366
415
|
# @return [::Integer]
|
367
|
-
# Number of artifacts uploaded. Only populated
|
416
|
+
# Number of non-container artifacts uploaded to Cloud Storage. Only populated
|
417
|
+
# when artifacts are uploaded to Cloud Storage.
|
368
418
|
# @!attribute [rw] build_step_outputs
|
369
419
|
# @return [::Array<::String>]
|
370
420
|
# List of build step outputs, produced by builder images, in the order
|
@@ -375,13 +425,16 @@ module Google
|
|
375
425
|
# Only the first 4KB of data is stored.
|
376
426
|
# @!attribute [rw] artifact_timing
|
377
427
|
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
378
|
-
# Time to push all non-container artifacts.
|
428
|
+
# Time to push all non-container artifacts to Cloud Storage.
|
379
429
|
# @!attribute [rw] python_packages
|
380
430
|
# @return [::Array<::Google::Cloud::Build::V1::UploadedPythonPackage>]
|
381
431
|
# Python artifacts uploaded to Artifact Registry at the end of the build.
|
382
432
|
# @!attribute [rw] maven_artifacts
|
383
433
|
# @return [::Array<::Google::Cloud::Build::V1::UploadedMavenArtifact>]
|
384
434
|
# Maven artifacts uploaded to Artifact Registry at the end of the build.
|
435
|
+
# @!attribute [rw] npm_packages
|
436
|
+
# @return [::Array<::Google::Cloud::Build::V1::UploadedNpmPackage>]
|
437
|
+
# Npm packages uploaded to Artifact Registry at the end of the build.
|
385
438
|
class Results
|
386
439
|
include ::Google::Protobuf::MessageExts
|
387
440
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -413,6 +466,7 @@ module Google
|
|
413
466
|
#
|
414
467
|
# - $PROJECT_ID: the project ID of the build.
|
415
468
|
# - $PROJECT_NUMBER: the project number of the build.
|
469
|
+
# - $LOCATION: the location/region of the build.
|
416
470
|
# - $BUILD_ID: the autogenerated ID of the build.
|
417
471
|
# - $REPO_NAME: the source repository name specified by RepoSource.
|
418
472
|
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
@@ -466,7 +520,7 @@ module Google
|
|
466
520
|
#
|
467
521
|
# `timeout` starts ticking from `startTime`.
|
468
522
|
#
|
469
|
-
# Default time is
|
523
|
+
# Default time is 60 minutes.
|
470
524
|
# @!attribute [rw] images
|
471
525
|
# @return [::Array<::String>]
|
472
526
|
# A list of images to be pushed upon the successful completion of all build
|
@@ -528,7 +582,8 @@ module Google
|
|
528
582
|
# are:
|
529
583
|
#
|
530
584
|
# * BUILD: time to execute all build steps.
|
531
|
-
# * PUSH: time to push all
|
585
|
+
# * PUSH: time to push all artifacts including docker images and non docker
|
586
|
+
# artifacts.
|
532
587
|
# * FETCHSOURCE: time to fetch source.
|
533
588
|
# * SETUPBUILD: time to set up build.
|
534
589
|
#
|
@@ -718,6 +773,16 @@ module Google
|
|
718
773
|
# The build service account credentials will be used to perform the upload.
|
719
774
|
#
|
720
775
|
# If any objects fail to be pushed, the build is marked FAILURE.
|
776
|
+
# @!attribute [rw] npm_packages
|
777
|
+
# @return [::Array<::Google::Cloud::Build::V1::Artifacts::NpmPackage>]
|
778
|
+
# A list of npm packages to be uploaded to Artifact Registry upon
|
779
|
+
# successful completion of all build steps.
|
780
|
+
#
|
781
|
+
# Npm packages in the specified paths will be uploaded
|
782
|
+
# to the specified Artifact Registry repository using the builder service
|
783
|
+
# account's credentials.
|
784
|
+
#
|
785
|
+
# If any packages fail to be pushed, the build is marked FAILURE.
|
721
786
|
class Artifacts
|
722
787
|
include ::Google::Protobuf::MessageExts
|
723
788
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -796,6 +861,24 @@ module Google
|
|
796
861
|
include ::Google::Protobuf::MessageExts
|
797
862
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
798
863
|
end
|
864
|
+
|
865
|
+
# Npm package to upload to Artifact Registry upon successful completion
|
866
|
+
# of all build steps.
|
867
|
+
# @!attribute [rw] repository
|
868
|
+
# @return [::String]
|
869
|
+
# Artifact Registry repository, in the form
|
870
|
+
# "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
|
871
|
+
#
|
872
|
+
# Npm package in the workspace specified by path will be zipped and
|
873
|
+
# uploaded to Artifact Registry with this location as a prefix.
|
874
|
+
# @!attribute [rw] package_path
|
875
|
+
# @return [::String]
|
876
|
+
# Path to the package.json.
|
877
|
+
# e.g. workspace/path/to/package
|
878
|
+
class NpmPackage
|
879
|
+
include ::Google::Protobuf::MessageExts
|
880
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
881
|
+
end
|
799
882
|
end
|
800
883
|
|
801
884
|
# Start and end times for a build execution phase.
|
@@ -891,6 +974,9 @@ module Google
|
|
891
974
|
|
892
975
|
# Use a md5 hash.
|
893
976
|
MD5 = 2
|
977
|
+
|
978
|
+
# Use a sha512 hash.
|
979
|
+
SHA512 = 4
|
894
980
|
end
|
895
981
|
end
|
896
982
|
|
@@ -1016,7 +1102,7 @@ module Google
|
|
1016
1102
|
# @!attribute [rw] parent
|
1017
1103
|
# @return [::String]
|
1018
1104
|
# The parent of the collection of `Builds`.
|
1019
|
-
# Format: `projects/{project}/locations/location`
|
1105
|
+
# Format: `projects/{project}/locations/{location}`
|
1020
1106
|
# @!attribute [rw] project_id
|
1021
1107
|
# @return [::String]
|
1022
1108
|
# Required. ID of the project.
|
@@ -1549,7 +1635,7 @@ module Google
|
|
1549
1635
|
# "disk free"; some of the space will be used by the operating system and
|
1550
1636
|
# build utilities. Also note that this is the minimum disk size that will be
|
1551
1637
|
# allocated for the build -- the build may run with a larger disk than
|
1552
|
-
# requested. At present, the maximum disk size is
|
1638
|
+
# requested. At present, the maximum disk size is 2000GB; builds that request
|
1553
1639
|
# more than the maximum are rejected with an error.
|
1554
1640
|
# @!attribute [rw] substitution_option
|
1555
1641
|
# @return [::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption]
|
@@ -1610,7 +1696,7 @@ module Google
|
|
1610
1696
|
# it is indicative of a build request with an incorrect configuration.
|
1611
1697
|
# @!attribute [rw] default_logs_bucket_behavior
|
1612
1698
|
# @return [::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior]
|
1613
|
-
# Option to specify how default logs buckets are setup.
|
1699
|
+
# Optional. Option to specify how default logs buckets are setup.
|
1614
1700
|
class BuildOptions
|
1615
1701
|
include ::Google::Protobuf::MessageExts
|
1616
1702
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1634,10 +1720,10 @@ module Google
|
|
1634
1720
|
|
1635
1721
|
# Specifies the manner in which the build should be verified, if at all.
|
1636
1722
|
module VerifyOption
|
1637
|
-
# Not a verifiable build
|
1723
|
+
# Not a verifiable build (the default).
|
1638
1724
|
NOT_VERIFIED = 0
|
1639
1725
|
|
1640
|
-
#
|
1726
|
+
# Build must be verified.
|
1641
1727
|
VERIFIED = 1
|
1642
1728
|
end
|
1643
1729
|
|
@@ -1690,18 +1776,18 @@ module Google
|
|
1690
1776
|
# rely on the default logging behavior as it may change in the future.
|
1691
1777
|
LOGGING_UNSPECIFIED = 0
|
1692
1778
|
|
1693
|
-
# Cloud Logging and Cloud Storage
|
1779
|
+
# Build logs are stored in Cloud Logging and Cloud Storage.
|
1694
1780
|
LEGACY = 1
|
1695
1781
|
|
1696
|
-
#
|
1782
|
+
# Build logs are stored in Cloud Storage.
|
1697
1783
|
GCS_ONLY = 2
|
1698
1784
|
|
1699
1785
|
# This option is the same as CLOUD_LOGGING_ONLY.
|
1700
1786
|
STACKDRIVER_ONLY = 3
|
1701
1787
|
|
1702
|
-
#
|
1703
|
-
#
|
1704
|
-
#
|
1788
|
+
# Build logs are stored in Cloud Logging. Selecting this option will not
|
1789
|
+
# allow [logs
|
1790
|
+
# streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log).
|
1705
1791
|
CLOUD_LOGGING_ONLY = 5
|
1706
1792
|
|
1707
1793
|
# Turn off all logging. No build logs will be captured.
|
@@ -1798,7 +1884,7 @@ module Google
|
|
1798
1884
|
# Output only. `WorkerPool` state.
|
1799
1885
|
# @!attribute [rw] private_pool_v1_config
|
1800
1886
|
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config]
|
1801
|
-
# Private Pool
|
1887
|
+
# Legacy Private Pool configuration.
|
1802
1888
|
# @!attribute [r] etag
|
1803
1889
|
# @return [::String]
|
1804
1890
|
# Output only. Checksum computed by the server. May be sent on update and
|
@@ -1860,7 +1946,7 @@ module Google
|
|
1860
1946
|
# Size of the disk attached to the worker, in GB.
|
1861
1947
|
# See [Worker pool config
|
1862
1948
|
# file](https://cloud.google.com/build/docs/private-pools/worker-pool-config-file-schema).
|
1863
|
-
# Specify a value of up to
|
1949
|
+
# Specify a value of up to 2000. If `0` is specified, Cloud Build will use
|
1864
1950
|
# a standard disk size.
|
1865
1951
|
class WorkerConfig
|
1866
1952
|
include ::Google::Protobuf::MessageExts
|
@@ -1881,6 +1967,16 @@ module Google
|
|
1881
1967
|
# @!attribute [rw] egress_option
|
1882
1968
|
# @return [::Google::Cloud::Build::V1::PrivatePoolV1Config::NetworkConfig::EgressOption]
|
1883
1969
|
# Option to configure network egress for the workers.
|
1970
|
+
# @!attribute [rw] peered_network_ip_range
|
1971
|
+
# @return [::String]
|
1972
|
+
# Immutable. Subnet IP range within the peered network. This is specified
|
1973
|
+
# in CIDR notation with a slash and the subnet prefix size. You can
|
1974
|
+
# optionally specify an IP address before the subnet prefix value. e.g.
|
1975
|
+
# `192.168.0.0/29` would specify an IP range starting at 192.168.0.0 with a
|
1976
|
+
# prefix size of 29 bits.
|
1977
|
+
# `/16` would specify a prefix size of 16 bits, with an automatically
|
1978
|
+
# determined IP within the peered VPC.
|
1979
|
+
# If unspecified, a value of `/24` will be used.
|
1884
1980
|
class NetworkConfig
|
1885
1981
|
include ::Google::Protobuf::MessageExts
|
1886
1982
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1940,7 +2036,7 @@ module Google
|
|
1940
2036
|
# @return [::String]
|
1941
2037
|
# Required. The name of the `WorkerPool` to delete.
|
1942
2038
|
# Format:
|
1943
|
-
# `projects/{project}/locations/{
|
2039
|
+
# `projects/{project}/locations/{location}/workerPools/{workerPool}`.
|
1944
2040
|
# @!attribute [rw] etag
|
1945
2041
|
# @return [::String]
|
1946
2042
|
# Optional. If this is provided, it must match the server's etag on the
|
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.16.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: 2023-
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|