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