google-apis-secretmanager_v1 0.5.0 → 0.10.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: b8e0439d569154433cb588f31bc1aec635ba0b92eeeaff6c492ebed25016d9d0
4
- data.tar.gz: 88539d48e14ea513e80889d95efaaf30e74030c7eb8dcd5ce102b8052b94b3d1
3
+ metadata.gz: 19b3496783f7424c8e908de6602f801e1a3e86fe6aa2fe6cc9298a933ec19eaf
4
+ data.tar.gz: 3d67dbc4ff2a30082efb7977374bb3e327ef46ce0007b7a5142044d0671b3373
5
5
  SHA512:
6
- metadata.gz: 8202e6109adc5e02582b74ec9f5e9c2c2bd41b0479b27f7b40d228eabe38d1c9029a73190c200d883d5aa01bcf2af32d3c9266853a17b32c62f377d9ff23d5c3
7
- data.tar.gz: 5812e1cddada0f8322db1cbb37cd2b38f175f132b2b2277eb571a54dee41799a5ac893f3051e93ca0197d9e315ee36f2ce391acadcf49e70e6852771da74cefc
6
+ metadata.gz: '078d009536b630ec70b5814158aebc3542f3fd3743241feb35bbbfd5b125a1d5694b941411725cce1239dc56eb5b9513edacfb2cf449d9bb5718a9383b22c5c9'
7
+ data.tar.gz: ed8705a0af918756388d7a408a31e39917f669742a2dbfe26e7fcd0bfcd20c1ea70550d0d90dc7f26d05635bc887b15149338dcfcf5d8c7d93ccc8e4fe939364
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-secretmanager_v1
2
2
 
3
+ ### v0.10.0 (2021-05-28)
4
+
5
+ * Regenerated from discovery document revision 20210521
6
+
7
+ ### v0.9.0 (2021-05-20)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.8.0 (2021-05-11)
12
+
13
+ * Regenerated from discovery document revision 20210429
14
+
15
+ ### v0.7.0 (2021-03-26)
16
+
17
+ * Regenerated from discovery document revision 20210319
18
+
19
+ ### v0.6.0 (2021-03-20)
20
+
21
+ * Regenerated from discovery document revision 20210315
22
+
3
23
  ### v0.5.0 (2021-03-13)
4
24
 
5
25
  * Regenerated from discovery document revision 20210308
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -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
 
@@ -740,6 +764,39 @@ module Google
740
764
  end
741
765
  end
742
766
 
767
+ # The rotation time and period for a Secret. At next_rotation_time, Secret
768
+ # Manager will send a Pub/Sub notification to the topics configured on the
769
+ # Secret. Secret.topics must be set to configure rotation.
770
+ class Rotation
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. Cannot
774
+ # be set to less than 300s (5 min) in the future and at most 3153600000s (100
775
+ # years). next_rotation_time MUST be set if rotation_period is set.
776
+ # Corresponds to the JSON property `nextRotationTime`
777
+ # @return [String]
778
+ attr_accessor :next_rotation_time
779
+
780
+ # Input only. The Duration between rotation notifications. Must be in seconds
781
+ # and at least 3600s (1h) and at most 3153600000s (100 years). If
782
+ # rotation_period is set, next_rotation_time must be set. next_rotation_time
783
+ # will be advanced by this period when the service automatically sends rotation
784
+ # notifications.
785
+ # Corresponds to the JSON property `rotationPeriod`
786
+ # @return [String]
787
+ attr_accessor :rotation_period
788
+
789
+ def initialize(**args)
790
+ update!(**args)
791
+ end
792
+
793
+ # Update properties of this object
794
+ def update!(**args)
795
+ @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
796
+ @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
797
+ end
798
+ end
799
+
743
800
  # A Secret is a logical secret whose value and versions can be accessed. A
744
801
  # Secret is made up of zero or more SecretVersions that represent the secret
745
802
  # data.
@@ -751,6 +808,11 @@ module Google
751
808
  # @return [String]
752
809
  attr_accessor :create_time
753
810
 
811
+ # Optional. Etag of the currently stored Secret.
812
+ # Corresponds to the JSON property `etag`
813
+ # @return [String]
814
+ attr_accessor :etag
815
+
754
816
  # Optional. Timestamp in UTC when the Secret is scheduled to expire. This is
755
817
  # always provided on output, regardless of what was sent on input.
756
818
  # Corresponds to the JSON property `expireTime`
@@ -778,6 +840,13 @@ module Google
778
840
  # @return [Google::Apis::SecretmanagerV1::Replication]
779
841
  attr_accessor :replication
780
842
 
843
+ # The rotation time and period for a Secret. At next_rotation_time, Secret
844
+ # Manager will send a Pub/Sub notification to the topics configured on the
845
+ # Secret. Secret.topics must be set to configure rotation.
846
+ # Corresponds to the JSON property `rotation`
847
+ # @return [Google::Apis::SecretmanagerV1::Rotation]
848
+ attr_accessor :rotation
849
+
781
850
  # Optional. A list of up to 10 Pub/Sub topics to which messages are published
782
851
  # when control plane operations are called on the secret or its versions.
783
852
  # Corresponds to the JSON property `topics`
@@ -796,10 +865,12 @@ module Google
796
865
  # Update properties of this object
797
866
  def update!(**args)
798
867
  @create_time = args[:create_time] if args.key?(:create_time)
868
+ @etag = args[:etag] if args.key?(:etag)
799
869
  @expire_time = args[:expire_time] if args.key?(:expire_time)
800
870
  @labels = args[:labels] if args.key?(:labels)
801
871
  @name = args[:name] if args.key?(:name)
802
872
  @replication = args[:replication] if args.key?(:replication)
873
+ @rotation = args[:rotation] if args.key?(:rotation)
803
874
  @topics = args[:topics] if args.key?(:topics)
804
875
  @ttl = args[:ttl] if args.key?(:ttl)
805
876
  end
@@ -841,6 +912,11 @@ module Google
841
912
  # @return [String]
842
913
  attr_accessor :destroy_time
843
914
 
915
+ # Output only. Etag of the currently stored SecretVersion.
916
+ # Corresponds to the JSON property `etag`
917
+ # @return [String]
918
+ attr_accessor :etag
919
+
844
920
  # Output only. The resource name of the SecretVersion in the format `projects/*/
845
921
  # secrets/*/versions/*`. SecretVersion IDs in a Secret start at 1 and are
846
922
  # incremented for each subsequent version of the secret.
@@ -866,6 +942,7 @@ module Google
866
942
  def update!(**args)
867
943
  @create_time = args[:create_time] if args.key?(:create_time)
868
944
  @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
945
+ @etag = args[:etag] if args.key?(:etag)
869
946
  @name = args[:name] if args.key?(:name)
870
947
  @replication_status = args[:replication_status] if args.key?(:replication_status)
871
948
  @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.5.0"
19
+ GEM_VERSION = "0.10.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 = "20210308"
25
+ REVISION = "20210521"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class Rotation
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class Secret
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -291,12 +297,14 @@ module Google
291
297
  class DestroySecretVersionRequest
292
298
  # @private
293
299
  class Representation < Google::Apis::Core::JsonRepresentation
300
+ property :etag, as: 'etag'
294
301
  end
295
302
  end
296
303
 
297
304
  class DisableSecretVersionRequest
298
305
  # @private
299
306
  class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :etag, as: 'etag'
300
308
  end
301
309
  end
302
310
 
@@ -309,6 +317,7 @@ module Google
309
317
  class EnableSecretVersionRequest
310
318
  # @private
311
319
  class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :etag, as: 'etag'
312
321
  end
313
322
  end
314
323
 
@@ -412,15 +421,26 @@ module Google
412
421
  end
413
422
  end
414
423
 
424
+ class Rotation
425
+ # @private
426
+ class Representation < Google::Apis::Core::JsonRepresentation
427
+ property :next_rotation_time, as: 'nextRotationTime'
428
+ property :rotation_period, as: 'rotationPeriod'
429
+ end
430
+ end
431
+
415
432
  class Secret
416
433
  # @private
417
434
  class Representation < Google::Apis::Core::JsonRepresentation
418
435
  property :create_time, as: 'createTime'
436
+ property :etag, as: 'etag'
419
437
  property :expire_time, as: 'expireTime'
420
438
  hash :labels, as: 'labels'
421
439
  property :name, as: 'name'
422
440
  property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1::Replication, decorator: Google::Apis::SecretmanagerV1::Replication::Representation
423
441
 
442
+ property :rotation, as: 'rotation', class: Google::Apis::SecretmanagerV1::Rotation, decorator: Google::Apis::SecretmanagerV1::Rotation::Representation
443
+
424
444
  collection :topics, as: 'topics', class: Google::Apis::SecretmanagerV1::Topic, decorator: Google::Apis::SecretmanagerV1::Topic::Representation
425
445
 
426
446
  property :ttl, as: 'ttl'
@@ -439,6 +459,7 @@ module Google
439
459
  class Representation < Google::Apis::Core::JsonRepresentation
440
460
  property :create_time, as: 'createTime'
441
461
  property :destroy_time, as: 'destroyTime'
462
+ property :etag, as: 'etag'
442
463
  property :name, as: 'name'
443
464
  property :replication_status, as: 'replicationStatus', class: Google::Apis::SecretmanagerV1::ReplicationStatus, decorator: Google::Apis::SecretmanagerV1::ReplicationStatus::Representation
444
465
 
@@ -84,11 +84,15 @@ module Google
84
84
  # @param [String] name
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
- # The standard list filter.
87
+ # A filter to narrow down results to a preferred subset. The filtering language
88
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
+ # AIP-160](https://google.aip.dev/160).
88
90
  # @param [Fixnum] page_size
89
- # The standard list page size.
91
+ # The maximum number of results to return. If not set, the service selects a
92
+ # default.
90
93
  # @param [String] page_token
91
- # The standard list page token.
94
+ # A page token received from the `next_page_token` field in the response. Send
95
+ # that page token to receive the subsequent page.
92
96
  # @param [String] fields
93
97
  # Selector specifying which fields to include in a partial response.
94
98
  # @param [String] quota_user
@@ -197,6 +201,10 @@ module Google
197
201
  # @param [String] name
198
202
  # Required. The resource name of the Secret to delete in the format `projects/*/
199
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.
200
208
  # @param [String] fields
201
209
  # Selector specifying which fields to include in a partial response.
202
210
  # @param [String] quota_user
@@ -214,11 +222,12 @@ module Google
214
222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- 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)
218
226
  command = make_simple_command(:delete, 'v1/{+name}', options)
219
227
  command.response_representation = Google::Apis::SecretmanagerV1::Empty::Representation
220
228
  command.response_class = Google::Apis::SecretmanagerV1::Empty
221
229
  command.params['name'] = name unless name.nil?
230
+ command.query['etag'] = etag unless etag.nil?
222
231
  command.query['fields'] = fields unless fields.nil?
223
232
  command.query['quotaUser'] = quota_user unless quota_user.nil?
224
233
  execute_or_queue_command(command, &block)
@@ -448,10 +457,12 @@ module Google
448
457
  end
449
458
 
450
459
  # Accesses a SecretVersion. This call returns the secret data. `projects/*/
451
- # secrets/*/versions/latest` is an alias to the `latest` SecretVersion.
460
+ # secrets/*/versions/latest` is an alias to the most recently created
461
+ # SecretVersion.
452
462
  # @param [String] name
453
463
  # Required. The resource name of the SecretVersion in the format `projects/*/
454
- # secrets/*/versions/*`.
464
+ # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
465
+ # the most recently created SecretVersion.
455
466
  # @param [String] fields
456
467
  # Selector specifying which fields to include in a partial response.
457
468
  # @param [String] quota_user
@@ -583,11 +594,11 @@ module Google
583
594
  end
584
595
 
585
596
  # Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is
586
- # an alias to the `latest` SecretVersion.
597
+ # an alias to the most recently created SecretVersion.
587
598
  # @param [String] name
588
599
  # Required. The resource name of the SecretVersion in the format `projects/*/
589
600
  # secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to
590
- # the `latest` SecretVersion.
601
+ # the most recently created SecretVersion.
591
602
  # @param [String] fields
592
603
  # Selector specifying which fields to include in a partial response.
593
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.5.0
4
+ version: 0.10.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-15 00:00:00.000000000 Z
11
+ date: 2021-05-31 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.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.10.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