google-cloud-config-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/config/v1/config/client.rb +10 -1
- data/lib/google/cloud/config/v1/config/operations.rb +10 -1
- data/lib/google/cloud/config/v1/config/rest/client.rb +303 -0
- data/lib/google/cloud/config/v1/config/rest/operations.rb +75 -0
- data/lib/google/cloud/config/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbb4293a4e769f5977a5747f0313d2d235d1ebb8850d77c1d2ddfb4a6e56bc58
|
4
|
+
data.tar.gz: 93300c30087ff9e4489a75c85d39dc44a58605465bbe982677788431b07a2a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bf81a1edc98af62cacb7549206ac4f6c8ab69f5cd97d217882b105bf8405c5b2d74734fe2c7aa48e2bbe5e7f7c3618645a6f7a1a2cf3251026cb36d07aad7c1
|
7
|
+
data.tar.gz: 5b0038b2da297db155c8e2eaba6dee5933420390e0c8c83dc96dfd4124f6b433b8fe04f519db1be580b67d4ccede981f67dae6525b2490d3511951dc85fca133
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
credentials: credentials,
|
160
160
|
endpoint: @config.endpoint,
|
161
161
|
channel_args: @config.channel_args,
|
162
|
-
interceptors: @config.interceptors
|
162
|
+
interceptors: @config.interceptors,
|
163
|
+
channel_pool_config: @config.channel_pool
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|
@@ -1909,6 +1910,14 @@ module Google
|
|
1909
1910
|
end
|
1910
1911
|
end
|
1911
1912
|
|
1913
|
+
##
|
1914
|
+
# Configuration for the channel pool
|
1915
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1916
|
+
#
|
1917
|
+
def channel_pool
|
1918
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1919
|
+
end
|
1920
|
+
|
1912
1921
|
##
|
1913
1922
|
# Configuration RPC class for the Config API.
|
1914
1923
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -240,6 +240,26 @@ module Google
|
|
240
240
|
# @return [::Google::Cloud::Config::V1::ListDeploymentsResponse]
|
241
241
|
#
|
242
242
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
243
|
+
#
|
244
|
+
# @example Basic example
|
245
|
+
# require "google/cloud/config/v1"
|
246
|
+
#
|
247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
248
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
249
|
+
#
|
250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
251
|
+
# request = Google::Cloud::Config::V1::ListDeploymentsRequest.new
|
252
|
+
#
|
253
|
+
# # Call the list_deployments method.
|
254
|
+
# result = client.list_deployments request
|
255
|
+
#
|
256
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
257
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
258
|
+
# result.each do |item|
|
259
|
+
# # Each element is of type ::Google::Cloud::Config::V1::Deployment.
|
260
|
+
# p item
|
261
|
+
# end
|
262
|
+
#
|
243
263
|
def list_deployments request, options = nil
|
244
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
245
265
|
|
@@ -303,6 +323,22 @@ module Google
|
|
303
323
|
# @return [::Google::Cloud::Config::V1::Deployment]
|
304
324
|
#
|
305
325
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
326
|
+
#
|
327
|
+
# @example Basic example
|
328
|
+
# require "google/cloud/config/v1"
|
329
|
+
#
|
330
|
+
# # Create a client object. The client can be reused for multiple calls.
|
331
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
332
|
+
#
|
333
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
334
|
+
# request = Google::Cloud::Config::V1::GetDeploymentRequest.new
|
335
|
+
#
|
336
|
+
# # Call the get_deployment method.
|
337
|
+
# result = client.get_deployment request
|
338
|
+
#
|
339
|
+
# # The returned object is of type Google::Cloud::Config::V1::Deployment.
|
340
|
+
# p result
|
341
|
+
#
|
306
342
|
def get_deployment request, options = nil
|
307
343
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
308
344
|
|
@@ -385,6 +421,29 @@ module Google
|
|
385
421
|
# @return [::Gapic::Operation]
|
386
422
|
#
|
387
423
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
424
|
+
#
|
425
|
+
# @example Basic example
|
426
|
+
# require "google/cloud/config/v1"
|
427
|
+
#
|
428
|
+
# # Create a client object. The client can be reused for multiple calls.
|
429
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
430
|
+
#
|
431
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
432
|
+
# request = Google::Cloud::Config::V1::CreateDeploymentRequest.new
|
433
|
+
#
|
434
|
+
# # Call the create_deployment method.
|
435
|
+
# result = client.create_deployment request
|
436
|
+
#
|
437
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
438
|
+
# # check the status of an operation, cancel it, or wait for results.
|
439
|
+
# # Here is how to wait for a response.
|
440
|
+
# result.wait_until_done! timeout: 60
|
441
|
+
# if result.response?
|
442
|
+
# p result.response
|
443
|
+
# else
|
444
|
+
# puts "No response received."
|
445
|
+
# end
|
446
|
+
#
|
388
447
|
def create_deployment request, options = nil
|
389
448
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
449
|
|
@@ -473,6 +532,29 @@ module Google
|
|
473
532
|
# @return [::Gapic::Operation]
|
474
533
|
#
|
475
534
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
|
+
#
|
536
|
+
# @example Basic example
|
537
|
+
# require "google/cloud/config/v1"
|
538
|
+
#
|
539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
540
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
541
|
+
#
|
542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
543
|
+
# request = Google::Cloud::Config::V1::UpdateDeploymentRequest.new
|
544
|
+
#
|
545
|
+
# # Call the update_deployment method.
|
546
|
+
# result = client.update_deployment request
|
547
|
+
#
|
548
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
549
|
+
# # check the status of an operation, cancel it, or wait for results.
|
550
|
+
# # Here is how to wait for a response.
|
551
|
+
# result.wait_until_done! timeout: 60
|
552
|
+
# if result.response?
|
553
|
+
# p result.response
|
554
|
+
# else
|
555
|
+
# puts "No response received."
|
556
|
+
# end
|
557
|
+
#
|
476
558
|
def update_deployment request, options = nil
|
477
559
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
478
560
|
|
@@ -559,6 +641,29 @@ module Google
|
|
559
641
|
# @return [::Gapic::Operation]
|
560
642
|
#
|
561
643
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
644
|
+
#
|
645
|
+
# @example Basic example
|
646
|
+
# require "google/cloud/config/v1"
|
647
|
+
#
|
648
|
+
# # Create a client object. The client can be reused for multiple calls.
|
649
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
650
|
+
#
|
651
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
652
|
+
# request = Google::Cloud::Config::V1::DeleteDeploymentRequest.new
|
653
|
+
#
|
654
|
+
# # Call the delete_deployment method.
|
655
|
+
# result = client.delete_deployment request
|
656
|
+
#
|
657
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
658
|
+
# # check the status of an operation, cancel it, or wait for results.
|
659
|
+
# # Here is how to wait for a response.
|
660
|
+
# result.wait_until_done! timeout: 60
|
661
|
+
# if result.response?
|
662
|
+
# p result.response
|
663
|
+
# else
|
664
|
+
# puts "No response received."
|
665
|
+
# end
|
666
|
+
#
|
562
667
|
def delete_deployment request, options = nil
|
563
668
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
564
669
|
|
@@ -655,6 +760,26 @@ module Google
|
|
655
760
|
# @return [::Google::Cloud::Config::V1::ListRevisionsResponse]
|
656
761
|
#
|
657
762
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
763
|
+
#
|
764
|
+
# @example Basic example
|
765
|
+
# require "google/cloud/config/v1"
|
766
|
+
#
|
767
|
+
# # Create a client object. The client can be reused for multiple calls.
|
768
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
769
|
+
#
|
770
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
771
|
+
# request = Google::Cloud::Config::V1::ListRevisionsRequest.new
|
772
|
+
#
|
773
|
+
# # Call the list_revisions method.
|
774
|
+
# result = client.list_revisions request
|
775
|
+
#
|
776
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
777
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
778
|
+
# result.each do |item|
|
779
|
+
# # Each element is of type ::Google::Cloud::Config::V1::Revision.
|
780
|
+
# p item
|
781
|
+
# end
|
782
|
+
#
|
658
783
|
def list_revisions request, options = nil
|
659
784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
660
785
|
|
@@ -718,6 +843,22 @@ module Google
|
|
718
843
|
# @return [::Google::Cloud::Config::V1::Revision]
|
719
844
|
#
|
720
845
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
846
|
+
#
|
847
|
+
# @example Basic example
|
848
|
+
# require "google/cloud/config/v1"
|
849
|
+
#
|
850
|
+
# # Create a client object. The client can be reused for multiple calls.
|
851
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
852
|
+
#
|
853
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
854
|
+
# request = Google::Cloud::Config::V1::GetRevisionRequest.new
|
855
|
+
#
|
856
|
+
# # Call the get_revision method.
|
857
|
+
# result = client.get_revision request
|
858
|
+
#
|
859
|
+
# # The returned object is of type Google::Cloud::Config::V1::Revision.
|
860
|
+
# p result
|
861
|
+
#
|
721
862
|
def get_revision request, options = nil
|
722
863
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
723
864
|
|
@@ -782,6 +923,22 @@ module Google
|
|
782
923
|
# @return [::Google::Cloud::Config::V1::Resource]
|
783
924
|
#
|
784
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
926
|
+
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/config/v1"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::Config::V1::GetResourceRequest.new
|
935
|
+
#
|
936
|
+
# # Call the get_resource method.
|
937
|
+
# result = client.get_resource request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Google::Cloud::Config::V1::Resource.
|
940
|
+
# p result
|
941
|
+
#
|
785
942
|
def get_resource request, options = nil
|
786
943
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
787
944
|
|
@@ -869,6 +1026,26 @@ module Google
|
|
869
1026
|
# @return [::Google::Cloud::Config::V1::ListResourcesResponse]
|
870
1027
|
#
|
871
1028
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1029
|
+
#
|
1030
|
+
# @example Basic example
|
1031
|
+
# require "google/cloud/config/v1"
|
1032
|
+
#
|
1033
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1034
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1035
|
+
#
|
1036
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1037
|
+
# request = Google::Cloud::Config::V1::ListResourcesRequest.new
|
1038
|
+
#
|
1039
|
+
# # Call the list_resources method.
|
1040
|
+
# result = client.list_resources request
|
1041
|
+
#
|
1042
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1043
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1044
|
+
# result.each do |item|
|
1045
|
+
# # Each element is of type ::Google::Cloud::Config::V1::Resource.
|
1046
|
+
# p item
|
1047
|
+
# end
|
1048
|
+
#
|
872
1049
|
def list_resources request, options = nil
|
873
1050
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
874
1051
|
|
@@ -937,6 +1114,22 @@ module Google
|
|
937
1114
|
# @return [::Google::Cloud::Config::V1::Statefile]
|
938
1115
|
#
|
939
1116
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1117
|
+
#
|
1118
|
+
# @example Basic example
|
1119
|
+
# require "google/cloud/config/v1"
|
1120
|
+
#
|
1121
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1122
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1123
|
+
#
|
1124
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1125
|
+
# request = Google::Cloud::Config::V1::ExportDeploymentStatefileRequest.new
|
1126
|
+
#
|
1127
|
+
# # Call the export_deployment_statefile method.
|
1128
|
+
# result = client.export_deployment_statefile request
|
1129
|
+
#
|
1130
|
+
# # The returned object is of type Google::Cloud::Config::V1::Statefile.
|
1131
|
+
# p result
|
1132
|
+
#
|
940
1133
|
def export_deployment_statefile request, options = nil
|
941
1134
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
942
1135
|
|
@@ -1001,6 +1194,22 @@ module Google
|
|
1001
1194
|
# @return [::Google::Cloud::Config::V1::Statefile]
|
1002
1195
|
#
|
1003
1196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1197
|
+
#
|
1198
|
+
# @example Basic example
|
1199
|
+
# require "google/cloud/config/v1"
|
1200
|
+
#
|
1201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1202
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1203
|
+
#
|
1204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1205
|
+
# request = Google::Cloud::Config::V1::ExportRevisionStatefileRequest.new
|
1206
|
+
#
|
1207
|
+
# # Call the export_revision_statefile method.
|
1208
|
+
# result = client.export_revision_statefile request
|
1209
|
+
#
|
1210
|
+
# # The returned object is of type Google::Cloud::Config::V1::Statefile.
|
1211
|
+
# p result
|
1212
|
+
#
|
1004
1213
|
def export_revision_statefile request, options = nil
|
1005
1214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1006
1215
|
|
@@ -1071,6 +1280,22 @@ module Google
|
|
1071
1280
|
# @return [::Google::Cloud::Config::V1::Statefile]
|
1072
1281
|
#
|
1073
1282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1283
|
+
#
|
1284
|
+
# @example Basic example
|
1285
|
+
# require "google/cloud/config/v1"
|
1286
|
+
#
|
1287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1288
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1289
|
+
#
|
1290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1291
|
+
# request = Google::Cloud::Config::V1::ImportStatefileRequest.new
|
1292
|
+
#
|
1293
|
+
# # Call the import_statefile method.
|
1294
|
+
# result = client.import_statefile request
|
1295
|
+
#
|
1296
|
+
# # The returned object is of type Google::Cloud::Config::V1::Statefile.
|
1297
|
+
# p result
|
1298
|
+
#
|
1074
1299
|
def import_statefile request, options = nil
|
1075
1300
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1076
1301
|
|
@@ -1137,6 +1362,22 @@ module Google
|
|
1137
1362
|
# @return [::Google::Protobuf::Empty]
|
1138
1363
|
#
|
1139
1364
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1365
|
+
#
|
1366
|
+
# @example Basic example
|
1367
|
+
# require "google/cloud/config/v1"
|
1368
|
+
#
|
1369
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1370
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1371
|
+
#
|
1372
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1373
|
+
# request = Google::Cloud::Config::V1::DeleteStatefileRequest.new
|
1374
|
+
#
|
1375
|
+
# # Call the delete_statefile method.
|
1376
|
+
# result = client.delete_statefile request
|
1377
|
+
#
|
1378
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1379
|
+
# p result
|
1380
|
+
#
|
1140
1381
|
def delete_statefile request, options = nil
|
1141
1382
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1142
1383
|
|
@@ -1200,6 +1441,29 @@ module Google
|
|
1200
1441
|
# @return [::Gapic::Operation]
|
1201
1442
|
#
|
1202
1443
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1444
|
+
#
|
1445
|
+
# @example Basic example
|
1446
|
+
# require "google/cloud/config/v1"
|
1447
|
+
#
|
1448
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1449
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1450
|
+
#
|
1451
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1452
|
+
# request = Google::Cloud::Config::V1::LockDeploymentRequest.new
|
1453
|
+
#
|
1454
|
+
# # Call the lock_deployment method.
|
1455
|
+
# result = client.lock_deployment request
|
1456
|
+
#
|
1457
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1458
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1459
|
+
# # Here is how to wait for a response.
|
1460
|
+
# result.wait_until_done! timeout: 60
|
1461
|
+
# if result.response?
|
1462
|
+
# p result.response
|
1463
|
+
# else
|
1464
|
+
# puts "No response received."
|
1465
|
+
# end
|
1466
|
+
#
|
1203
1467
|
def lock_deployment request, options = nil
|
1204
1468
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1205
1469
|
|
@@ -1266,6 +1530,29 @@ module Google
|
|
1266
1530
|
# @return [::Gapic::Operation]
|
1267
1531
|
#
|
1268
1532
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1533
|
+
#
|
1534
|
+
# @example Basic example
|
1535
|
+
# require "google/cloud/config/v1"
|
1536
|
+
#
|
1537
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1538
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1539
|
+
#
|
1540
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1541
|
+
# request = Google::Cloud::Config::V1::UnlockDeploymentRequest.new
|
1542
|
+
#
|
1543
|
+
# # Call the unlock_deployment method.
|
1544
|
+
# result = client.unlock_deployment request
|
1545
|
+
#
|
1546
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1547
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1548
|
+
# # Here is how to wait for a response.
|
1549
|
+
# result.wait_until_done! timeout: 60
|
1550
|
+
# if result.response?
|
1551
|
+
# p result.response
|
1552
|
+
# else
|
1553
|
+
# puts "No response received."
|
1554
|
+
# end
|
1555
|
+
#
|
1269
1556
|
def unlock_deployment request, options = nil
|
1270
1557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1271
1558
|
|
@@ -1330,6 +1617,22 @@ module Google
|
|
1330
1617
|
# @return [::Google::Cloud::Config::V1::LockInfo]
|
1331
1618
|
#
|
1332
1619
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1620
|
+
#
|
1621
|
+
# @example Basic example
|
1622
|
+
# require "google/cloud/config/v1"
|
1623
|
+
#
|
1624
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1625
|
+
# client = Google::Cloud::Config::V1::Config::Rest::Client.new
|
1626
|
+
#
|
1627
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1628
|
+
# request = Google::Cloud::Config::V1::ExportLockInfoRequest.new
|
1629
|
+
#
|
1630
|
+
# # Call the export_lock_info method.
|
1631
|
+
# result = client.export_lock_info request
|
1632
|
+
#
|
1633
|
+
# # The returned object is of type Google::Cloud::Config::V1::LockInfo.
|
1634
|
+
# p result
|
1635
|
+
#
|
1333
1636
|
def export_lock_info request, options = nil
|
1334
1637
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1335
1638
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-config-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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
|