google-cloud-secret_manager-v1 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/secret_manager/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/secret_manager/v1/rest.rb +1 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/client.rb +106 -53
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/paths.rb +83 -16
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest/client.rb +116 -55
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest/service_stub.rb +113 -0
- data/lib/google/cloud/secret_manager/v1/secret_manager_service/rest.rb +1 -0
- data/lib/google/cloud/secret_manager/v1/version.rb +1 -1
- data/lib/google/cloud/secretmanager/v1/resources_pb.rb +1 -1
- data/lib/google/cloud/secretmanager/v1/service_pb.rb +1 -1
- data/lib/google/cloud/secretmanager/v1/service_services_pb.rb +25 -15
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/secretmanager/v1/resources.rb +38 -4
- data/proto_docs/google/cloud/secretmanager/v1/service.rb +117 -63
- metadata +23 -2
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/secretmanager/v1/service_pb"
|
21
21
|
require "google/cloud/secret_manager/v1/secret_manager_service/rest/service_stub"
|
22
|
+
require "google/cloud/location/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -188,8 +189,23 @@ module Google
|
|
188
189
|
universe_domain: @config.universe_domain,
|
189
190
|
credentials: credentials
|
190
191
|
)
|
192
|
+
|
193
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
194
|
+
config.credentials = credentials
|
195
|
+
config.quota_project = @quota_project_id
|
196
|
+
config.endpoint = @secret_manager_service_stub.endpoint
|
197
|
+
config.universe_domain = @secret_manager_service_stub.universe_domain
|
198
|
+
config.bindings_override = @config.bindings_override
|
199
|
+
end
|
191
200
|
end
|
192
201
|
|
202
|
+
##
|
203
|
+
# Get the associated client for mix-in of the Locations.
|
204
|
+
#
|
205
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
206
|
+
#
|
207
|
+
attr_reader :location_client
|
208
|
+
|
193
209
|
# Service calls
|
194
210
|
|
195
211
|
##
|
@@ -212,7 +228,8 @@ module Google
|
|
212
228
|
#
|
213
229
|
# @param parent [::String]
|
214
230
|
# Required. The resource name of the project associated with the
|
215
|
-
# {::Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects
|
231
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secrets}, in the format `projects/*`
|
232
|
+
# or `projects/*/locations/*`
|
216
233
|
# @param page_size [::Integer]
|
217
234
|
# Optional. The maximum number of results to be returned in a single page. If
|
218
235
|
# set to 0, the server decides the number of results to return. If the
|
@@ -290,7 +307,8 @@ module Google
|
|
290
307
|
end
|
291
308
|
|
292
309
|
##
|
293
|
-
# Creates a new {::Google::Cloud::SecretManager::V1::Secret Secret} containing no
|
310
|
+
# Creates a new {::Google::Cloud::SecretManager::V1::Secret Secret} containing no
|
311
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}.
|
294
312
|
#
|
295
313
|
# @overload create_secret(request, options = nil)
|
296
314
|
# Pass arguments to `create_secret` via a request object, either of type
|
@@ -309,7 +327,8 @@ module Google
|
|
309
327
|
#
|
310
328
|
# @param parent [::String]
|
311
329
|
# Required. The resource name of the project to associate with the
|
312
|
-
# {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects
|
330
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format `projects/*`
|
331
|
+
# or `projects/*/locations/*`.
|
313
332
|
# @param secret_id [::String]
|
314
333
|
# Required. This must be unique within the project.
|
315
334
|
#
|
@@ -317,7 +336,8 @@ module Google
|
|
317
336
|
# contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
|
318
337
|
# underscore (`_`) characters.
|
319
338
|
# @param secret [::Google::Cloud::SecretManager::V1::Secret, ::Hash]
|
320
|
-
# Required. A {::Google::Cloud::SecretManager::V1::Secret Secret} with initial
|
339
|
+
# Required. A {::Google::Cloud::SecretManager::V1::Secret Secret} with initial
|
340
|
+
# field values.
|
321
341
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
322
342
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::Secret]
|
323
343
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -377,8 +397,9 @@ module Google
|
|
377
397
|
end
|
378
398
|
|
379
399
|
##
|
380
|
-
# Creates a new {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}
|
381
|
-
# it to an existing
|
400
|
+
# Creates a new {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}
|
401
|
+
# containing secret data and attaches it to an existing
|
402
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret}.
|
382
403
|
#
|
383
404
|
# @overload add_secret_version(request, options = nil)
|
384
405
|
# Pass arguments to `add_secret_version` via a request object, either of type
|
@@ -396,10 +417,13 @@ module Google
|
|
396
417
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
397
418
|
#
|
398
419
|
# @param parent [::String]
|
399
|
-
# Required. The resource name of the
|
400
|
-
# {::Google::Cloud::SecretManager::V1::
|
420
|
+
# Required. The resource name of the
|
421
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret} to associate with the
|
422
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
|
423
|
+
# `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
401
424
|
# @param payload [::Google::Cloud::SecretManager::V1::SecretPayload, ::Hash]
|
402
|
-
# Required. The secret payload of the
|
425
|
+
# Required. The secret payload of the
|
426
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
403
427
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
404
428
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::SecretVersion]
|
405
429
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -477,7 +501,9 @@ module Google
|
|
477
501
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
478
502
|
#
|
479
503
|
# @param name [::String]
|
480
|
-
# Required. The resource name of the
|
504
|
+
# Required. The resource name of the
|
505
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret}, in the format
|
506
|
+
# `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
481
507
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
482
508
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::Secret]
|
483
509
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -537,7 +563,8 @@ module Google
|
|
537
563
|
end
|
538
564
|
|
539
565
|
##
|
540
|
-
# Updates metadata of an existing
|
566
|
+
# Updates metadata of an existing
|
567
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret}.
|
541
568
|
#
|
542
569
|
# @overload update_secret(request, options = nil)
|
543
570
|
# Pass arguments to `update_secret` via a request object, either of type
|
@@ -555,7 +582,8 @@ module Google
|
|
555
582
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
556
583
|
#
|
557
584
|
# @param secret [::Google::Cloud::SecretManager::V1::Secret, ::Hash]
|
558
|
-
# Required. {::Google::Cloud::SecretManager::V1::Secret Secret} with updated field
|
585
|
+
# Required. {::Google::Cloud::SecretManager::V1::Secret Secret} with updated field
|
586
|
+
# values.
|
559
587
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
560
588
|
# Required. Specifies the fields to be updated.
|
561
589
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -635,12 +663,13 @@ module Google
|
|
635
663
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
636
664
|
#
|
637
665
|
# @param name [::String]
|
638
|
-
# Required. The resource name of the
|
666
|
+
# Required. The resource name of the
|
667
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret} to delete in the format
|
639
668
|
# `projects/*/secrets/*`.
|
640
669
|
# @param etag [::String]
|
641
|
-
# Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The
|
642
|
-
# the etag of the currently stored secret
|
643
|
-
# the request succeeds.
|
670
|
+
# Optional. Etag of the {::Google::Cloud::SecretManager::V1::Secret Secret}. The
|
671
|
+
# request succeeds if it matches the etag of the currently stored secret
|
672
|
+
# object. If the etag is omitted, the request succeeds.
|
644
673
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
645
674
|
# @yieldparam result [::Google::Protobuf::Empty]
|
646
675
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -700,8 +729,8 @@ module Google
|
|
700
729
|
end
|
701
730
|
|
702
731
|
##
|
703
|
-
# Lists {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}. This
|
704
|
-
# data.
|
732
|
+
# Lists {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions}. This
|
733
|
+
# call does not return secret data.
|
705
734
|
#
|
706
735
|
# @overload list_secret_versions(request, options = nil)
|
707
736
|
# Pass arguments to `list_secret_versions` via a request object, either of type
|
@@ -719,9 +748,10 @@ module Google
|
|
719
748
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
720
749
|
#
|
721
750
|
# @param parent [::String]
|
722
|
-
# Required. The resource name of the
|
723
|
-
# {::Google::Cloud::SecretManager::V1::
|
724
|
-
#
|
751
|
+
# Required. The resource name of the
|
752
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret} associated with the
|
753
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} to list, in
|
754
|
+
# the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.
|
725
755
|
# @param page_size [::Integer]
|
726
756
|
# Optional. The maximum number of results to be returned in a single page. If
|
727
757
|
# set to 0, the server decides the number of results to return. If the
|
@@ -799,7 +829,8 @@ module Google
|
|
799
829
|
end
|
800
830
|
|
801
831
|
##
|
802
|
-
# Gets metadata for a
|
832
|
+
# Gets metadata for a
|
833
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
803
834
|
#
|
804
835
|
# `projects/*/secrets/*/versions/latest` is an alias to the most recently
|
805
836
|
# created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
@@ -820,11 +851,15 @@ module Google
|
|
820
851
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
821
852
|
#
|
822
853
|
# @param name [::String]
|
823
|
-
# Required. The resource name of the
|
824
|
-
#
|
825
|
-
#
|
826
|
-
# `projects/*/secrets/*/versions
|
827
|
-
#
|
854
|
+
# Required. The resource name of the
|
855
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
|
856
|
+
# `projects/*/secrets/*/versions/*` or
|
857
|
+
# `projects/*/locations/*/secrets/*/versions/*`.
|
858
|
+
#
|
859
|
+
# `projects/*/secrets/*/versions/latest` or
|
860
|
+
# `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
|
861
|
+
# recently created
|
862
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
828
863
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
829
864
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::SecretVersion]
|
830
865
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -884,7 +919,8 @@ module Google
|
|
884
919
|
end
|
885
920
|
|
886
921
|
##
|
887
|
-
# Accesses a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
922
|
+
# Accesses a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
923
|
+
# This call returns the secret data.
|
888
924
|
#
|
889
925
|
# `projects/*/secrets/*/versions/latest` is an alias to the most recently
|
890
926
|
# created {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
@@ -905,11 +941,15 @@ module Google
|
|
905
941
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
906
942
|
#
|
907
943
|
# @param name [::String]
|
908
|
-
# Required. The resource name of the
|
909
|
-
#
|
910
|
-
#
|
911
|
-
# `projects/*/secrets/*/versions
|
912
|
-
#
|
944
|
+
# Required. The resource name of the
|
945
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} in the format
|
946
|
+
# `projects/*/secrets/*/versions/*` or
|
947
|
+
# `projects/*/locations/*/secrets/*/versions/*`.
|
948
|
+
#
|
949
|
+
# `projects/*/secrets/*/versions/latest` or
|
950
|
+
# `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most
|
951
|
+
# recently created
|
952
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
913
953
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
914
954
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse]
|
915
955
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -971,7 +1011,8 @@ module Google
|
|
971
1011
|
##
|
972
1012
|
# Disables a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
973
1013
|
#
|
974
|
-
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1014
|
+
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1015
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to
|
975
1016
|
# {::Google::Cloud::SecretManager::V1::SecretVersion::State::DISABLED DISABLED}.
|
976
1017
|
#
|
977
1018
|
# @overload disable_secret_version(request, options = nil)
|
@@ -990,12 +1031,15 @@ module Google
|
|
990
1031
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
1032
|
#
|
992
1033
|
# @param name [::String]
|
993
|
-
# Required. The resource name of the
|
994
|
-
#
|
1034
|
+
# Required. The resource name of the
|
1035
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to disable in
|
1036
|
+
# the format `projects/*/secrets/*/versions/*` or
|
1037
|
+
# `projects/*/locations/*/secrets/*/versions/*`.
|
995
1038
|
# @param etag [::String]
|
996
|
-
# Optional. Etag of the
|
997
|
-
#
|
998
|
-
#
|
1039
|
+
# Optional. Etag of the
|
1040
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
|
1041
|
+
# succeeds if it matches the etag of the currently stored secret version
|
1042
|
+
# object. If the etag is omitted, the request succeeds.
|
999
1043
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1000
1044
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::SecretVersion]
|
1001
1045
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1057,7 +1101,8 @@ module Google
|
|
1057
1101
|
##
|
1058
1102
|
# Enables a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
1059
1103
|
#
|
1060
|
-
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1104
|
+
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1105
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to
|
1061
1106
|
# {::Google::Cloud::SecretManager::V1::SecretVersion::State::ENABLED ENABLED}.
|
1062
1107
|
#
|
1063
1108
|
# @overload enable_secret_version(request, options = nil)
|
@@ -1076,12 +1121,15 @@ module Google
|
|
1076
1121
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1077
1122
|
#
|
1078
1123
|
# @param name [::String]
|
1079
|
-
# Required. The resource name of the
|
1080
|
-
#
|
1124
|
+
# Required. The resource name of the
|
1125
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to enable in
|
1126
|
+
# the format `projects/*/secrets/*/versions/*` or
|
1127
|
+
# `projects/*/locations/*/secrets/*/versions/*`.
|
1081
1128
|
# @param etag [::String]
|
1082
|
-
# Optional. Etag of the
|
1083
|
-
#
|
1084
|
-
#
|
1129
|
+
# Optional. Etag of the
|
1130
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
|
1131
|
+
# succeeds if it matches the etag of the currently stored secret version
|
1132
|
+
# object. If the etag is omitted, the request succeeds.
|
1085
1133
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1086
1134
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::SecretVersion]
|
1087
1135
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1143,9 +1191,10 @@ module Google
|
|
1143
1191
|
##
|
1144
1192
|
# Destroys a {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}.
|
1145
1193
|
#
|
1146
|
-
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1147
|
-
# {::Google::Cloud::SecretManager::V1::SecretVersion
|
1148
|
-
#
|
1194
|
+
# Sets the {::Google::Cloud::SecretManager::V1::SecretVersion#state state} of the
|
1195
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to
|
1196
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion::State::DESTROYED DESTROYED}
|
1197
|
+
# and irrevocably destroys the secret data.
|
1149
1198
|
#
|
1150
1199
|
# @overload destroy_secret_version(request, options = nil)
|
1151
1200
|
# Pass arguments to `destroy_secret_version` via a request object, either of type
|
@@ -1163,12 +1212,15 @@ module Google
|
|
1163
1212
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1164
1213
|
#
|
1165
1214
|
# @param name [::String]
|
1166
|
-
# Required. The resource name of the
|
1167
|
-
#
|
1215
|
+
# Required. The resource name of the
|
1216
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion} to destroy in
|
1217
|
+
# the format `projects/*/secrets/*/versions/*` or
|
1218
|
+
# `projects/*/locations/*/secrets/*/versions/*`.
|
1168
1219
|
# @param etag [::String]
|
1169
|
-
# Optional. Etag of the
|
1170
|
-
#
|
1171
|
-
#
|
1220
|
+
# Optional. Etag of the
|
1221
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersion}. The request
|
1222
|
+
# succeeds if it matches the etag of the currently stored secret version
|
1223
|
+
# object. If the etag is omitted, the request succeeds.
|
1172
1224
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1173
1225
|
# @yieldparam result [::Google::Cloud::SecretManager::V1::SecretVersion]
|
1174
1226
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1231,8 +1283,10 @@ module Google
|
|
1231
1283
|
# Sets the access control policy on the specified secret. Replaces any
|
1232
1284
|
# existing policy.
|
1233
1285
|
#
|
1234
|
-
# Permissions on
|
1235
|
-
#
|
1286
|
+
# Permissions on
|
1287
|
+
# {::Google::Cloud::SecretManager::V1::SecretVersion SecretVersions} are enforced
|
1288
|
+
# according to the policy set on the associated
|
1289
|
+
# {::Google::Cloud::SecretManager::V1::Secret Secret}.
|
1236
1290
|
#
|
1237
1291
|
# @overload set_iam_policy(request, options = nil)
|
1238
1292
|
# Pass arguments to `set_iam_policy` via a request object, either of type
|
@@ -1590,6 +1644,13 @@ module Google
|
|
1590
1644
|
config_attr :quota_project, nil, ::String, nil
|
1591
1645
|
config_attr :universe_domain, nil, ::String, nil
|
1592
1646
|
|
1647
|
+
# @private
|
1648
|
+
# Overrides for http bindings for the RPCs of this service
|
1649
|
+
# are only used when this service is used as mixin, and only
|
1650
|
+
# by the host service.
|
1651
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1652
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
1653
|
+
|
1593
1654
|
# @private
|
1594
1655
|
def initialize parent_config = nil
|
1595
1656
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -649,6 +649,13 @@ module Google
|
|
649
649
|
["parent", %r{^projects/[^/]+/?$}, false]
|
650
650
|
]
|
651
651
|
)
|
652
|
+
.with_bindings(
|
653
|
+
uri_method: :get,
|
654
|
+
uri_template: "/v1/{parent}/secrets",
|
655
|
+
matches: [
|
656
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
657
|
+
]
|
658
|
+
)
|
652
659
|
transcoder.transcode request_pb
|
653
660
|
end
|
654
661
|
|
@@ -671,6 +678,14 @@ module Google
|
|
671
678
|
["parent", %r{^projects/[^/]+/?$}, false]
|
672
679
|
]
|
673
680
|
)
|
681
|
+
.with_bindings(
|
682
|
+
uri_method: :post,
|
683
|
+
uri_template: "/v1/{parent}/secrets",
|
684
|
+
body: "secret",
|
685
|
+
matches: [
|
686
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
687
|
+
]
|
688
|
+
)
|
674
689
|
transcoder.transcode request_pb
|
675
690
|
end
|
676
691
|
|
@@ -693,6 +708,14 @@ module Google
|
|
693
708
|
["parent", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
694
709
|
]
|
695
710
|
)
|
711
|
+
.with_bindings(
|
712
|
+
uri_method: :post,
|
713
|
+
uri_template: "/v1/{parent}:addVersion",
|
714
|
+
body: "*",
|
715
|
+
matches: [
|
716
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
717
|
+
]
|
718
|
+
)
|
696
719
|
transcoder.transcode request_pb
|
697
720
|
end
|
698
721
|
|
@@ -714,6 +737,13 @@ module Google
|
|
714
737
|
["name", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
715
738
|
]
|
716
739
|
)
|
740
|
+
.with_bindings(
|
741
|
+
uri_method: :get,
|
742
|
+
uri_template: "/v1/{name}",
|
743
|
+
matches: [
|
744
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
745
|
+
]
|
746
|
+
)
|
717
747
|
transcoder.transcode request_pb
|
718
748
|
end
|
719
749
|
|
@@ -736,6 +766,14 @@ module Google
|
|
736
766
|
["secret.name", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
737
767
|
]
|
738
768
|
)
|
769
|
+
.with_bindings(
|
770
|
+
uri_method: :patch,
|
771
|
+
uri_template: "/v1/{secret.name}",
|
772
|
+
body: "secret",
|
773
|
+
matches: [
|
774
|
+
["secret.name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
775
|
+
]
|
776
|
+
)
|
739
777
|
transcoder.transcode request_pb
|
740
778
|
end
|
741
779
|
|
@@ -757,6 +795,13 @@ module Google
|
|
757
795
|
["name", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
758
796
|
]
|
759
797
|
)
|
798
|
+
.with_bindings(
|
799
|
+
uri_method: :delete,
|
800
|
+
uri_template: "/v1/{name}",
|
801
|
+
matches: [
|
802
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
803
|
+
]
|
804
|
+
)
|
760
805
|
transcoder.transcode request_pb
|
761
806
|
end
|
762
807
|
|
@@ -778,6 +823,13 @@ module Google
|
|
778
823
|
["parent", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
779
824
|
]
|
780
825
|
)
|
826
|
+
.with_bindings(
|
827
|
+
uri_method: :get,
|
828
|
+
uri_template: "/v1/{parent}/versions",
|
829
|
+
matches: [
|
830
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
831
|
+
]
|
832
|
+
)
|
781
833
|
transcoder.transcode request_pb
|
782
834
|
end
|
783
835
|
|
@@ -799,6 +851,13 @@ module Google
|
|
799
851
|
["name", %r{^projects/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
800
852
|
]
|
801
853
|
)
|
854
|
+
.with_bindings(
|
855
|
+
uri_method: :get,
|
856
|
+
uri_template: "/v1/{name}",
|
857
|
+
matches: [
|
858
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
859
|
+
]
|
860
|
+
)
|
802
861
|
transcoder.transcode request_pb
|
803
862
|
end
|
804
863
|
|
@@ -820,6 +879,13 @@ module Google
|
|
820
879
|
["name", %r{^projects/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
821
880
|
]
|
822
881
|
)
|
882
|
+
.with_bindings(
|
883
|
+
uri_method: :get,
|
884
|
+
uri_template: "/v1/{name}:access",
|
885
|
+
matches: [
|
886
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
887
|
+
]
|
888
|
+
)
|
823
889
|
transcoder.transcode request_pb
|
824
890
|
end
|
825
891
|
|
@@ -842,6 +908,14 @@ module Google
|
|
842
908
|
["name", %r{^projects/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
843
909
|
]
|
844
910
|
)
|
911
|
+
.with_bindings(
|
912
|
+
uri_method: :post,
|
913
|
+
uri_template: "/v1/{name}:disable",
|
914
|
+
body: "*",
|
915
|
+
matches: [
|
916
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
917
|
+
]
|
918
|
+
)
|
845
919
|
transcoder.transcode request_pb
|
846
920
|
end
|
847
921
|
|
@@ -864,6 +938,14 @@ module Google
|
|
864
938
|
["name", %r{^projects/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
865
939
|
]
|
866
940
|
)
|
941
|
+
.with_bindings(
|
942
|
+
uri_method: :post,
|
943
|
+
uri_template: "/v1/{name}:enable",
|
944
|
+
body: "*",
|
945
|
+
matches: [
|
946
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
947
|
+
]
|
948
|
+
)
|
867
949
|
transcoder.transcode request_pb
|
868
950
|
end
|
869
951
|
|
@@ -886,6 +968,14 @@ module Google
|
|
886
968
|
["name", %r{^projects/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
887
969
|
]
|
888
970
|
)
|
971
|
+
.with_bindings(
|
972
|
+
uri_method: :post,
|
973
|
+
uri_template: "/v1/{name}:destroy",
|
974
|
+
body: "*",
|
975
|
+
matches: [
|
976
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/versions/[^/]+/?$}, false]
|
977
|
+
]
|
978
|
+
)
|
889
979
|
transcoder.transcode request_pb
|
890
980
|
end
|
891
981
|
|
@@ -908,6 +998,14 @@ module Google
|
|
908
998
|
["resource", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
909
999
|
]
|
910
1000
|
)
|
1001
|
+
.with_bindings(
|
1002
|
+
uri_method: :post,
|
1003
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
1004
|
+
body: "*",
|
1005
|
+
matches: [
|
1006
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
1007
|
+
]
|
1008
|
+
)
|
911
1009
|
transcoder.transcode request_pb
|
912
1010
|
end
|
913
1011
|
|
@@ -929,6 +1027,13 @@ module Google
|
|
929
1027
|
["resource", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
930
1028
|
]
|
931
1029
|
)
|
1030
|
+
.with_bindings(
|
1031
|
+
uri_method: :get,
|
1032
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
1033
|
+
matches: [
|
1034
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
1035
|
+
]
|
1036
|
+
)
|
932
1037
|
transcoder.transcode request_pb
|
933
1038
|
end
|
934
1039
|
|
@@ -951,6 +1056,14 @@ module Google
|
|
951
1056
|
["resource", %r{^projects/[^/]+/secrets/[^/]+/?$}, false]
|
952
1057
|
]
|
953
1058
|
)
|
1059
|
+
.with_bindings(
|
1060
|
+
uri_method: :post,
|
1061
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
1062
|
+
body: "*",
|
1063
|
+
matches: [
|
1064
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/secrets/[^/]+/?$}, false]
|
1065
|
+
]
|
1066
|
+
)
|
954
1067
|
transcoder.transcode request_pb
|
955
1068
|
end
|
956
1069
|
end
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
21
21
|
require "gapic/config/method"
|
22
22
|
|
23
23
|
require "google/cloud/secret_manager/v1/version"
|
24
|
+
require "google/cloud/secret_manager/v1/bindings_override"
|
24
25
|
|
25
26
|
require "google/cloud/secret_manager/v1/secret_manager_service/credentials"
|
26
27
|
require "google/cloud/secret_manager/v1/secret_manager_service/paths"
|
@@ -10,7 +10,7 @@ require 'google/protobuf/duration_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n-google/cloud/secretmanager/v1/resources.proto\x12\x1dgoogle.cloud.secretmanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n-google/cloud/secretmanager/v1/resources.proto\x12\x1dgoogle.cloud.secretmanager.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe2\x08\n\x06Secret\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12G\n\x0breplication\x18\x02 \x01(\x0b\x32*.google.cloud.secretmanager.v1.ReplicationB\x06\xe0\x41\x05\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.secretmanager.v1.Secret.LabelsEntry\x12\x39\n\x06topics\x18\x05 \x03(\x0b\x32$.google.cloud.secretmanager.v1.TopicB\x03\xe0\x41\x01\x12\x36\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00\x12-\n\x03ttl\x18\x07 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x04H\x00\x12\x11\n\x04\x65tag\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12>\n\x08rotation\x18\t \x01(\x0b\x32\'.google.cloud.secretmanager.v1.RotationB\x03\xe0\x41\x01\x12W\n\x0fversion_aliases\x18\x0b \x03(\x0b\x32\x39.google.cloud.secretmanager.v1.Secret.VersionAliasesEntryB\x03\xe0\x41\x01\x12P\n\x0b\x61nnotations\x18\r \x03(\x0b\x32\x36.google.cloud.secretmanager.v1.Secret.AnnotationsEntryB\x03\xe0\x41\x01\x12;\n\x13version_destroy_ttl\x18\x0e \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x62\n\x1b\x63ustomer_managed_encryption\x18\x0f \x01(\x0b\x32\x38.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x35\n\x13VersionAliasesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x99\x01\xea\x41\x95\x01\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\x12\x38projects/{project}/locations/{location}/secrets/{secret}*\x07secrets2\x06secretB\x0c\n\nexpiration\"\xc2\x06\n\rSecretVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x35\n\x0c\x64\x65stroy_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.secretmanager.v1.SecretVersion.StateB\x03\xe0\x41\x03\x12L\n\x12replication_status\x18\x05 \x01(\x0b\x32\x30.google.cloud.secretmanager.v1.ReplicationStatus\x12\x11\n\x04\x65tag\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12.\n!client_specified_payload_checksum\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x16scheduled_destroy_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12h\n\x1b\x63ustomer_managed_encryption\x18\t \x01(\x0b\x32>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\x03\xe0\x41\x03\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03:\xe2\x01\xea\x41\xde\x01\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}\x12Rprojects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}*\x0esecretVersions2\rsecretVersion\"\x90\x04\n\x0bReplication\x12I\n\tautomatic\x18\x01 \x01(\x0b\x32\x34.google.cloud.secretmanager.v1.Replication.AutomaticH\x00\x12N\n\x0cuser_managed\x18\x02 \x01(\x0b\x32\x36.google.cloud.secretmanager.v1.Replication.UserManagedH\x00\x1ao\n\tAutomatic\x12\x62\n\x1b\x63ustomer_managed_encryption\x18\x01 \x01(\x0b\x32\x38.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\x03\xe0\x41\x01\x1a\xe5\x01\n\x0bUserManaged\x12U\n\x08replicas\x18\x01 \x03(\x0b\x32>.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaB\x03\xe0\x41\x02\x1a\x7f\n\x07Replica\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x62\n\x1b\x63ustomer_managed_encryption\x18\x02 \x01(\x0b\x32\x38.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\x03\xe0\x41\x01\x42\r\n\x0breplication\"6\n\x19\x43ustomerManagedEncryption\x12\x19\n\x0ckms_key_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xeb\x04\n\x11ReplicationStatus\x12U\n\tautomatic\x18\x01 \x01(\x0b\x32@.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusH\x00\x12Z\n\x0cuser_managed\x18\x02 \x01(\x0b\x32\x42.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusH\x00\x1a{\n\x0f\x41utomaticStatus\x12h\n\x1b\x63ustomer_managed_encryption\x18\x01 \x01(\x0b\x32>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\x03\xe0\x41\x03\x1a\x8f\x02\n\x11UserManagedStatus\x12g\n\x08replicas\x18\x01 \x03(\x0b\x32P.google.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusB\x03\xe0\x41\x03\x1a\x90\x01\n\rReplicaStatus\x12\x15\n\x08location\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12h\n\x1b\x63ustomer_managed_encryption\x18\x02 \x01(\x0b\x32>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\x03\xe0\x41\x03\x42\x14\n\x12replication_status\"D\n\x1f\x43ustomerManagedEncryptionStatus\x12!\n\x14kms_key_version_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"_\n\x05Topic\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02:C\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\"\x80\x01\n\x08Rotation\x12;\n\x12next_rotation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x37\n\x0frotation_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x04\"L\n\rSecretPayload\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x1d\n\x0b\x64\x61ta_crc32c\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0e\n\x0c_data_crc32cB\xea\x01\n!com.google.cloud.secretmanager.v1B\x0eResourcesProtoP\x01ZGcloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb\xf8\x01\x01\xa2\x02\x03GSM\xaa\x02\x1dGoogle.Cloud.SecretManager.V1\xca\x02\x1dGoogle\\Cloud\\SecretManager\\V1\xea\x02 Google::Cloud::SecretManager::V1b\x06proto3"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|