google-apis-secretmanager_v1 0.55.0 → 0.56.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6187dd4c9ad9d5347b50a10360d4b49818a9dee283d100e1278d89eb54786871
|
|
4
|
+
data.tar.gz: e5eb7efde918659ab42356ab51ba8e7f4ef03a4bead40d2332f4a55b4a3b44b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4239c0b3959210d4d123916ad0bfc4235aef32c757f6d553098af4d0b2042ea347b7dcff329d017ed600bc4f2100e49f2f950ef38ddb71143b34e128a5d9301
|
|
7
|
+
data.tar.gz: 05f49c1cae31bdcea600742798f6fb833ad306513009ccf3ab9c5a992c84e14798a9e4da0e0a798f5626ebeee316aae556d2ac6ace4171fca52bfa91c1d95db3
|
data/CHANGELOG.md
CHANGED
|
@@ -282,6 +282,39 @@ module Google
|
|
|
282
282
|
end
|
|
283
283
|
end
|
|
284
284
|
|
|
285
|
+
# These are the credentials required for Cloud SQL DB for Single user Managed
|
|
286
|
+
# Rotation.
|
|
287
|
+
class CloudSqlSingleUserCredentials
|
|
288
|
+
include Google::Apis::Core::Hashable
|
|
289
|
+
|
|
290
|
+
# Required. Instance ID of the Cloud SQL instance.
|
|
291
|
+
# Corresponds to the JSON property `instanceId`
|
|
292
|
+
# @return [String]
|
|
293
|
+
attr_accessor :instance_id
|
|
294
|
+
|
|
295
|
+
# Optional. Password of the Cloud SQL instance. If this is not provided, a
|
|
296
|
+
# random password will be generated.
|
|
297
|
+
# Corresponds to the JSON property `password`
|
|
298
|
+
# @return [String]
|
|
299
|
+
attr_accessor :password
|
|
300
|
+
|
|
301
|
+
# Required. Username of the Cloud SQL instance.
|
|
302
|
+
# Corresponds to the JSON property `username`
|
|
303
|
+
# @return [String]
|
|
304
|
+
attr_accessor :username
|
|
305
|
+
|
|
306
|
+
def initialize(**args)
|
|
307
|
+
update!(**args)
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Update properties of this object
|
|
311
|
+
def update!(**args)
|
|
312
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
|
313
|
+
@password = args[:password] if args.key?(:password)
|
|
314
|
+
@username = args[:username] if args.key?(:username)
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
285
318
|
# Configuration for encrypting secret payloads using customer-managed encryption
|
|
286
319
|
# keys (CMEK).
|
|
287
320
|
class CustomerManagedEncryption
|
|
@@ -386,6 +419,26 @@ module Google
|
|
|
386
419
|
end
|
|
387
420
|
end
|
|
388
421
|
|
|
422
|
+
# Request message for SecretManagerService.EnableManagedRotation.
|
|
423
|
+
class EnableManagedRotationRequest
|
|
424
|
+
include Google::Apis::Core::Hashable
|
|
425
|
+
|
|
426
|
+
# These are the credentials required for Cloud SQL DB for Single user Managed
|
|
427
|
+
# Rotation.
|
|
428
|
+
# Corresponds to the JSON property `cloudSqlSingleUserCredentials`
|
|
429
|
+
# @return [Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials]
|
|
430
|
+
attr_accessor :cloud_sql_single_user_credentials
|
|
431
|
+
|
|
432
|
+
def initialize(**args)
|
|
433
|
+
update!(**args)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
# Update properties of this object
|
|
437
|
+
def update!(**args)
|
|
438
|
+
@cloud_sql_single_user_credentials = args[:cloud_sql_single_user_credentials] if args.key?(:cloud_sql_single_user_credentials)
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
389
442
|
# Request message for SecretManagerService.EnableSecretVersion.
|
|
390
443
|
class EnableSecretVersionRequest
|
|
391
444
|
include Google::Apis::Core::Hashable
|
|
@@ -599,6 +652,38 @@ module Google
|
|
|
599
652
|
end
|
|
600
653
|
end
|
|
601
654
|
|
|
655
|
+
# Represents the status of a managed rotation. This is applicable only to Typed
|
|
656
|
+
# Secrets. It indicates whether the rotation is active and any errors that may
|
|
657
|
+
# have occurred during the asynchronous managed rotation.
|
|
658
|
+
class ManagedRotationStatus
|
|
659
|
+
include Google::Apis::Core::Hashable
|
|
660
|
+
|
|
661
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
662
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
663
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
664
|
+
# data: error code, error message, and error details. You can find out more
|
|
665
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
|
666
|
+
# //cloud.google.com/apis/design/errors).
|
|
667
|
+
# Corresponds to the JSON property `error`
|
|
668
|
+
# @return [Google::Apis::SecretmanagerV1::Status]
|
|
669
|
+
attr_accessor :error
|
|
670
|
+
|
|
671
|
+
# Output only. Indicates whether the Managed Rotation is active or not.
|
|
672
|
+
# Corresponds to the JSON property `state`
|
|
673
|
+
# @return [String]
|
|
674
|
+
attr_accessor :state
|
|
675
|
+
|
|
676
|
+
def initialize(**args)
|
|
677
|
+
update!(**args)
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# Update properties of this object
|
|
681
|
+
def update!(**args)
|
|
682
|
+
@error = args[:error] if args.key?(:error)
|
|
683
|
+
@state = args[:state] if args.key?(:state)
|
|
684
|
+
end
|
|
685
|
+
end
|
|
686
|
+
|
|
602
687
|
# This resource represents a long-running operation that is the result of a
|
|
603
688
|
# network API call.
|
|
604
689
|
class Operation
|
|
@@ -962,12 +1047,66 @@ module Google
|
|
|
962
1047
|
end
|
|
963
1048
|
end
|
|
964
1049
|
|
|
1050
|
+
# Output-only policy member strings of a Google Cloud resource's built-in
|
|
1051
|
+
# identity.
|
|
1052
|
+
class ResourcePolicyMember
|
|
1053
|
+
include Google::Apis::Core::Hashable
|
|
1054
|
+
|
|
1055
|
+
# Output only. IAM policy binding member referring to a Google Cloud resource by
|
|
1056
|
+
# user-assigned name (https://google.aip.dev/122). If a resource is deleted and
|
|
1057
|
+
# recreated with the same name, the binding will be applicable to the new
|
|
1058
|
+
# resource. Example: `principal://parametermanager.googleapis.com/projects/12345/
|
|
1059
|
+
# name/locations/us-central1-a/parameters/my-parameter`
|
|
1060
|
+
# Corresponds to the JSON property `iamPolicyNamePrincipal`
|
|
1061
|
+
# @return [String]
|
|
1062
|
+
attr_accessor :iam_policy_name_principal
|
|
1063
|
+
|
|
1064
|
+
# Output only. IAM policy binding member referring to a Google Cloud resource by
|
|
1065
|
+
# system-assigned unique identifier (https://google.aip.dev/148#uid). If a
|
|
1066
|
+
# resource is deleted and recreated with the same name, the binding will not be
|
|
1067
|
+
# applicable to the new resource Example: `principal://parametermanager.
|
|
1068
|
+
# googleapis.com/projects/12345/uid/locations/us-central1-a/parameters/a918fed5`
|
|
1069
|
+
# Corresponds to the JSON property `iamPolicyUidPrincipal`
|
|
1070
|
+
# @return [String]
|
|
1071
|
+
attr_accessor :iam_policy_uid_principal
|
|
1072
|
+
|
|
1073
|
+
def initialize(**args)
|
|
1074
|
+
update!(**args)
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# Update properties of this object
|
|
1078
|
+
def update!(**args)
|
|
1079
|
+
@iam_policy_name_principal = args[:iam_policy_name_principal] if args.key?(:iam_policy_name_principal)
|
|
1080
|
+
@iam_policy_uid_principal = args[:iam_policy_uid_principal] if args.key?(:iam_policy_uid_principal)
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
# Request message for SecretManagerService.RotateSecret.
|
|
1085
|
+
class RotateSecretRequest
|
|
1086
|
+
include Google::Apis::Core::Hashable
|
|
1087
|
+
|
|
1088
|
+
def initialize(**args)
|
|
1089
|
+
update!(**args)
|
|
1090
|
+
end
|
|
1091
|
+
|
|
1092
|
+
# Update properties of this object
|
|
1093
|
+
def update!(**args)
|
|
1094
|
+
end
|
|
1095
|
+
end
|
|
1096
|
+
|
|
965
1097
|
# The rotation time and period for a Secret. At next_rotation_time, Secret
|
|
966
1098
|
# Manager will send a Pub/Sub notification to the topics configured on the
|
|
967
1099
|
# Secret. Secret.topics must be set to configure rotation.
|
|
968
1100
|
class Rotation
|
|
969
1101
|
include Google::Apis::Core::Hashable
|
|
970
1102
|
|
|
1103
|
+
# Represents the status of a managed rotation. This is applicable only to Typed
|
|
1104
|
+
# Secrets. It indicates whether the rotation is active and any errors that may
|
|
1105
|
+
# have occurred during the asynchronous managed rotation.
|
|
1106
|
+
# Corresponds to the JSON property `managedRotationStatus`
|
|
1107
|
+
# @return [Google::Apis::SecretmanagerV1::ManagedRotationStatus]
|
|
1108
|
+
attr_accessor :managed_rotation_status
|
|
1109
|
+
|
|
971
1110
|
# Optional. Timestamp in UTC at which the Secret is scheduled to rotate. Cannot
|
|
972
1111
|
# be set to less than 300s (5 min) in the future and at most 3153600000s (100
|
|
973
1112
|
# years). next_rotation_time MUST be set if rotation_period is set.
|
|
@@ -990,6 +1129,7 @@ module Google
|
|
|
990
1129
|
|
|
991
1130
|
# Update properties of this object
|
|
992
1131
|
def update!(**args)
|
|
1132
|
+
@managed_rotation_status = args[:managed_rotation_status] if args.key?(:managed_rotation_status)
|
|
993
1133
|
@next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
|
|
994
1134
|
@rotation_period = args[:rotation_period] if args.key?(:rotation_period)
|
|
995
1135
|
end
|
|
@@ -1050,6 +1190,12 @@ module Google
|
|
|
1050
1190
|
# @return [String]
|
|
1051
1191
|
attr_accessor :name
|
|
1052
1192
|
|
|
1193
|
+
# Output-only policy member strings of a Google Cloud resource's built-in
|
|
1194
|
+
# identity.
|
|
1195
|
+
# Corresponds to the JSON property `policyMember`
|
|
1196
|
+
# @return [Google::Apis::SecretmanagerV1::ResourcePolicyMember]
|
|
1197
|
+
attr_accessor :policy_member
|
|
1198
|
+
|
|
1053
1199
|
# A policy that defines the replication and encryption configuration of data.
|
|
1054
1200
|
# Corresponds to the JSON property `replication`
|
|
1055
1201
|
# @return [Google::Apis::SecretmanagerV1::Replication]
|
|
@@ -1062,6 +1208,13 @@ module Google
|
|
|
1062
1208
|
# @return [Google::Apis::SecretmanagerV1::Rotation]
|
|
1063
1209
|
attr_accessor :rotation
|
|
1064
1210
|
|
|
1211
|
+
# Optional. Immutable. This defines the type of the secret. Enforces certain
|
|
1212
|
+
# structural requirements on the SecretVersions. For secret of type UNSPECIFIED,
|
|
1213
|
+
# the SecretVersions can be of any type.
|
|
1214
|
+
# Corresponds to the JSON property `secretType`
|
|
1215
|
+
# @return [String]
|
|
1216
|
+
attr_accessor :secret_type
|
|
1217
|
+
|
|
1065
1218
|
# Optional. Input only. Immutable. Mapping of Tag keys/values directly bound to
|
|
1066
1219
|
# this resource. For example: "123/environment": "production", "123/costCenter":
|
|
1067
1220
|
# "marketing" Tags are used to organize and group resources. Tags can be used to
|
|
@@ -1114,8 +1267,10 @@ module Google
|
|
|
1114
1267
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
1115
1268
|
@labels = args[:labels] if args.key?(:labels)
|
|
1116
1269
|
@name = args[:name] if args.key?(:name)
|
|
1270
|
+
@policy_member = args[:policy_member] if args.key?(:policy_member)
|
|
1117
1271
|
@replication = args[:replication] if args.key?(:replication)
|
|
1118
1272
|
@rotation = args[:rotation] if args.key?(:rotation)
|
|
1273
|
+
@secret_type = args[:secret_type] if args.key?(:secret_type)
|
|
1119
1274
|
@tags = args[:tags] if args.key?(:tags)
|
|
1120
1275
|
@topics = args[:topics] if args.key?(:topics)
|
|
1121
1276
|
@ttl = args[:ttl] if args.key?(:ttl)
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.56.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260705"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -64,6 +64,12 @@ module Google
|
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
class CloudSqlSingleUserCredentials
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
67
73
|
class CustomerManagedEncryption
|
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
75
|
|
|
@@ -94,6 +100,12 @@ module Google
|
|
|
94
100
|
include Google::Apis::Core::JsonObjectSupport
|
|
95
101
|
end
|
|
96
102
|
|
|
103
|
+
class EnableManagedRotationRequest
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
97
109
|
class EnableSecretVersionRequest
|
|
98
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
111
|
|
|
@@ -130,6 +142,12 @@ module Google
|
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
131
143
|
end
|
|
132
144
|
|
|
145
|
+
class ManagedRotationStatus
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
133
151
|
class Operation
|
|
134
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
135
153
|
|
|
@@ -178,6 +196,18 @@ module Google
|
|
|
178
196
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
197
|
end
|
|
180
198
|
|
|
199
|
+
class ResourcePolicyMember
|
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
|
+
|
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
class RotateSecretRequest
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
181
211
|
class Rotation
|
|
182
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
213
|
|
|
@@ -304,6 +334,15 @@ module Google
|
|
|
304
334
|
end
|
|
305
335
|
end
|
|
306
336
|
|
|
337
|
+
class CloudSqlSingleUserCredentials
|
|
338
|
+
# @private
|
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
340
|
+
property :instance_id, as: 'instanceId'
|
|
341
|
+
property :password, as: 'password'
|
|
342
|
+
property :username, as: 'username'
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
|
|
307
346
|
class CustomerManagedEncryption
|
|
308
347
|
# @private
|
|
309
348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -338,6 +377,14 @@ module Google
|
|
|
338
377
|
end
|
|
339
378
|
end
|
|
340
379
|
|
|
380
|
+
class EnableManagedRotationRequest
|
|
381
|
+
# @private
|
|
382
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
383
|
+
property :cloud_sql_single_user_credentials, as: 'cloudSqlSingleUserCredentials', class: Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials, decorator: Google::Apis::SecretmanagerV1::CloudSqlSingleUserCredentials::Representation
|
|
384
|
+
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
341
388
|
class EnableSecretVersionRequest
|
|
342
389
|
# @private
|
|
343
390
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -395,6 +442,15 @@ module Google
|
|
|
395
442
|
end
|
|
396
443
|
end
|
|
397
444
|
|
|
445
|
+
class ManagedRotationStatus
|
|
446
|
+
# @private
|
|
447
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
448
|
+
property :error, as: 'error', class: Google::Apis::SecretmanagerV1::Status, decorator: Google::Apis::SecretmanagerV1::Status::Representation
|
|
449
|
+
|
|
450
|
+
property :state, as: 'state'
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
398
454
|
class Operation
|
|
399
455
|
# @private
|
|
400
456
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -481,9 +537,25 @@ module Google
|
|
|
481
537
|
end
|
|
482
538
|
end
|
|
483
539
|
|
|
540
|
+
class ResourcePolicyMember
|
|
541
|
+
# @private
|
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
543
|
+
property :iam_policy_name_principal, as: 'iamPolicyNamePrincipal'
|
|
544
|
+
property :iam_policy_uid_principal, as: 'iamPolicyUidPrincipal'
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
class RotateSecretRequest
|
|
549
|
+
# @private
|
|
550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
484
554
|
class Rotation
|
|
485
555
|
# @private
|
|
486
556
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
557
|
+
property :managed_rotation_status, as: 'managedRotationStatus', class: Google::Apis::SecretmanagerV1::ManagedRotationStatus, decorator: Google::Apis::SecretmanagerV1::ManagedRotationStatus::Representation
|
|
558
|
+
|
|
487
559
|
property :next_rotation_time, as: 'nextRotationTime'
|
|
488
560
|
property :rotation_period, as: 'rotationPeriod'
|
|
489
561
|
end
|
|
@@ -500,10 +572,13 @@ module Google
|
|
|
500
572
|
property :expire_time, as: 'expireTime'
|
|
501
573
|
hash :labels, as: 'labels'
|
|
502
574
|
property :name, as: 'name'
|
|
575
|
+
property :policy_member, as: 'policyMember', class: Google::Apis::SecretmanagerV1::ResourcePolicyMember, decorator: Google::Apis::SecretmanagerV1::ResourcePolicyMember::Representation
|
|
576
|
+
|
|
503
577
|
property :replication, as: 'replication', class: Google::Apis::SecretmanagerV1::Replication, decorator: Google::Apis::SecretmanagerV1::Replication::Representation
|
|
504
578
|
|
|
505
579
|
property :rotation, as: 'rotation', class: Google::Apis::SecretmanagerV1::Rotation, decorator: Google::Apis::SecretmanagerV1::Rotation::Representation
|
|
506
580
|
|
|
581
|
+
property :secret_type, as: 'secretType'
|
|
507
582
|
hash :tags, as: 'tags'
|
|
508
583
|
collection :topics, as: 'topics', class: Google::Apis::SecretmanagerV1::Topic, decorator: Google::Apis::SecretmanagerV1::Topic::Representation
|
|
509
584
|
|
|
@@ -248,6 +248,43 @@ module Google
|
|
|
248
248
|
execute_or_queue_command(command, &block)
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
+
# Enables the managed rotation feature for a Secret. This method can only be
|
|
252
|
+
# triggered once for a secret. In order to do further rotations, RotateSecret
|
|
253
|
+
# should be used. This method will add a secret version and update the password
|
|
254
|
+
# in Cloud SQL.
|
|
255
|
+
# @param [String] parent
|
|
256
|
+
# Required. The resource name of the Secret to associate with the SecretVersion
|
|
257
|
+
# in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
|
258
|
+
# @param [Google::Apis::SecretmanagerV1::EnableManagedRotationRequest] enable_managed_rotation_request_object
|
|
259
|
+
# @param [String] fields
|
|
260
|
+
# Selector specifying which fields to include in a partial response.
|
|
261
|
+
# @param [String] quota_user
|
|
262
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
263
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
264
|
+
# @param [Google::Apis::RequestOptions] options
|
|
265
|
+
# Request-specific options
|
|
266
|
+
#
|
|
267
|
+
# @yield [result, err] Result & error if block supplied
|
|
268
|
+
# @yieldparam result [Google::Apis::SecretmanagerV1::SecretVersion] parsed result object
|
|
269
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
270
|
+
#
|
|
271
|
+
# @return [Google::Apis::SecretmanagerV1::SecretVersion]
|
|
272
|
+
#
|
|
273
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
274
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
275
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
276
|
+
def enable_project_location_secret_managed_rotation(parent, enable_managed_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
277
|
+
command = make_simple_command(:post, 'v1/{+parent}:enableManagedRotation', options)
|
|
278
|
+
command.request_representation = Google::Apis::SecretmanagerV1::EnableManagedRotationRequest::Representation
|
|
279
|
+
command.request_object = enable_managed_rotation_request_object
|
|
280
|
+
command.response_representation = Google::Apis::SecretmanagerV1::SecretVersion::Representation
|
|
281
|
+
command.response_class = Google::Apis::SecretmanagerV1::SecretVersion
|
|
282
|
+
command.params['parent'] = parent unless parent.nil?
|
|
283
|
+
command.query['fields'] = fields unless fields.nil?
|
|
284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
285
|
+
execute_or_queue_command(command, &block)
|
|
286
|
+
end
|
|
287
|
+
|
|
251
288
|
# Gets metadata for a given Secret.
|
|
252
289
|
# @param [String] name
|
|
253
290
|
# Required. The resource name of the Secret, in the format `projects/*/secrets/*`
|
|
@@ -406,6 +443,42 @@ module Google
|
|
|
406
443
|
execute_or_queue_command(command, &block)
|
|
407
444
|
end
|
|
408
445
|
|
|
446
|
+
# Do a managed rotation for a Secret. This can only be triggered after Managed
|
|
447
|
+
# rotation has been enabled. This method will add a secret version and update
|
|
448
|
+
# the password in Cloud SQL.
|
|
449
|
+
# @param [String] parent
|
|
450
|
+
# Required. The resource name of the Secret to associate with the SecretVersion
|
|
451
|
+
# in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
|
452
|
+
# @param [Google::Apis::SecretmanagerV1::RotateSecretRequest] rotate_secret_request_object
|
|
453
|
+
# @param [String] fields
|
|
454
|
+
# Selector specifying which fields to include in a partial response.
|
|
455
|
+
# @param [String] quota_user
|
|
456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
|
459
|
+
# Request-specific options
|
|
460
|
+
#
|
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
|
462
|
+
# @yieldparam result [Google::Apis::SecretmanagerV1::SecretVersion] parsed result object
|
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
464
|
+
#
|
|
465
|
+
# @return [Google::Apis::SecretmanagerV1::SecretVersion]
|
|
466
|
+
#
|
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
470
|
+
def rotate_project_location_secret_secret(parent, rotate_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
471
|
+
command = make_simple_command(:post, 'v1/{+parent}:rotateSecret', options)
|
|
472
|
+
command.request_representation = Google::Apis::SecretmanagerV1::RotateSecretRequest::Representation
|
|
473
|
+
command.request_object = rotate_secret_request_object
|
|
474
|
+
command.response_representation = Google::Apis::SecretmanagerV1::SecretVersion::Representation
|
|
475
|
+
command.response_class = Google::Apis::SecretmanagerV1::SecretVersion
|
|
476
|
+
command.params['parent'] = parent unless parent.nil?
|
|
477
|
+
command.query['fields'] = fields unless fields.nil?
|
|
478
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
479
|
+
execute_or_queue_command(command, &block)
|
|
480
|
+
end
|
|
481
|
+
|
|
409
482
|
# Sets the access control policy on the specified secret. Replaces any existing
|
|
410
483
|
# policy. Permissions on SecretVersions are enforced according to the policy set
|
|
411
484
|
# on the associated Secret.
|
|
@@ -814,6 +887,43 @@ module Google
|
|
|
814
887
|
execute_or_queue_command(command, &block)
|
|
815
888
|
end
|
|
816
889
|
|
|
890
|
+
# Enables the managed rotation feature for a Secret. This method can only be
|
|
891
|
+
# triggered once for a secret. In order to do further rotations, RotateSecret
|
|
892
|
+
# should be used. This method will add a secret version and update the password
|
|
893
|
+
# in Cloud SQL.
|
|
894
|
+
# @param [String] parent
|
|
895
|
+
# Required. The resource name of the Secret to associate with the SecretVersion
|
|
896
|
+
# in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
|
897
|
+
# @param [Google::Apis::SecretmanagerV1::EnableManagedRotationRequest] enable_managed_rotation_request_object
|
|
898
|
+
# @param [String] fields
|
|
899
|
+
# Selector specifying which fields to include in a partial response.
|
|
900
|
+
# @param [String] quota_user
|
|
901
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
902
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
903
|
+
# @param [Google::Apis::RequestOptions] options
|
|
904
|
+
# Request-specific options
|
|
905
|
+
#
|
|
906
|
+
# @yield [result, err] Result & error if block supplied
|
|
907
|
+
# @yieldparam result [Google::Apis::SecretmanagerV1::SecretVersion] parsed result object
|
|
908
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
909
|
+
#
|
|
910
|
+
# @return [Google::Apis::SecretmanagerV1::SecretVersion]
|
|
911
|
+
#
|
|
912
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
913
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
914
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
915
|
+
def enable_project_secret_managed_rotation(parent, enable_managed_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
916
|
+
command = make_simple_command(:post, 'v1/{+parent}:enableManagedRotation', options)
|
|
917
|
+
command.request_representation = Google::Apis::SecretmanagerV1::EnableManagedRotationRequest::Representation
|
|
918
|
+
command.request_object = enable_managed_rotation_request_object
|
|
919
|
+
command.response_representation = Google::Apis::SecretmanagerV1::SecretVersion::Representation
|
|
920
|
+
command.response_class = Google::Apis::SecretmanagerV1::SecretVersion
|
|
921
|
+
command.params['parent'] = parent unless parent.nil?
|
|
922
|
+
command.query['fields'] = fields unless fields.nil?
|
|
923
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
924
|
+
execute_or_queue_command(command, &block)
|
|
925
|
+
end
|
|
926
|
+
|
|
817
927
|
# Gets metadata for a given Secret.
|
|
818
928
|
# @param [String] name
|
|
819
929
|
# Required. The resource name of the Secret, in the format `projects/*/secrets/*`
|
|
@@ -972,6 +1082,42 @@ module Google
|
|
|
972
1082
|
execute_or_queue_command(command, &block)
|
|
973
1083
|
end
|
|
974
1084
|
|
|
1085
|
+
# Do a managed rotation for a Secret. This can only be triggered after Managed
|
|
1086
|
+
# rotation has been enabled. This method will add a secret version and update
|
|
1087
|
+
# the password in Cloud SQL.
|
|
1088
|
+
# @param [String] parent
|
|
1089
|
+
# Required. The resource name of the Secret to associate with the SecretVersion
|
|
1090
|
+
# in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
|
1091
|
+
# @param [Google::Apis::SecretmanagerV1::RotateSecretRequest] rotate_secret_request_object
|
|
1092
|
+
# @param [String] fields
|
|
1093
|
+
# Selector specifying which fields to include in a partial response.
|
|
1094
|
+
# @param [String] quota_user
|
|
1095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1097
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1098
|
+
# Request-specific options
|
|
1099
|
+
#
|
|
1100
|
+
# @yield [result, err] Result & error if block supplied
|
|
1101
|
+
# @yieldparam result [Google::Apis::SecretmanagerV1::SecretVersion] parsed result object
|
|
1102
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1103
|
+
#
|
|
1104
|
+
# @return [Google::Apis::SecretmanagerV1::SecretVersion]
|
|
1105
|
+
#
|
|
1106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1109
|
+
def rotate_project_secret_secret(parent, rotate_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1110
|
+
command = make_simple_command(:post, 'v1/{+parent}:rotateSecret', options)
|
|
1111
|
+
command.request_representation = Google::Apis::SecretmanagerV1::RotateSecretRequest::Representation
|
|
1112
|
+
command.request_object = rotate_secret_request_object
|
|
1113
|
+
command.response_representation = Google::Apis::SecretmanagerV1::SecretVersion::Representation
|
|
1114
|
+
command.response_class = Google::Apis::SecretmanagerV1::SecretVersion
|
|
1115
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1116
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1118
|
+
execute_or_queue_command(command, &block)
|
|
1119
|
+
end
|
|
1120
|
+
|
|
975
1121
|
# Sets the access control policy on the specified secret. Replaces any existing
|
|
976
1122
|
# policy. Permissions on SecretVersions are enforced according to the policy set
|
|
977
1123
|
# on the associated Secret.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-secretmanager_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.56.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-secretmanager_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-secretmanager_v1/v0.56.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-secretmanager_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|