google-apis-cloudbuild_v1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudbuild_v1/classes.rb +217 -25
- data/lib/google/apis/cloudbuild_v1/gem_version.rb +2 -2
- data/lib/google/apis/cloudbuild_v1/representations.rb +84 -0
- data/lib/google/apis/cloudbuild_v1/service.rb +78 -6
- data/lib/google/apis/cloudbuild_v1.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da500922f22b1bb0d503eee2d179dd584f058f12282211898b2bf693b20ca3e
|
4
|
+
data.tar.gz: 83766d324b3fcc38b3eb6afe6454c80fc9b7c714261acb607c9d712322a0c012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ebf85ef4554a2c24f3e8bdda93d2056a9d1fb520a2d615d70a07f5c9bd0d26397b2b3e37fbb0cf898cd0b720c5b23bcbd178f06cf9125689172c07f58352bae
|
7
|
+
data.tar.gz: 92ca51f5357d7f765d3612948023c12c9446bbdc4c4620043cfbbd3b29b0d13948440f72473eb4c3c73ae88c0aba47e27134bc70cdc868fb82d8c955889589f1
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,95 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
+
# ApprovalConfig describes configuration for manual approval of a build.
|
26
|
+
class ApprovalConfig
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Whether or not approval is needed. If this is set on a build, it will become
|
30
|
+
# pending when created, and will need to be explicitly approved to start.
|
31
|
+
# Corresponds to the JSON property `approvalRequired`
|
32
|
+
# @return [Boolean]
|
33
|
+
attr_accessor :approval_required
|
34
|
+
alias_method :approval_required?, :approval_required
|
35
|
+
|
36
|
+
def initialize(**args)
|
37
|
+
update!(**args)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Update properties of this object
|
41
|
+
def update!(**args)
|
42
|
+
@approval_required = args[:approval_required] if args.key?(:approval_required)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# ApprovalResult describes the decision and associated metadata of a manual
|
47
|
+
# approval of a build.
|
48
|
+
class ApprovalResult
|
49
|
+
include Google::Apis::Core::Hashable
|
50
|
+
|
51
|
+
# Output only. The time when the approval decision was made.
|
52
|
+
# Corresponds to the JSON property `approvalTime`
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :approval_time
|
55
|
+
|
56
|
+
# Output only. Email of the user that called the ApproveBuild API to approve or
|
57
|
+
# reject a build at the time that the API was called.
|
58
|
+
# Corresponds to the JSON property `approverAccount`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :approver_account
|
61
|
+
|
62
|
+
# Optional. An optional comment for this manual approval result.
|
63
|
+
# Corresponds to the JSON property `comment`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :comment
|
66
|
+
|
67
|
+
# Required. The decision of this manual approval.
|
68
|
+
# Corresponds to the JSON property `decision`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :decision
|
71
|
+
|
72
|
+
# Optional. An optional URL tied to this manual approval result. This field is
|
73
|
+
# essentially the same as comment, except that it will be rendered by the UI
|
74
|
+
# differently. An example use case is a link to an external job that approved
|
75
|
+
# this Build.
|
76
|
+
# Corresponds to the JSON property `url`
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :url
|
79
|
+
|
80
|
+
def initialize(**args)
|
81
|
+
update!(**args)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Update properties of this object
|
85
|
+
def update!(**args)
|
86
|
+
@approval_time = args[:approval_time] if args.key?(:approval_time)
|
87
|
+
@approver_account = args[:approver_account] if args.key?(:approver_account)
|
88
|
+
@comment = args[:comment] if args.key?(:comment)
|
89
|
+
@decision = args[:decision] if args.key?(:decision)
|
90
|
+
@url = args[:url] if args.key?(:url)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# Request to approve or reject a pending build.
|
95
|
+
class ApproveBuildRequest
|
96
|
+
include Google::Apis::Core::Hashable
|
97
|
+
|
98
|
+
# ApprovalResult describes the decision and associated metadata of a manual
|
99
|
+
# approval of a build.
|
100
|
+
# Corresponds to the JSON property `approvalResult`
|
101
|
+
# @return [Google::Apis::CloudbuildV1::ApprovalResult]
|
102
|
+
attr_accessor :approval_result
|
103
|
+
|
104
|
+
def initialize(**args)
|
105
|
+
update!(**args)
|
106
|
+
end
|
107
|
+
|
108
|
+
# Update properties of this object
|
109
|
+
def update!(**args)
|
110
|
+
@approval_result = args[:approval_result] if args.key?(:approval_result)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
25
114
|
# Files in the workspace to upload to Cloud Storage upon successful completion
|
26
115
|
# of all build steps.
|
27
116
|
class ArtifactObjects
|
@@ -120,15 +209,21 @@ module Google
|
|
120
209
|
# run on the source), and where to store the built artifacts. Fields can include
|
121
210
|
# the following variables, which will be expanded when the build is created: - $
|
122
211
|
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
123
|
-
# of the build. - $
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# RepoSource. - $
|
127
|
-
#
|
128
|
-
# characters of $REVISION_ID or $
|
212
|
+
# of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
|
213
|
+
# autogenerated ID of the build. - $REPO_NAME: the source repository name
|
214
|
+
# specified by RepoSource. - $BRANCH_NAME: the branch name specified by
|
215
|
+
# RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
|
216
|
+
# or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
|
217
|
+
# specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
|
218
|
+
# COMMIT_SHA.
|
129
219
|
class Build
|
130
220
|
include Google::Apis::Core::Hashable
|
131
221
|
|
222
|
+
# BuildApproval describes a build's approval configuration, state, and result.
|
223
|
+
# Corresponds to the JSON property `approval`
|
224
|
+
# @return [Google::Apis::CloudbuildV1::BuildApproval]
|
225
|
+
attr_accessor :approval
|
226
|
+
|
132
227
|
# Artifacts produced by a build that should be uploaded upon successful
|
133
228
|
# completion of all build steps.
|
134
229
|
# Corresponds to the JSON property `artifacts`
|
@@ -302,6 +397,7 @@ module Google
|
|
302
397
|
|
303
398
|
# Update properties of this object
|
304
399
|
def update!(**args)
|
400
|
+
@approval = args[:approval] if args.key?(:approval)
|
305
401
|
@artifacts = args[:artifacts] if args.key?(:artifacts)
|
306
402
|
@available_secrets = args[:available_secrets] if args.key?(:available_secrets)
|
307
403
|
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
|
@@ -333,6 +429,38 @@ module Google
|
|
333
429
|
end
|
334
430
|
end
|
335
431
|
|
432
|
+
# BuildApproval describes a build's approval configuration, state, and result.
|
433
|
+
class BuildApproval
|
434
|
+
include Google::Apis::Core::Hashable
|
435
|
+
|
436
|
+
# ApprovalConfig describes configuration for manual approval of a build.
|
437
|
+
# Corresponds to the JSON property `config`
|
438
|
+
# @return [Google::Apis::CloudbuildV1::ApprovalConfig]
|
439
|
+
attr_accessor :config
|
440
|
+
|
441
|
+
# ApprovalResult describes the decision and associated metadata of a manual
|
442
|
+
# approval of a build.
|
443
|
+
# Corresponds to the JSON property `result`
|
444
|
+
# @return [Google::Apis::CloudbuildV1::ApprovalResult]
|
445
|
+
attr_accessor :result
|
446
|
+
|
447
|
+
# Output only. The state of this build's approval.
|
448
|
+
# Corresponds to the JSON property `state`
|
449
|
+
# @return [String]
|
450
|
+
attr_accessor :state
|
451
|
+
|
452
|
+
def initialize(**args)
|
453
|
+
update!(**args)
|
454
|
+
end
|
455
|
+
|
456
|
+
# Update properties of this object
|
457
|
+
def update!(**args)
|
458
|
+
@config = args[:config] if args.key?(:config)
|
459
|
+
@result = args[:result] if args.key?(:result)
|
460
|
+
@state = args[:state] if args.key?(:state)
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
336
464
|
# Metadata for build operations.
|
337
465
|
class BuildOperationMetadata
|
338
466
|
include Google::Apis::Core::Hashable
|
@@ -342,12 +470,13 @@ module Google
|
|
342
470
|
# run on the source), and where to store the built artifacts. Fields can include
|
343
471
|
# the following variables, which will be expanded when the build is created: - $
|
344
472
|
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
345
|
-
# of the build. - $
|
346
|
-
#
|
347
|
-
#
|
348
|
-
# RepoSource. - $
|
349
|
-
#
|
350
|
-
# characters of $REVISION_ID or $
|
473
|
+
# of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
|
474
|
+
# autogenerated ID of the build. - $REPO_NAME: the source repository name
|
475
|
+
# specified by RepoSource. - $BRANCH_NAME: the branch name specified by
|
476
|
+
# RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
|
477
|
+
# or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
|
478
|
+
# specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
|
479
|
+
# COMMIT_SHA.
|
351
480
|
# Corresponds to the JSON property `build`
|
352
481
|
# @return [Google::Apis::CloudbuildV1::Build]
|
353
482
|
attr_accessor :build
|
@@ -540,6 +669,12 @@ module Google
|
|
540
669
|
# @return [Google::Apis::CloudbuildV1::TimeSpan]
|
541
670
|
attr_accessor :pull_timing
|
542
671
|
|
672
|
+
# A shell script to be executed in the step. When script is provided, the user
|
673
|
+
# cannot specify the entrypoint or args.
|
674
|
+
# Corresponds to the JSON property `script`
|
675
|
+
# @return [String]
|
676
|
+
attr_accessor :script
|
677
|
+
|
543
678
|
# A list of environment variables which are encrypted using a Cloud Key
|
544
679
|
# Management Service crypto key. These values must be specified in the build's `
|
545
680
|
# Secret`.
|
@@ -596,6 +731,7 @@ module Google
|
|
596
731
|
@id = args[:id] if args.key?(:id)
|
597
732
|
@name = args[:name] if args.key?(:name)
|
598
733
|
@pull_timing = args[:pull_timing] if args.key?(:pull_timing)
|
734
|
+
@script = args[:script] if args.key?(:script)
|
599
735
|
@secret_env = args[:secret_env] if args.key?(:secret_env)
|
600
736
|
@status = args[:status] if args.key?(:status)
|
601
737
|
@timeout = args[:timeout] if args.key?(:timeout)
|
@@ -609,6 +745,11 @@ module Google
|
|
609
745
|
class BuildTrigger
|
610
746
|
include Google::Apis::Core::Hashable
|
611
747
|
|
748
|
+
# ApprovalConfig describes configuration for manual approval of a build.
|
749
|
+
# Corresponds to the JSON property `approvalConfig`
|
750
|
+
# @return [Google::Apis::CloudbuildV1::ApprovalConfig]
|
751
|
+
attr_accessor :approval_config
|
752
|
+
|
612
753
|
# Autodetect build configuration. The following precedence is used (case
|
613
754
|
# insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4.
|
614
755
|
# Dockerfile Currently only available for GitHub App Triggers.
|
@@ -622,12 +763,13 @@ module Google
|
|
622
763
|
# run on the source), and where to store the built artifacts. Fields can include
|
623
764
|
# the following variables, which will be expanded when the build is created: - $
|
624
765
|
# PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
|
625
|
-
# of the build. - $
|
626
|
-
#
|
627
|
-
#
|
628
|
-
# RepoSource. - $
|
629
|
-
#
|
630
|
-
# characters of $REVISION_ID or $
|
766
|
+
# of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
|
767
|
+
# autogenerated ID of the build. - $REPO_NAME: the source repository name
|
768
|
+
# specified by RepoSource. - $BRANCH_NAME: the branch name specified by
|
769
|
+
# RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
|
770
|
+
# or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
|
771
|
+
# specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
|
772
|
+
# COMMIT_SHA.
|
631
773
|
# Corresponds to the JSON property `build`
|
632
774
|
# @return [Google::Apis::CloudbuildV1::Build]
|
633
775
|
attr_accessor :build
|
@@ -654,11 +796,16 @@ module Google
|
|
654
796
|
# @return [String]
|
655
797
|
attr_accessor :filename
|
656
798
|
|
657
|
-
#
|
799
|
+
# A Common Expression Language string.
|
658
800
|
# Corresponds to the JSON property `filter`
|
659
801
|
# @return [String]
|
660
802
|
attr_accessor :filter
|
661
803
|
|
804
|
+
# GitFileSource describes a file within a (possibly remote) code repository.
|
805
|
+
# Corresponds to the JSON property `gitFileSource`
|
806
|
+
# @return [Google::Apis::CloudbuildV1::GitFileSource]
|
807
|
+
attr_accessor :git_file_source
|
808
|
+
|
662
809
|
# GitHubEventsConfig describes the configuration of a trigger that creates a
|
663
810
|
# build whenever a GitHub event is received.
|
664
811
|
# Corresponds to the JSON property `github`
|
@@ -711,9 +858,9 @@ module Google
|
|
711
858
|
# @return [String]
|
712
859
|
attr_accessor :resource_name
|
713
860
|
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
861
|
+
# The service account used for all user-controlled operations including
|
862
|
+
# UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no
|
863
|
+
# service account is set, then the standard Cloud Build service account ([
|
717
864
|
# PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `
|
718
865
|
# projects/`PROJECT_ID`/serviceAccounts/`ACCOUNT_ID_OR_EMAIL``
|
719
866
|
# Corresponds to the JSON property `serviceAccount`
|
@@ -753,6 +900,7 @@ module Google
|
|
753
900
|
|
754
901
|
# Update properties of this object
|
755
902
|
def update!(**args)
|
903
|
+
@approval_config = args[:approval_config] if args.key?(:approval_config)
|
756
904
|
@autodetect = args[:autodetect] if args.key?(:autodetect)
|
757
905
|
@build = args[:build] if args.key?(:build)
|
758
906
|
@create_time = args[:create_time] if args.key?(:create_time)
|
@@ -760,6 +908,7 @@ module Google
|
|
760
908
|
@disabled = args[:disabled] if args.key?(:disabled)
|
761
909
|
@filename = args[:filename] if args.key?(:filename)
|
762
910
|
@filter = args[:filter] if args.key?(:filter)
|
911
|
+
@git_file_source = args[:git_file_source] if args.key?(:git_file_source)
|
763
912
|
@github = args[:github] if args.key?(:github)
|
764
913
|
@id = args[:id] if args.key?(:id)
|
765
914
|
@ignored_files = args[:ignored_files] if args.key?(:ignored_files)
|
@@ -1043,6 +1192,49 @@ module Google
|
|
1043
1192
|
end
|
1044
1193
|
end
|
1045
1194
|
|
1195
|
+
# GitFileSource describes a file within a (possibly remote) code repository.
|
1196
|
+
class GitFileSource
|
1197
|
+
include Google::Apis::Core::Hashable
|
1198
|
+
|
1199
|
+
# The path of the file, with the repo root as the root of the path.
|
1200
|
+
# Corresponds to the JSON property `path`
|
1201
|
+
# @return [String]
|
1202
|
+
attr_accessor :path
|
1203
|
+
|
1204
|
+
# See RepoType above.
|
1205
|
+
# Corresponds to the JSON property `repoType`
|
1206
|
+
# @return [String]
|
1207
|
+
attr_accessor :repo_type
|
1208
|
+
|
1209
|
+
# The branch, tag, arbitrary ref, or SHA version of the repo to use when
|
1210
|
+
# resolving the filename (optional). This field respects the same syntax/
|
1211
|
+
# resolution as described here: https://git-scm.com/docs/gitrevisions If
|
1212
|
+
# unspecified, the revision from which the trigger invocation originated is
|
1213
|
+
# assumed to be the revision from which to read the specified path.
|
1214
|
+
# Corresponds to the JSON property `revision`
|
1215
|
+
# @return [String]
|
1216
|
+
attr_accessor :revision
|
1217
|
+
|
1218
|
+
# The URI of the repo (optional). If unspecified, the repo from which the
|
1219
|
+
# trigger invocation originated is assumed to be the repo from which to read the
|
1220
|
+
# specified path.
|
1221
|
+
# Corresponds to the JSON property `uri`
|
1222
|
+
# @return [String]
|
1223
|
+
attr_accessor :uri
|
1224
|
+
|
1225
|
+
def initialize(**args)
|
1226
|
+
update!(**args)
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# Update properties of this object
|
1230
|
+
def update!(**args)
|
1231
|
+
@path = args[:path] if args.key?(:path)
|
1232
|
+
@repo_type = args[:repo_type] if args.key?(:repo_type)
|
1233
|
+
@revision = args[:revision] if args.key?(:revision)
|
1234
|
+
@uri = args[:uri] if args.key?(:uri)
|
1235
|
+
end
|
1236
|
+
end
|
1237
|
+
|
1046
1238
|
# GitHubEnterpriseConfig represents a configuration for a GitHub Enterprise
|
1047
1239
|
# server.
|
1048
1240
|
class GitHubEnterpriseConfig
|
@@ -1070,7 +1262,7 @@ module Google
|
|
1070
1262
|
attr_accessor :host_url
|
1071
1263
|
|
1072
1264
|
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
1073
|
-
# projects/`$project_id`/
|
1265
|
+
# projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
1074
1266
|
# Corresponds to the JSON property `name`
|
1075
1267
|
# @return [String]
|
1076
1268
|
attr_accessor :name
|
@@ -1191,7 +1383,7 @@ module Google
|
|
1191
1383
|
|
1192
1384
|
# Optional. The resource name of the github enterprise config that should be
|
1193
1385
|
# applied to this installation. For example: "projects/`$project_id`/
|
1194
|
-
#
|
1386
|
+
# githubEnterpriseConfigs/`$config_id`"
|
1195
1387
|
# Corresponds to the JSON property `enterpriseConfigResourceName`
|
1196
1388
|
# @return [String]
|
1197
1389
|
attr_accessor :enterprise_config_resource_name
|
@@ -1842,7 +2034,7 @@ module Google
|
|
1842
2034
|
attr_accessor :api_version
|
1843
2035
|
|
1844
2036
|
# Output only. Identifies whether the user has requested cancellation of the
|
1845
|
-
# operation. Operations that have
|
2037
|
+
# operation. Operations that have been cancelled successfully have Operation.
|
1846
2038
|
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1847
2039
|
# CANCELLED`.
|
1848
2040
|
# Corresponds to the JSON property `cancelRequested`
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudbuildV1
|
18
18
|
# Version of the google-apis-cloudbuild_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210813"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,24 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudbuildV1
|
24
24
|
|
25
|
+
class ApprovalConfig
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ApprovalResult
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ApproveBuildRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
25
43
|
class ArtifactObjects
|
26
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
45
|
|
@@ -46,6 +64,12 @@ module Google
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class BuildApproval
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class BuildOperationMetadata
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
@@ -130,6 +154,12 @@ module Google
|
|
130
154
|
include Google::Apis::Core::JsonObjectSupport
|
131
155
|
end
|
132
156
|
|
157
|
+
class GitFileSource
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
133
163
|
class GitHubEnterpriseConfig
|
134
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
165
|
|
@@ -436,6 +466,32 @@ module Google
|
|
436
466
|
include Google::Apis::Core::JsonObjectSupport
|
437
467
|
end
|
438
468
|
|
469
|
+
class ApprovalConfig
|
470
|
+
# @private
|
471
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
472
|
+
property :approval_required, as: 'approvalRequired'
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
class ApprovalResult
|
477
|
+
# @private
|
478
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
479
|
+
property :approval_time, as: 'approvalTime'
|
480
|
+
property :approver_account, as: 'approverAccount'
|
481
|
+
property :comment, as: 'comment'
|
482
|
+
property :decision, as: 'decision'
|
483
|
+
property :url, as: 'url'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
class ApproveBuildRequest
|
488
|
+
# @private
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
490
|
+
property :approval_result, as: 'approvalResult', class: Google::Apis::CloudbuildV1::ApprovalResult, decorator: Google::Apis::CloudbuildV1::ApprovalResult::Representation
|
491
|
+
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
439
495
|
class ArtifactObjects
|
440
496
|
# @private
|
441
497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -467,6 +523,8 @@ module Google
|
|
467
523
|
class Build
|
468
524
|
# @private
|
469
525
|
class Representation < Google::Apis::Core::JsonRepresentation
|
526
|
+
property :approval, as: 'approval', class: Google::Apis::CloudbuildV1::BuildApproval, decorator: Google::Apis::CloudbuildV1::BuildApproval::Representation
|
527
|
+
|
470
528
|
property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1::Artifacts, decorator: Google::Apis::CloudbuildV1::Artifacts::Representation
|
471
529
|
|
472
530
|
property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1::Secrets, decorator: Google::Apis::CloudbuildV1::Secrets::Representation
|
@@ -509,6 +567,17 @@ module Google
|
|
509
567
|
end
|
510
568
|
end
|
511
569
|
|
570
|
+
class BuildApproval
|
571
|
+
# @private
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
573
|
+
property :config, as: 'config', class: Google::Apis::CloudbuildV1::ApprovalConfig, decorator: Google::Apis::CloudbuildV1::ApprovalConfig::Representation
|
574
|
+
|
575
|
+
property :result, as: 'result', class: Google::Apis::CloudbuildV1::ApprovalResult, decorator: Google::Apis::CloudbuildV1::ApprovalResult::Representation
|
576
|
+
|
577
|
+
property :state, as: 'state'
|
578
|
+
end
|
579
|
+
end
|
580
|
+
|
512
581
|
class BuildOperationMetadata
|
513
582
|
# @private
|
514
583
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -549,6 +618,7 @@ module Google
|
|
549
618
|
property :name, as: 'name'
|
550
619
|
property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
|
551
620
|
|
621
|
+
property :script, as: 'script'
|
552
622
|
collection :secret_env, as: 'secretEnv'
|
553
623
|
property :status, as: 'status'
|
554
624
|
property :timeout, as: 'timeout'
|
@@ -563,6 +633,8 @@ module Google
|
|
563
633
|
class BuildTrigger
|
564
634
|
# @private
|
565
635
|
class Representation < Google::Apis::Core::JsonRepresentation
|
636
|
+
property :approval_config, as: 'approvalConfig', class: Google::Apis::CloudbuildV1::ApprovalConfig, decorator: Google::Apis::CloudbuildV1::ApprovalConfig::Representation
|
637
|
+
|
566
638
|
property :autodetect, as: 'autodetect'
|
567
639
|
property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
|
568
640
|
|
@@ -571,6 +643,8 @@ module Google
|
|
571
643
|
property :disabled, as: 'disabled'
|
572
644
|
property :filename, as: 'filename'
|
573
645
|
property :filter, as: 'filter'
|
646
|
+
property :git_file_source, as: 'gitFileSource', class: Google::Apis::CloudbuildV1::GitFileSource, decorator: Google::Apis::CloudbuildV1::GitFileSource::Representation
|
647
|
+
|
574
648
|
property :github, as: 'github', class: Google::Apis::CloudbuildV1::GitHubEventsConfig, decorator: Google::Apis::CloudbuildV1::GitHubEventsConfig::Representation
|
575
649
|
|
576
650
|
property :id, as: 'id'
|
@@ -675,6 +749,16 @@ module Google
|
|
675
749
|
end
|
676
750
|
end
|
677
751
|
|
752
|
+
class GitFileSource
|
753
|
+
# @private
|
754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
755
|
+
property :path, as: 'path'
|
756
|
+
property :repo_type, as: 'repoType'
|
757
|
+
property :revision, as: 'revision'
|
758
|
+
property :uri, as: 'uri'
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
678
762
|
class GitHubEnterpriseConfig
|
679
763
|
# @private
|
680
764
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -120,6 +120,42 @@ module Google
|
|
120
120
|
execute_or_queue_command(command, &block)
|
121
121
|
end
|
122
122
|
|
123
|
+
# Approves or rejects a pending build. If approved, the returned LRO will be
|
124
|
+
# analogous to the LRO returned from a CreateBuild call. If rejected, the
|
125
|
+
# returned LRO will be immediately done.
|
126
|
+
# @param [String] name
|
127
|
+
# Required. Name of the target build. For example: "projects/`$project_id`/
|
128
|
+
# builds/`$build_id`"
|
129
|
+
# @param [Google::Apis::CloudbuildV1::ApproveBuildRequest] approve_build_request_object
|
130
|
+
# @param [String] fields
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
132
|
+
# @param [String] quota_user
|
133
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
+
# @param [Google::Apis::RequestOptions] options
|
136
|
+
# Request-specific options
|
137
|
+
#
|
138
|
+
# @yield [result, err] Result & error if block supplied
|
139
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
140
|
+
# @yieldparam err [StandardError] error object if request failed
|
141
|
+
#
|
142
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
143
|
+
#
|
144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
+
def approve_project_build(name, approve_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
+
command = make_simple_command(:post, 'v1/{+name}:approve', options)
|
149
|
+
command.request_representation = Google::Apis::CloudbuildV1::ApproveBuildRequest::Representation
|
150
|
+
command.request_object = approve_build_request_object
|
151
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
152
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
153
|
+
command.params['name'] = name unless name.nil?
|
154
|
+
command.query['fields'] = fields unless fields.nil?
|
155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
+
execute_or_queue_command(command, &block)
|
157
|
+
end
|
158
|
+
|
123
159
|
# Cancels a build in progress.
|
124
160
|
# @param [String] project_id
|
125
161
|
# Required. ID of the project.
|
@@ -375,7 +411,7 @@ module Google
|
|
375
411
|
# This API is experimental.
|
376
412
|
# @param [String] name
|
377
413
|
# This field should contain the name of the enterprise config resource. For
|
378
|
-
# example: "projects/`$project_id`/
|
414
|
+
# example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
379
415
|
# @param [String] config_id
|
380
416
|
# Unique identifier of the `GitHubEnterpriseConfig`
|
381
417
|
# @param [String] project_id
|
@@ -412,7 +448,7 @@ module Google
|
|
412
448
|
# Retrieve a GitHubEnterpriseConfig. This API is experimental.
|
413
449
|
# @param [String] name
|
414
450
|
# This field should contain the name of the enterprise config resource. For
|
415
|
-
# example: "projects/`$project_id`/
|
451
|
+
# example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
416
452
|
# @param [String] config_id
|
417
453
|
# Unique identifier of the `GitHubEnterpriseConfig`
|
418
454
|
# @param [String] project_id
|
@@ -484,7 +520,7 @@ module Google
|
|
484
520
|
# This API is experimental.
|
485
521
|
# @param [String] name
|
486
522
|
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
487
|
-
# projects/`$project_id`/
|
523
|
+
# projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
488
524
|
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
489
525
|
# @param [String] update_mask
|
490
526
|
# Update mask for the resource. If this is set, the server will only update the
|
@@ -520,6 +556,42 @@ module Google
|
|
520
556
|
execute_or_queue_command(command, &block)
|
521
557
|
end
|
522
558
|
|
559
|
+
# Approves or rejects a pending build. If approved, the returned LRO will be
|
560
|
+
# analogous to the LRO returned from a CreateBuild call. If rejected, the
|
561
|
+
# returned LRO will be immediately done.
|
562
|
+
# @param [String] name
|
563
|
+
# Required. Name of the target build. For example: "projects/`$project_id`/
|
564
|
+
# builds/`$build_id`"
|
565
|
+
# @param [Google::Apis::CloudbuildV1::ApproveBuildRequest] approve_build_request_object
|
566
|
+
# @param [String] fields
|
567
|
+
# Selector specifying which fields to include in a partial response.
|
568
|
+
# @param [String] quota_user
|
569
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
570
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
571
|
+
# @param [Google::Apis::RequestOptions] options
|
572
|
+
# Request-specific options
|
573
|
+
#
|
574
|
+
# @yield [result, err] Result & error if block supplied
|
575
|
+
# @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
|
576
|
+
# @yieldparam err [StandardError] error object if request failed
|
577
|
+
#
|
578
|
+
# @return [Google::Apis::CloudbuildV1::Operation]
|
579
|
+
#
|
580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
583
|
+
def approve_project_location_build(name, approve_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
584
|
+
command = make_simple_command(:post, 'v1/{+name}:approve', options)
|
585
|
+
command.request_representation = Google::Apis::CloudbuildV1::ApproveBuildRequest::Representation
|
586
|
+
command.request_object = approve_build_request_object
|
587
|
+
command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
|
588
|
+
command.response_class = Google::Apis::CloudbuildV1::Operation
|
589
|
+
command.params['name'] = name unless name.nil?
|
590
|
+
command.query['fields'] = fields unless fields.nil?
|
591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
592
|
+
execute_or_queue_command(command, &block)
|
593
|
+
end
|
594
|
+
|
523
595
|
# Cancels a build in progress.
|
524
596
|
# @param [String] name
|
525
597
|
# The name of the `Build` to cancel. Format: `projects/`project`/locations/`
|
@@ -771,7 +843,7 @@ module Google
|
|
771
843
|
# This API is experimental.
|
772
844
|
# @param [String] name
|
773
845
|
# This field should contain the name of the enterprise config resource. For
|
774
|
-
# example: "projects/`$project_id`/
|
846
|
+
# example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
775
847
|
# @param [String] config_id
|
776
848
|
# Unique identifier of the `GitHubEnterpriseConfig`
|
777
849
|
# @param [String] project_id
|
@@ -808,7 +880,7 @@ module Google
|
|
808
880
|
# Retrieve a GitHubEnterpriseConfig. This API is experimental.
|
809
881
|
# @param [String] name
|
810
882
|
# This field should contain the name of the enterprise config resource. For
|
811
|
-
# example: "projects/`$project_id`/
|
883
|
+
# example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
812
884
|
# @param [String] config_id
|
813
885
|
# Unique identifier of the `GitHubEnterpriseConfig`
|
814
886
|
# @param [String] project_id
|
@@ -880,7 +952,7 @@ module Google
|
|
880
952
|
# This API is experimental.
|
881
953
|
# @param [String] name
|
882
954
|
# Optional. The full resource name for the GitHubEnterpriseConfig For example: "
|
883
|
-
# projects/`$project_id`/
|
955
|
+
# projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
|
884
956
|
# @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
|
885
957
|
# @param [String] update_mask
|
886
958
|
# Update mask for the resource. If this is set, the server will only update the
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudbuild_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.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: 2021-
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|