google-cloud-kms-v1 0.10.0 → 0.10.1

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: 4d140ad290eb5976d855cad0e564e5d4405570766cd766780a5b900df9075dc1
4
- data.tar.gz: bc76394810a5c73b64c1bfe97d6902a020d0adee3b6e2570b9c543403c007899
3
+ metadata.gz: b24469e996b8bd155a00aec15dccd55d9851b8c69f57c9c51054d8165ee27d50
4
+ data.tar.gz: 2842bb25158eceed75f3357cedfbb24e9bd1200a5b4b5fbb1d19ea6f1cd7fccd
5
5
  SHA512:
6
- metadata.gz: af65e32df12c6000955a2c9d0d4165740bf38d2330b5132250a6ee4e32aa7332541a10840f7676a03fcb8785f775a78e7ce8080993f5bf60a83bba3db8c9e8fa
7
- data.tar.gz: dd306b0931ef6ab09180108da3719cfca722204ae427ba8151b81453261e67dfd9e0a9a948d38f8a930530b335ebba8e02b445e8af5e37e4ba9f69aaeeed5bdc
6
+ metadata.gz: d98adb33531dfacffd887fec541d16e3d3ad241480e5fcd8ead16d61268c184f8367a595843c8e82b29354282e1a4d125a1356180dc183b5d079b67e82ea46b8
7
+ data.tar.gz: 91b7a652417e6a17a677143863f6fa35113168efd6fee91bd0dadacacc89bb301f217be3a519cbb49ad39b3492214c4ddeff15271af5007baea83a362965698d
@@ -202,6 +202,21 @@ module Google
202
202
  #
203
203
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
204
204
  #
205
+ # @example Basic example
206
+ # require "google/iam/v1"
207
+ #
208
+ # # Create a client object. The client can be reused for multiple calls.
209
+ # client = Google::Cloud::Kms::V1::IAMPolicy::Client.new
210
+ #
211
+ # # Create a request. To set request fields, pass in keyword arguments.
212
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
213
+ #
214
+ # # Call the set_iam_policy method.
215
+ # result = client.set_iam_policy request
216
+ #
217
+ # # The returned object is of type Google::Iam::V1::Policy.
218
+ # p result
219
+ #
205
220
  def set_iam_policy request, options = nil
206
221
  raise ::ArgumentError, "request must be provided" if request.nil?
207
222
 
@@ -219,9 +234,11 @@ module Google
219
234
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
220
235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
221
236
 
222
- header_params = {
223
- "resource" => request.resource
224
- }
237
+ header_params = {}
238
+ if request.resource
239
+ header_params["resource"] = request.resource
240
+ end
241
+
225
242
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
226
243
  metadata[:"x-goog-request-params"] ||= request_params_header
227
244
 
@@ -276,6 +293,21 @@ module Google
276
293
  #
277
294
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
278
295
  #
296
+ # @example Basic example
297
+ # require "google/iam/v1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::Kms::V1::IAMPolicy::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
304
+ #
305
+ # # Call the get_iam_policy method.
306
+ # result = client.get_iam_policy request
307
+ #
308
+ # # The returned object is of type Google::Iam::V1::Policy.
309
+ # p result
310
+ #
279
311
  def get_iam_policy request, options = nil
280
312
  raise ::ArgumentError, "request must be provided" if request.nil?
281
313
 
@@ -293,9 +325,11 @@ module Google
293
325
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
294
326
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
327
 
296
- header_params = {
297
- "resource" => request.resource
298
- }
328
+ header_params = {}
329
+ if request.resource
330
+ header_params["resource"] = request.resource
331
+ end
332
+
299
333
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
300
334
  metadata[:"x-goog-request-params"] ||= request_params_header
301
335
 
@@ -356,6 +390,21 @@ module Google
356
390
  #
357
391
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
358
392
  #
393
+ # @example Basic example
394
+ # require "google/iam/v1"
395
+ #
396
+ # # Create a client object. The client can be reused for multiple calls.
397
+ # client = Google::Cloud::Kms::V1::IAMPolicy::Client.new
398
+ #
399
+ # # Create a request. To set request fields, pass in keyword arguments.
400
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
401
+ #
402
+ # # Call the test_iam_permissions method.
403
+ # result = client.test_iam_permissions request
404
+ #
405
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
406
+ # p result
407
+ #
359
408
  def test_iam_permissions request, options = nil
360
409
  raise ::ArgumentError, "request must be provided" if request.nil?
361
410
 
@@ -373,9 +422,11 @@ module Google
373
422
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
374
423
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
424
 
376
- header_params = {
377
- "resource" => request.resource
378
- }
425
+ header_params = {}
426
+ if request.resource
427
+ header_params["resource"] = request.resource
428
+ end
429
+
379
430
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
380
431
  metadata[:"x-goog-request-params"] ||= request_params_header
381
432
 
@@ -327,6 +327,27 @@ module Google
327
327
  #
328
328
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
329
329
  #
330
+ # @example Basic example
331
+ # require "google/cloud/kms/v1"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::Kms::V1::ListKeyRingsRequest.new
338
+ #
339
+ # # Call the list_key_rings method.
340
+ # result = client.list_key_rings request
341
+ #
342
+ # # The returned object is of type Gapic::PagedEnumerable. You can
343
+ # # iterate over all elements by calling #each, and the enumerable
344
+ # # will lazily make API calls to fetch subsequent pages. Other
345
+ # # methods are also available for managing paging directly.
346
+ # result.each do |response|
347
+ # # Each element is of type ::Google::Cloud::Kms::V1::KeyRing.
348
+ # p response
349
+ # end
350
+ #
330
351
  def list_key_rings request, options = nil
331
352
  raise ::ArgumentError, "request must be provided" if request.nil?
332
353
 
@@ -344,9 +365,11 @@ module Google
344
365
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
345
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
367
 
347
- header_params = {
348
- "parent" => request.parent
349
- }
368
+ header_params = {}
369
+ if request.parent
370
+ header_params["parent"] = request.parent
371
+ end
372
+
350
373
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
351
374
  metadata[:"x-goog-request-params"] ||= request_params_header
352
375
 
@@ -417,6 +440,27 @@ module Google
417
440
  #
418
441
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
419
442
  #
443
+ # @example Basic example
444
+ # require "google/cloud/kms/v1"
445
+ #
446
+ # # Create a client object. The client can be reused for multiple calls.
447
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
448
+ #
449
+ # # Create a request. To set request fields, pass in keyword arguments.
450
+ # request = Google::Cloud::Kms::V1::ListCryptoKeysRequest.new
451
+ #
452
+ # # Call the list_crypto_keys method.
453
+ # result = client.list_crypto_keys request
454
+ #
455
+ # # The returned object is of type Gapic::PagedEnumerable. You can
456
+ # # iterate over all elements by calling #each, and the enumerable
457
+ # # will lazily make API calls to fetch subsequent pages. Other
458
+ # # methods are also available for managing paging directly.
459
+ # result.each do |response|
460
+ # # Each element is of type ::Google::Cloud::Kms::V1::CryptoKey.
461
+ # p response
462
+ # end
463
+ #
420
464
  def list_crypto_keys request, options = nil
421
465
  raise ::ArgumentError, "request must be provided" if request.nil?
422
466
 
@@ -434,9 +478,11 @@ module Google
434
478
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
435
479
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
480
 
437
- header_params = {
438
- "parent" => request.parent
439
- }
481
+ header_params = {}
482
+ if request.parent
483
+ header_params["parent"] = request.parent
484
+ end
485
+
440
486
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
441
487
  metadata[:"x-goog-request-params"] ||= request_params_header
442
488
 
@@ -508,6 +554,27 @@ module Google
508
554
  #
509
555
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
510
556
  #
557
+ # @example Basic example
558
+ # require "google/cloud/kms/v1"
559
+ #
560
+ # # Create a client object. The client can be reused for multiple calls.
561
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
562
+ #
563
+ # # Create a request. To set request fields, pass in keyword arguments.
564
+ # request = Google::Cloud::Kms::V1::ListCryptoKeyVersionsRequest.new
565
+ #
566
+ # # Call the list_crypto_key_versions method.
567
+ # result = client.list_crypto_key_versions request
568
+ #
569
+ # # The returned object is of type Gapic::PagedEnumerable. You can
570
+ # # iterate over all elements by calling #each, and the enumerable
571
+ # # will lazily make API calls to fetch subsequent pages. Other
572
+ # # methods are also available for managing paging directly.
573
+ # result.each do |response|
574
+ # # Each element is of type ::Google::Cloud::Kms::V1::CryptoKeyVersion.
575
+ # p response
576
+ # end
577
+ #
511
578
  def list_crypto_key_versions request, options = nil
512
579
  raise ::ArgumentError, "request must be provided" if request.nil?
513
580
 
@@ -525,9 +592,11 @@ module Google
525
592
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
526
593
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
594
 
528
- header_params = {
529
- "parent" => request.parent
530
- }
595
+ header_params = {}
596
+ if request.parent
597
+ header_params["parent"] = request.parent
598
+ end
599
+
531
600
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
532
601
  metadata[:"x-goog-request-params"] ||= request_params_header
533
602
 
@@ -596,6 +665,27 @@ module Google
596
665
  #
597
666
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
598
667
  #
668
+ # @example Basic example
669
+ # require "google/cloud/kms/v1"
670
+ #
671
+ # # Create a client object. The client can be reused for multiple calls.
672
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
673
+ #
674
+ # # Create a request. To set request fields, pass in keyword arguments.
675
+ # request = Google::Cloud::Kms::V1::ListImportJobsRequest.new
676
+ #
677
+ # # Call the list_import_jobs method.
678
+ # result = client.list_import_jobs request
679
+ #
680
+ # # The returned object is of type Gapic::PagedEnumerable. You can
681
+ # # iterate over all elements by calling #each, and the enumerable
682
+ # # will lazily make API calls to fetch subsequent pages. Other
683
+ # # methods are also available for managing paging directly.
684
+ # result.each do |response|
685
+ # # Each element is of type ::Google::Cloud::Kms::V1::ImportJob.
686
+ # p response
687
+ # end
688
+ #
599
689
  def list_import_jobs request, options = nil
600
690
  raise ::ArgumentError, "request must be provided" if request.nil?
601
691
 
@@ -613,9 +703,11 @@ module Google
613
703
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
614
704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
705
 
616
- header_params = {
617
- "parent" => request.parent
618
- }
706
+ header_params = {}
707
+ if request.parent
708
+ header_params["parent"] = request.parent
709
+ end
710
+
619
711
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
620
712
  metadata[:"x-goog-request-params"] ||= request_params_header
621
713
 
@@ -665,6 +757,21 @@ module Google
665
757
  #
666
758
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
667
759
  #
760
+ # @example Basic example
761
+ # require "google/cloud/kms/v1"
762
+ #
763
+ # # Create a client object. The client can be reused for multiple calls.
764
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
765
+ #
766
+ # # Create a request. To set request fields, pass in keyword arguments.
767
+ # request = Google::Cloud::Kms::V1::GetKeyRingRequest.new
768
+ #
769
+ # # Call the get_key_ring method.
770
+ # result = client.get_key_ring request
771
+ #
772
+ # # The returned object is of type Google::Cloud::Kms::V1::KeyRing.
773
+ # p result
774
+ #
668
775
  def get_key_ring request, options = nil
669
776
  raise ::ArgumentError, "request must be provided" if request.nil?
670
777
 
@@ -682,9 +789,11 @@ module Google
682
789
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
683
790
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
684
791
 
685
- header_params = {
686
- "name" => request.name
687
- }
792
+ header_params = {}
793
+ if request.name
794
+ header_params["name"] = request.name
795
+ end
796
+
688
797
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
689
798
  metadata[:"x-goog-request-params"] ||= request_params_header
690
799
 
@@ -734,6 +843,21 @@ module Google
734
843
  #
735
844
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
736
845
  #
846
+ # @example Basic example
847
+ # require "google/cloud/kms/v1"
848
+ #
849
+ # # Create a client object. The client can be reused for multiple calls.
850
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
851
+ #
852
+ # # Create a request. To set request fields, pass in keyword arguments.
853
+ # request = Google::Cloud::Kms::V1::GetCryptoKeyRequest.new
854
+ #
855
+ # # Call the get_crypto_key method.
856
+ # result = client.get_crypto_key request
857
+ #
858
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKey.
859
+ # p result
860
+ #
737
861
  def get_crypto_key request, options = nil
738
862
  raise ::ArgumentError, "request must be provided" if request.nil?
739
863
 
@@ -751,9 +875,11 @@ module Google
751
875
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
752
876
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
753
877
 
754
- header_params = {
755
- "name" => request.name
756
- }
878
+ header_params = {}
879
+ if request.name
880
+ header_params["name"] = request.name
881
+ end
882
+
757
883
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
758
884
  metadata[:"x-goog-request-params"] ||= request_params_header
759
885
 
@@ -802,6 +928,21 @@ module Google
802
928
  #
803
929
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
804
930
  #
931
+ # @example Basic example
932
+ # require "google/cloud/kms/v1"
933
+ #
934
+ # # Create a client object. The client can be reused for multiple calls.
935
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
936
+ #
937
+ # # Create a request. To set request fields, pass in keyword arguments.
938
+ # request = Google::Cloud::Kms::V1::GetCryptoKeyVersionRequest.new
939
+ #
940
+ # # Call the get_crypto_key_version method.
941
+ # result = client.get_crypto_key_version request
942
+ #
943
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
944
+ # p result
945
+ #
805
946
  def get_crypto_key_version request, options = nil
806
947
  raise ::ArgumentError, "request must be provided" if request.nil?
807
948
 
@@ -819,9 +960,11 @@ module Google
819
960
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
820
961
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
821
962
 
822
- header_params = {
823
- "name" => request.name
824
- }
963
+ header_params = {}
964
+ if request.name
965
+ header_params["name"] = request.name
966
+ end
967
+
825
968
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
826
969
  metadata[:"x-goog-request-params"] ||= request_params_header
827
970
 
@@ -874,6 +1017,21 @@ module Google
874
1017
  #
875
1018
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
876
1019
  #
1020
+ # @example Basic example
1021
+ # require "google/cloud/kms/v1"
1022
+ #
1023
+ # # Create a client object. The client can be reused for multiple calls.
1024
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1025
+ #
1026
+ # # Create a request. To set request fields, pass in keyword arguments.
1027
+ # request = Google::Cloud::Kms::V1::GetPublicKeyRequest.new
1028
+ #
1029
+ # # Call the get_public_key method.
1030
+ # result = client.get_public_key request
1031
+ #
1032
+ # # The returned object is of type Google::Cloud::Kms::V1::PublicKey.
1033
+ # p result
1034
+ #
877
1035
  def get_public_key request, options = nil
878
1036
  raise ::ArgumentError, "request must be provided" if request.nil?
879
1037
 
@@ -891,9 +1049,11 @@ module Google
891
1049
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
892
1050
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
1051
 
894
- header_params = {
895
- "name" => request.name
896
- }
1052
+ header_params = {}
1053
+ if request.name
1054
+ header_params["name"] = request.name
1055
+ end
1056
+
897
1057
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
898
1058
  metadata[:"x-goog-request-params"] ||= request_params_header
899
1059
 
@@ -942,6 +1102,21 @@ module Google
942
1102
  #
943
1103
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
944
1104
  #
1105
+ # @example Basic example
1106
+ # require "google/cloud/kms/v1"
1107
+ #
1108
+ # # Create a client object. The client can be reused for multiple calls.
1109
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1110
+ #
1111
+ # # Create a request. To set request fields, pass in keyword arguments.
1112
+ # request = Google::Cloud::Kms::V1::GetImportJobRequest.new
1113
+ #
1114
+ # # Call the get_import_job method.
1115
+ # result = client.get_import_job request
1116
+ #
1117
+ # # The returned object is of type Google::Cloud::Kms::V1::ImportJob.
1118
+ # p result
1119
+ #
945
1120
  def get_import_job request, options = nil
946
1121
  raise ::ArgumentError, "request must be provided" if request.nil?
947
1122
 
@@ -959,9 +1134,11 @@ module Google
959
1134
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
960
1135
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
961
1136
 
962
- header_params = {
963
- "name" => request.name
964
- }
1137
+ header_params = {}
1138
+ if request.name
1139
+ header_params["name"] = request.name
1140
+ end
1141
+
965
1142
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
966
1143
  metadata[:"x-goog-request-params"] ||= request_params_header
967
1144
 
@@ -1016,6 +1193,21 @@ module Google
1016
1193
  #
1017
1194
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1018
1195
  #
1196
+ # @example Basic example
1197
+ # require "google/cloud/kms/v1"
1198
+ #
1199
+ # # Create a client object. The client can be reused for multiple calls.
1200
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1201
+ #
1202
+ # # Create a request. To set request fields, pass in keyword arguments.
1203
+ # request = Google::Cloud::Kms::V1::CreateKeyRingRequest.new
1204
+ #
1205
+ # # Call the create_key_ring method.
1206
+ # result = client.create_key_ring request
1207
+ #
1208
+ # # The returned object is of type Google::Cloud::Kms::V1::KeyRing.
1209
+ # p result
1210
+ #
1019
1211
  def create_key_ring request, options = nil
1020
1212
  raise ::ArgumentError, "request must be provided" if request.nil?
1021
1213
 
@@ -1033,9 +1225,11 @@ module Google
1033
1225
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1034
1226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1035
1227
 
1036
- header_params = {
1037
- "parent" => request.parent
1038
- }
1228
+ header_params = {}
1229
+ if request.parent
1230
+ header_params["parent"] = request.parent
1231
+ end
1232
+
1039
1233
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1040
1234
  metadata[:"x-goog-request-params"] ||= request_params_header
1041
1235
 
@@ -1100,6 +1294,21 @@ module Google
1100
1294
  #
1101
1295
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1102
1296
  #
1297
+ # @example Basic example
1298
+ # require "google/cloud/kms/v1"
1299
+ #
1300
+ # # Create a client object. The client can be reused for multiple calls.
1301
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1302
+ #
1303
+ # # Create a request. To set request fields, pass in keyword arguments.
1304
+ # request = Google::Cloud::Kms::V1::CreateCryptoKeyRequest.new
1305
+ #
1306
+ # # Call the create_crypto_key method.
1307
+ # result = client.create_crypto_key request
1308
+ #
1309
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKey.
1310
+ # p result
1311
+ #
1103
1312
  def create_crypto_key request, options = nil
1104
1313
  raise ::ArgumentError, "request must be provided" if request.nil?
1105
1314
 
@@ -1117,9 +1326,11 @@ module Google
1117
1326
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1118
1327
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1119
1328
 
1120
- header_params = {
1121
- "parent" => request.parent
1122
- }
1329
+ header_params = {}
1330
+ if request.parent
1331
+ header_params["parent"] = request.parent
1332
+ end
1333
+
1123
1334
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1124
1335
  metadata[:"x-goog-request-params"] ||= request_params_header
1125
1336
 
@@ -1175,6 +1386,21 @@ module Google
1175
1386
  #
1176
1387
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1177
1388
  #
1389
+ # @example Basic example
1390
+ # require "google/cloud/kms/v1"
1391
+ #
1392
+ # # Create a client object. The client can be reused for multiple calls.
1393
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1394
+ #
1395
+ # # Create a request. To set request fields, pass in keyword arguments.
1396
+ # request = Google::Cloud::Kms::V1::CreateCryptoKeyVersionRequest.new
1397
+ #
1398
+ # # Call the create_crypto_key_version method.
1399
+ # result = client.create_crypto_key_version request
1400
+ #
1401
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
1402
+ # p result
1403
+ #
1178
1404
  def create_crypto_key_version request, options = nil
1179
1405
  raise ::ArgumentError, "request must be provided" if request.nil?
1180
1406
 
@@ -1192,9 +1418,11 @@ module Google
1192
1418
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1193
1419
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1194
1420
 
1195
- header_params = {
1196
- "parent" => request.parent
1197
- }
1421
+ header_params = {}
1422
+ if request.parent
1423
+ header_params["parent"] = request.parent
1424
+ end
1425
+
1198
1426
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1199
1427
  metadata[:"x-goog-request-params"] ||= request_params_header
1200
1428
 
@@ -1299,6 +1527,21 @@ module Google
1299
1527
  #
1300
1528
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1301
1529
  #
1530
+ # @example Basic example
1531
+ # require "google/cloud/kms/v1"
1532
+ #
1533
+ # # Create a client object. The client can be reused for multiple calls.
1534
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1535
+ #
1536
+ # # Create a request. To set request fields, pass in keyword arguments.
1537
+ # request = Google::Cloud::Kms::V1::ImportCryptoKeyVersionRequest.new
1538
+ #
1539
+ # # Call the import_crypto_key_version method.
1540
+ # result = client.import_crypto_key_version request
1541
+ #
1542
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
1543
+ # p result
1544
+ #
1302
1545
  def import_crypto_key_version request, options = nil
1303
1546
  raise ::ArgumentError, "request must be provided" if request.nil?
1304
1547
 
@@ -1316,9 +1559,11 @@ module Google
1316
1559
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1317
1560
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1318
1561
 
1319
- header_params = {
1320
- "parent" => request.parent
1321
- }
1562
+ header_params = {}
1563
+ if request.parent
1564
+ header_params["parent"] = request.parent
1565
+ end
1566
+
1322
1567
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1323
1568
  metadata[:"x-goog-request-params"] ||= request_params_header
1324
1569
 
@@ -1375,6 +1620,21 @@ module Google
1375
1620
  #
1376
1621
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1377
1622
  #
1623
+ # @example Basic example
1624
+ # require "google/cloud/kms/v1"
1625
+ #
1626
+ # # Create a client object. The client can be reused for multiple calls.
1627
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1628
+ #
1629
+ # # Create a request. To set request fields, pass in keyword arguments.
1630
+ # request = Google::Cloud::Kms::V1::CreateImportJobRequest.new
1631
+ #
1632
+ # # Call the create_import_job method.
1633
+ # result = client.create_import_job request
1634
+ #
1635
+ # # The returned object is of type Google::Cloud::Kms::V1::ImportJob.
1636
+ # p result
1637
+ #
1378
1638
  def create_import_job request, options = nil
1379
1639
  raise ::ArgumentError, "request must be provided" if request.nil?
1380
1640
 
@@ -1392,9 +1652,11 @@ module Google
1392
1652
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1393
1653
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1394
1654
 
1395
- header_params = {
1396
- "parent" => request.parent
1397
- }
1655
+ header_params = {}
1656
+ if request.parent
1657
+ header_params["parent"] = request.parent
1658
+ end
1659
+
1398
1660
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1399
1661
  metadata[:"x-goog-request-params"] ||= request_params_header
1400
1662
 
@@ -1445,6 +1707,21 @@ module Google
1445
1707
  #
1446
1708
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1447
1709
  #
1710
+ # @example Basic example
1711
+ # require "google/cloud/kms/v1"
1712
+ #
1713
+ # # Create a client object. The client can be reused for multiple calls.
1714
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1715
+ #
1716
+ # # Create a request. To set request fields, pass in keyword arguments.
1717
+ # request = Google::Cloud::Kms::V1::UpdateCryptoKeyRequest.new
1718
+ #
1719
+ # # Call the update_crypto_key method.
1720
+ # result = client.update_crypto_key request
1721
+ #
1722
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKey.
1723
+ # p result
1724
+ #
1448
1725
  def update_crypto_key request, options = nil
1449
1726
  raise ::ArgumentError, "request must be provided" if request.nil?
1450
1727
 
@@ -1462,9 +1739,11 @@ module Google
1462
1739
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1463
1740
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1464
1741
 
1465
- header_params = {
1466
- "crypto_key.name" => request.crypto_key.name
1467
- }
1742
+ header_params = {}
1743
+ if request.crypto_key&.name
1744
+ header_params["crypto_key.name"] = request.crypto_key.name
1745
+ end
1746
+
1468
1747
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1469
1748
  metadata[:"x-goog-request-params"] ||= request_params_header
1470
1749
 
@@ -1521,6 +1800,21 @@ module Google
1521
1800
  #
1522
1801
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1523
1802
  #
1803
+ # @example Basic example
1804
+ # require "google/cloud/kms/v1"
1805
+ #
1806
+ # # Create a client object. The client can be reused for multiple calls.
1807
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1808
+ #
1809
+ # # Create a request. To set request fields, pass in keyword arguments.
1810
+ # request = Google::Cloud::Kms::V1::UpdateCryptoKeyVersionRequest.new
1811
+ #
1812
+ # # Call the update_crypto_key_version method.
1813
+ # result = client.update_crypto_key_version request
1814
+ #
1815
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
1816
+ # p result
1817
+ #
1524
1818
  def update_crypto_key_version request, options = nil
1525
1819
  raise ::ArgumentError, "request must be provided" if request.nil?
1526
1820
 
@@ -1538,9 +1832,11 @@ module Google
1538
1832
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1539
1833
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1540
1834
 
1541
- header_params = {
1542
- "crypto_key_version.name" => request.crypto_key_version.name
1543
- }
1835
+ header_params = {}
1836
+ if request.crypto_key_version&.name
1837
+ header_params["crypto_key_version.name"] = request.crypto_key_version.name
1838
+ end
1839
+
1544
1840
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1545
1841
  metadata[:"x-goog-request-params"] ||= request_params_header
1546
1842
 
@@ -1594,6 +1890,21 @@ module Google
1594
1890
  #
1595
1891
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1596
1892
  #
1893
+ # @example Basic example
1894
+ # require "google/cloud/kms/v1"
1895
+ #
1896
+ # # Create a client object. The client can be reused for multiple calls.
1897
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1898
+ #
1899
+ # # Create a request. To set request fields, pass in keyword arguments.
1900
+ # request = Google::Cloud::Kms::V1::UpdateCryptoKeyPrimaryVersionRequest.new
1901
+ #
1902
+ # # Call the update_crypto_key_primary_version method.
1903
+ # result = client.update_crypto_key_primary_version request
1904
+ #
1905
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKey.
1906
+ # p result
1907
+ #
1597
1908
  def update_crypto_key_primary_version request, options = nil
1598
1909
  raise ::ArgumentError, "request must be provided" if request.nil?
1599
1910
 
@@ -1611,9 +1922,11 @@ module Google
1611
1922
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1612
1923
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1613
1924
 
1614
- header_params = {
1615
- "name" => request.name
1616
- }
1925
+ header_params = {}
1926
+ if request.name
1927
+ header_params["name"] = request.name
1928
+ end
1929
+
1617
1930
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1618
1931
  metadata[:"x-goog-request-params"] ||= request_params_header
1619
1932
 
@@ -1674,6 +1987,21 @@ module Google
1674
1987
  #
1675
1988
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1676
1989
  #
1990
+ # @example Basic example
1991
+ # require "google/cloud/kms/v1"
1992
+ #
1993
+ # # Create a client object. The client can be reused for multiple calls.
1994
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
1995
+ #
1996
+ # # Create a request. To set request fields, pass in keyword arguments.
1997
+ # request = Google::Cloud::Kms::V1::DestroyCryptoKeyVersionRequest.new
1998
+ #
1999
+ # # Call the destroy_crypto_key_version method.
2000
+ # result = client.destroy_crypto_key_version request
2001
+ #
2002
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
2003
+ # p result
2004
+ #
1677
2005
  def destroy_crypto_key_version request, options = nil
1678
2006
  raise ::ArgumentError, "request must be provided" if request.nil?
1679
2007
 
@@ -1691,9 +2019,11 @@ module Google
1691
2019
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1692
2020
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1693
2021
 
1694
- header_params = {
1695
- "name" => request.name
1696
- }
2022
+ header_params = {}
2023
+ if request.name
2024
+ header_params["name"] = request.name
2025
+ end
2026
+
1697
2027
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1698
2028
  metadata[:"x-goog-request-params"] ||= request_params_header
1699
2029
 
@@ -1748,6 +2078,21 @@ module Google
1748
2078
  #
1749
2079
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1750
2080
  #
2081
+ # @example Basic example
2082
+ # require "google/cloud/kms/v1"
2083
+ #
2084
+ # # Create a client object. The client can be reused for multiple calls.
2085
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2086
+ #
2087
+ # # Create a request. To set request fields, pass in keyword arguments.
2088
+ # request = Google::Cloud::Kms::V1::RestoreCryptoKeyVersionRequest.new
2089
+ #
2090
+ # # Call the restore_crypto_key_version method.
2091
+ # result = client.restore_crypto_key_version request
2092
+ #
2093
+ # # The returned object is of type Google::Cloud::Kms::V1::CryptoKeyVersion.
2094
+ # p result
2095
+ #
1751
2096
  def restore_crypto_key_version request, options = nil
1752
2097
  raise ::ArgumentError, "request must be provided" if request.nil?
1753
2098
 
@@ -1765,9 +2110,11 @@ module Google
1765
2110
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1766
2111
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1767
2112
 
1768
- header_params = {
1769
- "name" => request.name
1770
- }
2113
+ header_params = {}
2114
+ if request.name
2115
+ header_params["name"] = request.name
2116
+ end
2117
+
1771
2118
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1772
2119
  metadata[:"x-goog-request-params"] ||= request_params_header
1773
2120
 
@@ -1870,6 +2217,21 @@ module Google
1870
2217
  #
1871
2218
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1872
2219
  #
2220
+ # @example Basic example
2221
+ # require "google/cloud/kms/v1"
2222
+ #
2223
+ # # Create a client object. The client can be reused for multiple calls.
2224
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2225
+ #
2226
+ # # Create a request. To set request fields, pass in keyword arguments.
2227
+ # request = Google::Cloud::Kms::V1::EncryptRequest.new
2228
+ #
2229
+ # # Call the encrypt method.
2230
+ # result = client.encrypt request
2231
+ #
2232
+ # # The returned object is of type Google::Cloud::Kms::V1::EncryptResponse.
2233
+ # p result
2234
+ #
1873
2235
  def encrypt request, options = nil
1874
2236
  raise ::ArgumentError, "request must be provided" if request.nil?
1875
2237
 
@@ -1887,9 +2249,11 @@ module Google
1887
2249
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1888
2250
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1889
2251
 
1890
- header_params = {
1891
- "name" => request.name
1892
- }
2252
+ header_params = {}
2253
+ if request.name
2254
+ header_params["name"] = request.name
2255
+ end
2256
+
1893
2257
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1894
2258
  metadata[:"x-goog-request-params"] ||= request_params_header
1895
2259
 
@@ -1975,6 +2339,21 @@ module Google
1975
2339
  #
1976
2340
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1977
2341
  #
2342
+ # @example Basic example
2343
+ # require "google/cloud/kms/v1"
2344
+ #
2345
+ # # Create a client object. The client can be reused for multiple calls.
2346
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2347
+ #
2348
+ # # Create a request. To set request fields, pass in keyword arguments.
2349
+ # request = Google::Cloud::Kms::V1::DecryptRequest.new
2350
+ #
2351
+ # # Call the decrypt method.
2352
+ # result = client.decrypt request
2353
+ #
2354
+ # # The returned object is of type Google::Cloud::Kms::V1::DecryptResponse.
2355
+ # p result
2356
+ #
1978
2357
  def decrypt request, options = nil
1979
2358
  raise ::ArgumentError, "request must be provided" if request.nil?
1980
2359
 
@@ -1992,9 +2371,11 @@ module Google
1992
2371
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
1993
2372
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1994
2373
 
1995
- header_params = {
1996
- "name" => request.name
1997
- }
2374
+ header_params = {}
2375
+ if request.name
2376
+ header_params["name"] = request.name
2377
+ end
2378
+
1998
2379
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1999
2380
  metadata[:"x-goog-request-params"] ||= request_params_header
2000
2381
 
@@ -2081,6 +2462,21 @@ module Google
2081
2462
  #
2082
2463
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2083
2464
  #
2465
+ # @example Basic example
2466
+ # require "google/cloud/kms/v1"
2467
+ #
2468
+ # # Create a client object. The client can be reused for multiple calls.
2469
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2470
+ #
2471
+ # # Create a request. To set request fields, pass in keyword arguments.
2472
+ # request = Google::Cloud::Kms::V1::AsymmetricSignRequest.new
2473
+ #
2474
+ # # Call the asymmetric_sign method.
2475
+ # result = client.asymmetric_sign request
2476
+ #
2477
+ # # The returned object is of type Google::Cloud::Kms::V1::AsymmetricSignResponse.
2478
+ # p result
2479
+ #
2084
2480
  def asymmetric_sign request, options = nil
2085
2481
  raise ::ArgumentError, "request must be provided" if request.nil?
2086
2482
 
@@ -2098,9 +2494,11 @@ module Google
2098
2494
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2099
2495
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2100
2496
 
2101
- header_params = {
2102
- "name" => request.name
2103
- }
2497
+ header_params = {}
2498
+ if request.name
2499
+ header_params["name"] = request.name
2500
+ end
2501
+
2104
2502
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2105
2503
  metadata[:"x-goog-request-params"] ||= request_params_header
2106
2504
 
@@ -2169,6 +2567,21 @@ module Google
2169
2567
  #
2170
2568
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2171
2569
  #
2570
+ # @example Basic example
2571
+ # require "google/cloud/kms/v1"
2572
+ #
2573
+ # # Create a client object. The client can be reused for multiple calls.
2574
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2575
+ #
2576
+ # # Create a request. To set request fields, pass in keyword arguments.
2577
+ # request = Google::Cloud::Kms::V1::AsymmetricDecryptRequest.new
2578
+ #
2579
+ # # Call the asymmetric_decrypt method.
2580
+ # result = client.asymmetric_decrypt request
2581
+ #
2582
+ # # The returned object is of type Google::Cloud::Kms::V1::AsymmetricDecryptResponse.
2583
+ # p result
2584
+ #
2172
2585
  def asymmetric_decrypt request, options = nil
2173
2586
  raise ::ArgumentError, "request must be provided" if request.nil?
2174
2587
 
@@ -2186,9 +2599,11 @@ module Google
2186
2599
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2187
2600
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2188
2601
 
2189
- header_params = {
2190
- "name" => request.name
2191
- }
2602
+ header_params = {}
2603
+ if request.name
2604
+ header_params["name"] = request.name
2605
+ end
2606
+
2192
2607
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2193
2608
  metadata[:"x-goog-request-params"] ||= request_params_header
2194
2609
 
@@ -2256,6 +2671,21 @@ module Google
2256
2671
  #
2257
2672
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2258
2673
  #
2674
+ # @example Basic example
2675
+ # require "google/cloud/kms/v1"
2676
+ #
2677
+ # # Create a client object. The client can be reused for multiple calls.
2678
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2679
+ #
2680
+ # # Create a request. To set request fields, pass in keyword arguments.
2681
+ # request = Google::Cloud::Kms::V1::MacSignRequest.new
2682
+ #
2683
+ # # Call the mac_sign method.
2684
+ # result = client.mac_sign request
2685
+ #
2686
+ # # The returned object is of type Google::Cloud::Kms::V1::MacSignResponse.
2687
+ # p result
2688
+ #
2259
2689
  def mac_sign request, options = nil
2260
2690
  raise ::ArgumentError, "request must be provided" if request.nil?
2261
2691
 
@@ -2273,9 +2703,11 @@ module Google
2273
2703
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2274
2704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2275
2705
 
2276
- header_params = {
2277
- "name" => request.name
2278
- }
2706
+ header_params = {}
2707
+ if request.name
2708
+ header_params["name"] = request.name
2709
+ end
2710
+
2279
2711
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2280
2712
  metadata[:"x-goog-request-params"] ||= request_params_header
2281
2713
 
@@ -2359,6 +2791,21 @@ module Google
2359
2791
  #
2360
2792
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2361
2793
  #
2794
+ # @example Basic example
2795
+ # require "google/cloud/kms/v1"
2796
+ #
2797
+ # # Create a client object. The client can be reused for multiple calls.
2798
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2799
+ #
2800
+ # # Create a request. To set request fields, pass in keyword arguments.
2801
+ # request = Google::Cloud::Kms::V1::MacVerifyRequest.new
2802
+ #
2803
+ # # Call the mac_verify method.
2804
+ # result = client.mac_verify request
2805
+ #
2806
+ # # The returned object is of type Google::Cloud::Kms::V1::MacVerifyResponse.
2807
+ # p result
2808
+ #
2362
2809
  def mac_verify request, options = nil
2363
2810
  raise ::ArgumentError, "request must be provided" if request.nil?
2364
2811
 
@@ -2376,9 +2823,11 @@ module Google
2376
2823
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2377
2824
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2378
2825
 
2379
- header_params = {
2380
- "name" => request.name
2381
- }
2826
+ header_params = {}
2827
+ if request.name
2828
+ header_params["name"] = request.name
2829
+ end
2830
+
2382
2831
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2383
2832
  metadata[:"x-goog-request-params"] ||= request_params_header
2384
2833
 
@@ -2435,6 +2884,21 @@ module Google
2435
2884
  #
2436
2885
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2437
2886
  #
2887
+ # @example Basic example
2888
+ # require "google/cloud/kms/v1"
2889
+ #
2890
+ # # Create a client object. The client can be reused for multiple calls.
2891
+ # client = Google::Cloud::Kms::V1::KeyManagementService::Client.new
2892
+ #
2893
+ # # Create a request. To set request fields, pass in keyword arguments.
2894
+ # request = Google::Cloud::Kms::V1::GenerateRandomBytesRequest.new
2895
+ #
2896
+ # # Call the generate_random_bytes method.
2897
+ # result = client.generate_random_bytes request
2898
+ #
2899
+ # # The returned object is of type Google::Cloud::Kms::V1::GenerateRandomBytesResponse.
2900
+ # p result
2901
+ #
2438
2902
  def generate_random_bytes request, options = nil
2439
2903
  raise ::ArgumentError, "request must be provided" if request.nil?
2440
2904
 
@@ -2452,9 +2916,11 @@ module Google
2452
2916
  gapic_version: ::Google::Cloud::Kms::V1::VERSION
2453
2917
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2454
2918
 
2455
- header_params = {
2456
- "location" => request.location
2457
- }
2919
+ header_params = {}
2920
+ if request.location
2921
+ header_params["location"] = request.location
2922
+ end
2923
+
2458
2924
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2459
2925
  metadata[:"x-goog-request-params"] ||= request_params_header
2460
2926
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Kms
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.10.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-kms-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
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-10-21 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common