google-apis-secretmanager_v1 0.6.0 → 0.11.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: 8c44451a06c436cbf4596d5984605be0cd07ea68a7adaee39d7302207a1f301f
4
- data.tar.gz: 17b84d2b6e9396fc18c8ec6e31f62d6a103037b31dc1ab9e208ca0562d2c469b
3
+ metadata.gz: f3e12ef709a14a4415be60ff1485e4bdf84ea8430be6e893873c608cf588149a
4
+ data.tar.gz: 1447272374ea02fe68bfab80847e194587a8afba4ff313de9b7d15085a3f0944
5
5
  SHA512:
6
- metadata.gz: d7b991bd3df903064bf23d85ddfd433a106b92fcf1c7bf42f57267f129ede853d8792c51e5557e14e06ec3003e6aa613c1c83d16217412a308cc2cb92908d164
7
- data.tar.gz: e3ae55941da60c29f7d05782465c9eebbb704d6ea1af3149dccedee0ecf29ab9fe640a6fa3786995083162a0ae60b7ec309e0048f208088980341602e6cd877e
6
+ metadata.gz: f00a25f2a451841d9a5d0a093b1930d564f3ee6c722575ee3d2c1520e8cb9e6f94c35724ae910055d26daa169b3ba66769d49a728a38a7c0485c07f10a899561
7
+ data.tar.gz: 9363a3208fb5b9eb357fd799e499e0a44f6f055e3e9c90ec4853749ad85ea651da0ed58cb134fae479652b9f80cac139fd87e770cfd19230014794bbf2ff5e18
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-secretmanager_v1
2
2
 
3
+ ### v0.11.0 (2021-06-24)
4
+
5
+ * Regenerated using generator version 0.3.0
6
+
7
+ ### v0.10.0 (2021-05-28)
8
+
9
+ * Regenerated from discovery document revision 20210521
10
+
11
+ ### v0.9.0 (2021-05-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.8.0 (2021-05-11)
16
+
17
+ * Regenerated from discovery document revision 20210429
18
+
19
+ ### v0.7.0 (2021-03-26)
20
+
21
+ * Regenerated from discovery document revision 20210319
22
+
3
23
  ### v0.6.0 (2021-03-20)
4
24
 
5
25
  * Regenerated from discovery document revision 20210315
@@ -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.6.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210315"
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
 
@@ -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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-secretmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.11.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-22 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Secret Manager API V1. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-secretmanager_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Secret Manager API V1