google-cloud-security-private_ca-v1beta1 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/client.rb +10 -1
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb +10 -1
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client.rb +392 -0
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/operations.rb +75 -0
- data/lib/google/cloud/security/private_ca/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cc2d5e8b2c85618d7c2209b6cad9ae220e74f674ce87ed72c47430ff3201204
|
|
4
|
+
data.tar.gz: d0b880d71af52d928eed58ad4afb361aa0930a35ba3f1e4126cea55e7cf644ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 071c5a03244bdb1f499bc5ac89d410cb80b24d47792d6a9a0b14998ef9e094d92ac31cb563dea6efec145a6efcad4fd6065029d9bfb7990771c74a14f16930fe
|
|
7
|
+
data.tar.gz: 1fdd4817e39ac8445509b047fb7edbf39d41514ea2f1a9302b7c8a2936a1f26843e99256187a7c8c25f56f82f5323216d055f1f2975c25008b58b5a010d7241d
|
|
@@ -151,7 +151,8 @@ module Google
|
|
|
151
151
|
credentials: credentials,
|
|
152
152
|
endpoint: @config.endpoint,
|
|
153
153
|
channel_args: @config.channel_args,
|
|
154
|
-
interceptors: @config.interceptors
|
|
154
|
+
interceptors: @config.interceptors,
|
|
155
|
+
channel_pool_config: @config.channel_pool
|
|
155
156
|
)
|
|
156
157
|
end
|
|
157
158
|
|
|
@@ -2341,6 +2342,14 @@ module Google
|
|
|
2341
2342
|
end
|
|
2342
2343
|
end
|
|
2343
2344
|
|
|
2345
|
+
##
|
|
2346
|
+
# Configuration for the channel pool
|
|
2347
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
2348
|
+
#
|
|
2349
|
+
def channel_pool
|
|
2350
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
2351
|
+
end
|
|
2352
|
+
|
|
2344
2353
|
##
|
|
2345
2354
|
# Configuration RPC class for the CertificateAuthorityService API.
|
|
2346
2355
|
#
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb
CHANGED
|
@@ -94,7 +94,8 @@ module Google
|
|
|
94
94
|
credentials: credentials,
|
|
95
95
|
endpoint: @config.endpoint,
|
|
96
96
|
channel_args: @config.channel_args,
|
|
97
|
-
interceptors: @config.interceptors
|
|
97
|
+
interceptors: @config.interceptors,
|
|
98
|
+
channel_pool_config: @config.channel_pool
|
|
98
99
|
)
|
|
99
100
|
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
|
@@ -702,6 +703,14 @@ module Google
|
|
|
702
703
|
end
|
|
703
704
|
end
|
|
704
705
|
|
|
706
|
+
##
|
|
707
|
+
# Configuration for the channel pool
|
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
709
|
+
#
|
|
710
|
+
def channel_pool
|
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
712
|
+
end
|
|
713
|
+
|
|
705
714
|
##
|
|
706
715
|
# Configuration RPC class for the Operations API.
|
|
707
716
|
#
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client.rb
CHANGED
|
@@ -206,6 +206,22 @@ module Google
|
|
|
206
206
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
|
|
207
207
|
#
|
|
208
208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
209
|
+
#
|
|
210
|
+
# @example Basic example
|
|
211
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
212
|
+
#
|
|
213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
214
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
215
|
+
#
|
|
216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
217
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateRequest.new
|
|
218
|
+
#
|
|
219
|
+
# # Call the create_certificate method.
|
|
220
|
+
# result = client.create_certificate request
|
|
221
|
+
#
|
|
222
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
|
223
|
+
# p result
|
|
224
|
+
#
|
|
209
225
|
def create_certificate request, options = nil
|
|
210
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
211
227
|
|
|
@@ -268,6 +284,22 @@ module Google
|
|
|
268
284
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
|
|
269
285
|
#
|
|
270
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
287
|
+
#
|
|
288
|
+
# @example Basic example
|
|
289
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
290
|
+
#
|
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
292
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
293
|
+
#
|
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
295
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRequest.new
|
|
296
|
+
#
|
|
297
|
+
# # Call the get_certificate method.
|
|
298
|
+
# result = client.get_certificate request
|
|
299
|
+
#
|
|
300
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
|
301
|
+
# p result
|
|
302
|
+
#
|
|
271
303
|
def get_certificate request, options = nil
|
|
272
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
273
305
|
|
|
@@ -350,6 +382,26 @@ module Google
|
|
|
350
382
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesResponse]
|
|
351
383
|
#
|
|
352
384
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
385
|
+
#
|
|
386
|
+
# @example Basic example
|
|
387
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
388
|
+
#
|
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
390
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
391
|
+
#
|
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
393
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificatesRequest.new
|
|
394
|
+
#
|
|
395
|
+
# # Call the list_certificates method.
|
|
396
|
+
# result = client.list_certificates request
|
|
397
|
+
#
|
|
398
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
399
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
400
|
+
# result.each do |item|
|
|
401
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
|
402
|
+
# p item
|
|
403
|
+
# end
|
|
404
|
+
#
|
|
353
405
|
def list_certificates request, options = nil
|
|
354
406
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
355
407
|
|
|
@@ -429,6 +481,22 @@ module Google
|
|
|
429
481
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
|
|
430
482
|
#
|
|
431
483
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
484
|
+
#
|
|
485
|
+
# @example Basic example
|
|
486
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
487
|
+
#
|
|
488
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
489
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
490
|
+
#
|
|
491
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
492
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::RevokeCertificateRequest.new
|
|
493
|
+
#
|
|
494
|
+
# # Call the revoke_certificate method.
|
|
495
|
+
# result = client.revoke_certificate request
|
|
496
|
+
#
|
|
497
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
|
498
|
+
# p result
|
|
499
|
+
#
|
|
432
500
|
def revoke_certificate request, options = nil
|
|
433
501
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
434
502
|
|
|
@@ -508,6 +576,22 @@ module Google
|
|
|
508
576
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::Certificate]
|
|
509
577
|
#
|
|
510
578
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
579
|
+
#
|
|
580
|
+
# @example Basic example
|
|
581
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
582
|
+
#
|
|
583
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
584
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
585
|
+
#
|
|
586
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
587
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRequest.new
|
|
588
|
+
#
|
|
589
|
+
# # Call the update_certificate method.
|
|
590
|
+
# result = client.update_certificate request
|
|
591
|
+
#
|
|
592
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
|
593
|
+
# p result
|
|
594
|
+
#
|
|
511
595
|
def update_certificate request, options = nil
|
|
512
596
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
513
597
|
|
|
@@ -596,6 +680,29 @@ module Google
|
|
|
596
680
|
# @return [::Gapic::Operation]
|
|
597
681
|
#
|
|
598
682
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
683
|
+
#
|
|
684
|
+
# @example Basic example
|
|
685
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
686
|
+
#
|
|
687
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
688
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
689
|
+
#
|
|
690
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
691
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ActivateCertificateAuthorityRequest.new
|
|
692
|
+
#
|
|
693
|
+
# # Call the activate_certificate_authority method.
|
|
694
|
+
# result = client.activate_certificate_authority request
|
|
695
|
+
#
|
|
696
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
697
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
698
|
+
# # Here is how to wait for a response.
|
|
699
|
+
# result.wait_until_done! timeout: 60
|
|
700
|
+
# if result.response?
|
|
701
|
+
# p result.response
|
|
702
|
+
# else
|
|
703
|
+
# puts "No response received."
|
|
704
|
+
# end
|
|
705
|
+
#
|
|
599
706
|
def activate_certificate_authority request, options = nil
|
|
600
707
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
601
708
|
|
|
@@ -680,6 +787,29 @@ module Google
|
|
|
680
787
|
# @return [::Gapic::Operation]
|
|
681
788
|
#
|
|
682
789
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
790
|
+
#
|
|
791
|
+
# @example Basic example
|
|
792
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
793
|
+
#
|
|
794
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
795
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
796
|
+
#
|
|
797
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
798
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateAuthorityRequest.new
|
|
799
|
+
#
|
|
800
|
+
# # Call the create_certificate_authority method.
|
|
801
|
+
# result = client.create_certificate_authority request
|
|
802
|
+
#
|
|
803
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
804
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
805
|
+
# # Here is how to wait for a response.
|
|
806
|
+
# result.wait_until_done! timeout: 60
|
|
807
|
+
# if result.response?
|
|
808
|
+
# p result.response
|
|
809
|
+
# else
|
|
810
|
+
# puts "No response received."
|
|
811
|
+
# end
|
|
812
|
+
#
|
|
683
813
|
def create_certificate_authority request, options = nil
|
|
684
814
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
685
815
|
|
|
@@ -758,6 +888,29 @@ module Google
|
|
|
758
888
|
# @return [::Gapic::Operation]
|
|
759
889
|
#
|
|
760
890
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
891
|
+
#
|
|
892
|
+
# @example Basic example
|
|
893
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
894
|
+
#
|
|
895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
896
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
897
|
+
#
|
|
898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
899
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::DisableCertificateAuthorityRequest.new
|
|
900
|
+
#
|
|
901
|
+
# # Call the disable_certificate_authority method.
|
|
902
|
+
# result = client.disable_certificate_authority request
|
|
903
|
+
#
|
|
904
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
905
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
906
|
+
# # Here is how to wait for a response.
|
|
907
|
+
# result.wait_until_done! timeout: 60
|
|
908
|
+
# if result.response?
|
|
909
|
+
# p result.response
|
|
910
|
+
# else
|
|
911
|
+
# puts "No response received."
|
|
912
|
+
# end
|
|
913
|
+
#
|
|
761
914
|
def disable_certificate_authority request, options = nil
|
|
762
915
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
763
916
|
|
|
@@ -836,6 +989,29 @@ module Google
|
|
|
836
989
|
# @return [::Gapic::Operation]
|
|
837
990
|
#
|
|
838
991
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
992
|
+
#
|
|
993
|
+
# @example Basic example
|
|
994
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
995
|
+
#
|
|
996
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
997
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
998
|
+
#
|
|
999
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1000
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::EnableCertificateAuthorityRequest.new
|
|
1001
|
+
#
|
|
1002
|
+
# # Call the enable_certificate_authority method.
|
|
1003
|
+
# result = client.enable_certificate_authority request
|
|
1004
|
+
#
|
|
1005
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1006
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1007
|
+
# # Here is how to wait for a response.
|
|
1008
|
+
# result.wait_until_done! timeout: 60
|
|
1009
|
+
# if result.response?
|
|
1010
|
+
# p result.response
|
|
1011
|
+
# else
|
|
1012
|
+
# puts "No response received."
|
|
1013
|
+
# end
|
|
1014
|
+
#
|
|
839
1015
|
def enable_certificate_authority request, options = nil
|
|
840
1016
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
841
1017
|
|
|
@@ -906,6 +1082,22 @@ module Google
|
|
|
906
1082
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse]
|
|
907
1083
|
#
|
|
908
1084
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1085
|
+
#
|
|
1086
|
+
# @example Basic example
|
|
1087
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1088
|
+
#
|
|
1089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1090
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1091
|
+
#
|
|
1092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1093
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrRequest.new
|
|
1094
|
+
#
|
|
1095
|
+
# # Call the fetch_certificate_authority_csr method.
|
|
1096
|
+
# result = client.fetch_certificate_authority_csr request
|
|
1097
|
+
#
|
|
1098
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::FetchCertificateAuthorityCsrResponse.
|
|
1099
|
+
# p result
|
|
1100
|
+
#
|
|
909
1101
|
def fetch_certificate_authority_csr request, options = nil
|
|
910
1102
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
911
1103
|
|
|
@@ -969,6 +1161,22 @@ module Google
|
|
|
969
1161
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority]
|
|
970
1162
|
#
|
|
971
1163
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1164
|
+
#
|
|
1165
|
+
# @example Basic example
|
|
1166
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1167
|
+
#
|
|
1168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1169
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1170
|
+
#
|
|
1171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1172
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateAuthorityRequest.new
|
|
1173
|
+
#
|
|
1174
|
+
# # Call the get_certificate_authority method.
|
|
1175
|
+
# result = client.get_certificate_authority request
|
|
1176
|
+
#
|
|
1177
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.
|
|
1178
|
+
# p result
|
|
1179
|
+
#
|
|
972
1180
|
def get_certificate_authority request, options = nil
|
|
973
1181
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
974
1182
|
|
|
@@ -1047,6 +1255,26 @@ module Google
|
|
|
1047
1255
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesResponse]
|
|
1048
1256
|
#
|
|
1049
1257
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1258
|
+
#
|
|
1259
|
+
# @example Basic example
|
|
1260
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1261
|
+
#
|
|
1262
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1263
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1264
|
+
#
|
|
1265
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1266
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateAuthoritiesRequest.new
|
|
1267
|
+
#
|
|
1268
|
+
# # Call the list_certificate_authorities method.
|
|
1269
|
+
# result = client.list_certificate_authorities request
|
|
1270
|
+
#
|
|
1271
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1272
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1273
|
+
# result.each do |item|
|
|
1274
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.
|
|
1275
|
+
# p item
|
|
1276
|
+
# end
|
|
1277
|
+
#
|
|
1050
1278
|
def list_certificate_authorities request, options = nil
|
|
1051
1279
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1052
1280
|
|
|
@@ -1124,6 +1352,29 @@ module Google
|
|
|
1124
1352
|
# @return [::Gapic::Operation]
|
|
1125
1353
|
#
|
|
1126
1354
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1355
|
+
#
|
|
1356
|
+
# @example Basic example
|
|
1357
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1358
|
+
#
|
|
1359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1360
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1361
|
+
#
|
|
1362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1363
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::RestoreCertificateAuthorityRequest.new
|
|
1364
|
+
#
|
|
1365
|
+
# # Call the restore_certificate_authority method.
|
|
1366
|
+
# result = client.restore_certificate_authority request
|
|
1367
|
+
#
|
|
1368
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1369
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1370
|
+
# # Here is how to wait for a response.
|
|
1371
|
+
# result.wait_until_done! timeout: 60
|
|
1372
|
+
# if result.response?
|
|
1373
|
+
# p result.response
|
|
1374
|
+
# else
|
|
1375
|
+
# puts "No response received."
|
|
1376
|
+
# end
|
|
1377
|
+
#
|
|
1127
1378
|
def restore_certificate_authority request, options = nil
|
|
1128
1379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1129
1380
|
|
|
@@ -1202,6 +1453,29 @@ module Google
|
|
|
1202
1453
|
# @return [::Gapic::Operation]
|
|
1203
1454
|
#
|
|
1204
1455
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1456
|
+
#
|
|
1457
|
+
# @example Basic example
|
|
1458
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1459
|
+
#
|
|
1460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1461
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1462
|
+
#
|
|
1463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1464
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ScheduleDeleteCertificateAuthorityRequest.new
|
|
1465
|
+
#
|
|
1466
|
+
# # Call the schedule_delete_certificate_authority method.
|
|
1467
|
+
# result = client.schedule_delete_certificate_authority request
|
|
1468
|
+
#
|
|
1469
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1470
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1471
|
+
# # Here is how to wait for a response.
|
|
1472
|
+
# result.wait_until_done! timeout: 60
|
|
1473
|
+
# if result.response?
|
|
1474
|
+
# p result.response
|
|
1475
|
+
# else
|
|
1476
|
+
# puts "No response received."
|
|
1477
|
+
# end
|
|
1478
|
+
#
|
|
1205
1479
|
def schedule_delete_certificate_authority request, options = nil
|
|
1206
1480
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1207
1481
|
|
|
@@ -1281,6 +1555,29 @@ module Google
|
|
|
1281
1555
|
# @return [::Gapic::Operation]
|
|
1282
1556
|
#
|
|
1283
1557
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1558
|
+
#
|
|
1559
|
+
# @example Basic example
|
|
1560
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1561
|
+
#
|
|
1562
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1563
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1564
|
+
#
|
|
1565
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1566
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateAuthorityRequest.new
|
|
1567
|
+
#
|
|
1568
|
+
# # Call the update_certificate_authority method.
|
|
1569
|
+
# result = client.update_certificate_authority request
|
|
1570
|
+
#
|
|
1571
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1572
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1573
|
+
# # Here is how to wait for a response.
|
|
1574
|
+
# result.wait_until_done! timeout: 60
|
|
1575
|
+
# if result.response?
|
|
1576
|
+
# p result.response
|
|
1577
|
+
# else
|
|
1578
|
+
# puts "No response received."
|
|
1579
|
+
# end
|
|
1580
|
+
#
|
|
1284
1581
|
def update_certificate_authority request, options = nil
|
|
1285
1582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1286
1583
|
|
|
@@ -1345,6 +1642,22 @@ module Google
|
|
|
1345
1642
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList]
|
|
1346
1643
|
#
|
|
1347
1644
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1645
|
+
#
|
|
1646
|
+
# @example Basic example
|
|
1647
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1648
|
+
#
|
|
1649
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1650
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1651
|
+
#
|
|
1652
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1653
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::GetCertificateRevocationListRequest.new
|
|
1654
|
+
#
|
|
1655
|
+
# # Call the get_certificate_revocation_list method.
|
|
1656
|
+
# result = client.get_certificate_revocation_list request
|
|
1657
|
+
#
|
|
1658
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.
|
|
1659
|
+
# p result
|
|
1660
|
+
#
|
|
1348
1661
|
def get_certificate_revocation_list request, options = nil
|
|
1349
1662
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1350
1663
|
|
|
@@ -1423,6 +1736,26 @@ module Google
|
|
|
1423
1736
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsResponse]
|
|
1424
1737
|
#
|
|
1425
1738
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1739
|
+
#
|
|
1740
|
+
# @example Basic example
|
|
1741
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1742
|
+
#
|
|
1743
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1744
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1745
|
+
#
|
|
1746
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1747
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ListCertificateRevocationListsRequest.new
|
|
1748
|
+
#
|
|
1749
|
+
# # Call the list_certificate_revocation_lists method.
|
|
1750
|
+
# result = client.list_certificate_revocation_lists request
|
|
1751
|
+
#
|
|
1752
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1753
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1754
|
+
# result.each do |item|
|
|
1755
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.
|
|
1756
|
+
# p item
|
|
1757
|
+
# end
|
|
1758
|
+
#
|
|
1426
1759
|
def list_certificate_revocation_lists request, options = nil
|
|
1427
1760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1428
1761
|
|
|
@@ -1501,6 +1834,29 @@ module Google
|
|
|
1501
1834
|
# @return [::Gapic::Operation]
|
|
1502
1835
|
#
|
|
1503
1836
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1837
|
+
#
|
|
1838
|
+
# @example Basic example
|
|
1839
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1840
|
+
#
|
|
1841
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1842
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1843
|
+
#
|
|
1844
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1845
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::UpdateCertificateRevocationListRequest.new
|
|
1846
|
+
#
|
|
1847
|
+
# # Call the update_certificate_revocation_list method.
|
|
1848
|
+
# result = client.update_certificate_revocation_list request
|
|
1849
|
+
#
|
|
1850
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1851
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1852
|
+
# # Here is how to wait for a response.
|
|
1853
|
+
# result.wait_until_done! timeout: 60
|
|
1854
|
+
# if result.response?
|
|
1855
|
+
# p result.response
|
|
1856
|
+
# else
|
|
1857
|
+
# puts "No response received."
|
|
1858
|
+
# end
|
|
1859
|
+
#
|
|
1504
1860
|
def update_certificate_revocation_list request, options = nil
|
|
1505
1861
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1506
1862
|
|
|
@@ -1564,6 +1920,22 @@ module Google
|
|
|
1564
1920
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig]
|
|
1565
1921
|
#
|
|
1566
1922
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1923
|
+
#
|
|
1924
|
+
# @example Basic example
|
|
1925
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
1926
|
+
#
|
|
1927
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1928
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
1929
|
+
#
|
|
1930
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1931
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::GetReusableConfigRequest.new
|
|
1932
|
+
#
|
|
1933
|
+
# # Call the get_reusable_config method.
|
|
1934
|
+
# result = client.get_reusable_config request
|
|
1935
|
+
#
|
|
1936
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.
|
|
1937
|
+
# p result
|
|
1938
|
+
#
|
|
1567
1939
|
def get_reusable_config request, options = nil
|
|
1568
1940
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1569
1941
|
|
|
@@ -1642,6 +2014,26 @@ module Google
|
|
|
1642
2014
|
# @return [::Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsResponse]
|
|
1643
2015
|
#
|
|
1644
2016
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2017
|
+
#
|
|
2018
|
+
# @example Basic example
|
|
2019
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
|
2020
|
+
#
|
|
2021
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2022
|
+
# client = Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
|
2023
|
+
#
|
|
2024
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2025
|
+
# request = Google::Cloud::Security::PrivateCA::V1beta1::ListReusableConfigsRequest.new
|
|
2026
|
+
#
|
|
2027
|
+
# # Call the list_reusable_configs method.
|
|
2028
|
+
# result = client.list_reusable_configs request
|
|
2029
|
+
#
|
|
2030
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2031
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2032
|
+
# result.each do |item|
|
|
2033
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.
|
|
2034
|
+
# p item
|
|
2035
|
+
# end
|
|
2036
|
+
#
|
|
1645
2037
|
def list_reusable_configs request, options = nil
|
|
1646
2038
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1647
2039
|
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/operations.rb
CHANGED
|
@@ -137,6 +137,26 @@ module Google
|
|
|
137
137
|
# @return [::Gapic::Operation]
|
|
138
138
|
#
|
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
140
|
+
#
|
|
141
|
+
# @example Basic example
|
|
142
|
+
# require "google/longrunning"
|
|
143
|
+
#
|
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
146
|
+
#
|
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
|
149
|
+
#
|
|
150
|
+
# # Call the list_operations method.
|
|
151
|
+
# result = client.list_operations request
|
|
152
|
+
#
|
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
155
|
+
# result.each do |item|
|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
|
157
|
+
# p item
|
|
158
|
+
# end
|
|
159
|
+
#
|
|
140
160
|
def list_operations request, options = nil
|
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
142
162
|
|
|
@@ -202,6 +222,29 @@ module Google
|
|
|
202
222
|
# @return [::Gapic::Operation]
|
|
203
223
|
#
|
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
225
|
+
#
|
|
226
|
+
# @example Basic example
|
|
227
|
+
# require "google/longrunning"
|
|
228
|
+
#
|
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
231
|
+
#
|
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
|
234
|
+
#
|
|
235
|
+
# # Call the get_operation method.
|
|
236
|
+
# result = client.get_operation request
|
|
237
|
+
#
|
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
240
|
+
# # Here is how to wait for a response.
|
|
241
|
+
# result.wait_until_done! timeout: 60
|
|
242
|
+
# if result.response?
|
|
243
|
+
# p result.response
|
|
244
|
+
# else
|
|
245
|
+
# puts "No response received."
|
|
246
|
+
# end
|
|
247
|
+
#
|
|
205
248
|
def get_operation request, options = nil
|
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
207
250
|
|
|
@@ -268,6 +311,22 @@ module Google
|
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
|
269
312
|
#
|
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
314
|
+
#
|
|
315
|
+
# @example Basic example
|
|
316
|
+
# require "google/longrunning"
|
|
317
|
+
#
|
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
320
|
+
#
|
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
|
323
|
+
#
|
|
324
|
+
# # Call the delete_operation method.
|
|
325
|
+
# result = client.delete_operation request
|
|
326
|
+
#
|
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
328
|
+
# p result
|
|
329
|
+
#
|
|
271
330
|
def delete_operation request, options = nil
|
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
273
332
|
|
|
@@ -339,6 +398,22 @@ module Google
|
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
|
340
399
|
#
|
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
401
|
+
#
|
|
402
|
+
# @example Basic example
|
|
403
|
+
# require "google/longrunning"
|
|
404
|
+
#
|
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
|
407
|
+
#
|
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
|
410
|
+
#
|
|
411
|
+
# # Call the cancel_operation method.
|
|
412
|
+
# result = client.cancel_operation request
|
|
413
|
+
#
|
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
415
|
+
# p result
|
|
416
|
+
#
|
|
342
417
|
def cancel_operation request, options = nil
|
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
344
419
|
|
|
@@ -66,6 +66,20 @@ module Google
|
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
|
67
67
|
# non-empty value to expect.
|
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
|
69
|
+
|
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
|
73
|
+
# `name` field on the resource.
|
|
74
|
+
#
|
|
75
|
+
# This behavior should not be applied to references to other resources within
|
|
76
|
+
# the message.
|
|
77
|
+
#
|
|
78
|
+
# The identifier field of resources often have different field behavior
|
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
|
82
|
+
IDENTIFIER = 8
|
|
69
83
|
end
|
|
70
84
|
end
|
|
71
85
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-security-private_ca-v1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.20.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.20.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
221
221
|
- !ruby/object:Gem::Version
|
|
222
222
|
version: '0'
|
|
223
223
|
requirements: []
|
|
224
|
-
rubygems_version: 3.4.
|
|
224
|
+
rubygems_version: 3.4.19
|
|
225
225
|
signing_key:
|
|
226
226
|
specification_version: 4
|
|
227
227
|
summary: API Client library for the Certificate Authority Service V1beta1 API
|