google-cloud-security-private_ca-v1 0.8.1 → 0.9.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/v1/certificate_authority_service/client.rb +10 -1
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +10 -1
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/client.rb +582 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb +75 -0
- data/lib/google/cloud/security/private_ca/v1/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: 4121e58277ff27d26ec4e6018c6d54707343b3b7bf61089676c4423d8f51dc2d
|
4
|
+
data.tar.gz: 34251313dad83c31f244c9ccff1042a7d931841f2bc5de4fb16a9d1380372bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502de49b1e150146587d05092a3f5371faa6d2745d82987a2897f2e7426f69dce6b9cf0f2e690eff2abd13ca60b017f02fb402985973972cedebba6cb91a6f5d
|
7
|
+
data.tar.gz: 87ba04ecdbd2100b6e52392c9ca8e6df164e4dade7f5c00cc8993083382b5081eb718b9068a6ccac2b5aeb5fe421a68cffa73a993707b68b6018bf5a0b6b0951
|
@@ -166,7 +166,8 @@ module Google
|
|
166
166
|
credentials: credentials,
|
167
167
|
endpoint: @config.endpoint,
|
168
168
|
channel_args: @config.channel_args,
|
169
|
-
interceptors: @config.interceptors
|
169
|
+
interceptors: @config.interceptors,
|
170
|
+
channel_pool_config: @config.channel_pool
|
170
171
|
)
|
171
172
|
end
|
172
173
|
|
@@ -3457,6 +3458,14 @@ module Google
|
|
3457
3458
|
end
|
3458
3459
|
end
|
3459
3460
|
|
3461
|
+
##
|
3462
|
+
# Configuration for the channel pool
|
3463
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
3464
|
+
#
|
3465
|
+
def channel_pool
|
3466
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
3467
|
+
end
|
3468
|
+
|
3460
3469
|
##
|
3461
3470
|
# Configuration RPC class for the CertificateAuthorityService API.
|
3462
3471
|
#
|
@@ -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
|
#
|
@@ -270,6 +270,22 @@ module Google
|
|
270
270
|
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
271
271
|
#
|
272
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
273
|
+
#
|
274
|
+
# @example Basic example
|
275
|
+
# require "google/cloud/security/private_ca/v1"
|
276
|
+
#
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
278
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
279
|
+
#
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
281
|
+
# request = Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest.new
|
282
|
+
#
|
283
|
+
# # Call the create_certificate method.
|
284
|
+
# result = client.create_certificate request
|
285
|
+
#
|
286
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::Certificate.
|
287
|
+
# p result
|
288
|
+
#
|
273
289
|
def create_certificate request, options = nil
|
274
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
291
|
|
@@ -334,6 +350,22 @@ module Google
|
|
334
350
|
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
335
351
|
#
|
336
352
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
353
|
+
#
|
354
|
+
# @example Basic example
|
355
|
+
# require "google/cloud/security/private_ca/v1"
|
356
|
+
#
|
357
|
+
# # Create a client object. The client can be reused for multiple calls.
|
358
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
359
|
+
#
|
360
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
361
|
+
# request = Google::Cloud::Security::PrivateCA::V1::GetCertificateRequest.new
|
362
|
+
#
|
363
|
+
# # Call the get_certificate method.
|
364
|
+
# result = client.get_certificate request
|
365
|
+
#
|
366
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::Certificate.
|
367
|
+
# p result
|
368
|
+
#
|
337
369
|
def get_certificate request, options = nil
|
338
370
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
339
371
|
|
@@ -418,6 +450,26 @@ module Google
|
|
418
450
|
# @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificatesResponse]
|
419
451
|
#
|
420
452
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
453
|
+
#
|
454
|
+
# @example Basic example
|
455
|
+
# require "google/cloud/security/private_ca/v1"
|
456
|
+
#
|
457
|
+
# # Create a client object. The client can be reused for multiple calls.
|
458
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
459
|
+
#
|
460
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
461
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ListCertificatesRequest.new
|
462
|
+
#
|
463
|
+
# # Call the list_certificates method.
|
464
|
+
# result = client.list_certificates request
|
465
|
+
#
|
466
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
467
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
468
|
+
# result.each do |item|
|
469
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1::Certificate.
|
470
|
+
# p item
|
471
|
+
# end
|
472
|
+
#
|
421
473
|
def list_certificates request, options = nil
|
422
474
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
423
475
|
|
@@ -500,6 +552,22 @@ module Google
|
|
500
552
|
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
501
553
|
#
|
502
554
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
555
|
+
#
|
556
|
+
# @example Basic example
|
557
|
+
# require "google/cloud/security/private_ca/v1"
|
558
|
+
#
|
559
|
+
# # Create a client object. The client can be reused for multiple calls.
|
560
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
561
|
+
#
|
562
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
563
|
+
# request = Google::Cloud::Security::PrivateCA::V1::RevokeCertificateRequest.new
|
564
|
+
#
|
565
|
+
# # Call the revoke_certificate method.
|
566
|
+
# result = client.revoke_certificate request
|
567
|
+
#
|
568
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::Certificate.
|
569
|
+
# p result
|
570
|
+
#
|
503
571
|
def revoke_certificate request, options = nil
|
504
572
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
505
573
|
|
@@ -581,6 +649,22 @@ module Google
|
|
581
649
|
# @return [::Google::Cloud::Security::PrivateCA::V1::Certificate]
|
582
650
|
#
|
583
651
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
652
|
+
#
|
653
|
+
# @example Basic example
|
654
|
+
# require "google/cloud/security/private_ca/v1"
|
655
|
+
#
|
656
|
+
# # Create a client object. The client can be reused for multiple calls.
|
657
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
658
|
+
#
|
659
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
660
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRequest.new
|
661
|
+
#
|
662
|
+
# # Call the update_certificate method.
|
663
|
+
# result = client.update_certificate request
|
664
|
+
#
|
665
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::Certificate.
|
666
|
+
# p result
|
667
|
+
#
|
584
668
|
def update_certificate request, options = nil
|
585
669
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
586
670
|
|
@@ -674,6 +758,29 @@ module Google
|
|
674
758
|
# @return [::Gapic::Operation]
|
675
759
|
#
|
676
760
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
761
|
+
#
|
762
|
+
# @example Basic example
|
763
|
+
# require "google/cloud/security/private_ca/v1"
|
764
|
+
#
|
765
|
+
# # Create a client object. The client can be reused for multiple calls.
|
766
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
767
|
+
#
|
768
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
769
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ActivateCertificateAuthorityRequest.new
|
770
|
+
#
|
771
|
+
# # Call the activate_certificate_authority method.
|
772
|
+
# result = client.activate_certificate_authority request
|
773
|
+
#
|
774
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
775
|
+
# # check the status of an operation, cancel it, or wait for results.
|
776
|
+
# # Here is how to wait for a response.
|
777
|
+
# result.wait_until_done! timeout: 60
|
778
|
+
# if result.response?
|
779
|
+
# p result.response
|
780
|
+
# else
|
781
|
+
# puts "No response received."
|
782
|
+
# end
|
783
|
+
#
|
677
784
|
def activate_certificate_authority request, options = nil
|
678
785
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
679
786
|
|
@@ -763,6 +870,29 @@ module Google
|
|
763
870
|
# @return [::Gapic::Operation]
|
764
871
|
#
|
765
872
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
873
|
+
#
|
874
|
+
# @example Basic example
|
875
|
+
# require "google/cloud/security/private_ca/v1"
|
876
|
+
#
|
877
|
+
# # Create a client object. The client can be reused for multiple calls.
|
878
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
879
|
+
#
|
880
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
881
|
+
# request = Google::Cloud::Security::PrivateCA::V1::CreateCertificateAuthorityRequest.new
|
882
|
+
#
|
883
|
+
# # Call the create_certificate_authority method.
|
884
|
+
# result = client.create_certificate_authority request
|
885
|
+
#
|
886
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
887
|
+
# # check the status of an operation, cancel it, or wait for results.
|
888
|
+
# # Here is how to wait for a response.
|
889
|
+
# result.wait_until_done! timeout: 60
|
890
|
+
# if result.response?
|
891
|
+
# p result.response
|
892
|
+
# else
|
893
|
+
# puts "No response received."
|
894
|
+
# end
|
895
|
+
#
|
766
896
|
def create_certificate_authority request, options = nil
|
767
897
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
768
898
|
|
@@ -848,6 +978,29 @@ module Google
|
|
848
978
|
# @return [::Gapic::Operation]
|
849
979
|
#
|
850
980
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
981
|
+
#
|
982
|
+
# @example Basic example
|
983
|
+
# require "google/cloud/security/private_ca/v1"
|
984
|
+
#
|
985
|
+
# # Create a client object. The client can be reused for multiple calls.
|
986
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
987
|
+
#
|
988
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
989
|
+
# request = Google::Cloud::Security::PrivateCA::V1::DisableCertificateAuthorityRequest.new
|
990
|
+
#
|
991
|
+
# # Call the disable_certificate_authority method.
|
992
|
+
# result = client.disable_certificate_authority request
|
993
|
+
#
|
994
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
995
|
+
# # check the status of an operation, cancel it, or wait for results.
|
996
|
+
# # Here is how to wait for a response.
|
997
|
+
# result.wait_until_done! timeout: 60
|
998
|
+
# if result.response?
|
999
|
+
# p result.response
|
1000
|
+
# else
|
1001
|
+
# puts "No response received."
|
1002
|
+
# end
|
1003
|
+
#
|
851
1004
|
def disable_certificate_authority request, options = nil
|
852
1005
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
853
1006
|
|
@@ -928,6 +1081,29 @@ module Google
|
|
928
1081
|
# @return [::Gapic::Operation]
|
929
1082
|
#
|
930
1083
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1084
|
+
#
|
1085
|
+
# @example Basic example
|
1086
|
+
# require "google/cloud/security/private_ca/v1"
|
1087
|
+
#
|
1088
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1089
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1090
|
+
#
|
1091
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1092
|
+
# request = Google::Cloud::Security::PrivateCA::V1::EnableCertificateAuthorityRequest.new
|
1093
|
+
#
|
1094
|
+
# # Call the enable_certificate_authority method.
|
1095
|
+
# result = client.enable_certificate_authority request
|
1096
|
+
#
|
1097
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1098
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1099
|
+
# # Here is how to wait for a response.
|
1100
|
+
# result.wait_until_done! timeout: 60
|
1101
|
+
# if result.response?
|
1102
|
+
# p result.response
|
1103
|
+
# else
|
1104
|
+
# puts "No response received."
|
1105
|
+
# end
|
1106
|
+
#
|
931
1107
|
def enable_certificate_authority request, options = nil
|
932
1108
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
933
1109
|
|
@@ -1003,6 +1179,22 @@ module Google
|
|
1003
1179
|
# @return [::Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrResponse]
|
1004
1180
|
#
|
1005
1181
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1182
|
+
#
|
1183
|
+
# @example Basic example
|
1184
|
+
# require "google/cloud/security/private_ca/v1"
|
1185
|
+
#
|
1186
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1187
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1188
|
+
#
|
1189
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1190
|
+
# request = Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrRequest.new
|
1191
|
+
#
|
1192
|
+
# # Call the fetch_certificate_authority_csr method.
|
1193
|
+
# result = client.fetch_certificate_authority_csr request
|
1194
|
+
#
|
1195
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::FetchCertificateAuthorityCsrResponse.
|
1196
|
+
# p result
|
1197
|
+
#
|
1006
1198
|
def fetch_certificate_authority_csr request, options = nil
|
1007
1199
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1008
1200
|
|
@@ -1069,6 +1261,22 @@ module Google
|
|
1069
1261
|
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority]
|
1070
1262
|
#
|
1071
1263
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1264
|
+
#
|
1265
|
+
# @example Basic example
|
1266
|
+
# require "google/cloud/security/private_ca/v1"
|
1267
|
+
#
|
1268
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1269
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1270
|
+
#
|
1271
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1272
|
+
# request = Google::Cloud::Security::PrivateCA::V1::GetCertificateAuthorityRequest.new
|
1273
|
+
#
|
1274
|
+
# # Call the get_certificate_authority method.
|
1275
|
+
# result = client.get_certificate_authority request
|
1276
|
+
#
|
1277
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::CertificateAuthority.
|
1278
|
+
# p result
|
1279
|
+
#
|
1072
1280
|
def get_certificate_authority request, options = nil
|
1073
1281
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1074
1282
|
|
@@ -1151,6 +1359,26 @@ module Google
|
|
1151
1359
|
# @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesResponse]
|
1152
1360
|
#
|
1153
1361
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1362
|
+
#
|
1363
|
+
# @example Basic example
|
1364
|
+
# require "google/cloud/security/private_ca/v1"
|
1365
|
+
#
|
1366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1367
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1368
|
+
#
|
1369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1370
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ListCertificateAuthoritiesRequest.new
|
1371
|
+
#
|
1372
|
+
# # Call the list_certificate_authorities method.
|
1373
|
+
# result = client.list_certificate_authorities request
|
1374
|
+
#
|
1375
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1376
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1377
|
+
# result.each do |item|
|
1378
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthority.
|
1379
|
+
# p item
|
1380
|
+
# end
|
1381
|
+
#
|
1154
1382
|
def list_certificate_authorities request, options = nil
|
1155
1383
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1156
1384
|
|
@@ -1231,6 +1459,29 @@ module Google
|
|
1231
1459
|
# @return [::Gapic::Operation]
|
1232
1460
|
#
|
1233
1461
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1462
|
+
#
|
1463
|
+
# @example Basic example
|
1464
|
+
# require "google/cloud/security/private_ca/v1"
|
1465
|
+
#
|
1466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1467
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1468
|
+
#
|
1469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1470
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UndeleteCertificateAuthorityRequest.new
|
1471
|
+
#
|
1472
|
+
# # Call the undelete_certificate_authority method.
|
1473
|
+
# result = client.undelete_certificate_authority request
|
1474
|
+
#
|
1475
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1476
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1477
|
+
# # Here is how to wait for a response.
|
1478
|
+
# result.wait_until_done! timeout: 60
|
1479
|
+
# if result.response?
|
1480
|
+
# p result.response
|
1481
|
+
# else
|
1482
|
+
# puts "No response received."
|
1483
|
+
# end
|
1484
|
+
#
|
1234
1485
|
def undelete_certificate_authority request, options = nil
|
1235
1486
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1236
1487
|
|
@@ -1323,6 +1574,29 @@ module Google
|
|
1323
1574
|
# @return [::Gapic::Operation]
|
1324
1575
|
#
|
1325
1576
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1577
|
+
#
|
1578
|
+
# @example Basic example
|
1579
|
+
# require "google/cloud/security/private_ca/v1"
|
1580
|
+
#
|
1581
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1582
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1583
|
+
#
|
1584
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1585
|
+
# request = Google::Cloud::Security::PrivateCA::V1::DeleteCertificateAuthorityRequest.new
|
1586
|
+
#
|
1587
|
+
# # Call the delete_certificate_authority method.
|
1588
|
+
# result = client.delete_certificate_authority request
|
1589
|
+
#
|
1590
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1591
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1592
|
+
# # Here is how to wait for a response.
|
1593
|
+
# result.wait_until_done! timeout: 60
|
1594
|
+
# if result.response?
|
1595
|
+
# p result.response
|
1596
|
+
# else
|
1597
|
+
# puts "No response received."
|
1598
|
+
# end
|
1599
|
+
#
|
1326
1600
|
def delete_certificate_authority request, options = nil
|
1327
1601
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1328
1602
|
|
@@ -1405,6 +1679,29 @@ module Google
|
|
1405
1679
|
# @return [::Gapic::Operation]
|
1406
1680
|
#
|
1407
1681
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1682
|
+
#
|
1683
|
+
# @example Basic example
|
1684
|
+
# require "google/cloud/security/private_ca/v1"
|
1685
|
+
#
|
1686
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1687
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1688
|
+
#
|
1689
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1690
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UpdateCertificateAuthorityRequest.new
|
1691
|
+
#
|
1692
|
+
# # Call the update_certificate_authority method.
|
1693
|
+
# result = client.update_certificate_authority request
|
1694
|
+
#
|
1695
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1696
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1697
|
+
# # Here is how to wait for a response.
|
1698
|
+
# result.wait_until_done! timeout: 60
|
1699
|
+
# if result.response?
|
1700
|
+
# p result.response
|
1701
|
+
# else
|
1702
|
+
# puts "No response received."
|
1703
|
+
# end
|
1704
|
+
#
|
1408
1705
|
def update_certificate_authority request, options = nil
|
1409
1706
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1410
1707
|
|
@@ -1490,6 +1787,29 @@ module Google
|
|
1490
1787
|
# @return [::Gapic::Operation]
|
1491
1788
|
#
|
1492
1789
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1790
|
+
#
|
1791
|
+
# @example Basic example
|
1792
|
+
# require "google/cloud/security/private_ca/v1"
|
1793
|
+
#
|
1794
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1795
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1796
|
+
#
|
1797
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1798
|
+
# request = Google::Cloud::Security::PrivateCA::V1::CreateCaPoolRequest.new
|
1799
|
+
#
|
1800
|
+
# # Call the create_ca_pool method.
|
1801
|
+
# result = client.create_ca_pool request
|
1802
|
+
#
|
1803
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1804
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1805
|
+
# # Here is how to wait for a response.
|
1806
|
+
# result.wait_until_done! timeout: 60
|
1807
|
+
# if result.response?
|
1808
|
+
# p result.response
|
1809
|
+
# else
|
1810
|
+
# puts "No response received."
|
1811
|
+
# end
|
1812
|
+
#
|
1493
1813
|
def create_ca_pool request, options = nil
|
1494
1814
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1495
1815
|
|
@@ -1570,6 +1890,29 @@ module Google
|
|
1570
1890
|
# @return [::Gapic::Operation]
|
1571
1891
|
#
|
1572
1892
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1893
|
+
#
|
1894
|
+
# @example Basic example
|
1895
|
+
# require "google/cloud/security/private_ca/v1"
|
1896
|
+
#
|
1897
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1898
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1899
|
+
#
|
1900
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1901
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UpdateCaPoolRequest.new
|
1902
|
+
#
|
1903
|
+
# # Call the update_ca_pool method.
|
1904
|
+
# result = client.update_ca_pool request
|
1905
|
+
#
|
1906
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1907
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1908
|
+
# # Here is how to wait for a response.
|
1909
|
+
# result.wait_until_done! timeout: 60
|
1910
|
+
# if result.response?
|
1911
|
+
# p result.response
|
1912
|
+
# else
|
1913
|
+
# puts "No response received."
|
1914
|
+
# end
|
1915
|
+
#
|
1573
1916
|
def update_ca_pool request, options = nil
|
1574
1917
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1575
1918
|
|
@@ -1634,6 +1977,22 @@ module Google
|
|
1634
1977
|
# @return [::Google::Cloud::Security::PrivateCA::V1::CaPool]
|
1635
1978
|
#
|
1636
1979
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1980
|
+
#
|
1981
|
+
# @example Basic example
|
1982
|
+
# require "google/cloud/security/private_ca/v1"
|
1983
|
+
#
|
1984
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1985
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
1986
|
+
#
|
1987
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1988
|
+
# request = Google::Cloud::Security::PrivateCA::V1::GetCaPoolRequest.new
|
1989
|
+
#
|
1990
|
+
# # Call the get_ca_pool method.
|
1991
|
+
# result = client.get_ca_pool request
|
1992
|
+
#
|
1993
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::CaPool.
|
1994
|
+
# p result
|
1995
|
+
#
|
1637
1996
|
def get_ca_pool request, options = nil
|
1638
1997
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1639
1998
|
|
@@ -1713,6 +2072,26 @@ module Google
|
|
1713
2072
|
# @return [::Google::Cloud::Security::PrivateCA::V1::ListCaPoolsResponse]
|
1714
2073
|
#
|
1715
2074
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2075
|
+
#
|
2076
|
+
# @example Basic example
|
2077
|
+
# require "google/cloud/security/private_ca/v1"
|
2078
|
+
#
|
2079
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2080
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2081
|
+
#
|
2082
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2083
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ListCaPoolsRequest.new
|
2084
|
+
#
|
2085
|
+
# # Call the list_ca_pools method.
|
2086
|
+
# result = client.list_ca_pools request
|
2087
|
+
#
|
2088
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2089
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2090
|
+
# result.each do |item|
|
2091
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1::CaPool.
|
2092
|
+
# p item
|
2093
|
+
# end
|
2094
|
+
#
|
1716
2095
|
def list_ca_pools request, options = nil
|
1717
2096
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1718
2097
|
|
@@ -1796,6 +2175,29 @@ module Google
|
|
1796
2175
|
# @return [::Gapic::Operation]
|
1797
2176
|
#
|
1798
2177
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2178
|
+
#
|
2179
|
+
# @example Basic example
|
2180
|
+
# require "google/cloud/security/private_ca/v1"
|
2181
|
+
#
|
2182
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2183
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2184
|
+
#
|
2185
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2186
|
+
# request = Google::Cloud::Security::PrivateCA::V1::DeleteCaPoolRequest.new
|
2187
|
+
#
|
2188
|
+
# # Call the delete_ca_pool method.
|
2189
|
+
# result = client.delete_ca_pool request
|
2190
|
+
#
|
2191
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2192
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2193
|
+
# # Here is how to wait for a response.
|
2194
|
+
# result.wait_until_done! timeout: 60
|
2195
|
+
# if result.response?
|
2196
|
+
# p result.response
|
2197
|
+
# else
|
2198
|
+
# puts "No response received."
|
2199
|
+
# end
|
2200
|
+
#
|
1799
2201
|
def delete_ca_pool request, options = nil
|
1800
2202
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1801
2203
|
|
@@ -1879,6 +2281,22 @@ module Google
|
|
1879
2281
|
# @return [::Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse]
|
1880
2282
|
#
|
1881
2283
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2284
|
+
#
|
2285
|
+
# @example Basic example
|
2286
|
+
# require "google/cloud/security/private_ca/v1"
|
2287
|
+
#
|
2288
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2289
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2290
|
+
#
|
2291
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2292
|
+
# request = Google::Cloud::Security::PrivateCA::V1::FetchCaCertsRequest.new
|
2293
|
+
#
|
2294
|
+
# # Call the fetch_ca_certs method.
|
2295
|
+
# result = client.fetch_ca_certs request
|
2296
|
+
#
|
2297
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::FetchCaCertsResponse.
|
2298
|
+
# p result
|
2299
|
+
#
|
1882
2300
|
def fetch_ca_certs request, options = nil
|
1883
2301
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1884
2302
|
|
@@ -1946,6 +2364,22 @@ module Google
|
|
1946
2364
|
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList]
|
1947
2365
|
#
|
1948
2366
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2367
|
+
#
|
2368
|
+
# @example Basic example
|
2369
|
+
# require "google/cloud/security/private_ca/v1"
|
2370
|
+
#
|
2371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2372
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2373
|
+
#
|
2374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2375
|
+
# request = Google::Cloud::Security::PrivateCA::V1::GetCertificateRevocationListRequest.new
|
2376
|
+
#
|
2377
|
+
# # Call the get_certificate_revocation_list method.
|
2378
|
+
# result = client.get_certificate_revocation_list request
|
2379
|
+
#
|
2380
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList.
|
2381
|
+
# p result
|
2382
|
+
#
|
1949
2383
|
def get_certificate_revocation_list request, options = nil
|
1950
2384
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1951
2385
|
|
@@ -2027,6 +2461,26 @@ module Google
|
|
2027
2461
|
# @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsResponse]
|
2028
2462
|
#
|
2029
2463
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2464
|
+
#
|
2465
|
+
# @example Basic example
|
2466
|
+
# require "google/cloud/security/private_ca/v1"
|
2467
|
+
#
|
2468
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2469
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2470
|
+
#
|
2471
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2472
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ListCertificateRevocationListsRequest.new
|
2473
|
+
#
|
2474
|
+
# # Call the list_certificate_revocation_lists method.
|
2475
|
+
# result = client.list_certificate_revocation_lists request
|
2476
|
+
#
|
2477
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2478
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2479
|
+
# result.each do |item|
|
2480
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList.
|
2481
|
+
# p item
|
2482
|
+
# end
|
2483
|
+
#
|
2030
2484
|
def list_certificate_revocation_lists request, options = nil
|
2031
2485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2032
2486
|
|
@@ -2108,6 +2562,29 @@ module Google
|
|
2108
2562
|
# @return [::Gapic::Operation]
|
2109
2563
|
#
|
2110
2564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2565
|
+
#
|
2566
|
+
# @example Basic example
|
2567
|
+
# require "google/cloud/security/private_ca/v1"
|
2568
|
+
#
|
2569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2570
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2571
|
+
#
|
2572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2573
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UpdateCertificateRevocationListRequest.new
|
2574
|
+
#
|
2575
|
+
# # Call the update_certificate_revocation_list method.
|
2576
|
+
# result = client.update_certificate_revocation_list request
|
2577
|
+
#
|
2578
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2579
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2580
|
+
# # Here is how to wait for a response.
|
2581
|
+
# result.wait_until_done! timeout: 60
|
2582
|
+
# if result.response?
|
2583
|
+
# p result.response
|
2584
|
+
# else
|
2585
|
+
# puts "No response received."
|
2586
|
+
# end
|
2587
|
+
#
|
2111
2588
|
def update_certificate_revocation_list request, options = nil
|
2112
2589
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2113
2590
|
|
@@ -2196,6 +2673,29 @@ module Google
|
|
2196
2673
|
# @return [::Gapic::Operation]
|
2197
2674
|
#
|
2198
2675
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2676
|
+
#
|
2677
|
+
# @example Basic example
|
2678
|
+
# require "google/cloud/security/private_ca/v1"
|
2679
|
+
#
|
2680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2681
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2682
|
+
#
|
2683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2684
|
+
# request = Google::Cloud::Security::PrivateCA::V1::CreateCertificateTemplateRequest.new
|
2685
|
+
#
|
2686
|
+
# # Call the create_certificate_template method.
|
2687
|
+
# result = client.create_certificate_template request
|
2688
|
+
#
|
2689
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2690
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2691
|
+
# # Here is how to wait for a response.
|
2692
|
+
# result.wait_until_done! timeout: 60
|
2693
|
+
# if result.response?
|
2694
|
+
# p result.response
|
2695
|
+
# else
|
2696
|
+
# puts "No response received."
|
2697
|
+
# end
|
2698
|
+
#
|
2199
2699
|
def create_certificate_template request, options = nil
|
2200
2700
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2201
2701
|
|
@@ -2276,6 +2776,29 @@ module Google
|
|
2276
2776
|
# @return [::Gapic::Operation]
|
2277
2777
|
#
|
2278
2778
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2779
|
+
#
|
2780
|
+
# @example Basic example
|
2781
|
+
# require "google/cloud/security/private_ca/v1"
|
2782
|
+
#
|
2783
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2784
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2785
|
+
#
|
2786
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2787
|
+
# request = Google::Cloud::Security::PrivateCA::V1::DeleteCertificateTemplateRequest.new
|
2788
|
+
#
|
2789
|
+
# # Call the delete_certificate_template method.
|
2790
|
+
# result = client.delete_certificate_template request
|
2791
|
+
#
|
2792
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2793
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2794
|
+
# # Here is how to wait for a response.
|
2795
|
+
# result.wait_until_done! timeout: 60
|
2796
|
+
# if result.response?
|
2797
|
+
# p result.response
|
2798
|
+
# else
|
2799
|
+
# puts "No response received."
|
2800
|
+
# end
|
2801
|
+
#
|
2279
2802
|
def delete_certificate_template request, options = nil
|
2280
2803
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2281
2804
|
|
@@ -2343,6 +2866,22 @@ module Google
|
|
2343
2866
|
# @return [::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate]
|
2344
2867
|
#
|
2345
2868
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2869
|
+
#
|
2870
|
+
# @example Basic example
|
2871
|
+
# require "google/cloud/security/private_ca/v1"
|
2872
|
+
#
|
2873
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2874
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2875
|
+
#
|
2876
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2877
|
+
# request = Google::Cloud::Security::PrivateCA::V1::GetCertificateTemplateRequest.new
|
2878
|
+
#
|
2879
|
+
# # Call the get_certificate_template method.
|
2880
|
+
# result = client.get_certificate_template request
|
2881
|
+
#
|
2882
|
+
# # The returned object is of type Google::Cloud::Security::PrivateCA::V1::CertificateTemplate.
|
2883
|
+
# p result
|
2884
|
+
#
|
2346
2885
|
def get_certificate_template request, options = nil
|
2347
2886
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2348
2887
|
|
@@ -2424,6 +2963,26 @@ module Google
|
|
2424
2963
|
# @return [::Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesResponse]
|
2425
2964
|
#
|
2426
2965
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2966
|
+
#
|
2967
|
+
# @example Basic example
|
2968
|
+
# require "google/cloud/security/private_ca/v1"
|
2969
|
+
#
|
2970
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2971
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
2972
|
+
#
|
2973
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2974
|
+
# request = Google::Cloud::Security::PrivateCA::V1::ListCertificateTemplatesRequest.new
|
2975
|
+
#
|
2976
|
+
# # Call the list_certificate_templates method.
|
2977
|
+
# result = client.list_certificate_templates request
|
2978
|
+
#
|
2979
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2980
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2981
|
+
# result.each do |item|
|
2982
|
+
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1::CertificateTemplate.
|
2983
|
+
# p item
|
2984
|
+
# end
|
2985
|
+
#
|
2427
2986
|
def list_certificate_templates request, options = nil
|
2428
2987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2429
2988
|
|
@@ -2505,6 +3064,29 @@ module Google
|
|
2505
3064
|
# @return [::Gapic::Operation]
|
2506
3065
|
#
|
2507
3066
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3067
|
+
#
|
3068
|
+
# @example Basic example
|
3069
|
+
# require "google/cloud/security/private_ca/v1"
|
3070
|
+
#
|
3071
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3072
|
+
# client = Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
3073
|
+
#
|
3074
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3075
|
+
# request = Google::Cloud::Security::PrivateCA::V1::UpdateCertificateTemplateRequest.new
|
3076
|
+
#
|
3077
|
+
# # Call the update_certificate_template method.
|
3078
|
+
# result = client.update_certificate_template request
|
3079
|
+
#
|
3080
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3081
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3082
|
+
# # Here is how to wait for a response.
|
3083
|
+
# result.wait_until_done! timeout: 60
|
3084
|
+
# if result.response?
|
3085
|
+
# p result.response
|
3086
|
+
# else
|
3087
|
+
# puts "No response received."
|
3088
|
+
# end
|
3089
|
+
#
|
2508
3090
|
def update_certificate_template request, options = nil
|
2509
3091
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2510
3092
|
|
data/lib/google/cloud/security/private_ca/v1/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-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.4.
|
265
|
+
rubygems_version: 3.4.19
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: The Certificate Authority Service API is a highly-available, scalable service
|