google-cloud-security-private_ca-v1beta1 0.3.4 → 0.3.5

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: cd255a0e7967a516c5114905776699be4e95b32ec48db45aa664d88b300b963a
4
- data.tar.gz: 5016863075057065bb15466054aaa269adc5f517c9514d036c51b6eddc8345ff
3
+ metadata.gz: 8cf11d831783f052ae1b0365e5bd03142baee9ddf99e5ee7539c98dd053d7c36
4
+ data.tar.gz: c085727037fbab3cd9fddf3d196f28b88abd659990c34afa50436dd703881c32
5
5
  SHA512:
6
- metadata.gz: 6de44b0438773f49fb08b02c520967e63a6b9eb5b510b570477432376de77a23ed4d3de583b1496b0743306682c6d24c92279372274378254fd989a74f5492c1
7
- data.tar.gz: 7ad02924c7523a7db2e9aa804182e21c2855196c53216fd3d0c32d9130f58d2ba187aae5a2d8d848b3c8dce56309aac48e6799f481eaea25a301a6d19d6c0142
6
+ metadata.gz: b524a3590cb5a844bcaf5cf63f8f01519842e377364285c94c9c7cb965b8a8daf245972cd5178c9523fc0f343e4afc535a6ff4666f3ef72578647e043bcd7c16
7
+ data.tar.gz: 5780b7ca6aeabf3a45a753ffb4295ce5ee417e6cae0c25070c04ffe4a0be0e7124590b992af7903443abb73e7b05b3dea7e09c3407b672c5cb1ecb86c49cf0b5
@@ -216,6 +216,21 @@ module Google
216
216
  #
217
217
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
218
218
  #
219
+ # @example Basic example
220
+ # require "google/cloud/security/private_ca/v1beta1"
221
+ #
222
+ # # Create a client object. The client can be reused for multiple calls.
223
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
224
+ #
225
+ # # Create a request. To set request fields, pass in keyword arguments.
226
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest.new
227
+ #
228
+ # # Call the create_certificate method.
229
+ # result = client.create_certificate request
230
+ #
231
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
232
+ # p result
233
+ #
219
234
  def create_certificate request, options = nil
220
235
  raise ::ArgumentError, "request must be provided" if request.nil?
221
236
 
@@ -233,9 +248,11 @@ module Google
233
248
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
234
249
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
250
 
236
- header_params = {
237
- "parent" => request.parent
238
- }
251
+ header_params = {}
252
+ if request.parent
253
+ header_params["parent"] = request.parent
254
+ end
255
+
239
256
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
240
257
  metadata[:"x-goog-request-params"] ||= request_params_header
241
258
 
@@ -284,6 +301,21 @@ module Google
284
301
  #
285
302
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
286
303
  #
304
+ # @example Basic example
305
+ # require "google/cloud/security/private_ca/v1beta1"
306
+ #
307
+ # # Create a client object. The client can be reused for multiple calls.
308
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
309
+ #
310
+ # # Create a request. To set request fields, pass in keyword arguments.
311
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest.new
312
+ #
313
+ # # Call the get_certificate method.
314
+ # result = client.get_certificate request
315
+ #
316
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
317
+ # p result
318
+ #
287
319
  def get_certificate request, options = nil
288
320
  raise ::ArgumentError, "request must be provided" if request.nil?
289
321
 
@@ -301,9 +333,11 @@ module Google
301
333
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
302
334
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
303
335
 
304
- header_params = {
305
- "name" => request.name
306
- }
336
+ header_params = {}
337
+ if request.name
338
+ header_params["name"] = request.name
339
+ end
340
+
307
341
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
308
342
  metadata[:"x-goog-request-params"] ||= request_params_header
309
343
 
@@ -372,6 +406,27 @@ module Google
372
406
  #
373
407
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
374
408
  #
409
+ # @example Basic example
410
+ # require "google/cloud/security/private_ca/v1beta1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest.new
417
+ #
418
+ # # Call the list_certificates method.
419
+ # result = client.list_certificates request
420
+ #
421
+ # # The returned object is of type Gapic::PagedEnumerable. You can
422
+ # # iterate over all elements by calling #each, and the enumerable
423
+ # # will lazily make API calls to fetch subsequent pages. Other
424
+ # # methods are also available for managing paging directly.
425
+ # result.each do |response|
426
+ # # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
427
+ # p response
428
+ # end
429
+ #
375
430
  def list_certificates request, options = nil
376
431
  raise ::ArgumentError, "request must be provided" if request.nil?
377
432
 
@@ -389,9 +444,11 @@ module Google
389
444
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
390
445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
446
 
392
- header_params = {
393
- "parent" => request.parent
394
- }
447
+ header_params = {}
448
+ if request.parent
449
+ header_params["parent"] = request.parent
450
+ end
451
+
395
452
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
396
453
  metadata[:"x-goog-request-params"] ||= request_params_header
397
454
 
@@ -458,6 +515,21 @@ module Google
458
515
  #
459
516
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
460
517
  #
518
+ # @example Basic example
519
+ # require "google/cloud/security/private_ca/v1beta1"
520
+ #
521
+ # # Create a client object. The client can be reused for multiple calls.
522
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
523
+ #
524
+ # # Create a request. To set request fields, pass in keyword arguments.
525
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest.new
526
+ #
527
+ # # Call the revoke_certificate method.
528
+ # result = client.revoke_certificate request
529
+ #
530
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
531
+ # p result
532
+ #
461
533
  def revoke_certificate request, options = nil
462
534
  raise ::ArgumentError, "request must be provided" if request.nil?
463
535
 
@@ -475,9 +547,11 @@ module Google
475
547
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
476
548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
549
 
478
- header_params = {
479
- "name" => request.name
480
- }
550
+ header_params = {}
551
+ if request.name
552
+ header_params["name"] = request.name
553
+ end
554
+
481
555
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
482
556
  metadata[:"x-goog-request-params"] ||= request_params_header
483
557
 
@@ -543,6 +617,21 @@ module Google
543
617
  #
544
618
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
545
619
  #
620
+ # @example Basic example
621
+ # require "google/cloud/security/private_ca/v1beta1"
622
+ #
623
+ # # Create a client object. The client can be reused for multiple calls.
624
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
625
+ #
626
+ # # Create a request. To set request fields, pass in keyword arguments.
627
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest.new
628
+ #
629
+ # # Call the update_certificate method.
630
+ # result = client.update_certificate request
631
+ #
632
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
633
+ # p result
634
+ #
546
635
  def update_certificate request, options = nil
547
636
  raise ::ArgumentError, "request must be provided" if request.nil?
548
637
 
@@ -560,9 +649,11 @@ module Google
560
649
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
561
650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
562
651
 
563
- header_params = {
564
- "certificate.name" => request.certificate.name
565
- }
652
+ header_params = {}
653
+ if request.certificate&.name
654
+ header_params["certificate.name"] = request.certificate.name
655
+ end
656
+
566
657
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
567
658
  metadata[:"x-goog-request-params"] ||= request_params_header
568
659
 
@@ -637,6 +728,28 @@ module Google
637
728
  #
638
729
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
639
730
  #
731
+ # @example Basic example
732
+ # require "google/cloud/security/private_ca/v1beta1"
733
+ #
734
+ # # Create a client object. The client can be reused for multiple calls.
735
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
736
+ #
737
+ # # Create a request. To set request fields, pass in keyword arguments.
738
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest.new
739
+ #
740
+ # # Call the activate_certificate_authority method.
741
+ # result = client.activate_certificate_authority request
742
+ #
743
+ # # The returned object is of type Gapic::Operation. You can use this
744
+ # # object to check the status of an operation, cancel it, or wait
745
+ # # for results. Here is how to block until completion:
746
+ # result.wait_until_done! timeout: 60
747
+ # if result.response?
748
+ # p result.response
749
+ # else
750
+ # puts "Error!"
751
+ # end
752
+ #
640
753
  def activate_certificate_authority request, options = nil
641
754
  raise ::ArgumentError, "request must be provided" if request.nil?
642
755
 
@@ -654,9 +767,11 @@ module Google
654
767
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
655
768
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
769
 
657
- header_params = {
658
- "name" => request.name
659
- }
770
+ header_params = {}
771
+ if request.name
772
+ header_params["name"] = request.name
773
+ end
774
+
660
775
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
661
776
  metadata[:"x-goog-request-params"] ||= request_params_header
662
777
 
@@ -727,6 +842,28 @@ module Google
727
842
  #
728
843
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
729
844
  #
845
+ # @example Basic example
846
+ # require "google/cloud/security/private_ca/v1beta1"
847
+ #
848
+ # # Create a client object. The client can be reused for multiple calls.
849
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
850
+ #
851
+ # # Create a request. To set request fields, pass in keyword arguments.
852
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest.new
853
+ #
854
+ # # Call the create_certificate_authority method.
855
+ # result = client.create_certificate_authority request
856
+ #
857
+ # # The returned object is of type Gapic::Operation. You can use this
858
+ # # object to check the status of an operation, cancel it, or wait
859
+ # # for results. Here is how to block until completion:
860
+ # result.wait_until_done! timeout: 60
861
+ # if result.response?
862
+ # p result.response
863
+ # else
864
+ # puts "Error!"
865
+ # end
866
+ #
730
867
  def create_certificate_authority request, options = nil
731
868
  raise ::ArgumentError, "request must be provided" if request.nil?
732
869
 
@@ -744,9 +881,11 @@ module Google
744
881
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
745
882
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
746
883
 
747
- header_params = {
748
- "parent" => request.parent
749
- }
884
+ header_params = {}
885
+ if request.parent
886
+ header_params["parent"] = request.parent
887
+ end
888
+
750
889
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
751
890
  metadata[:"x-goog-request-params"] ||= request_params_header
752
891
 
@@ -811,6 +950,28 @@ module Google
811
950
  #
812
951
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
813
952
  #
953
+ # @example Basic example
954
+ # require "google/cloud/security/private_ca/v1beta1"
955
+ #
956
+ # # Create a client object. The client can be reused for multiple calls.
957
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
958
+ #
959
+ # # Create a request. To set request fields, pass in keyword arguments.
960
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest.new
961
+ #
962
+ # # Call the disable_certificate_authority method.
963
+ # result = client.disable_certificate_authority request
964
+ #
965
+ # # The returned object is of type Gapic::Operation. You can use this
966
+ # # object to check the status of an operation, cancel it, or wait
967
+ # # for results. Here is how to block until completion:
968
+ # result.wait_until_done! timeout: 60
969
+ # if result.response?
970
+ # p result.response
971
+ # else
972
+ # puts "Error!"
973
+ # end
974
+ #
814
975
  def disable_certificate_authority request, options = nil
815
976
  raise ::ArgumentError, "request must be provided" if request.nil?
816
977
 
@@ -828,9 +989,11 @@ module Google
828
989
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
829
990
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
830
991
 
831
- header_params = {
832
- "name" => request.name
833
- }
992
+ header_params = {}
993
+ if request.name
994
+ header_params["name"] = request.name
995
+ end
996
+
834
997
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
835
998
  metadata[:"x-goog-request-params"] ||= request_params_header
836
999
 
@@ -895,6 +1058,28 @@ module Google
895
1058
  #
896
1059
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
897
1060
  #
1061
+ # @example Basic example
1062
+ # require "google/cloud/security/private_ca/v1beta1"
1063
+ #
1064
+ # # Create a client object. The client can be reused for multiple calls.
1065
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1066
+ #
1067
+ # # Create a request. To set request fields, pass in keyword arguments.
1068
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest.new
1069
+ #
1070
+ # # Call the enable_certificate_authority method.
1071
+ # result = client.enable_certificate_authority request
1072
+ #
1073
+ # # The returned object is of type Gapic::Operation. You can use this
1074
+ # # object to check the status of an operation, cancel it, or wait
1075
+ # # for results. Here is how to block until completion:
1076
+ # result.wait_until_done! timeout: 60
1077
+ # if result.response?
1078
+ # p result.response
1079
+ # else
1080
+ # puts "Error!"
1081
+ # end
1082
+ #
898
1083
  def enable_certificate_authority request, options = nil
899
1084
  raise ::ArgumentError, "request must be provided" if request.nil?
900
1085
 
@@ -912,9 +1097,11 @@ module Google
912
1097
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
913
1098
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
1099
 
915
- header_params = {
916
- "name" => request.name
917
- }
1100
+ header_params = {}
1101
+ if request.name
1102
+ header_params["name"] = request.name
1103
+ end
1104
+
918
1105
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
919
1106
  metadata[:"x-goog-request-params"] ||= request_params_header
920
1107
 
@@ -971,6 +1158,21 @@ module Google
971
1158
  #
972
1159
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
973
1160
  #
1161
+ # @example Basic example
1162
+ # require "google/cloud/security/private_ca/v1beta1"
1163
+ #
1164
+ # # Create a client object. The client can be reused for multiple calls.
1165
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1166
+ #
1167
+ # # Create a request. To set request fields, pass in keyword arguments.
1168
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest.new
1169
+ #
1170
+ # # Call the fetch_certificate_authority_csr method.
1171
+ # result = client.fetch_certificate_authority_csr request
1172
+ #
1173
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse.
1174
+ # p result
1175
+ #
974
1176
  def fetch_certificate_authority_csr request, options = nil
975
1177
  raise ::ArgumentError, "request must be provided" if request.nil?
976
1178
 
@@ -988,9 +1190,11 @@ module Google
988
1190
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
989
1191
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
990
1192
 
991
- header_params = {
992
- "name" => request.name
993
- }
1193
+ header_params = {}
1194
+ if request.name
1195
+ header_params["name"] = request.name
1196
+ end
1197
+
994
1198
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
995
1199
  metadata[:"x-goog-request-params"] ||= request_params_header
996
1200
 
@@ -1040,6 +1244,21 @@ module Google
1040
1244
  #
1041
1245
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1042
1246
  #
1247
+ # @example Basic example
1248
+ # require "google/cloud/security/private_ca/v1beta1"
1249
+ #
1250
+ # # Create a client object. The client can be reused for multiple calls.
1251
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1252
+ #
1253
+ # # Create a request. To set request fields, pass in keyword arguments.
1254
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest.new
1255
+ #
1256
+ # # Call the get_certificate_authority method.
1257
+ # result = client.get_certificate_authority request
1258
+ #
1259
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.
1260
+ # p result
1261
+ #
1043
1262
  def get_certificate_authority request, options = nil
1044
1263
  raise ::ArgumentError, "request must be provided" if request.nil?
1045
1264
 
@@ -1057,9 +1276,11 @@ module Google
1057
1276
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1058
1277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1059
1278
 
1060
- header_params = {
1061
- "name" => request.name
1062
- }
1279
+ header_params = {}
1280
+ if request.name
1281
+ header_params["name"] = request.name
1282
+ end
1283
+
1063
1284
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1064
1285
  metadata[:"x-goog-request-params"] ||= request_params_header
1065
1286
 
@@ -1124,6 +1345,27 @@ module Google
1124
1345
  #
1125
1346
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1126
1347
  #
1348
+ # @example Basic example
1349
+ # require "google/cloud/security/private_ca/v1beta1"
1350
+ #
1351
+ # # Create a client object. The client can be reused for multiple calls.
1352
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1353
+ #
1354
+ # # Create a request. To set request fields, pass in keyword arguments.
1355
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest.new
1356
+ #
1357
+ # # Call the list_certificate_authorities method.
1358
+ # result = client.list_certificate_authorities request
1359
+ #
1360
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1361
+ # # iterate over all elements by calling #each, and the enumerable
1362
+ # # will lazily make API calls to fetch subsequent pages. Other
1363
+ # # methods are also available for managing paging directly.
1364
+ # result.each do |response|
1365
+ # # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.
1366
+ # p response
1367
+ # end
1368
+ #
1127
1369
  def list_certificate_authorities request, options = nil
1128
1370
  raise ::ArgumentError, "request must be provided" if request.nil?
1129
1371
 
@@ -1141,9 +1383,11 @@ module Google
1141
1383
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1142
1384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1385
 
1144
- header_params = {
1145
- "parent" => request.parent
1146
- }
1386
+ header_params = {}
1387
+ if request.parent
1388
+ header_params["parent"] = request.parent
1389
+ end
1390
+
1147
1391
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1148
1392
  metadata[:"x-goog-request-params"] ||= request_params_header
1149
1393
 
@@ -1208,6 +1452,28 @@ module Google
1208
1452
  #
1209
1453
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1210
1454
  #
1455
+ # @example Basic example
1456
+ # require "google/cloud/security/private_ca/v1beta1"
1457
+ #
1458
+ # # Create a client object. The client can be reused for multiple calls.
1459
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1460
+ #
1461
+ # # Create a request. To set request fields, pass in keyword arguments.
1462
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest.new
1463
+ #
1464
+ # # Call the restore_certificate_authority method.
1465
+ # result = client.restore_certificate_authority request
1466
+ #
1467
+ # # The returned object is of type Gapic::Operation. You can use this
1468
+ # # object to check the status of an operation, cancel it, or wait
1469
+ # # for results. Here is how to block until completion:
1470
+ # result.wait_until_done! timeout: 60
1471
+ # if result.response?
1472
+ # p result.response
1473
+ # else
1474
+ # puts "Error!"
1475
+ # end
1476
+ #
1211
1477
  def restore_certificate_authority request, options = nil
1212
1478
  raise ::ArgumentError, "request must be provided" if request.nil?
1213
1479
 
@@ -1225,9 +1491,11 @@ module Google
1225
1491
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1226
1492
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1227
1493
 
1228
- header_params = {
1229
- "name" => request.name
1230
- }
1494
+ header_params = {}
1495
+ if request.name
1496
+ header_params["name"] = request.name
1497
+ end
1498
+
1231
1499
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1232
1500
  metadata[:"x-goog-request-params"] ||= request_params_header
1233
1501
 
@@ -1292,6 +1560,28 @@ module Google
1292
1560
  #
1293
1561
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1294
1562
  #
1563
+ # @example Basic example
1564
+ # require "google/cloud/security/private_ca/v1beta1"
1565
+ #
1566
+ # # Create a client object. The client can be reused for multiple calls.
1567
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1568
+ #
1569
+ # # Create a request. To set request fields, pass in keyword arguments.
1570
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest.new
1571
+ #
1572
+ # # Call the schedule_delete_certificate_authority method.
1573
+ # result = client.schedule_delete_certificate_authority request
1574
+ #
1575
+ # # The returned object is of type Gapic::Operation. You can use this
1576
+ # # object to check the status of an operation, cancel it, or wait
1577
+ # # for results. Here is how to block until completion:
1578
+ # result.wait_until_done! timeout: 60
1579
+ # if result.response?
1580
+ # p result.response
1581
+ # else
1582
+ # puts "Error!"
1583
+ # end
1584
+ #
1295
1585
  def schedule_delete_certificate_authority request, options = nil
1296
1586
  raise ::ArgumentError, "request must be provided" if request.nil?
1297
1587
 
@@ -1309,9 +1599,11 @@ module Google
1309
1599
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1310
1600
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1311
1601
 
1312
- header_params = {
1313
- "name" => request.name
1314
- }
1602
+ header_params = {}
1603
+ if request.name
1604
+ header_params["name"] = request.name
1605
+ end
1606
+
1315
1607
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1316
1608
  metadata[:"x-goog-request-params"] ||= request_params_header
1317
1609
 
@@ -1377,6 +1669,28 @@ module Google
1377
1669
  #
1378
1670
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1379
1671
  #
1672
+ # @example Basic example
1673
+ # require "google/cloud/security/private_ca/v1beta1"
1674
+ #
1675
+ # # Create a client object. The client can be reused for multiple calls.
1676
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1677
+ #
1678
+ # # Create a request. To set request fields, pass in keyword arguments.
1679
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest.new
1680
+ #
1681
+ # # Call the update_certificate_authority method.
1682
+ # result = client.update_certificate_authority request
1683
+ #
1684
+ # # The returned object is of type Gapic::Operation. You can use this
1685
+ # # object to check the status of an operation, cancel it, or wait
1686
+ # # for results. Here is how to block until completion:
1687
+ # result.wait_until_done! timeout: 60
1688
+ # if result.response?
1689
+ # p result.response
1690
+ # else
1691
+ # puts "Error!"
1692
+ # end
1693
+ #
1380
1694
  def update_certificate_authority request, options = nil
1381
1695
  raise ::ArgumentError, "request must be provided" if request.nil?
1382
1696
 
@@ -1394,9 +1708,11 @@ module Google
1394
1708
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1395
1709
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1396
1710
 
1397
- header_params = {
1398
- "certificate_authority.name" => request.certificate_authority.name
1399
- }
1711
+ header_params = {}
1712
+ if request.certificate_authority&.name
1713
+ header_params["certificate_authority.name"] = request.certificate_authority.name
1714
+ end
1715
+
1400
1716
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1401
1717
  metadata[:"x-goog-request-params"] ||= request_params_header
1402
1718
 
@@ -1447,6 +1763,21 @@ module Google
1447
1763
  #
1448
1764
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1449
1765
  #
1766
+ # @example Basic example
1767
+ # require "google/cloud/security/private_ca/v1beta1"
1768
+ #
1769
+ # # Create a client object. The client can be reused for multiple calls.
1770
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1771
+ #
1772
+ # # Create a request. To set request fields, pass in keyword arguments.
1773
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest.new
1774
+ #
1775
+ # # Call the get_certificate_revocation_list method.
1776
+ # result = client.get_certificate_revocation_list request
1777
+ #
1778
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.
1779
+ # p result
1780
+ #
1450
1781
  def get_certificate_revocation_list request, options = nil
1451
1782
  raise ::ArgumentError, "request must be provided" if request.nil?
1452
1783
 
@@ -1464,9 +1795,11 @@ module Google
1464
1795
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1465
1796
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1466
1797
 
1467
- header_params = {
1468
- "name" => request.name
1469
- }
1798
+ header_params = {}
1799
+ if request.name
1800
+ header_params["name"] = request.name
1801
+ end
1802
+
1470
1803
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1471
1804
  metadata[:"x-goog-request-params"] ||= request_params_header
1472
1805
 
@@ -1531,6 +1864,27 @@ module Google
1531
1864
  #
1532
1865
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1533
1866
  #
1867
+ # @example Basic example
1868
+ # require "google/cloud/security/private_ca/v1beta1"
1869
+ #
1870
+ # # Create a client object. The client can be reused for multiple calls.
1871
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1872
+ #
1873
+ # # Create a request. To set request fields, pass in keyword arguments.
1874
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest.new
1875
+ #
1876
+ # # Call the list_certificate_revocation_lists method.
1877
+ # result = client.list_certificate_revocation_lists request
1878
+ #
1879
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1880
+ # # iterate over all elements by calling #each, and the enumerable
1881
+ # # will lazily make API calls to fetch subsequent pages. Other
1882
+ # # methods are also available for managing paging directly.
1883
+ # result.each do |response|
1884
+ # # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.
1885
+ # p response
1886
+ # end
1887
+ #
1534
1888
  def list_certificate_revocation_lists request, options = nil
1535
1889
  raise ::ArgumentError, "request must be provided" if request.nil?
1536
1890
 
@@ -1548,9 +1902,11 @@ module Google
1548
1902
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1549
1903
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1550
1904
 
1551
- header_params = {
1552
- "parent" => request.parent
1553
- }
1905
+ header_params = {}
1906
+ if request.parent
1907
+ header_params["parent"] = request.parent
1908
+ end
1909
+
1554
1910
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1555
1911
  metadata[:"x-goog-request-params"] ||= request_params_header
1556
1912
 
@@ -1616,6 +1972,28 @@ module Google
1616
1972
  #
1617
1973
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1618
1974
  #
1975
+ # @example Basic example
1976
+ # require "google/cloud/security/private_ca/v1beta1"
1977
+ #
1978
+ # # Create a client object. The client can be reused for multiple calls.
1979
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
1980
+ #
1981
+ # # Create a request. To set request fields, pass in keyword arguments.
1982
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest.new
1983
+ #
1984
+ # # Call the update_certificate_revocation_list method.
1985
+ # result = client.update_certificate_revocation_list request
1986
+ #
1987
+ # # The returned object is of type Gapic::Operation. You can use this
1988
+ # # object to check the status of an operation, cancel it, or wait
1989
+ # # for results. Here is how to block until completion:
1990
+ # result.wait_until_done! timeout: 60
1991
+ # if result.response?
1992
+ # p result.response
1993
+ # else
1994
+ # puts "Error!"
1995
+ # end
1996
+ #
1619
1997
  def update_certificate_revocation_list request, options = nil
1620
1998
  raise ::ArgumentError, "request must be provided" if request.nil?
1621
1999
 
@@ -1633,9 +2011,11 @@ module Google
1633
2011
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1634
2012
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1635
2013
 
1636
- header_params = {
1637
- "certificate_revocation_list.name" => request.certificate_revocation_list.name
1638
- }
2014
+ header_params = {}
2015
+ if request.certificate_revocation_list&.name
2016
+ header_params["certificate_revocation_list.name"] = request.certificate_revocation_list.name
2017
+ end
2018
+
1639
2019
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1640
2020
  metadata[:"x-goog-request-params"] ||= request_params_header
1641
2021
 
@@ -1685,6 +2065,21 @@ module Google
1685
2065
  #
1686
2066
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1687
2067
  #
2068
+ # @example Basic example
2069
+ # require "google/cloud/security/private_ca/v1beta1"
2070
+ #
2071
+ # # Create a client object. The client can be reused for multiple calls.
2072
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
2073
+ #
2074
+ # # Create a request. To set request fields, pass in keyword arguments.
2075
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest.new
2076
+ #
2077
+ # # Call the get_reusable_config method.
2078
+ # result = client.get_reusable_config request
2079
+ #
2080
+ # # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.
2081
+ # p result
2082
+ #
1688
2083
  def get_reusable_config request, options = nil
1689
2084
  raise ::ArgumentError, "request must be provided" if request.nil?
1690
2085
 
@@ -1702,9 +2097,11 @@ module Google
1702
2097
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1703
2098
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1704
2099
 
1705
- header_params = {
1706
- "name" => request.name
1707
- }
2100
+ header_params = {}
2101
+ if request.name
2102
+ header_params["name"] = request.name
2103
+ end
2104
+
1708
2105
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1709
2106
  metadata[:"x-goog-request-params"] ||= request_params_header
1710
2107
 
@@ -1769,6 +2166,27 @@ module Google
1769
2166
  #
1770
2167
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1771
2168
  #
2169
+ # @example Basic example
2170
+ # require "google/cloud/security/private_ca/v1beta1"
2171
+ #
2172
+ # # Create a client object. The client can be reused for multiple calls.
2173
+ # client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
2174
+ #
2175
+ # # Create a request. To set request fields, pass in keyword arguments.
2176
+ # request = Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest.new
2177
+ #
2178
+ # # Call the list_reusable_configs method.
2179
+ # result = client.list_reusable_configs request
2180
+ #
2181
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2182
+ # # iterate over all elements by calling #each, and the enumerable
2183
+ # # will lazily make API calls to fetch subsequent pages. Other
2184
+ # # methods are also available for managing paging directly.
2185
+ # result.each do |response|
2186
+ # # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.
2187
+ # p response
2188
+ # end
2189
+ #
1772
2190
  def list_reusable_configs request, options = nil
1773
2191
  raise ::ArgumentError, "request must be provided" if request.nil?
1774
2192
 
@@ -1786,9 +2204,11 @@ module Google
1786
2204
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
1787
2205
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1788
2206
 
1789
- header_params = {
1790
- "parent" => request.parent
1791
- }
2207
+ header_params = {}
2208
+ if request.parent
2209
+ header_params["parent"] = request.parent
2210
+ end
2211
+
1792
2212
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1793
2213
  metadata[:"x-goog-request-params"] ||= request_params_header
1794
2214
 
@@ -144,6 +144,27 @@ module Google
144
144
  #
145
145
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
146
146
  #
147
+ # @example Basic example
148
+ # require "google/longrunning"
149
+ #
150
+ # # Create a client object. The client can be reused for multiple calls.
151
+ # client = Google::Longrunning::Operations::Client.new
152
+ #
153
+ # # Create a request. To set request fields, pass in keyword arguments.
154
+ # request = Google::Longrunning::ListOperationsRequest.new
155
+ #
156
+ # # Call the list_operations method.
157
+ # result = client.list_operations request
158
+ #
159
+ # # The returned object is of type Gapic::PagedEnumerable. You can
160
+ # # iterate over all elements by calling #each, and the enumerable
161
+ # # will lazily make API calls to fetch subsequent pages. Other
162
+ # # methods are also available for managing paging directly.
163
+ # result.each do |response|
164
+ # # Each element is of type ::Google::Longrunning::Operation.
165
+ # p response
166
+ # end
167
+ #
147
168
  def list_operations request, options = nil
148
169
  raise ::ArgumentError, "request must be provided" if request.nil?
149
170
 
@@ -161,9 +182,11 @@ module Google
161
182
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
162
183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
163
184
 
164
- header_params = {
165
- "name" => request.name
166
- }
185
+ header_params = {}
186
+ if request.name
187
+ header_params["name"] = request.name
188
+ end
189
+
167
190
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
168
191
  metadata[:"x-goog-request-params"] ||= request_params_header
169
192
 
@@ -216,6 +239,28 @@ module Google
216
239
  #
217
240
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
218
241
  #
242
+ # @example Basic example
243
+ # require "google/longrunning"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Longrunning::Operations::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Longrunning::GetOperationRequest.new
250
+ #
251
+ # # Call the get_operation method.
252
+ # result = client.get_operation request
253
+ #
254
+ # # The returned object is of type Gapic::Operation. You can use this
255
+ # # object to check the status of an operation, cancel it, or wait
256
+ # # for results. Here is how to block until completion:
257
+ # result.wait_until_done! timeout: 60
258
+ # if result.response?
259
+ # p result.response
260
+ # else
261
+ # puts "Error!"
262
+ # end
263
+ #
219
264
  def get_operation request, options = nil
220
265
  raise ::ArgumentError, "request must be provided" if request.nil?
221
266
 
@@ -233,9 +278,11 @@ module Google
233
278
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
234
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
280
 
236
- header_params = {
237
- "name" => request.name
238
- }
281
+ header_params = {}
282
+ if request.name
283
+ header_params["name"] = request.name
284
+ end
285
+
239
286
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
240
287
  metadata[:"x-goog-request-params"] ||= request_params_header
241
288
 
@@ -288,6 +335,21 @@ module Google
288
335
  #
289
336
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
290
337
  #
338
+ # @example Basic example
339
+ # require "google/longrunning"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Longrunning::Operations::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Longrunning::DeleteOperationRequest.new
346
+ #
347
+ # # Call the delete_operation method.
348
+ # result = client.delete_operation request
349
+ #
350
+ # # The returned object is of type Google::Protobuf::Empty.
351
+ # p result
352
+ #
291
353
  def delete_operation request, options = nil
292
354
  raise ::ArgumentError, "request must be provided" if request.nil?
293
355
 
@@ -305,9 +367,11 @@ module Google
305
367
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
306
368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
369
 
308
- header_params = {
309
- "name" => request.name
310
- }
370
+ header_params = {}
371
+ if request.name
372
+ header_params["name"] = request.name
373
+ end
374
+
311
375
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
312
376
  metadata[:"x-goog-request-params"] ||= request_params_header
313
377
 
@@ -365,6 +429,21 @@ module Google
365
429
  #
366
430
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
431
  #
432
+ # @example Basic example
433
+ # require "google/longrunning"
434
+ #
435
+ # # Create a client object. The client can be reused for multiple calls.
436
+ # client = Google::Longrunning::Operations::Client.new
437
+ #
438
+ # # Create a request. To set request fields, pass in keyword arguments.
439
+ # request = Google::Longrunning::CancelOperationRequest.new
440
+ #
441
+ # # Call the cancel_operation method.
442
+ # result = client.cancel_operation request
443
+ #
444
+ # # The returned object is of type Google::Protobuf::Empty.
445
+ # p result
446
+ #
368
447
  def cancel_operation request, options = nil
369
448
  raise ::ArgumentError, "request must be provided" if request.nil?
370
449
 
@@ -382,9 +461,11 @@ module Google
382
461
  gapic_version: ::Google::Cloud::Security::PrivateCA::V1beta1::VERSION
383
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
463
 
385
- header_params = {
386
- "name" => request.name
387
- }
464
+ header_params = {}
465
+ if request.name
466
+ header_params["name"] = request.name
467
+ end
468
+
388
469
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
470
  metadata[:"x-goog-request-params"] ||= request_params_header
390
471
 
@@ -445,6 +526,28 @@ module Google
445
526
  #
446
527
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
528
  #
529
+ # @example Basic example
530
+ # require "google/longrunning"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Longrunning::Operations::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Longrunning::WaitOperationRequest.new
537
+ #
538
+ # # Call the wait_operation method.
539
+ # result = client.wait_operation request
540
+ #
541
+ # # The returned object is of type Gapic::Operation. You can use this
542
+ # # object to check the status of an operation, cancel it, or wait
543
+ # # for results. Here is how to block until completion:
544
+ # result.wait_until_done! timeout: 60
545
+ # if result.response?
546
+ # p result.response
547
+ # else
548
+ # puts "Error!"
549
+ # end
550
+ #
448
551
  def wait_operation request, options = nil
449
552
  raise ::ArgumentError, "request must be provided" if request.nil?
450
553
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Security
23
23
  module PrivateCA
24
24
  module V1beta1
25
- VERSION = "0.3.4"
25
+ VERSION = "0.3.5"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-private_ca-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
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-28 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