google-apis-secretmanager_v1 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bb1e24b9f66c932a1b5b325eabe5f08e1b70ebc032630bf676e5830771b388b
4
- data.tar.gz: 5e487e30c1309f422ad56b4c98868305eb26e8fadef5231e0b6e8d2f333a1be2
3
+ metadata.gz: 03ce87adae22ab04d05b04a62efea7b51ba03e8160615594a79369050d90ca1d
4
+ data.tar.gz: e3db1ab6da596d5b641876a87dab16d05d56fa363be1df81eaa5c9d415498f44
5
5
  SHA512:
6
- metadata.gz: 7c64ef0b34147ec623fc99a19b81be020e5de04d013b2d0f6a342c7640d4f63bd612a576daa29cb5faa2d174053c00c500b406be1e5eb330d025c1293b7d4bf9
7
- data.tar.gz: bc93d21698b479bcd19f521b86c126180e1b22c22f494c1f3ec0a3562534a0cfa4f3f8ba8ebf79c8870854bd818b026440b7ded850f042849a3d96d51454b21d
6
+ metadata.gz: 1f0f2f5bf99036d413160e8067528f0a4d8cd56929dffe3a1d54d3c56a88e2c8bbae918eea7b2701590e2718bc24925b715ee320d12cc369db25eb3689fbccd8
7
+ data.tar.gz: 5b55fbdc72e23ccbd655d7115a0e33f46356ab6c6d91a73d94529b0f4bb2767376748b43a8393ff9fc0d9e3d305aaa7d982ca2fd2a99c89947bc536eee1d0c17
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-secretmanager_v1
2
2
 
3
+ ### v0.8.0 (2021-05-11)
4
+
5
+ * Regenerated from discovery document revision 20210429
6
+
3
7
  ### v0.7.0 (2021-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20210319
@@ -302,12 +302,20 @@ module Google
302
302
  class DestroySecretVersionRequest
303
303
  include Google::Apis::Core::Hashable
304
304
 
305
+ # Optional. Etag of the SecretVersion. The request succeeds if it matches the
306
+ # etag of the currently stored secret version object. If the etag is omitted,
307
+ # the request succeeds.
308
+ # Corresponds to the JSON property `etag`
309
+ # @return [String]
310
+ attr_accessor :etag
311
+
305
312
  def initialize(**args)
306
313
  update!(**args)
307
314
  end
308
315
 
309
316
  # Update properties of this object
310
317
  def update!(**args)
318
+ @etag = args[:etag] if args.key?(:etag)
311
319
  end
312
320
  end
313
321
 
@@ -315,12 +323,20 @@ module Google
315
323
  class DisableSecretVersionRequest
316
324
  include Google::Apis::Core::Hashable
317
325
 
326
+ # Optional. Etag of the SecretVersion. The request succeeds if it matches the
327
+ # etag of the currently stored secret version object. If the etag is omitted,
328
+ # the request succeeds.
329
+ # Corresponds to the JSON property `etag`
330
+ # @return [String]
331
+ attr_accessor :etag
332
+
318
333
  def initialize(**args)
319
334
  update!(**args)
320
335
  end
321
336
 
322
337
  # Update properties of this object
323
338
  def update!(**args)
339
+ @etag = args[:etag] if args.key?(:etag)
324
340
  end
325
341
  end
326
342
 
@@ -345,12 +361,20 @@ module Google
345
361
  class EnableSecretVersionRequest
346
362
  include Google::Apis::Core::Hashable
347
363
 
364
+ # Optional. Etag of the SecretVersion. The request succeeds if it matches the
365
+ # etag of the currently stored secret version object. If the etag is omitted,
366
+ # the request succeeds.
367
+ # Corresponds to the JSON property `etag`
368
+ # @return [String]
369
+ attr_accessor :etag
370
+
348
371
  def initialize(**args)
349
372
  update!(**args)
350
373
  end
351
374
 
352
375
  # Update properties of this object
353
376
  def update!(**args)
377
+ @etag = args[:etag] if args.key?(:etag)
354
378
  end
355
379
  end
356
380
 
@@ -783,6 +807,11 @@ module Google
783
807
  # @return [String]
784
808
  attr_accessor :create_time
785
809
 
810
+ # Optional. Etag of the currently stored Secret.
811
+ # Corresponds to the JSON property `etag`
812
+ # @return [String]
813
+ attr_accessor :etag
814
+
786
815
  # Optional. Timestamp in UTC when the Secret is scheduled to expire. This is
787
816
  # always provided on output, regardless of what was sent on input.
788
817
  # Corresponds to the JSON property `expireTime`
@@ -835,6 +864,7 @@ module Google
835
864
  # Update properties of this object
836
865
  def update!(**args)
837
866
  @create_time = args[:create_time] if args.key?(:create_time)
867
+ @etag = args[:etag] if args.key?(:etag)
838
868
  @expire_time = args[:expire_time] if args.key?(:expire_time)
839
869
  @labels = args[:labels] if args.key?(:labels)
840
870
  @name = args[:name] if args.key?(:name)
@@ -881,6 +911,11 @@ module Google
881
911
  # @return [String]
882
912
  attr_accessor :destroy_time
883
913
 
914
+ # Output only. Etag of the currently stored SecretVersion.
915
+ # Corresponds to the JSON property `etag`
916
+ # @return [String]
917
+ attr_accessor :etag
918
+
884
919
  # Output only. The resource name of the SecretVersion in the format `projects/*/
885
920
  # secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are
886
921
  # incremented for each subsequent version of the secret.
@@ -906,6 +941,7 @@ module Google
906
941
  def update!(**args)
907
942
  @create_time = args[:create_time] if args.key?(:create_time)
908
943
  @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
944
+ @etag = args[:etag] if args.key?(:etag)
909
945
  @name = args[:name] if args.key?(:name)
910
946
  @replication_status = args[:replication_status] if args.key?(:replication_status)
911
947
  @state = args[:state] if args.key?(:state)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SecretmanagerV1
18
18
  # Version of the google-apis-secretmanager_v1 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210319"
25
+ REVISION = "20210429"
26
26
  end
27
27
  end
28
28
  end
@@ -297,12 +297,14 @@ module Google
297
297
  class DestroySecretVersionRequest
298
298
  # @private
299
299
  class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :etag, as: 'etag'
300
301
  end
301
302
  end
302
303
 
303
304
  class DisableSecretVersionRequest
304
305
  # @private
305
306
  class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :etag, as: 'etag'
306
308
  end
307
309
  end
308
310
 
@@ -315,6 +317,7 @@ module Google
315
317
  class EnableSecretVersionRequest
316
318
  # @private
317
319
  class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :etag, as: 'etag'
318
321
  end
319
322
  end
320
323
 
@@ -430,6 +433,7 @@ module Google
430
433
  # @private
431
434
  class Representation < Google::Apis::Core::JsonRepresentation
432
435
  property :create_time, as: 'createTime'
436
+ property :etag, as: 'etag'
433
437
  property :expire_time, as: 'expireTime'
434
438
  hash :labels, as: 'labels'
435
439
  property :name, as: 'name'
@@ -455,6 +459,7 @@ module Google
455
459
  class Representation < Google::Apis::Core::JsonRepresentation
456
460
  property :create_time, as: 'createTime'
457
461
  property :destroy_time, as: 'destroyTime'
462
+ property :etag, as: 'etag'
458
463
  property :name, as: 'name'
459
464
  property :replication_status, as: 'replicationStatus', class: Google::Apis::SecretmanagerV1::ReplicationStatus, decorator: Google::Apis::SecretmanagerV1::ReplicationStatus::Representation
460
465
 
@@ -88,7 +88,7 @@ module Google
88
88
  # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
89
  # AIP-160](https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
- # The maximum number of results to return. If not set, the service will select a
91
+ # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
93
93
  # @param [String] page_token
94
94
  # A page token received from the `next_page_token` field in the response. Send
@@ -201,6 +201,10 @@ module Google
201
201
  # @param [String] name
202
202
  # Required. The resource name of the Secret to delete in the format `projects/*/
203
203
  # secrets/*`.
204
+ # @param [String] etag
205
+ # Optional. Etag of the Secret. The request succeeds if it matches the etag of
206
+ # the currently stored secret object. If the etag is omitted, the request
207
+ # succeeds.
204
208
  # @param [String] fields
205
209
  # Selector specifying which fields to include in a partial response.
206
210
  # @param [String] quota_user
@@ -218,11 +222,12 @@ module Google
218
222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def delete_project_secret(name, fields: nil, quota_user: nil, options: nil, &block)
225
+ def delete_project_secret(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
222
226
  command = make_simple_command(:delete, 'v1/{+name}', options)
223
227
  command.response_representation = Google::Apis::SecretmanagerV1::Empty::Representation
224
228
  command.response_class = Google::Apis::SecretmanagerV1::Empty
225
229
  command.params['name'] = name unless name.nil?
230
+ command.query['etag'] = etag unless etag.nil?
226
231
  command.query['fields'] = fields unless fields.nil?
227
232
  command.query['quotaUser'] = quota_user unless quota_user.nil?
228
233
  execute_or_queue_command(command, &block)
@@ -452,10 +457,12 @@ module Google
452
457
  end
453
458
 
454
459
  # Accesses a SecretVersion. This call returns the secret data. `projects/*/
455
- # secrets/*/versions/latest` is an alias to the `latest` SecretVersion.
460
+ # secrets/*/versions/latest` is an alias to the most recently created
461
+ # SecretVersion.
456
462
  # @param [String] name
457
463
  # Required. The resource name of the SecretVersion in the format `projects/*/
458
- # secrets/*/versions/*`.
464
+ # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
465
+ # the most recently created SecretVersion.
459
466
  # @param [String] fields
460
467
  # Selector specifying which fields to include in a partial response.
461
468
  # @param [String] quota_user
@@ -587,11 +594,11 @@ module Google
587
594
  end
588
595
 
589
596
  # Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is
590
- # an alias to the `latest` SecretVersion.
597
+ # an alias to the most recently created SecretVersion.
591
598
  # @param [String] name
592
599
  # Required. The resource name of the SecretVersion in the format `projects/*/
593
600
  # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
594
- # the `latest` SecretVersion.
601
+ # the most recently created SecretVersion.
595
602
  # @param [String] fields
596
603
  # Selector specifying which fields to include in a partial response.
597
604
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-secretmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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-03-29 00:00:00.000000000 Z
11
+ date: 2021-05-18 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-secretmanager_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.7.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.8.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1
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.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Secret Manager API V1