google-apis-cloudbuild_v1alpha2 0.11.0 → 0.12.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: e81b3fbc91b9a4390c9f30b16fe4373293cc5af1dbc315c3f87f7993c8da0293
4
- data.tar.gz: e2cc1f1a232f1d265263063e3ea1554dbc5116109514217192cb690b08265c1b
3
+ metadata.gz: 910ee5253463f993e6505980f5316ed1d6d10c438b2a2f97e6188d2a31a6a6ab
4
+ data.tar.gz: bf660d0283a837b1e9952b03b8c4bf215bbc8157f6dd3feb557cc33419fb7e49
5
5
  SHA512:
6
- metadata.gz: d219364f16dbf032683a52f2dbe7502f04ae9792c506f899c2c3b3fffa63382c1879ef1c844465332f446625e9b51b7a783c74d28034f4a89e866a89196a4c3f
7
- data.tar.gz: 733e2014580838d9134fa5bc6c79392b356c09ea452ec629f34f1c35f49301bc15fe00e954b59ddfb8f9723805384ec195d0ea579e8a1ada428c43153c13a766
6
+ metadata.gz: eb787e1cea12960804f53b5d50eeddf9bdef6361f450aa59c82e0e6b203866fb5e42c4929209689379537e8fa71bceb6912ae4c3ded64cd18e5e82a68e8bd29b
7
+ data.tar.gz: c537115701a9e5e1642824feb39c45f438c818727322e3a9154905ec5e83cb44c52d460796a6cbd03f91e10fc2116988da6370cf177afee2c58b0c5c3fabaf66
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudbuild_v1alpha2
2
2
 
3
+ ### v0.12.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210813
6
+
3
7
  ### v0.11.0 (2021-07-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20210723
@@ -22,6 +22,75 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1alpha2
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
+
25
94
  # Files in the workspace to upload to Cloud Storage upon successful completion
26
95
  # of all build steps.
27
96
  class ArtifactObjects
@@ -120,15 +189,21 @@ module Google
120
189
  # run on the source), and where to store the built artifacts. Fields can include
121
190
  # the following variables, which will be expanded when the build is created: - $
122
191
  # 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.
192
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
193
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
194
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
195
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
196
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
197
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
198
+ # COMMIT_SHA.
129
199
  class Build
130
200
  include Google::Apis::Core::Hashable
131
201
 
202
+ # BuildApproval describes a build's approval configuration, state, and result.
203
+ # Corresponds to the JSON property `approval`
204
+ # @return [Google::Apis::CloudbuildV1alpha2::BuildApproval]
205
+ attr_accessor :approval
206
+
132
207
  # Artifacts produced by a build that should be uploaded upon successful
133
208
  # completion of all build steps.
134
209
  # Corresponds to the JSON property `artifacts`
@@ -302,6 +377,7 @@ module Google
302
377
 
303
378
  # Update properties of this object
304
379
  def update!(**args)
380
+ @approval = args[:approval] if args.key?(:approval)
305
381
  @artifacts = args[:artifacts] if args.key?(:artifacts)
306
382
  @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
307
383
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@@ -333,6 +409,38 @@ module Google
333
409
  end
334
410
  end
335
411
 
412
+ # BuildApproval describes a build's approval configuration, state, and result.
413
+ class BuildApproval
414
+ include Google::Apis::Core::Hashable
415
+
416
+ # ApprovalConfig describes configuration for manual approval of a build.
417
+ # Corresponds to the JSON property `config`
418
+ # @return [Google::Apis::CloudbuildV1alpha2::ApprovalConfig]
419
+ attr_accessor :config
420
+
421
+ # ApprovalResult describes the decision and associated metadata of a manual
422
+ # approval of a build.
423
+ # Corresponds to the JSON property `result`
424
+ # @return [Google::Apis::CloudbuildV1alpha2::ApprovalResult]
425
+ attr_accessor :result
426
+
427
+ # Output only. The state of this build's approval.
428
+ # Corresponds to the JSON property `state`
429
+ # @return [String]
430
+ attr_accessor :state
431
+
432
+ def initialize(**args)
433
+ update!(**args)
434
+ end
435
+
436
+ # Update properties of this object
437
+ def update!(**args)
438
+ @config = args[:config] if args.key?(:config)
439
+ @result = args[:result] if args.key?(:result)
440
+ @state = args[:state] if args.key?(:state)
441
+ end
442
+ end
443
+
336
444
  # Metadata for build operations.
337
445
  class BuildOperationMetadata
338
446
  include Google::Apis::Core::Hashable
@@ -342,12 +450,13 @@ module Google
342
450
  # run on the source), and where to store the built artifacts. Fields can include
343
451
  # the following variables, which will be expanded when the build is created: - $
344
452
  # 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.
453
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
454
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
455
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
456
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
457
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
458
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
459
+ # COMMIT_SHA.
351
460
  # Corresponds to the JSON property `build`
352
461
  # @return [Google::Apis::CloudbuildV1alpha2::Build]
353
462
  attr_accessor :build
@@ -540,6 +649,12 @@ module Google
540
649
  # @return [Google::Apis::CloudbuildV1alpha2::TimeSpan]
541
650
  attr_accessor :pull_timing
542
651
 
652
+ # A shell script to be executed in the step. When script is provided, the user
653
+ # cannot specify the entrypoint or args.
654
+ # Corresponds to the JSON property `script`
655
+ # @return [String]
656
+ attr_accessor :script
657
+
543
658
  # A list of environment variables which are encrypted using a Cloud Key
544
659
  # Management Service crypto key. These values must be specified in the build's `
545
660
  # Secret`.
@@ -596,6 +711,7 @@ module Google
596
711
  @id = args[:id] if args.key?(:id)
597
712
  @name = args[:name] if args.key?(:name)
598
713
  @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
714
+ @script = args[:script] if args.key?(:script)
599
715
  @secret_env = args[:secret_env] if args.key?(:secret_env)
600
716
  @status = args[:status] if args.key?(:status)
601
717
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -1280,7 +1396,7 @@ module Google
1280
1396
  attr_accessor :api_version
1281
1397
 
1282
1398
  # Output only. Identifies whether the user has requested cancellation of the
1283
- # operation. Operations that have successfully been cancelled have Operation.
1399
+ # operation. Operations that have been cancelled successfully have Operation.
1284
1400
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1285
1401
  # CANCELLED`.
1286
1402
  # Corresponds to the JSON property `cancelRequested`
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudbuildV1alpha2
18
18
  # Version of the google-apis-cloudbuild_v1alpha2 gem
19
- GEM_VERSION = "0.11.0"
19
+ GEM_VERSION = "0.12.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 = "20210813"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1alpha2
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
+
25
37
  class ArtifactObjects
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -46,6 +58,12 @@ module Google
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class BuildApproval
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class BuildOperationMetadata
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -328,6 +346,24 @@ module Google
328
346
  include Google::Apis::Core::JsonObjectSupport
329
347
  end
330
348
 
349
+ class ApprovalConfig
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :approval_required, as: 'approvalRequired'
353
+ end
354
+ end
355
+
356
+ class ApprovalResult
357
+ # @private
358
+ class Representation < Google::Apis::Core::JsonRepresentation
359
+ property :approval_time, as: 'approvalTime'
360
+ property :approver_account, as: 'approverAccount'
361
+ property :comment, as: 'comment'
362
+ property :decision, as: 'decision'
363
+ property :url, as: 'url'
364
+ end
365
+ end
366
+
331
367
  class ArtifactObjects
332
368
  # @private
333
369
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -359,6 +395,8 @@ module Google
359
395
  class Build
360
396
  # @private
361
397
  class Representation < Google::Apis::Core::JsonRepresentation
398
+ property :approval, as: 'approval', class: Google::Apis::CloudbuildV1alpha2::BuildApproval, decorator: Google::Apis::CloudbuildV1alpha2::BuildApproval::Representation
399
+
362
400
  property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1alpha2::Artifacts, decorator: Google::Apis::CloudbuildV1alpha2::Artifacts::Representation
363
401
 
364
402
  property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1alpha2::Secrets, decorator: Google::Apis::CloudbuildV1alpha2::Secrets::Representation
@@ -401,6 +439,17 @@ module Google
401
439
  end
402
440
  end
403
441
 
442
+ class BuildApproval
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ property :config, as: 'config', class: Google::Apis::CloudbuildV1alpha2::ApprovalConfig, decorator: Google::Apis::CloudbuildV1alpha2::ApprovalConfig::Representation
446
+
447
+ property :result, as: 'result', class: Google::Apis::CloudbuildV1alpha2::ApprovalResult, decorator: Google::Apis::CloudbuildV1alpha2::ApprovalResult::Representation
448
+
449
+ property :state, as: 'state'
450
+ end
451
+ end
452
+
404
453
  class BuildOperationMetadata
405
454
  # @private
406
455
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -441,6 +490,7 @@ module Google
441
490
  property :name, as: 'name'
442
491
  property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1alpha2::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha2::TimeSpan::Representation
443
492
 
493
+ property :script, as: 'script'
444
494
  collection :secret_env, as: 'secretEnv'
445
495
  property :status, as: 'status'
446
496
  property :timeout, as: 'timeout'
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1alpha2'
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_v1alpha2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.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-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_v1alpha2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha2/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha2/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha2
63
63
  post_install_message:
64
64
  rdoc_options: []