google-apis-cloudbuild_v1alpha2 0.1.0 → 0.2.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: 7296ba437a532961bf38a7cb102f14f2665e667a67507c329ee0bb102d53ce54
4
- data.tar.gz: b3a50d55d8b1c478653d65ddd71d2a4d8b6969c536932260b015d198f95be7fa
3
+ metadata.gz: bb91a4ed361c0004b0e66137af4cc585de3e5eec2b9651adc15d271a41444b07
4
+ data.tar.gz: 5ff5db50e8708b3b10230b827eef55ea030ad38267eef79698fbf411abc096a8
5
5
  SHA512:
6
- metadata.gz: cb04f85cb56d11f20c4235dcadc03039ea856c3b234b846088d4ed150850969334972c5f748ab5a825f55b3d620ff9827da397d9ddbc0e598becbdf9d9a63f9b
7
- data.tar.gz: 8c5b36194472b68b5b5576103a7b21ebe02a7b7b56f0562d12d20b5ccc2b9b1b5edf0a52fa00d895432d44053bd2ed7c4956d8f16b206965b720c7ee68d25ef0
6
+ metadata.gz: 316720da48be6024b4a82307d615f9a46961164bc5c08ec2cee711949d89d824dda9a5b85f00dafd2c5342705a91630de0c75270ccff5268276175df89253d3d
7
+ data.tar.gz: f11e6d90bc73bdf4767a2da540d4a1d6d7b171b3b96351b9344f0bca625b12375df356cccd6e5302109a4d99ef43ff24d3b01d0975b5f80f3b915b291b727145
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudbuild_v1alpha2
2
2
 
3
+ ### v0.2.0 (2021-02-02)
4
+
5
+ * Regenerated from discovery document revision 20210128
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -119,12 +119,13 @@ module Google
119
119
  # where to find source code, how to build it (for example, the builder image to
120
120
  # run on the source), and where to store the built artifacts. Fields can include
121
121
  # the following variables, which will be expanded when the build is created: - $
122
- # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of
123
- # the build. - $REPO_NAME: the source repository name specified by RepoSource. -
124
- # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
125
- # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
126
- # specified by RepoSource or resolved from the specified branch or tag. - $
127
- # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
122
+ # 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.
128
129
  class Build
129
130
  include Google::Apis::Core::Hashable
130
131
 
@@ -134,6 +135,11 @@ module Google
134
135
  # @return [Google::Apis::CloudbuildV1alpha2::Artifacts]
135
136
  attr_accessor :artifacts
136
137
 
138
+ # Secrets and secret environment variables.
139
+ # Corresponds to the JSON property `availableSecrets`
140
+ # @return [Google::Apis::CloudbuildV1alpha2::Secrets]
141
+ attr_accessor :available_secrets
142
+
137
143
  # Output only. The ID of the `BuildTrigger` that triggered this build, if it was
138
144
  # triggered automatically.
139
145
  # Corresponds to the JSON property `buildTriggerId`
@@ -206,7 +212,11 @@ module Google
206
212
  # @return [Google::Apis::CloudbuildV1alpha2::Results]
207
213
  attr_accessor :results
208
214
 
209
- # Secrets to decrypt using Cloud Key Management Service.
215
+ # Secrets to decrypt using Cloud Key Management Service. Note: Secret Manager is
216
+ # the recommended technique for managing sensitive data with Cloud Build. Use `
217
+ # available_secrets` to configure builds to access secrets from Secret Manager.
218
+ # For instructions, see: https://cloud.google.com/cloud-build/docs/securing-
219
+ # builds/use-secrets
210
220
  # Corresponds to the JSON property `secrets`
211
221
  # @return [Array<Google::Apis::CloudbuildV1alpha2::Secret>]
212
222
  attr_accessor :secrets
@@ -282,6 +292,7 @@ module Google
282
292
  # Update properties of this object
283
293
  def update!(**args)
284
294
  @artifacts = args[:artifacts] if args.key?(:artifacts)
295
+ @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
285
296
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
286
297
  @create_time = args[:create_time] if args.key?(:create_time)
287
298
  @finish_time = args[:finish_time] if args.key?(:finish_time)
@@ -317,12 +328,13 @@ module Google
317
328
  # where to find source code, how to build it (for example, the builder image to
318
329
  # run on the source), and where to store the built artifacts. Fields can include
319
330
  # the following variables, which will be expanded when the build is created: - $
320
- # PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of
321
- # the build. - $REPO_NAME: the source repository name specified by RepoSource. -
322
- # $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag
323
- # name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA
324
- # specified by RepoSource or resolved from the specified branch or tag. - $
325
- # SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA.
331
+ # PROJECT_ID: the project ID of the build. - $PROJECT_NUMBER: the project number
332
+ # of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME:
333
+ # the source repository name specified by RepoSource. - $BRANCH_NAME: the branch
334
+ # name specified by RepoSource. - $TAG_NAME: the tag name specified by
335
+ # RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by
336
+ # RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7
337
+ # characters of $REVISION_ID or $COMMIT_SHA.
326
338
  # Corresponds to the JSON property `build`
327
339
  # @return [Google::Apis::CloudbuildV1alpha2::Build]
328
340
  attr_accessor :build
@@ -701,6 +713,36 @@ module Google
701
713
  end
702
714
  end
703
715
 
716
+ # Pairs a set of secret environment variables mapped to encrypted values with
717
+ # the Cloud KMS key to use to decrypt the value.
718
+ class InlineSecret
719
+ include Google::Apis::Core::Hashable
720
+
721
+ # Map of environment variable name to its encrypted value. Secret environment
722
+ # variables must be unique across all of a build's secrets, and must be used by
723
+ # at least one build step. Values can be at most 64 KB in size. There can be at
724
+ # most 100 secret values across all of a build's secrets.
725
+ # Corresponds to the JSON property `envMap`
726
+ # @return [Hash<String,String>]
727
+ attr_accessor :env_map
728
+
729
+ # Resource name of Cloud KMS crypto key to decrypt the encrypted value. In
730
+ # format: projects/*/locations/*/keyRings/*/cryptoKeys/*
731
+ # Corresponds to the JSON property `kmsKeyName`
732
+ # @return [String]
733
+ attr_accessor :kms_key_name
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @env_map = args[:env_map] if args.key?(:env_map)
742
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
743
+ end
744
+ end
745
+
704
746
  # Response containing existing `WorkerPools`.
705
747
  class ListWorkerPoolsResponse
706
748
  include Google::Apis::Core::Hashable
@@ -1032,7 +1074,7 @@ module Google
1032
1074
  # @return [String]
1033
1075
  attr_accessor :project_id
1034
1076
 
1035
- # Required. Name of the Cloud Source Repository.
1077
+ # Name of the Cloud Source Repository.
1036
1078
  # Corresponds to the JSON property `repoName`
1037
1079
  # @return [String]
1038
1080
  attr_accessor :repo_name
@@ -1172,7 +1214,10 @@ module Google
1172
1214
  end
1173
1215
 
1174
1216
  # Pairs a set of secret environment variables containing encrypted values with
1175
- # the Cloud KMS key to use to decrypt the value.
1217
+ # the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `
1218
+ # available_secrets` instead of using `kmsKeyName` with `secret`. For
1219
+ # instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/
1220
+ # use-encrypted-credentials.
1176
1221
  class Secret
1177
1222
  include Google::Apis::Core::Hashable
1178
1223
 
@@ -1200,6 +1245,58 @@ module Google
1200
1245
  end
1201
1246
  end
1202
1247
 
1248
+ # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1249
+ class SecretManagerSecret
1250
+ include Google::Apis::Core::Hashable
1251
+
1252
+ # Environment variable name to associate with the secret. Secret environment
1253
+ # variables must be unique across all of a build's secrets, and must be used by
1254
+ # at least one build step.
1255
+ # Corresponds to the JSON property `env`
1256
+ # @return [String]
1257
+ attr_accessor :env
1258
+
1259
+ # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1260
+ # Corresponds to the JSON property `versionName`
1261
+ # @return [String]
1262
+ attr_accessor :version_name
1263
+
1264
+ def initialize(**args)
1265
+ update!(**args)
1266
+ end
1267
+
1268
+ # Update properties of this object
1269
+ def update!(**args)
1270
+ @env = args[:env] if args.key?(:env)
1271
+ @version_name = args[:version_name] if args.key?(:version_name)
1272
+ end
1273
+ end
1274
+
1275
+ # Secrets and secret environment variables.
1276
+ class Secrets
1277
+ include Google::Apis::Core::Hashable
1278
+
1279
+ # Secrets encrypted with KMS key and the associated secret environment variable.
1280
+ # Corresponds to the JSON property `inline`
1281
+ # @return [Array<Google::Apis::CloudbuildV1alpha2::InlineSecret>]
1282
+ attr_accessor :inline
1283
+
1284
+ # Secrets in Secret Manager and associated secret environment variable.
1285
+ # Corresponds to the JSON property `secretManager`
1286
+ # @return [Array<Google::Apis::CloudbuildV1alpha2::SecretManagerSecret>]
1287
+ attr_accessor :secret_manager
1288
+
1289
+ def initialize(**args)
1290
+ update!(**args)
1291
+ end
1292
+
1293
+ # Update properties of this object
1294
+ def update!(**args)
1295
+ @inline = args[:inline] if args.key?(:inline)
1296
+ @secret_manager = args[:secret_manager] if args.key?(:secret_manager)
1297
+ end
1298
+ end
1299
+
1203
1300
  # SlackDelivery is the delivery configuration for delivering Slack messages via
1204
1301
  # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/
1205
1302
  # webhooks.
@@ -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.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201211"
25
+ REVISION = "20210128"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class InlineSecret
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class ListWorkerPoolsResponse
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -178,6 +184,18 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class SecretManagerSecret
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Secrets
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
181
199
  class SlackDelivery
182
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
201
 
@@ -265,6 +283,8 @@ module Google
265
283
  class Representation < Google::Apis::Core::JsonRepresentation
266
284
  property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1alpha2::Artifacts, decorator: Google::Apis::CloudbuildV1alpha2::Artifacts::Representation
267
285
 
286
+ property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1alpha2::Secrets, decorator: Google::Apis::CloudbuildV1alpha2::Secrets::Representation
287
+
268
288
  property :build_trigger_id, as: 'buildTriggerId'
269
289
  property :create_time, as: 'createTime'
270
290
  property :finish_time, as: 'finishTime'
@@ -393,6 +413,14 @@ module Google
393
413
  end
394
414
  end
395
415
 
416
+ class InlineSecret
417
+ # @private
418
+ class Representation < Google::Apis::Core::JsonRepresentation
419
+ hash :env_map, as: 'envMap'
420
+ property :kms_key_name, as: 'kmsKeyName'
421
+ end
422
+ end
423
+
396
424
  class ListWorkerPoolsResponse
397
425
  # @private
398
426
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -528,6 +556,24 @@ module Google
528
556
  end
529
557
  end
530
558
 
559
+ class SecretManagerSecret
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ property :env, as: 'env'
563
+ property :version_name, as: 'versionName'
564
+ end
565
+ end
566
+
567
+ class Secrets
568
+ # @private
569
+ class Representation < Google::Apis::Core::JsonRepresentation
570
+ collection :inline, as: 'inline', class: Google::Apis::CloudbuildV1alpha2::InlineSecret, decorator: Google::Apis::CloudbuildV1alpha2::InlineSecret::Representation
571
+
572
+ collection :secret_manager, as: 'secretManager', class: Google::Apis::CloudbuildV1alpha2::SecretManagerSecret, decorator: Google::Apis::CloudbuildV1alpha2::SecretManagerSecret::Representation
573
+
574
+ end
575
+ end
576
+
531
577
  class SlackDelivery
532
578
  # @private
533
579
  class Representation < Google::Apis::Core::JsonRepresentation
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.1.0
4
+ version: 0.2.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha2/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha2/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Build API V1alpha2