google-apis-cloudbuild_v1 0.13.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb0499e20a9d222250ff6b33797fad6d904df236510c1d85b9a2ced3a82aca4f
4
- data.tar.gz: 64d58b7a1a51c2889686223d05e07721839d106e60187244dafe7a40a29b7186
3
+ metadata.gz: 17c3c245000ca3278a65222af6c7ad617fd182650b12367bc70c26d4d1902504
4
+ data.tar.gz: df360ab7bac221588a5c8b25db6925de37a1bcb6776e9ca912369f809f82898a
5
5
  SHA512:
6
- metadata.gz: 831b78709a5b4f6667008f9c0f68e4d987c9c11163b549b461b12e59d0d7c569a0957f353b4cba6c7cf7a7bd22a14a92bdfc38731f7d6f8eeab66a73c4d71979
7
- data.tar.gz: 9dfe24b2578c9d637cf3a77da27e442a3eaa56ec7322ec1eeeb6244f4e49896ad4116355a89d02ee229785b867ee504f384e1046af8d66e4c410074756c73d5d
6
+ metadata.gz: 7e32bc1070cd2b9b696d609cfb22f6697e5655328a9eff2da0d0bf1d6ccf357451215081cbd07279c29f89a5967359ff09977348e5ff34c895f01029ae0285e9
7
+ data.tar.gz: a6e0f982efed3ba9dffa1ba1ac421022fc17da1114e66946738bbecb1deda873394d1a12698330f649b57f275505a4adf5afe50d4150921dcba2e2e21133d898
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudbuild_v1
2
2
 
3
+ ### v0.17.0 (2021-10-06)
4
+
5
+ * Regenerated from discovery document revision 20210923
6
+
7
+ ### v0.16.0 (2021-09-08)
8
+
9
+ * Regenerated from discovery document revision 20210903
10
+
11
+ ### v0.15.0 (2021-09-01)
12
+
13
+ * Regenerated from discovery document revision 20210813
14
+
15
+ ### v0.14.0 (2021-08-03)
16
+
17
+ * Regenerated from discovery document revision 20210730
18
+
3
19
  ### v0.13.0 (2021-07-27)
4
20
 
5
21
  * Regenerated from discovery document revision 20210723
@@ -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. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
124
- # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
125
- # name specified by RepoSource. - $TAG_NAME: the tag name specified by
126
- # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
127
- # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
128
- # characters of $REVISION_ID or $COMMIT_SHA.
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. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
346
- # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
347
- # name specified by RepoSource. - $TAG_NAME: the tag name specified by
348
- # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
349
- # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
350
- # characters of $REVISION_ID or $COMMIT_SHA.
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. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
626
- # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
627
- # name specified by RepoSource. - $TAG_NAME: the tag name specified by
628
- # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
629
- # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
630
- # characters of $REVISION_ID or $COMMIT_SHA.
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
- # Optional. A Common Expression Language string.
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
- # Optional. The service account used for all user-controlled operations
715
- # including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild.
716
- # If no service account is set, then the standard Cloud Build service account ([
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`/githubEnterpriseConfig/`$config_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
- # githubEnterpriseConfig/`$config_id`"
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 successfully been cancelled have Operation.
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.13.0"
19
+ GEM_VERSION = "0.17.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 = "20210723"
25
+ REVISION = "20210923"
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.
@@ -334,11 +370,16 @@ module Google
334
370
  end
335
371
 
336
372
  # Create an association between a GCP project and a GitHub Enterprise server.
337
- # This API is experimental.
338
373
  # @param [String] parent
339
374
  # Name of the parent project. For example: projects/`$project_number` or
340
375
  # projects/`$project_id`
341
376
  # @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
377
+ # @param [String] ghe_config_id
378
+ # Optional. The ID to use for the GithubEnterpriseConfig, which will become the
379
+ # final component of the GithubEnterpriseConfig’s resource name. ghe_config_id
380
+ # must meet the following requirements: + They must contain only alphanumeric
381
+ # characters and dashes. + They can be 1-64 characters long. + They must begin
382
+ # and end with an alphanumeric character
342
383
  # @param [String] project_id
343
384
  # ID of the project.
344
385
  # @param [String] fields
@@ -358,13 +399,14 @@ module Google
358
399
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
400
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
401
  # @raise [Google::Apis::AuthorizationError] Authorization is required
361
- def create_project_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
402
+ def create_project_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, ghe_config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
362
403
  command = make_simple_command(:post, 'v1/{+parent}/githubEnterpriseConfigs', options)
363
404
  command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
364
405
  command.request_object = git_hub_enterprise_config_object
365
406
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
366
407
  command.response_class = Google::Apis::CloudbuildV1::Operation
367
408
  command.params['parent'] = parent unless parent.nil?
409
+ command.query['gheConfigId'] = ghe_config_id unless ghe_config_id.nil?
368
410
  command.query['projectId'] = project_id unless project_id.nil?
369
411
  command.query['fields'] = fields unless fields.nil?
370
412
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -372,10 +414,9 @@ module Google
372
414
  end
373
415
 
374
416
  # Delete an association between a GCP project and a GitHub Enterprise server.
375
- # This API is experimental.
376
417
  # @param [String] name
377
418
  # This field should contain the name of the enterprise config resource. For
378
- # example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
419
+ # example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
379
420
  # @param [String] config_id
380
421
  # Unique identifier of the `GitHubEnterpriseConfig`
381
422
  # @param [String] project_id
@@ -409,10 +450,10 @@ module Google
409
450
  execute_or_queue_command(command, &block)
410
451
  end
411
452
 
412
- # Retrieve a GitHubEnterpriseConfig. This API is experimental.
453
+ # Retrieve a GitHubEnterpriseConfig.
413
454
  # @param [String] name
414
455
  # This field should contain the name of the enterprise config resource. For
415
- # example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
456
+ # example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
416
457
  # @param [String] config_id
417
458
  # Unique identifier of the `GitHubEnterpriseConfig`
418
459
  # @param [String] project_id
@@ -446,7 +487,7 @@ module Google
446
487
  execute_or_queue_command(command, &block)
447
488
  end
448
489
 
449
- # List all GitHubEnterpriseConfigs for a given project. This API is experimental.
490
+ # List all GitHubEnterpriseConfigs for a given project.
450
491
  # @param [String] parent
451
492
  # Name of the parent project. For example: projects/`$project_number` or
452
493
  # projects/`$project_id`
@@ -481,10 +522,9 @@ module Google
481
522
  end
482
523
 
483
524
  # Update an association between a GCP project and a GitHub Enterprise server.
484
- # This API is experimental.
485
525
  # @param [String] name
486
526
  # Optional. The full resource name for the GitHubEnterpriseConfig For example: "
487
- # projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
527
+ # projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
488
528
  # @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
489
529
  # @param [String] update_mask
490
530
  # Update mask for the resource. If this is set, the server will only update the
@@ -520,6 +560,42 @@ module Google
520
560
  execute_or_queue_command(command, &block)
521
561
  end
522
562
 
563
+ # Approves or rejects a pending build. If approved, the returned LRO will be
564
+ # analogous to the LRO returned from a CreateBuild call. If rejected, the
565
+ # returned LRO will be immediately done.
566
+ # @param [String] name
567
+ # Required. Name of the target build. For example: "projects/`$project_id`/
568
+ # builds/`$build_id`"
569
+ # @param [Google::Apis::CloudbuildV1::ApproveBuildRequest] approve_build_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::CloudbuildV1::Operation]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def approve_project_location_build(name, approve_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1/{+name}:approve', options)
589
+ command.request_representation = Google::Apis::CloudbuildV1::ApproveBuildRequest::Representation
590
+ command.request_object = approve_build_request_object
591
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
592
+ command.response_class = Google::Apis::CloudbuildV1::Operation
593
+ command.params['name'] = name unless name.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
523
599
  # Cancels a build in progress.
524
600
  # @param [String] name
525
601
  # The name of the `Build` to cancel. Format: `projects/`project`/locations/`
@@ -730,11 +806,16 @@ module Google
730
806
  end
731
807
 
732
808
  # Create an association between a GCP project and a GitHub Enterprise server.
733
- # This API is experimental.
734
809
  # @param [String] parent
735
810
  # Name of the parent project. For example: projects/`$project_number` or
736
811
  # projects/`$project_id`
737
812
  # @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
813
+ # @param [String] ghe_config_id
814
+ # Optional. The ID to use for the GithubEnterpriseConfig, which will become the
815
+ # final component of the GithubEnterpriseConfig’s resource name. ghe_config_id
816
+ # must meet the following requirements: + They must contain only alphanumeric
817
+ # characters and dashes. + They can be 1-64 characters long. + They must begin
818
+ # and end with an alphanumeric character
738
819
  # @param [String] project_id
739
820
  # ID of the project.
740
821
  # @param [String] fields
@@ -754,13 +835,14 @@ module Google
754
835
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
755
836
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
756
837
  # @raise [Google::Apis::AuthorizationError] Authorization is required
757
- def create_project_location_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
838
+ def create_project_location_github_enterprise_config(parent, git_hub_enterprise_config_object = nil, ghe_config_id: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
758
839
  command = make_simple_command(:post, 'v1/{+parent}/githubEnterpriseConfigs', options)
759
840
  command.request_representation = Google::Apis::CloudbuildV1::GitHubEnterpriseConfig::Representation
760
841
  command.request_object = git_hub_enterprise_config_object
761
842
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
762
843
  command.response_class = Google::Apis::CloudbuildV1::Operation
763
844
  command.params['parent'] = parent unless parent.nil?
845
+ command.query['gheConfigId'] = ghe_config_id unless ghe_config_id.nil?
764
846
  command.query['projectId'] = project_id unless project_id.nil?
765
847
  command.query['fields'] = fields unless fields.nil?
766
848
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -768,10 +850,9 @@ module Google
768
850
  end
769
851
 
770
852
  # Delete an association between a GCP project and a GitHub Enterprise server.
771
- # This API is experimental.
772
853
  # @param [String] name
773
854
  # This field should contain the name of the enterprise config resource. For
774
- # example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
855
+ # example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
775
856
  # @param [String] config_id
776
857
  # Unique identifier of the `GitHubEnterpriseConfig`
777
858
  # @param [String] project_id
@@ -805,10 +886,10 @@ module Google
805
886
  execute_or_queue_command(command, &block)
806
887
  end
807
888
 
808
- # Retrieve a GitHubEnterpriseConfig. This API is experimental.
889
+ # Retrieve a GitHubEnterpriseConfig.
809
890
  # @param [String] name
810
891
  # This field should contain the name of the enterprise config resource. For
811
- # example: "projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
892
+ # example: "projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
812
893
  # @param [String] config_id
813
894
  # Unique identifier of the `GitHubEnterpriseConfig`
814
895
  # @param [String] project_id
@@ -842,7 +923,7 @@ module Google
842
923
  execute_or_queue_command(command, &block)
843
924
  end
844
925
 
845
- # List all GitHubEnterpriseConfigs for a given project. This API is experimental.
926
+ # List all GitHubEnterpriseConfigs for a given project.
846
927
  # @param [String] parent
847
928
  # Name of the parent project. For example: projects/`$project_number` or
848
929
  # projects/`$project_id`
@@ -877,10 +958,9 @@ module Google
877
958
  end
878
959
 
879
960
  # Update an association between a GCP project and a GitHub Enterprise server.
880
- # This API is experimental.
881
961
  # @param [String] name
882
962
  # Optional. The full resource name for the GitHubEnterpriseConfig For example: "
883
- # projects/`$project_id`/githubEnterpriseConfig/`$config_id`"
963
+ # projects/`$project_id`/githubEnterpriseConfigs/`$config_id`"
884
964
  # @param [Google::Apis::CloudbuildV1::GitHubEnterpriseConfig] git_hub_enterprise_config_object
885
965
  # @param [String] update_mask
886
966
  # Update mask for the resource. If this is set, the server will only update the
@@ -1733,6 +1813,9 @@ module Google
1733
1813
 
1734
1814
  # ReceiveWebhook is called when the API receives a GitHub webhook.
1735
1815
  # @param [Google::Apis::CloudbuildV1::HttpBody] http_body_object
1816
+ # @param [String] webhook_key
1817
+ # For GitHub Enterprise webhooks, this key is used to associate the webhook
1818
+ # request with the GitHubEnterpriseConfig to use for validation.
1736
1819
  # @param [String] fields
1737
1820
  # Selector specifying which fields to include in a partial response.
1738
1821
  # @param [String] quota_user
@@ -1750,12 +1833,13 @@ module Google
1750
1833
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1751
1834
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1752
1835
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1753
- def webhook(http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1836
+ def webhook(http_body_object = nil, webhook_key: nil, fields: nil, quota_user: nil, options: nil, &block)
1754
1837
  command = make_simple_command(:post, 'v1/webhook', options)
1755
1838
  command.request_representation = Google::Apis::CloudbuildV1::HttpBody::Representation
1756
1839
  command.request_object = http_body_object
1757
1840
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
1758
1841
  command.response_class = Google::Apis::CloudbuildV1::Empty
1842
+ command.query['webhookKey'] = webhook_key unless webhook_key.nil?
1759
1843
  command.query['fields'] = fields unless fields.nil?
1760
1844
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1761
1845
  execute_or_queue_command(command, &block)
@@ -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 Platform data
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.13.0
4
+ version: 0.17.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-08-02 00:00:00.000000000 Z
11
+ date: 2021-10-11 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.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1/v0.17.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: []