google-cloud-build-v1 0.1.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/build/v1.rb +3 -0
- data/lib/google/cloud/build/v1/cloud_build.rb +1 -0
- data/lib/google/cloud/build/v1/cloud_build/client.rb +164 -52
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +95 -10
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +179 -0
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +43 -0
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +19 -16
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/httpbody.rb +75 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +189 -21
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +14 -9
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -22,6 +22,10 @@ module Google
|
|
22
22
|
module Build
|
23
23
|
module V1
|
24
24
|
# Specifies a build to retry.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# The name of the `Build` to retry.
|
28
|
+
# Format: `projects/{project}/locations/{location}/builds/{build}`
|
25
29
|
# @!attribute [rw] project_id
|
26
30
|
# @return [::String]
|
27
31
|
# Required. ID of the project.
|
@@ -42,7 +46,7 @@ module Google
|
|
42
46
|
# Required. ID of the trigger.
|
43
47
|
# @!attribute [rw] source
|
44
48
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
45
|
-
#
|
49
|
+
# Source to build against this trigger.
|
46
50
|
class RunBuildTriggerRequest
|
47
51
|
include ::Google::Protobuf::MessageExts
|
48
52
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -76,7 +80,7 @@ module Google
|
|
76
80
|
# project ID requesting the build is assumed.
|
77
81
|
# @!attribute [rw] repo_name
|
78
82
|
# @return [::String]
|
79
|
-
#
|
83
|
+
# Name of the Cloud Source Repository.
|
80
84
|
# @!attribute [rw] branch_name
|
81
85
|
# @return [::String]
|
82
86
|
# Regex matching branches to build.
|
@@ -228,7 +232,7 @@ module Google
|
|
228
232
|
# @!attribute [r] timing
|
229
233
|
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
230
234
|
# Output only. Stores timing information for executing this build step.
|
231
|
-
# @!attribute [
|
235
|
+
# @!attribute [r] pull_timing
|
232
236
|
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
233
237
|
# Output only. Stores timing information for pulling this build step's
|
234
238
|
# builder image only.
|
@@ -237,7 +241,7 @@ module Google
|
|
237
241
|
# Time limit for executing this build step. If not defined, the step has no
|
238
242
|
# time limit and will be allowed to continue to run until either it completes
|
239
243
|
# or the build itself times out.
|
240
|
-
# @!attribute [
|
244
|
+
# @!attribute [r] status
|
241
245
|
# @return [::Google::Cloud::Build::V1::Build::Status]
|
242
246
|
# Output only. Status of the build step. At this time, build step status is
|
243
247
|
# only updated on build completion; step status is not updated in real-time
|
@@ -321,6 +325,7 @@ module Google
|
|
321
325
|
# build is created:
|
322
326
|
#
|
323
327
|
# - $PROJECT_ID: the project ID of the build.
|
328
|
+
# - $PROJECT_NUMBER: the project number of the build.
|
324
329
|
# - $BUILD_ID: the autogenerated ID of the build.
|
325
330
|
# - $REPO_NAME: the source repository name specified by RepoSource.
|
326
331
|
# - $BRANCH_NAME: the branch name specified by RepoSource.
|
@@ -328,16 +333,21 @@ module Google
|
|
328
333
|
# - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or
|
329
334
|
# resolved from the specified branch or tag.
|
330
335
|
# - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
|
336
|
+
# @!attribute [r] name
|
337
|
+
# @return [::String]
|
338
|
+
# Output only. The 'Build' name with format:
|
339
|
+
# `projects/{project}/locations/{location}/builds/{build}`, where \\{build}
|
340
|
+
# is a unique identifier generated by the service.
|
331
341
|
# @!attribute [r] id
|
332
342
|
# @return [::String]
|
333
343
|
# Output only. Unique identifier of the build.
|
334
344
|
# @!attribute [r] project_id
|
335
345
|
# @return [::String]
|
336
346
|
# Output only. ID of the project.
|
337
|
-
# @!attribute [
|
347
|
+
# @!attribute [r] status
|
338
348
|
# @return [::Google::Cloud::Build::V1::Build::Status]
|
339
349
|
# Output only. Status of the build.
|
340
|
-
# @!attribute [
|
350
|
+
# @!attribute [r] status_detail
|
341
351
|
# @return [::String]
|
342
352
|
# Output only. Customer-readable message about the current status.
|
343
353
|
# @!attribute [rw] source
|
@@ -367,6 +377,8 @@ module Google
|
|
367
377
|
# granularity. If this amount of time elapses, work on the build will cease
|
368
378
|
# and the build status will be `TIMEOUT`.
|
369
379
|
#
|
380
|
+
# `timeout` starts ticking from `startTime`.
|
381
|
+
#
|
370
382
|
# Default time is ten minutes.
|
371
383
|
# @!attribute [rw] images
|
372
384
|
# @return [::Array<::String>]
|
@@ -397,10 +409,10 @@ module Google
|
|
397
409
|
# [Bucket Name
|
398
410
|
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
399
411
|
# Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
|
400
|
-
# @!attribute [
|
412
|
+
# @!attribute [r] source_provenance
|
401
413
|
# @return [::Google::Cloud::Build::V1::SourceProvenance]
|
402
414
|
# Output only. A permanent fixed identifier for source.
|
403
|
-
# @!attribute [
|
415
|
+
# @!attribute [r] build_trigger_id
|
404
416
|
# @return [::String]
|
405
417
|
# Output only. The ID of the `BuildTrigger` that triggered this build, if it
|
406
418
|
# was triggered automatically.
|
@@ -419,6 +431,10 @@ module Google
|
|
419
431
|
# @!attribute [rw] secrets
|
420
432
|
# @return [::Array<::Google::Cloud::Build::V1::Secret>]
|
421
433
|
# Secrets to decrypt using Cloud Key Management Service.
|
434
|
+
# Note: Secret Manager is the recommended technique
|
435
|
+
# for managing sensitive data with Cloud Build. Use `available_secrets` to
|
436
|
+
# configure builds to access secrets from Secret Manager. For instructions,
|
437
|
+
# see: https://cloud.google.com/cloud-build/docs/securing-builds/use-secrets
|
422
438
|
# @!attribute [r] timing
|
423
439
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::TimeSpan}]
|
424
440
|
# Output only. Stores timing information for phases of the build. Valid keys
|
@@ -430,6 +446,16 @@ module Google
|
|
430
446
|
#
|
431
447
|
# If the build does not specify source or images,
|
432
448
|
# these keys will not be included.
|
449
|
+
# @!attribute [rw] service_account
|
450
|
+
# @return [::String]
|
451
|
+
# IAM service account whose credentials will be used at build runtime.
|
452
|
+
# Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
453
|
+
# ACCOUNT can be email address or uniqueId of the service account.
|
454
|
+
#
|
455
|
+
# This field is in beta.
|
456
|
+
# @!attribute [rw] available_secrets
|
457
|
+
# @return [::Google::Cloud::Build::V1::Secrets]
|
458
|
+
# Secrets and secret environment variables.
|
433
459
|
class Build
|
434
460
|
include ::Google::Protobuf::MessageExts
|
435
461
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -526,7 +552,7 @@ module Google
|
|
526
552
|
# @!attribute [rw] paths
|
527
553
|
# @return [::Array<::String>]
|
528
554
|
# Path globs used to match files in the build's workspace.
|
529
|
-
# @!attribute [
|
555
|
+
# @!attribute [r] timing
|
530
556
|
# @return [::Google::Cloud::Build::V1::TimeSpan]
|
531
557
|
# Output only. Stores timing information for pushing all artifact objects.
|
532
558
|
class ArtifactObjects
|
@@ -626,8 +652,67 @@ module Google
|
|
626
652
|
end
|
627
653
|
end
|
628
654
|
|
655
|
+
# Secrets and secret environment variables.
|
656
|
+
# @!attribute [rw] secret_manager
|
657
|
+
# @return [::Array<::Google::Cloud::Build::V1::SecretManagerSecret>]
|
658
|
+
# Secrets in Secret Manager and associated secret environment variable.
|
659
|
+
# @!attribute [rw] inline
|
660
|
+
# @return [::Array<::Google::Cloud::Build::V1::InlineSecret>]
|
661
|
+
# Secrets encrypted with KMS key and the associated secret environment
|
662
|
+
# variable.
|
663
|
+
class Secrets
|
664
|
+
include ::Google::Protobuf::MessageExts
|
665
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
666
|
+
end
|
667
|
+
|
668
|
+
# Pairs a set of secret environment variables mapped to encrypted
|
669
|
+
# values with the Cloud KMS key to use to decrypt the value.
|
670
|
+
# @!attribute [rw] kms_key_name
|
671
|
+
# @return [::String]
|
672
|
+
# Resource name of Cloud KMS crypto key to decrypt the encrypted value.
|
673
|
+
# In format: projects/*/locations/*/keyRings/*/cryptoKeys/*
|
674
|
+
# @!attribute [rw] env_map
|
675
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
676
|
+
# Map of environment variable name to its encrypted value.
|
677
|
+
#
|
678
|
+
# Secret environment variables must be unique across all of a build's
|
679
|
+
# secrets, and must be used by at least one build step. Values can be at most
|
680
|
+
# 64 KB in size. There can be at most 100 secret values across all of a
|
681
|
+
# build's secrets.
|
682
|
+
class InlineSecret
|
683
|
+
include ::Google::Protobuf::MessageExts
|
684
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
685
|
+
|
686
|
+
# @!attribute [rw] key
|
687
|
+
# @return [::String]
|
688
|
+
# @!attribute [rw] value
|
689
|
+
# @return [::String]
|
690
|
+
class EnvMapEntry
|
691
|
+
include ::Google::Protobuf::MessageExts
|
692
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
# Pairs a secret environment variable with a SecretVersion in Secret Manager.
|
697
|
+
# @!attribute [rw] version_name
|
698
|
+
# @return [::String]
|
699
|
+
# Resource name of the SecretVersion. In format:
|
700
|
+
# projects/*/secrets/*/versions/*
|
701
|
+
# @!attribute [rw] env
|
702
|
+
# @return [::String]
|
703
|
+
# Environment variable name to associate with the secret.
|
704
|
+
# Secret environment variables must be unique across all of a build's
|
705
|
+
# secrets, and must be used by at least one build step.
|
706
|
+
class SecretManagerSecret
|
707
|
+
include ::Google::Protobuf::MessageExts
|
708
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
709
|
+
end
|
710
|
+
|
629
711
|
# Pairs a set of secret environment variables containing encrypted
|
630
712
|
# values with the Cloud KMS key to use to decrypt the value.
|
713
|
+
# Note: Use `kmsKeyName` with `available_secrets` instead of using
|
714
|
+
# `kmsKeyName` with `secret`. For instructions see:
|
715
|
+
# https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
|
631
716
|
# @!attribute [rw] kms_key_name
|
632
717
|
# @return [::String]
|
633
718
|
# Cloud KMS key name to use to decrypt these envs.
|
@@ -654,6 +739,10 @@ module Google
|
|
654
739
|
end
|
655
740
|
|
656
741
|
# Request to create a new build.
|
742
|
+
# @!attribute [rw] parent
|
743
|
+
# @return [::String]
|
744
|
+
# The parent resource where this build will be created.
|
745
|
+
# Format: `projects/{project}/locations/{location}`
|
657
746
|
# @!attribute [rw] project_id
|
658
747
|
# @return [::String]
|
659
748
|
# Required. ID of the project.
|
@@ -666,6 +755,10 @@ module Google
|
|
666
755
|
end
|
667
756
|
|
668
757
|
# Request to get a build.
|
758
|
+
# @!attribute [rw] name
|
759
|
+
# @return [::String]
|
760
|
+
# The name of the `Build` to retrieve.
|
761
|
+
# Format: `projects/{project}/locations/{location}/builds/{build}`
|
669
762
|
# @!attribute [rw] project_id
|
670
763
|
# @return [::String]
|
671
764
|
# Required. ID of the project.
|
@@ -678,6 +771,10 @@ module Google
|
|
678
771
|
end
|
679
772
|
|
680
773
|
# Request to list builds.
|
774
|
+
# @!attribute [rw] parent
|
775
|
+
# @return [::String]
|
776
|
+
# The parent of the collection of `Builds`.
|
777
|
+
# Format: `projects/{project}/locations/location`
|
681
778
|
# @!attribute [rw] project_id
|
682
779
|
# @return [::String]
|
683
780
|
# Required. ID of the project.
|
@@ -686,7 +783,15 @@ module Google
|
|
686
783
|
# Number of results to return in the list.
|
687
784
|
# @!attribute [rw] page_token
|
688
785
|
# @return [::String]
|
689
|
-
#
|
786
|
+
# The page token for the next page of Builds.
|
787
|
+
#
|
788
|
+
# If unspecified, the first page of results is returned.
|
789
|
+
#
|
790
|
+
# If the token is rejected for any reason, INVALID_ARGUMENT will be thrown.
|
791
|
+
# In this case, the token should be discarded, and pagination should be
|
792
|
+
# restarted from the first page of results.
|
793
|
+
#
|
794
|
+
# See https://google.aip.dev/158 for more.
|
690
795
|
# @!attribute [rw] filter
|
691
796
|
# @return [::String]
|
692
797
|
# The raw filter text to constrain the results.
|
@@ -702,12 +807,17 @@ module Google
|
|
702
807
|
# @!attribute [rw] next_page_token
|
703
808
|
# @return [::String]
|
704
809
|
# Token to receive the next page of results.
|
810
|
+
# This will be absent if the end of the response list has been reached.
|
705
811
|
class ListBuildsResponse
|
706
812
|
include ::Google::Protobuf::MessageExts
|
707
813
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
708
814
|
end
|
709
815
|
|
710
816
|
# Request to cancel an ongoing build.
|
817
|
+
# @!attribute [rw] name
|
818
|
+
# @return [::String]
|
819
|
+
# The name of the `Build` to cancel.
|
820
|
+
# Format: `projects/{project}/locations/{location}/builds/{build}`
|
711
821
|
# @!attribute [rw] project_id
|
712
822
|
# @return [::String]
|
713
823
|
# Required. ID of the project.
|
@@ -758,19 +868,18 @@ module Google
|
|
758
868
|
# Contents of the build template.
|
759
869
|
# @!attribute [rw] filename
|
760
870
|
# @return [::String]
|
761
|
-
# Path, from the source root, to
|
762
|
-
#
|
871
|
+
# Path, from the source root, to the build configuration file
|
872
|
+
# (i.e. cloudbuild.yaml).
|
763
873
|
# @!attribute [r] create_time
|
764
874
|
# @return [::Google::Protobuf::Timestamp]
|
765
875
|
# Output only. Time when the trigger was created.
|
766
876
|
# @!attribute [rw] disabled
|
767
877
|
# @return [::Boolean]
|
768
|
-
# If true, the trigger will never
|
878
|
+
# If true, the trigger will never automatically execute a build.
|
769
879
|
# @!attribute [rw] substitutions
|
770
880
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
771
881
|
# Substitutions for Build resource. The keys must match the following
|
772
|
-
# regular expression: `^_[A-Z0-9_]+$`.
|
773
|
-
# keys in bindings.
|
882
|
+
# regular expression: `^_[A-Z0-9_]+$`.
|
774
883
|
# @!attribute [rw] ignored_files
|
775
884
|
# @return [::Array<::String>]
|
776
885
|
# ignored_files and included_files are file glob matches using
|
@@ -843,8 +952,8 @@ module Google
|
|
843
952
|
# RE2 and described at https://github.com/google/re2/wiki/Syntax
|
844
953
|
# @!attribute [rw] comment_control
|
845
954
|
# @return [::Google::Cloud::Build::V1::PullRequestFilter::CommentControl]
|
846
|
-
#
|
847
|
-
#
|
955
|
+
# Configure builds to run whether a repository owner or collaborator need to
|
956
|
+
# comment `/gcbrun`.
|
848
957
|
# @!attribute [rw] invert_regex
|
849
958
|
# @return [::Boolean]
|
850
959
|
# If true, branches that do NOT match the git_ref will trigger a build.
|
@@ -860,6 +969,10 @@ module Google
|
|
860
969
|
# Enforce that repository owners or collaborators must comment on Pull
|
861
970
|
# Requests before builds are triggered.
|
862
971
|
COMMENTS_ENABLED = 1
|
972
|
+
|
973
|
+
# Enforce that repository owners or collaborators must comment on external
|
974
|
+
# contributors' Pull Requests before builds are triggered.
|
975
|
+
COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY = 2
|
863
976
|
end
|
864
977
|
end
|
865
978
|
|
@@ -985,6 +1098,16 @@ module Google
|
|
985
1098
|
# @return [::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption]
|
986
1099
|
# Option to specify behavior when there is an error in the substitution
|
987
1100
|
# checks.
|
1101
|
+
#
|
1102
|
+
# NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot
|
1103
|
+
# be overridden in the build configuration file.
|
1104
|
+
# @!attribute [rw] dynamic_substitutions
|
1105
|
+
# @return [::Boolean]
|
1106
|
+
# Option to specify whether or not to apply bash style string
|
1107
|
+
# operations to the substitutions.
|
1108
|
+
#
|
1109
|
+
# NOTE: this is always enabled for triggered builds and cannot be
|
1110
|
+
# overridden in the build configuration file.
|
988
1111
|
# @!attribute [rw] log_streaming_option
|
989
1112
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption]
|
990
1113
|
# Option to define build log streaming behavior to Google Cloud
|
@@ -997,8 +1120,8 @@ module Google
|
|
997
1120
|
# This field is experimental.
|
998
1121
|
# @!attribute [rw] logging
|
999
1122
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LoggingMode]
|
1000
|
-
# Option to specify the logging mode, which determines
|
1001
|
-
# stored.
|
1123
|
+
# Option to specify the logging mode, which determines if and where build
|
1124
|
+
# logs are stored.
|
1002
1125
|
# @!attribute [rw] env
|
1003
1126
|
# @return [::Array<::String>]
|
1004
1127
|
# A list of global environment variable definitions that will exist for all
|
@@ -1037,7 +1160,9 @@ module Google
|
|
1037
1160
|
VERIFIED = 1
|
1038
1161
|
end
|
1039
1162
|
|
1040
|
-
# Supported
|
1163
|
+
# Supported Compute Engine machine types.
|
1164
|
+
# For more information, see [Machine
|
1165
|
+
# types](https://cloud.google.com/compute/docs/machine-types).
|
1041
1166
|
module MachineType
|
1042
1167
|
# Standard machine type.
|
1043
1168
|
UNSPECIFIED = 0
|
@@ -1047,6 +1172,12 @@ module Google
|
|
1047
1172
|
|
1048
1173
|
# Highcpu machine with 32 CPUs.
|
1049
1174
|
N1_HIGHCPU_32 = 2
|
1175
|
+
|
1176
|
+
# Highcpu e2 machine with 8 CPUs.
|
1177
|
+
E2_HIGHCPU_8 = 5
|
1178
|
+
|
1179
|
+
# Highcpu e2 machine with 32 CPUs.
|
1180
|
+
E2_HIGHCPU_32 = 6
|
1050
1181
|
end
|
1051
1182
|
|
1052
1183
|
# Specifies the behavior when there is an error in the substitution checks.
|
@@ -1078,14 +1209,51 @@ module Google
|
|
1078
1209
|
# rely on the default logging behavior as it may change in the future.
|
1079
1210
|
LOGGING_UNSPECIFIED = 0
|
1080
1211
|
|
1081
|
-
#
|
1212
|
+
# Cloud Logging and Cloud Storage logging are enabled.
|
1082
1213
|
LEGACY = 1
|
1083
1214
|
|
1084
1215
|
# Only Cloud Storage logging is enabled.
|
1085
1216
|
GCS_ONLY = 2
|
1217
|
+
|
1218
|
+
# This option is the same as CLOUD_LOGGING_ONLY.
|
1219
|
+
STACKDRIVER_ONLY = 3
|
1220
|
+
|
1221
|
+
# Only Cloud Logging is enabled. Note that logs for both the Cloud Console
|
1222
|
+
# UI and Cloud SDK are based on Cloud Storage logs, so neither will provide
|
1223
|
+
# logs if this option is chosen.
|
1224
|
+
CLOUD_LOGGING_ONLY = 5
|
1225
|
+
|
1226
|
+
# Turn off all logging. No build logs will be captured.
|
1227
|
+
NONE = 4
|
1086
1228
|
end
|
1087
1229
|
end
|
1088
1230
|
|
1231
|
+
# ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by
|
1232
|
+
# the ReceiveTriggerWebhook method.
|
1233
|
+
# @!attribute [rw] body
|
1234
|
+
# @return [::Google::Api::HttpBody]
|
1235
|
+
# HTTP request body.
|
1236
|
+
# @!attribute [rw] project_id
|
1237
|
+
# @return [::String]
|
1238
|
+
# Project in which the specified trigger lives
|
1239
|
+
# @!attribute [rw] trigger
|
1240
|
+
# @return [::String]
|
1241
|
+
# Name of the trigger to run the payload against
|
1242
|
+
# @!attribute [rw] secret
|
1243
|
+
# @return [::String]
|
1244
|
+
# Secret token used for authorization if an OAuth token isn't provided.
|
1245
|
+
class ReceiveTriggerWebhookRequest
|
1246
|
+
include ::Google::Protobuf::MessageExts
|
1247
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# ReceiveTriggerWebhookResponse [Experimental] is the response object for the
|
1251
|
+
# ReceiveTriggerWebhook method.
|
1252
|
+
class ReceiveTriggerWebhookResponse
|
1253
|
+
include ::Google::Protobuf::MessageExts
|
1254
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1255
|
+
end
|
1256
|
+
|
1089
1257
|
# Configuration for a WorkerPool to run the builds.
|
1090
1258
|
#
|
1091
1259
|
# Workers are machines that Cloud Build uses to run your builds. By default,
|