google-apis-cloudbuild_v1alpha1 0.11.0 → 0.15.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: 6e3e3ab46918e94aae22e2d3b371331d5af71ced9be41d4a573ab5cac9f5098c
4
- data.tar.gz: 91ee25900efec90e7cd6dff771c71b3f7c32c81d80c457b6b52b63b0d3a24f48
3
+ metadata.gz: 493a8c561d9b7f29047c477cdbfa598b13290500f84e4006ca2d2e351ac0a5bd
4
+ data.tar.gz: 93df7eff1ef63c3f3933f4104617d0e9d36e0721ca2796096bc5120f18c2711d
5
5
  SHA512:
6
- metadata.gz: 74dade062550c3e2caf4d550de37fda3d34376a51bcbf12d1d32ff71a589480f989f7b972344d04492666d1d6e7a36818b5d5d5040aff1a4ad8a3289ae96f804
7
- data.tar.gz: 54548620ddc4f68e7fc5a34e3a8a2f0a73f9d9d13c9dc29046ee04c6e95a71ade09de84931b783fd3cf33e6b663e6276a1f0be31edb3a50561f49798b802f73a
6
+ metadata.gz: 28115b7b33c53382b1e2af135e444479e49c4ffb68d5e081521d37e7dafe4c464ed703f25f915d5248880aecd0a565d027932eeb7f15c84701547e712a7bb114
7
+ data.tar.gz: c39bce2547d411dec06d546c6cba34c312e794ca5254cca01366491d1600e354882b5e77011745330230949f86cb9aebe29a2991046e225a8559d17943d545be
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-cloudbuild_v1alpha1
2
2
 
3
+ ### v0.15.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2021-11-18)
8
+
9
+ * Regenerated from discovery document revision 20211115
10
+
11
+ ### v0.13.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.12.0 (2021-09-01)
16
+
17
+ * Regenerated from discovery document revision 20210813
18
+
3
19
  ### v0.11.0 (2021-07-27)
4
20
 
5
21
  * Regenerated from discovery document revision 20210723
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/cloudbuild_v1alpha1"
51
51
  client = Google::Apis::CloudbuildV1alpha1::CloudBuildService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Cloudbuild service in particular.)
67
67
 
@@ -22,6 +22,75 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1alpha1
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
@@ -115,20 +184,59 @@ module Google
115
184
  end
116
185
  end
117
186
 
187
+ # Metadata for `BatchCreateBitbucketServerConnectedRepositories` operation.
188
+ class BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # Time the operation was completed.
192
+ # Corresponds to the JSON property `completeTime`
193
+ # @return [String]
194
+ attr_accessor :complete_time
195
+
196
+ # The name of the `BitbucketServerConfig` that added connected repositories.
197
+ # Format: `projects/`project`/locations/`location`/bitbucketServerConfigs/`
198
+ # config``
199
+ # Corresponds to the JSON property `config`
200
+ # @return [String]
201
+ attr_accessor :config
202
+
203
+ # Time the operation was created.
204
+ # Corresponds to the JSON property `createTime`
205
+ # @return [String]
206
+ attr_accessor :create_time
207
+
208
+ def initialize(**args)
209
+ update!(**args)
210
+ end
211
+
212
+ # Update properties of this object
213
+ def update!(**args)
214
+ @complete_time = args[:complete_time] if args.key?(:complete_time)
215
+ @config = args[:config] if args.key?(:config)
216
+ @create_time = args[:create_time] if args.key?(:create_time)
217
+ end
218
+ end
219
+
118
220
  # A build resource in the Cloud Build API. At a high level, a `Build` describes
119
221
  # where to find source code, how to build it (for example, the builder image to
120
222
  # run on the source), and where to store the built artifacts. Fields can include
121
223
  # the following variables, which will be expanded when the build is created: - $
122
224
  # 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.
225
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
226
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
227
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
228
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
229
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
230
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
231
+ # COMMIT_SHA.
129
232
  class Build
130
233
  include Google::Apis::Core::Hashable
131
234
 
235
+ # BuildApproval describes a build's approval configuration, state, and result.
236
+ # Corresponds to the JSON property `approval`
237
+ # @return [Google::Apis::CloudbuildV1alpha1::BuildApproval]
238
+ attr_accessor :approval
239
+
132
240
  # Artifacts produced by a build that should be uploaded upon successful
133
241
  # completion of all build steps.
134
242
  # Corresponds to the JSON property `artifacts`
@@ -302,6 +410,7 @@ module Google
302
410
 
303
411
  # Update properties of this object
304
412
  def update!(**args)
413
+ @approval = args[:approval] if args.key?(:approval)
305
414
  @artifacts = args[:artifacts] if args.key?(:artifacts)
306
415
  @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
307
416
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@@ -333,6 +442,38 @@ module Google
333
442
  end
334
443
  end
335
444
 
445
+ # BuildApproval describes a build's approval configuration, state, and result.
446
+ class BuildApproval
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # ApprovalConfig describes configuration for manual approval of a build.
450
+ # Corresponds to the JSON property `config`
451
+ # @return [Google::Apis::CloudbuildV1alpha1::ApprovalConfig]
452
+ attr_accessor :config
453
+
454
+ # ApprovalResult describes the decision and associated metadata of a manual
455
+ # approval of a build.
456
+ # Corresponds to the JSON property `result`
457
+ # @return [Google::Apis::CloudbuildV1alpha1::ApprovalResult]
458
+ attr_accessor :result
459
+
460
+ # Output only. The state of this build's approval.
461
+ # Corresponds to the JSON property `state`
462
+ # @return [String]
463
+ attr_accessor :state
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @config = args[:config] if args.key?(:config)
472
+ @result = args[:result] if args.key?(:result)
473
+ @state = args[:state] if args.key?(:state)
474
+ end
475
+ end
476
+
336
477
  # Metadata for build operations.
337
478
  class BuildOperationMetadata
338
479
  include Google::Apis::Core::Hashable
@@ -342,12 +483,13 @@ module Google
342
483
  # run on the source), and where to store the built artifacts. Fields can include
343
484
  # the following variables, which will be expanded when the build is created: - $
344
485
  # 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.
486
+ # of the build. - $LOCATION: the location/region of the build. - $BUILD_ID: the
487
+ # autogenerated ID of the build. - $REPO_NAME: the source repository name
488
+ # specified by RepoSource. - $BRANCH_NAME: the branch name specified by
489
+ # RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID
490
+ # or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the
491
+ # specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $
492
+ # COMMIT_SHA.
351
493
  # Corresponds to the JSON property `build`
352
494
  # @return [Google::Apis::CloudbuildV1alpha1::Build]
353
495
  attr_accessor :build
@@ -540,6 +682,12 @@ module Google
540
682
  # @return [Google::Apis::CloudbuildV1alpha1::TimeSpan]
541
683
  attr_accessor :pull_timing
542
684
 
685
+ # A shell script to be executed in the step. When script is provided, the user
686
+ # cannot specify the entrypoint or args.
687
+ # Corresponds to the JSON property `script`
688
+ # @return [String]
689
+ attr_accessor :script
690
+
543
691
  # A list of environment variables which are encrypted using a Cloud Key
544
692
  # Management Service crypto key. These values must be specified in the build's `
545
693
  # Secret`.
@@ -596,6 +744,7 @@ module Google
596
744
  @id = args[:id] if args.key?(:id)
597
745
  @name = args[:name] if args.key?(:name)
598
746
  @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
747
+ @script = args[:script] if args.key?(:script)
599
748
  @secret_env = args[:secret_env] if args.key?(:secret_env)
600
749
  @status = args[:status] if args.key?(:status)
601
750
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -1293,7 +1442,7 @@ module Google
1293
1442
  attr_accessor :api_version
1294
1443
 
1295
1444
  # Output only. Identifies whether the user has requested cancellation of the
1296
- # operation. Operations that have successfully been cancelled have Operation.
1445
+ # operation. Operations that have been cancelled successfully have Operation.
1297
1446
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1298
1447
  # CANCELLED`.
1299
1448
  # Corresponds to the JSON property `cancelRequested`
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudbuildV1alpha1
18
18
  # Version of the google-apis-cloudbuild_v1alpha1 gem
19
- GEM_VERSION = "0.11.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 = "20210723"
25
+ REVISION = "20211115"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1alpha1
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
 
@@ -40,12 +52,24 @@ module Google
40
52
  include Google::Apis::Core::JsonObjectSupport
41
53
  end
42
54
 
55
+ class BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class Build
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
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
 
@@ -328,6 +352,24 @@ module Google
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
354
 
355
+ class ApprovalConfig
356
+ # @private
357
+ class Representation < Google::Apis::Core::JsonRepresentation
358
+ property :approval_required, as: 'approvalRequired'
359
+ end
360
+ end
361
+
362
+ class ApprovalResult
363
+ # @private
364
+ class Representation < Google::Apis::Core::JsonRepresentation
365
+ property :approval_time, as: 'approvalTime'
366
+ property :approver_account, as: 'approverAccount'
367
+ property :comment, as: 'comment'
368
+ property :decision, as: 'decision'
369
+ property :url, as: 'url'
370
+ end
371
+ end
372
+
331
373
  class ArtifactObjects
332
374
  # @private
333
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -356,9 +398,20 @@ module Google
356
398
  end
357
399
  end
358
400
 
401
+ class BatchCreateBitbucketServerConnectedRepositoriesResponseMetadata
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :complete_time, as: 'completeTime'
405
+ property :config, as: 'config'
406
+ property :create_time, as: 'createTime'
407
+ end
408
+ end
409
+
359
410
  class Build
360
411
  # @private
361
412
  class Representation < Google::Apis::Core::JsonRepresentation
413
+ property :approval, as: 'approval', class: Google::Apis::CloudbuildV1alpha1::BuildApproval, decorator: Google::Apis::CloudbuildV1alpha1::BuildApproval::Representation
414
+
362
415
  property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1alpha1::Artifacts, decorator: Google::Apis::CloudbuildV1alpha1::Artifacts::Representation
363
416
 
364
417
  property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1alpha1::Secrets, decorator: Google::Apis::CloudbuildV1alpha1::Secrets::Representation
@@ -401,6 +454,17 @@ module Google
401
454
  end
402
455
  end
403
456
 
457
+ class BuildApproval
458
+ # @private
459
+ class Representation < Google::Apis::Core::JsonRepresentation
460
+ property :config, as: 'config', class: Google::Apis::CloudbuildV1alpha1::ApprovalConfig, decorator: Google::Apis::CloudbuildV1alpha1::ApprovalConfig::Representation
461
+
462
+ property :result, as: 'result', class: Google::Apis::CloudbuildV1alpha1::ApprovalResult, decorator: Google::Apis::CloudbuildV1alpha1::ApprovalResult::Representation
463
+
464
+ property :state, as: 'state'
465
+ end
466
+ end
467
+
404
468
  class BuildOperationMetadata
405
469
  # @private
406
470
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -441,6 +505,7 @@ module Google
441
505
  property :name, as: 'name'
442
506
  property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
443
507
 
508
+ property :script, as: 'script'
444
509
  collection :secret_env, as: 'secretEnv'
445
510
  property :status, as: 'status'
446
511
  property :timeout, as: 'timeout'
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1alpha1'
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_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.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-08-02 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha1/v0.11.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v1alpha1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha1/v0.15.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudbuild_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Build API V1alpha1