google-apis-cloudbuild_v1alpha1 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: 75755e35a819730f5f796c8e7ab2c160d2de9c74a521a7b82e82b1fbc7d5336a
4
- data.tar.gz: fa564103369071a1b8be0dd690c393c3fb0047c39b2e13f941bba30eabeb3232
3
+ metadata.gz: 22caea9bee77a9613c9935a6fd921adfbcea1c5c23d2ac48d345c880543b8a42
4
+ data.tar.gz: 781d62c06b1dd09ef710a7587b7e454ffb5c10479b834c121ec6e169d33de70f
5
5
  SHA512:
6
- metadata.gz: 8f231a90123078ec87ff9ce8a070d61f80931f435b3881a7fbe09142adfdd03595b35b2e93de2585630e7c7ebfc84182dd53ab10c59c7ebe2742e52e0058a0d5
7
- data.tar.gz: 4399c684189cefec7b9436b97d9928839efba0af478d7d9a99fb1a540d76042ceda41b62f31ad3bc82829f92cb0e2de2ee1b7ec574f5860954fdc75667eff214
6
+ metadata.gz: e7c2d73c2723e821eb7a4dae0bbc70914271904b1810b729fc2479fd2949d939ce782a177a5d6ae86248cc620cc1fc537ddd76a2c574307186696590bcc479d2
7
+ data.tar.gz: f770c7b95d31ddd3145cacf36b953de7e22f7e309015fd1dfaf35576a865eb942cd13305633ac29dcda051c9495df36955176dbd684d84e10d743568c5370baf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudbuild_v1alpha1
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::CloudbuildV1alpha1::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::CloudbuildV1alpha1::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::CloudbuildV1alpha1::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::CloudbuildV1alpha1::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::CloudbuildV1alpha1::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
@@ -1045,7 +1087,7 @@ module Google
1045
1087
  # @return [String]
1046
1088
  attr_accessor :project_id
1047
1089
 
1048
- # Required. Name of the Cloud Source Repository.
1090
+ # Name of the Cloud Source Repository.
1049
1091
  # Corresponds to the JSON property `repoName`
1050
1092
  # @return [String]
1051
1093
  attr_accessor :repo_name
@@ -1185,7 +1227,10 @@ module Google
1185
1227
  end
1186
1228
 
1187
1229
  # Pairs a set of secret environment variables containing encrypted values with
1188
- # the Cloud KMS key to use to decrypt the value.
1230
+ # the Cloud KMS key to use to decrypt the value. Note: Use `kmsKeyName` with `
1231
+ # available_secrets` instead of using `kmsKeyName` with `secret`. For
1232
+ # instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/
1233
+ # use-encrypted-credentials.
1189
1234
  class Secret
1190
1235
  include Google::Apis::Core::Hashable
1191
1236
 
@@ -1213,6 +1258,58 @@ module Google
1213
1258
  end
1214
1259
  end
1215
1260
 
1261
+ # Pairs a secret environment variable with a SecretVersion in Secret Manager.
1262
+ class SecretManagerSecret
1263
+ include Google::Apis::Core::Hashable
1264
+
1265
+ # Environment variable name to associate with the secret. Secret environment
1266
+ # variables must be unique across all of a build's secrets, and must be used by
1267
+ # at least one build step.
1268
+ # Corresponds to the JSON property `env`
1269
+ # @return [String]
1270
+ attr_accessor :env
1271
+
1272
+ # Resource name of the SecretVersion. In format: projects/*/secrets/*/versions/*
1273
+ # Corresponds to the JSON property `versionName`
1274
+ # @return [String]
1275
+ attr_accessor :version_name
1276
+
1277
+ def initialize(**args)
1278
+ update!(**args)
1279
+ end
1280
+
1281
+ # Update properties of this object
1282
+ def update!(**args)
1283
+ @env = args[:env] if args.key?(:env)
1284
+ @version_name = args[:version_name] if args.key?(:version_name)
1285
+ end
1286
+ end
1287
+
1288
+ # Secrets and secret environment variables.
1289
+ class Secrets
1290
+ include Google::Apis::Core::Hashable
1291
+
1292
+ # Secrets encrypted with KMS key and the associated secret environment variable.
1293
+ # Corresponds to the JSON property `inline`
1294
+ # @return [Array<Google::Apis::CloudbuildV1alpha1::InlineSecret>]
1295
+ attr_accessor :inline
1296
+
1297
+ # Secrets in Secret Manager and associated secret environment variable.
1298
+ # Corresponds to the JSON property `secretManager`
1299
+ # @return [Array<Google::Apis::CloudbuildV1alpha1::SecretManagerSecret>]
1300
+ attr_accessor :secret_manager
1301
+
1302
+ def initialize(**args)
1303
+ update!(**args)
1304
+ end
1305
+
1306
+ # Update properties of this object
1307
+ def update!(**args)
1308
+ @inline = args[:inline] if args.key?(:inline)
1309
+ @secret_manager = args[:secret_manager] if args.key?(:secret_manager)
1310
+ end
1311
+ end
1312
+
1216
1313
  # SlackDelivery is the delivery configuration for delivering Slack messages via
1217
1314
  # webhooks. See Slack webhook documentation at: https://api.slack.com/messaging/
1218
1315
  # webhooks.
@@ -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.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::CloudbuildV1alpha1::Artifacts, decorator: Google::Apis::CloudbuildV1alpha1::Artifacts::Representation
267
285
 
286
+ property :available_secrets, as: 'availableSecrets', class: Google::Apis::CloudbuildV1alpha1::Secrets, decorator: Google::Apis::CloudbuildV1alpha1::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
@@ -530,6 +558,24 @@ module Google
530
558
  end
531
559
  end
532
560
 
561
+ class SecretManagerSecret
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ property :env, as: 'env'
565
+ property :version_name, as: 'versionName'
566
+ end
567
+ end
568
+
569
+ class Secrets
570
+ # @private
571
+ class Representation < Google::Apis::Core::JsonRepresentation
572
+ collection :inline, as: 'inline', class: Google::Apis::CloudbuildV1alpha1::InlineSecret, decorator: Google::Apis::CloudbuildV1alpha1::InlineSecret::Representation
573
+
574
+ collection :secret_manager, as: 'secretManager', class: Google::Apis::CloudbuildV1alpha1::SecretManagerSecret, decorator: Google::Apis::CloudbuildV1alpha1::SecretManagerSecret::Representation
575
+
576
+ end
577
+ end
578
+
533
579
  class SlackDelivery
534
580
  # @private
535
581
  class Representation < Google::Apis::Core::JsonRepresentation
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.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_v1alpha1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudbuild_v1alpha1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudbuild_v1alpha1
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 V1alpha1