google-cloud-security-private_ca-v1beta1 0.6.0 → 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 +14 -3
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb +13 -2
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client.rb +396 -2
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/operations.rb +82 -5
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/service_stub.rb +20 -20
- 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
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -2304,7 +2305,9 @@ module Google
|
|
2304
2305
|
class Configuration
|
2305
2306
|
extend ::Gapic::Config
|
2306
2307
|
|
2307
|
-
|
2308
|
+
DEFAULT_ENDPOINT = "privateca.googleapis.com"
|
2309
|
+
|
2310
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2308
2311
|
config_attr :credentials, nil do |value|
|
2309
2312
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2310
2313
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -2339,6 +2342,14 @@ module Google
|
|
2339
2342
|
end
|
2340
2343
|
end
|
2341
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
|
+
|
2342
2353
|
##
|
2343
2354
|
# Configuration RPC class for the CertificateAuthorityService API.
|
2344
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
|
@@ -665,7 +666,9 @@ module Google
|
|
665
666
|
class Configuration
|
666
667
|
extend ::Gapic::Config
|
667
668
|
|
668
|
-
|
669
|
+
DEFAULT_ENDPOINT = "privateca.googleapis.com"
|
670
|
+
|
671
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
669
672
|
config_attr :credentials, nil do |value|
|
670
673
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
671
674
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -700,6 +703,14 @@ module Google
|
|
700
703
|
end
|
701
704
|
end
|
702
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
|
+
|
703
714
|
##
|
704
715
|
# Configuration RPC class for the Operations API.
|
705
716
|
#
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client.rb
CHANGED
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1750,7 +2142,9 @@ module Google
|
|
1750
2142
|
class Configuration
|
1751
2143
|
extend ::Gapic::Config
|
1752
2144
|
|
1753
|
-
|
2145
|
+
DEFAULT_ENDPOINT = "privateca.googleapis.com"
|
2146
|
+
|
2147
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1754
2148
|
config_attr :credentials, nil do |value|
|
1755
2149
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1756
2150
|
allowed.any? { |klass| klass === value }
|
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
|
|
@@ -447,7 +522,9 @@ module Google
|
|
447
522
|
class Configuration
|
448
523
|
extend ::Gapic::Config
|
449
524
|
|
450
|
-
|
525
|
+
DEFAULT_ENDPOINT = "privateca.googleapis.com"
|
526
|
+
|
527
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
451
528
|
config_attr :credentials, nil do |value|
|
452
529
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
453
530
|
allowed.any? { |klass| klass === value }
|
@@ -568,7 +645,7 @@ module Google
|
|
568
645
|
|
569
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
570
647
|
query_string_params = if query_string_params.any?
|
571
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
572
649
|
else
|
573
650
|
{}
|
574
651
|
end
|
@@ -606,7 +683,7 @@ module Google
|
|
606
683
|
|
607
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
608
685
|
query_string_params = if query_string_params.any?
|
609
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
610
687
|
else
|
611
688
|
{}
|
612
689
|
end
|
@@ -644,7 +721,7 @@ module Google
|
|
644
721
|
|
645
722
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
646
723
|
query_string_params = if query_string_params.any?
|
647
|
-
query_string_params.to_h { |p| p.split
|
724
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
648
725
|
else
|
649
726
|
{}
|
650
727
|
end
|
@@ -682,7 +759,7 @@ module Google
|
|
682
759
|
|
683
760
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
684
761
|
query_string_params = if query_string_params.any?
|
685
|
-
query_string_params.to_h { |p| p.split
|
762
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
686
763
|
else
|
687
764
|
{}
|
688
765
|
end
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/service_stub.rb
CHANGED
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_certificate_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_certificates_request request_pb
|
138
138
|
query_string_params = if query_string_params.any?
|
139
|
-
query_string_params.to_h { |p| p.split
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
140
140
|
else
|
141
141
|
{}
|
142
142
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_revoke_certificate_request request_pb
|
176
176
|
query_string_params = if query_string_params.any?
|
177
|
-
query_string_params.to_h { |p| p.split
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
178
178
|
else
|
179
179
|
{}
|
180
180
|
end
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_request request_pb
|
214
214
|
query_string_params = if query_string_params.any?
|
215
|
-
query_string_params.to_h { |p| p.split
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
216
|
else
|
217
217
|
{}
|
218
218
|
end
|
@@ -250,7 +250,7 @@ module Google
|
|
250
250
|
|
251
251
|
verb, uri, query_string_params, body = ServiceStub.transcode_activate_certificate_authority_request request_pb
|
252
252
|
query_string_params = if query_string_params.any?
|
253
|
-
query_string_params.to_h { |p| p.split
|
253
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
254
254
|
else
|
255
255
|
{}
|
256
256
|
end
|
@@ -288,7 +288,7 @@ module Google
|
|
288
288
|
|
289
289
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_certificate_authority_request request_pb
|
290
290
|
query_string_params = if query_string_params.any?
|
291
|
-
query_string_params.to_h { |p| p.split
|
291
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
292
292
|
else
|
293
293
|
{}
|
294
294
|
end
|
@@ -326,7 +326,7 @@ module Google
|
|
326
326
|
|
327
327
|
verb, uri, query_string_params, body = ServiceStub.transcode_disable_certificate_authority_request request_pb
|
328
328
|
query_string_params = if query_string_params.any?
|
329
|
-
query_string_params.to_h { |p| p.split
|
329
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
330
330
|
else
|
331
331
|
{}
|
332
332
|
end
|
@@ -364,7 +364,7 @@ module Google
|
|
364
364
|
|
365
365
|
verb, uri, query_string_params, body = ServiceStub.transcode_enable_certificate_authority_request request_pb
|
366
366
|
query_string_params = if query_string_params.any?
|
367
|
-
query_string_params.to_h { |p| p.split
|
367
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
368
368
|
else
|
369
369
|
{}
|
370
370
|
end
|
@@ -402,7 +402,7 @@ module Google
|
|
402
402
|
|
403
403
|
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_certificate_authority_csr_request request_pb
|
404
404
|
query_string_params = if query_string_params.any?
|
405
|
-
query_string_params.to_h { |p| p.split
|
405
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
406
406
|
else
|
407
407
|
{}
|
408
408
|
end
|
@@ -440,7 +440,7 @@ module Google
|
|
440
440
|
|
441
441
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_authority_request request_pb
|
442
442
|
query_string_params = if query_string_params.any?
|
443
|
-
query_string_params.to_h { |p| p.split
|
443
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
444
444
|
else
|
445
445
|
{}
|
446
446
|
end
|
@@ -478,7 +478,7 @@ module Google
|
|
478
478
|
|
479
479
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_authorities_request request_pb
|
480
480
|
query_string_params = if query_string_params.any?
|
481
|
-
query_string_params.to_h { |p| p.split
|
481
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
482
482
|
else
|
483
483
|
{}
|
484
484
|
end
|
@@ -516,7 +516,7 @@ module Google
|
|
516
516
|
|
517
517
|
verb, uri, query_string_params, body = ServiceStub.transcode_restore_certificate_authority_request request_pb
|
518
518
|
query_string_params = if query_string_params.any?
|
519
|
-
query_string_params.to_h { |p| p.split
|
519
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
520
520
|
else
|
521
521
|
{}
|
522
522
|
end
|
@@ -554,7 +554,7 @@ module Google
|
|
554
554
|
|
555
555
|
verb, uri, query_string_params, body = ServiceStub.transcode_schedule_delete_certificate_authority_request request_pb
|
556
556
|
query_string_params = if query_string_params.any?
|
557
|
-
query_string_params.to_h { |p| p.split
|
557
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
558
558
|
else
|
559
559
|
{}
|
560
560
|
end
|
@@ -592,7 +592,7 @@ module Google
|
|
592
592
|
|
593
593
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_authority_request request_pb
|
594
594
|
query_string_params = if query_string_params.any?
|
595
|
-
query_string_params.to_h { |p| p.split
|
595
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
596
596
|
else
|
597
597
|
{}
|
598
598
|
end
|
@@ -630,7 +630,7 @@ module Google
|
|
630
630
|
|
631
631
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_certificate_revocation_list_request request_pb
|
632
632
|
query_string_params = if query_string_params.any?
|
633
|
-
query_string_params.to_h { |p| p.split
|
633
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
634
634
|
else
|
635
635
|
{}
|
636
636
|
end
|
@@ -668,7 +668,7 @@ module Google
|
|
668
668
|
|
669
669
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_certificate_revocation_lists_request request_pb
|
670
670
|
query_string_params = if query_string_params.any?
|
671
|
-
query_string_params.to_h { |p| p.split
|
671
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
672
672
|
else
|
673
673
|
{}
|
674
674
|
end
|
@@ -706,7 +706,7 @@ module Google
|
|
706
706
|
|
707
707
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_certificate_revocation_list_request request_pb
|
708
708
|
query_string_params = if query_string_params.any?
|
709
|
-
query_string_params.to_h { |p| p.split
|
709
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
710
710
|
else
|
711
711
|
{}
|
712
712
|
end
|
@@ -744,7 +744,7 @@ module Google
|
|
744
744
|
|
745
745
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_reusable_config_request request_pb
|
746
746
|
query_string_params = if query_string_params.any?
|
747
|
-
query_string_params.to_h { |p| p.split
|
747
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
748
748
|
else
|
749
749
|
{}
|
750
750
|
end
|
@@ -782,7 +782,7 @@ module Google
|
|
782
782
|
|
783
783
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_reusable_configs_request request_pb
|
784
784
|
query_string_params = if query_string_params.any?
|
785
|
-
query_string_params.to_h { |p| p.split
|
785
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
786
786
|
else
|
787
787
|
{}
|
788
788
|
end
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-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
|