google-cloud-secret_manager-v1 0.17.2 → 0.18.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: e48e8dc813874610476b1d7155f057d36150b4924316da48e50b9c0e010ffcfd
4
- data.tar.gz: ea2f2fb97a2e06b98b3046d1f76f0439073a26ae4556596a6d882369e1ad6479
3
+ metadata.gz: 179bed2444a125eec44ab89deda974f7e034a974f41f0e5db1d5addb21992533
4
+ data.tar.gz: d0153f59fb357eafe7eea38b478b9502343a114637b555f1815b857154d57b43
5
5
  SHA512:
6
- metadata.gz: 17748c6537b898a59634f8f2f5af4bdd1eced7a7153460e8d8d851c31592d0d7e0f86aa75c35f1974e6dd98cde712f1e87fc0bfd035143d6f307c0905a1137dc
7
- data.tar.gz: a9c4ec37ae50b2b019af645d676dc2a9644895774bac2f172964e3bf97c8c3826bcff30cbdd29a1380c07199d3e3ac936d2bd2340f962d16cca874d04102d1a1
6
+ metadata.gz: 95d33e45301d986dd729e97e196dd255effe0b0568f8f34d96fa70b1d1460dec2cb02af5a1ef558f981e9cc29a0cd148507f9820d763d5710f42d1bd5ba8995c
7
+ data.tar.gz: bf3a88192cd2d95f35c683fbac7504ca87dfbb59ffeeed358be83d8242c3614fc557554925173788b63f086f5fcb31083bc4b38525979bc3dc079667c5d331eb
@@ -177,7 +177,8 @@ module Google
177
177
  credentials: credentials,
178
178
  endpoint: @config.endpoint,
179
179
  channel_args: @config.channel_args,
180
- interceptors: @config.interceptors
180
+ interceptors: @config.interceptors,
181
+ channel_pool_config: @config.channel_pool
181
182
  )
182
183
  end
183
184
 
@@ -1709,6 +1710,14 @@ module Google
1709
1710
  end
1710
1711
  end
1711
1712
 
1713
+ ##
1714
+ # Configuration for the channel pool
1715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1716
+ #
1717
+ def channel_pool
1718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1719
+ end
1720
+
1712
1721
  ##
1713
1722
  # Configuration RPC class for the SecretManagerService API.
1714
1723
  #
@@ -215,6 +215,26 @@ module Google
215
215
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1::Secret>]
216
216
  #
217
217
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
218
+ #
219
+ # @example Basic example
220
+ # require "google/cloud/secret_manager/v1"
221
+ #
222
+ # # Create a client object. The client can be reused for multiple calls.
223
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
224
+ #
225
+ # # Create a request. To set request fields, pass in keyword arguments.
226
+ # request = Google::Cloud::SecretManager::V1::ListSecretsRequest.new
227
+ #
228
+ # # Call the list_secrets method.
229
+ # result = client.list_secrets request
230
+ #
231
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
232
+ # # over elements, and API calls will be issued to fetch pages as needed.
233
+ # result.each do |item|
234
+ # # Each element is of type ::Google::Cloud::SecretManager::V1::Secret.
235
+ # p item
236
+ # end
237
+ #
218
238
  def list_secrets request, options = nil
219
239
  raise ::ArgumentError, "request must be provided" if request.nil?
220
240
 
@@ -287,6 +307,22 @@ module Google
287
307
  # @return [::Google::Cloud::SecretManager::V1::Secret]
288
308
  #
289
309
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
310
+ #
311
+ # @example Basic example
312
+ # require "google/cloud/secret_manager/v1"
313
+ #
314
+ # # Create a client object. The client can be reused for multiple calls.
315
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
316
+ #
317
+ # # Create a request. To set request fields, pass in keyword arguments.
318
+ # request = Google::Cloud::SecretManager::V1::CreateSecretRequest.new
319
+ #
320
+ # # Call the create_secret method.
321
+ # result = client.create_secret request
322
+ #
323
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
324
+ # p result
325
+ #
290
326
  def create_secret request, options = nil
291
327
  raise ::ArgumentError, "request must be provided" if request.nil?
292
328
 
@@ -353,6 +389,22 @@ module Google
353
389
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion]
354
390
  #
355
391
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
392
+ #
393
+ # @example Basic example
394
+ # require "google/cloud/secret_manager/v1"
395
+ #
396
+ # # Create a client object. The client can be reused for multiple calls.
397
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
398
+ #
399
+ # # Create a request. To set request fields, pass in keyword arguments.
400
+ # request = Google::Cloud::SecretManager::V1::AddSecretVersionRequest.new
401
+ #
402
+ # # Call the add_secret_version method.
403
+ # result = client.add_secret_version request
404
+ #
405
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
406
+ # p result
407
+ #
356
408
  def add_secret_version request, options = nil
357
409
  raise ::ArgumentError, "request must be provided" if request.nil?
358
410
 
@@ -415,6 +467,22 @@ module Google
415
467
  # @return [::Google::Cloud::SecretManager::V1::Secret]
416
468
  #
417
469
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
470
+ #
471
+ # @example Basic example
472
+ # require "google/cloud/secret_manager/v1"
473
+ #
474
+ # # Create a client object. The client can be reused for multiple calls.
475
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
476
+ #
477
+ # # Create a request. To set request fields, pass in keyword arguments.
478
+ # request = Google::Cloud::SecretManager::V1::GetSecretRequest.new
479
+ #
480
+ # # Call the get_secret method.
481
+ # result = client.get_secret request
482
+ #
483
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
484
+ # p result
485
+ #
418
486
  def get_secret request, options = nil
419
487
  raise ::ArgumentError, "request must be provided" if request.nil?
420
488
 
@@ -479,6 +547,22 @@ module Google
479
547
  # @return [::Google::Cloud::SecretManager::V1::Secret]
480
548
  #
481
549
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
550
+ #
551
+ # @example Basic example
552
+ # require "google/cloud/secret_manager/v1"
553
+ #
554
+ # # Create a client object. The client can be reused for multiple calls.
555
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
556
+ #
557
+ # # Create a request. To set request fields, pass in keyword arguments.
558
+ # request = Google::Cloud::SecretManager::V1::UpdateSecretRequest.new
559
+ #
560
+ # # Call the update_secret method.
561
+ # result = client.update_secret request
562
+ #
563
+ # # The returned object is of type Google::Cloud::SecretManager::V1::Secret.
564
+ # p result
565
+ #
482
566
  def update_secret request, options = nil
483
567
  raise ::ArgumentError, "request must be provided" if request.nil?
484
568
 
@@ -546,6 +630,22 @@ module Google
546
630
  # @return [::Google::Protobuf::Empty]
547
631
  #
548
632
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
633
+ #
634
+ # @example Basic example
635
+ # require "google/cloud/secret_manager/v1"
636
+ #
637
+ # # Create a client object. The client can be reused for multiple calls.
638
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
639
+ #
640
+ # # Create a request. To set request fields, pass in keyword arguments.
641
+ # request = Google::Cloud::SecretManager::V1::DeleteSecretRequest.new
642
+ #
643
+ # # Call the delete_secret method.
644
+ # result = client.delete_secret request
645
+ #
646
+ # # The returned object is of type Google::Protobuf::Empty.
647
+ # p result
648
+ #
549
649
  def delete_secret request, options = nil
550
650
  raise ::ArgumentError, "request must be provided" if request.nil?
551
651
 
@@ -624,6 +724,26 @@ module Google
624
724
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1::SecretVersion>]
625
725
  #
626
726
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
727
+ #
728
+ # @example Basic example
729
+ # require "google/cloud/secret_manager/v1"
730
+ #
731
+ # # Create a client object. The client can be reused for multiple calls.
732
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
733
+ #
734
+ # # Create a request. To set request fields, pass in keyword arguments.
735
+ # request = Google::Cloud::SecretManager::V1::ListSecretVersionsRequest.new
736
+ #
737
+ # # Call the list_secret_versions method.
738
+ # result = client.list_secret_versions request
739
+ #
740
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
741
+ # # over elements, and API calls will be issued to fetch pages as needed.
742
+ # result.each do |item|
743
+ # # Each element is of type ::Google::Cloud::SecretManager::V1::SecretVersion.
744
+ # p item
745
+ # end
746
+ #
627
747
  def list_secret_versions request, options = nil
628
748
  raise ::ArgumentError, "request must be provided" if request.nil?
629
749
 
@@ -694,6 +814,22 @@ module Google
694
814
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion]
695
815
  #
696
816
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
817
+ #
818
+ # @example Basic example
819
+ # require "google/cloud/secret_manager/v1"
820
+ #
821
+ # # Create a client object. The client can be reused for multiple calls.
822
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
823
+ #
824
+ # # Create a request. To set request fields, pass in keyword arguments.
825
+ # request = Google::Cloud::SecretManager::V1::GetSecretVersionRequest.new
826
+ #
827
+ # # Call the get_secret_version method.
828
+ # result = client.get_secret_version request
829
+ #
830
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
831
+ # p result
832
+ #
697
833
  def get_secret_version request, options = nil
698
834
  raise ::ArgumentError, "request must be provided" if request.nil?
699
835
 
@@ -763,6 +899,22 @@ module Google
763
899
  # @return [::Google::Cloud::SecretManager::V1::AccessSecretVersionResponse]
764
900
  #
765
901
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
902
+ #
903
+ # @example Basic example
904
+ # require "google/cloud/secret_manager/v1"
905
+ #
906
+ # # Create a client object. The client can be reused for multiple calls.
907
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
908
+ #
909
+ # # Create a request. To set request fields, pass in keyword arguments.
910
+ # request = Google::Cloud::SecretManager::V1::AccessSecretVersionRequest.new
911
+ #
912
+ # # Call the access_secret_version method.
913
+ # result = client.access_secret_version request
914
+ #
915
+ # # The returned object is of type Google::Cloud::SecretManager::V1::AccessSecretVersionResponse.
916
+ # p result
917
+ #
766
918
  def access_secret_version request, options = nil
767
919
  raise ::ArgumentError, "request must be provided" if request.nil?
768
920
 
@@ -833,6 +985,22 @@ module Google
833
985
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion]
834
986
  #
835
987
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
988
+ #
989
+ # @example Basic example
990
+ # require "google/cloud/secret_manager/v1"
991
+ #
992
+ # # Create a client object. The client can be reused for multiple calls.
993
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
994
+ #
995
+ # # Create a request. To set request fields, pass in keyword arguments.
996
+ # request = Google::Cloud::SecretManager::V1::DisableSecretVersionRequest.new
997
+ #
998
+ # # Call the disable_secret_version method.
999
+ # result = client.disable_secret_version request
1000
+ #
1001
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1002
+ # p result
1003
+ #
836
1004
  def disable_secret_version request, options = nil
837
1005
  raise ::ArgumentError, "request must be provided" if request.nil?
838
1006
 
@@ -903,6 +1071,22 @@ module Google
903
1071
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion]
904
1072
  #
905
1073
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1074
+ #
1075
+ # @example Basic example
1076
+ # require "google/cloud/secret_manager/v1"
1077
+ #
1078
+ # # Create a client object. The client can be reused for multiple calls.
1079
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
1080
+ #
1081
+ # # Create a request. To set request fields, pass in keyword arguments.
1082
+ # request = Google::Cloud::SecretManager::V1::EnableSecretVersionRequest.new
1083
+ #
1084
+ # # Call the enable_secret_version method.
1085
+ # result = client.enable_secret_version request
1086
+ #
1087
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1088
+ # p result
1089
+ #
906
1090
  def enable_secret_version request, options = nil
907
1091
  raise ::ArgumentError, "request must be provided" if request.nil?
908
1092
 
@@ -974,6 +1158,22 @@ module Google
974
1158
  # @return [::Google::Cloud::SecretManager::V1::SecretVersion]
975
1159
  #
976
1160
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1161
+ #
1162
+ # @example Basic example
1163
+ # require "google/cloud/secret_manager/v1"
1164
+ #
1165
+ # # Create a client object. The client can be reused for multiple calls.
1166
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
1167
+ #
1168
+ # # Create a request. To set request fields, pass in keyword arguments.
1169
+ # request = Google::Cloud::SecretManager::V1::DestroySecretVersionRequest.new
1170
+ #
1171
+ # # Call the destroy_secret_version method.
1172
+ # result = client.destroy_secret_version request
1173
+ #
1174
+ # # The returned object is of type Google::Cloud::SecretManager::V1::SecretVersion.
1175
+ # p result
1176
+ #
977
1177
  def destroy_secret_version request, options = nil
978
1178
  raise ::ArgumentError, "request must be provided" if request.nil?
979
1179
 
@@ -1052,6 +1252,22 @@ module Google
1052
1252
  # @return [::Google::Iam::V1::Policy]
1053
1253
  #
1054
1254
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1255
+ #
1256
+ # @example Basic example
1257
+ # require "google/cloud/secret_manager/v1"
1258
+ #
1259
+ # # Create a client object. The client can be reused for multiple calls.
1260
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
1261
+ #
1262
+ # # Create a request. To set request fields, pass in keyword arguments.
1263
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
1264
+ #
1265
+ # # Call the set_iam_policy method.
1266
+ # result = client.set_iam_policy request
1267
+ #
1268
+ # # The returned object is of type Google::Iam::V1::Policy.
1269
+ # p result
1270
+ #
1055
1271
  def set_iam_policy request, options = nil
1056
1272
  raise ::ArgumentError, "request must be provided" if request.nil?
1057
1273
 
@@ -1119,6 +1335,22 @@ module Google
1119
1335
  # @return [::Google::Iam::V1::Policy]
1120
1336
  #
1121
1337
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1338
+ #
1339
+ # @example Basic example
1340
+ # require "google/cloud/secret_manager/v1"
1341
+ #
1342
+ # # Create a client object. The client can be reused for multiple calls.
1343
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
1344
+ #
1345
+ # # Create a request. To set request fields, pass in keyword arguments.
1346
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
1347
+ #
1348
+ # # Call the get_iam_policy method.
1349
+ # result = client.get_iam_policy request
1350
+ #
1351
+ # # The returned object is of type Google::Iam::V1::Policy.
1352
+ # p result
1353
+ #
1122
1354
  def get_iam_policy request, options = nil
1123
1355
  raise ::ArgumentError, "request must be provided" if request.nil?
1124
1356
 
@@ -1193,6 +1425,22 @@ module Google
1193
1425
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1194
1426
  #
1195
1427
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1428
+ #
1429
+ # @example Basic example
1430
+ # require "google/cloud/secret_manager/v1"
1431
+ #
1432
+ # # Create a client object. The client can be reused for multiple calls.
1433
+ # client = Google::Cloud::SecretManager::V1::SecretManagerService::Rest::Client.new
1434
+ #
1435
+ # # Create a request. To set request fields, pass in keyword arguments.
1436
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
1437
+ #
1438
+ # # Call the test_iam_permissions method.
1439
+ # result = client.test_iam_permissions request
1440
+ #
1441
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
1442
+ # p result
1443
+ #
1196
1444
  def test_iam_permissions request, options = nil
1197
1445
  raise ::ArgumentError, "request must be provided" if request.nil?
1198
1446
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecretManager
23
23
  module V1
24
- VERSION = "0.17.2"
24
+ VERSION = "0.18.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-secret_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.18.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: 2023-08-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.4.2
236
+ rubygems_version: 3.4.19
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Stores sensitive data such as API keys, passwords, and certificates. Provides