google-cloud-service_management-v1 0.8.0 → 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/service_management/v1/service_manager/client.rb +10 -1
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +10 -1
- data/lib/google/cloud/service_management/v1/service_manager/rest/client.rb +255 -0
- data/lib/google/cloud/service_management/v1/service_manager/rest/operations.rb +75 -0
- data/lib/google/cloud/service_management/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: 61260a352ff840ad027f2b690554703d1e078e5f8ff59f19d6fa9dfcd0914676
|
4
|
+
data.tar.gz: 0bb371b2057faa51bb2705849f64bae817865776dd9fddac86c2bbd3860263cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ddd00adb0032e07a7a5b62e029dbb14caa3fa69516bd71ed285f32398843c5a38e114051a8d43bbcf7aaf0151eb0bf7c2633943ce9c8be50411ee6477f30d6f
|
7
|
+
data.tar.gz: d57dde3940cc90fdb13120b502d1f9f4585d5d497560e3b35147f8e4feeb41444b46b504467811496472a6dc71272967b20b26950a4febbfd1e4a1259b5fecfc
|
@@ -152,7 +152,8 @@ module Google
|
|
152
152
|
credentials: credentials,
|
153
153
|
endpoint: @config.endpoint,
|
154
154
|
channel_args: @config.channel_args,
|
155
|
-
interceptors: @config.interceptors
|
155
|
+
interceptors: @config.interceptors,
|
156
|
+
channel_pool_config: @config.channel_pool
|
156
157
|
)
|
157
158
|
end
|
158
159
|
|
@@ -1588,6 +1589,14 @@ module Google
|
|
1588
1589
|
end
|
1589
1590
|
end
|
1590
1591
|
|
1592
|
+
##
|
1593
|
+
# Configuration for the channel pool
|
1594
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1595
|
+
#
|
1596
|
+
def channel_pool
|
1597
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1598
|
+
end
|
1599
|
+
|
1591
1600
|
##
|
1592
1601
|
# Configuration RPC class for the ServiceManager API.
|
1593
1602
|
#
|
@@ -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
|
@@ -693,6 +694,14 @@ module Google
|
|
693
694
|
end
|
694
695
|
end
|
695
696
|
|
697
|
+
##
|
698
|
+
# Configuration for the channel pool
|
699
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
700
|
+
#
|
701
|
+
def channel_pool
|
702
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
703
|
+
end
|
704
|
+
|
696
705
|
##
|
697
706
|
# Configuration RPC class for the Operations API.
|
698
707
|
#
|
@@ -207,6 +207,26 @@ module Google
|
|
207
207
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::ManagedService>]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/service_management/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServicesRequest.new
|
219
|
+
#
|
220
|
+
# # Call the list_services method.
|
221
|
+
# result = client.list_services request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
224
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
225
|
+
# result.each do |item|
|
226
|
+
# # Each element is of type ::Google::Cloud::ServiceManagement::V1::ManagedService.
|
227
|
+
# p item
|
228
|
+
# end
|
229
|
+
#
|
210
230
|
def list_services request, options = nil
|
211
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
232
|
|
@@ -272,6 +292,22 @@ module Google
|
|
272
292
|
# @return [::Google::Cloud::ServiceManagement::V1::ManagedService]
|
273
293
|
#
|
274
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/service_management/v1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceRequest.new
|
304
|
+
#
|
305
|
+
# # Call the get_service method.
|
306
|
+
# result = client.get_service request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::ManagedService.
|
309
|
+
# p result
|
310
|
+
#
|
275
311
|
def get_service request, options = nil
|
276
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
277
313
|
|
@@ -344,6 +380,29 @@ module Google
|
|
344
380
|
# @return [::Gapic::Operation]
|
345
381
|
#
|
346
382
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
383
|
+
#
|
384
|
+
# @example Basic example
|
385
|
+
# require "google/cloud/service_management/v1"
|
386
|
+
#
|
387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
388
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
389
|
+
#
|
390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
391
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceRequest.new
|
392
|
+
#
|
393
|
+
# # Call the create_service method.
|
394
|
+
# result = client.create_service request
|
395
|
+
#
|
396
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
397
|
+
# # check the status of an operation, cancel it, or wait for results.
|
398
|
+
# # Here is how to wait for a response.
|
399
|
+
# result.wait_until_done! timeout: 60
|
400
|
+
# if result.response?
|
401
|
+
# p result.response
|
402
|
+
# else
|
403
|
+
# puts "No response received."
|
404
|
+
# end
|
405
|
+
#
|
347
406
|
def create_service request, options = nil
|
348
407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
408
|
|
@@ -416,6 +475,29 @@ module Google
|
|
416
475
|
# @return [::Gapic::Operation]
|
417
476
|
#
|
418
477
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
478
|
+
#
|
479
|
+
# @example Basic example
|
480
|
+
# require "google/cloud/service_management/v1"
|
481
|
+
#
|
482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
483
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
484
|
+
#
|
485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
486
|
+
# request = Google::Cloud::ServiceManagement::V1::DeleteServiceRequest.new
|
487
|
+
#
|
488
|
+
# # Call the delete_service method.
|
489
|
+
# result = client.delete_service request
|
490
|
+
#
|
491
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
492
|
+
# # check the status of an operation, cancel it, or wait for results.
|
493
|
+
# # Here is how to wait for a response.
|
494
|
+
# result.wait_until_done! timeout: 60
|
495
|
+
# if result.response?
|
496
|
+
# p result.response
|
497
|
+
# else
|
498
|
+
# puts "No response received."
|
499
|
+
# end
|
500
|
+
#
|
419
501
|
def delete_service request, options = nil
|
420
502
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
421
503
|
|
@@ -486,6 +568,29 @@ module Google
|
|
486
568
|
# @return [::Gapic::Operation]
|
487
569
|
#
|
488
570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
571
|
+
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/service_management/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::ServiceManagement::V1::UndeleteServiceRequest.new
|
580
|
+
#
|
581
|
+
# # Call the undelete_service method.
|
582
|
+
# result = client.undelete_service request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
585
|
+
# # check the status of an operation, cancel it, or wait for results.
|
586
|
+
# # Here is how to wait for a response.
|
587
|
+
# result.wait_until_done! timeout: 60
|
588
|
+
# if result.response?
|
589
|
+
# p result.response
|
590
|
+
# else
|
591
|
+
# puts "No response received."
|
592
|
+
# end
|
593
|
+
#
|
489
594
|
def undelete_service request, options = nil
|
490
595
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
491
596
|
|
@@ -557,6 +662,26 @@ module Google
|
|
557
662
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Api::Service>]
|
558
663
|
#
|
559
664
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
665
|
+
#
|
666
|
+
# @example Basic example
|
667
|
+
# require "google/cloud/service_management/v1"
|
668
|
+
#
|
669
|
+
# # Create a client object. The client can be reused for multiple calls.
|
670
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
671
|
+
#
|
672
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
673
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServiceConfigsRequest.new
|
674
|
+
#
|
675
|
+
# # Call the list_service_configs method.
|
676
|
+
# result = client.list_service_configs request
|
677
|
+
#
|
678
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
679
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
680
|
+
# result.each do |item|
|
681
|
+
# # Each element is of type ::Google::Api::Service.
|
682
|
+
# p item
|
683
|
+
# end
|
684
|
+
#
|
560
685
|
def list_service_configs request, options = nil
|
561
686
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
562
687
|
|
@@ -630,6 +755,22 @@ module Google
|
|
630
755
|
# @return [::Google::Api::Service]
|
631
756
|
#
|
632
757
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
758
|
+
#
|
759
|
+
# @example Basic example
|
760
|
+
# require "google/cloud/service_management/v1"
|
761
|
+
#
|
762
|
+
# # Create a client object. The client can be reused for multiple calls.
|
763
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
764
|
+
#
|
765
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
766
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceConfigRequest.new
|
767
|
+
#
|
768
|
+
# # Call the get_service_config method.
|
769
|
+
# result = client.get_service_config request
|
770
|
+
#
|
771
|
+
# # The returned object is of type Google::Api::Service.
|
772
|
+
# p result
|
773
|
+
#
|
633
774
|
def get_service_config request, options = nil
|
634
775
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
635
776
|
|
@@ -703,6 +844,22 @@ module Google
|
|
703
844
|
# @return [::Google::Api::Service]
|
704
845
|
#
|
705
846
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
847
|
+
#
|
848
|
+
# @example Basic example
|
849
|
+
# require "google/cloud/service_management/v1"
|
850
|
+
#
|
851
|
+
# # Create a client object. The client can be reused for multiple calls.
|
852
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
853
|
+
#
|
854
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
855
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceConfigRequest.new
|
856
|
+
#
|
857
|
+
# # Call the create_service_config method.
|
858
|
+
# result = client.create_service_config request
|
859
|
+
#
|
860
|
+
# # The returned object is of type Google::Api::Service.
|
861
|
+
# p result
|
862
|
+
#
|
706
863
|
def create_service_config request, options = nil
|
707
864
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
708
865
|
|
@@ -786,6 +943,29 @@ module Google
|
|
786
943
|
# @return [::Gapic::Operation]
|
787
944
|
#
|
788
945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
946
|
+
#
|
947
|
+
# @example Basic example
|
948
|
+
# require "google/cloud/service_management/v1"
|
949
|
+
#
|
950
|
+
# # Create a client object. The client can be reused for multiple calls.
|
951
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
952
|
+
#
|
953
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
954
|
+
# request = Google::Cloud::ServiceManagement::V1::SubmitConfigSourceRequest.new
|
955
|
+
#
|
956
|
+
# # Call the submit_config_source method.
|
957
|
+
# result = client.submit_config_source request
|
958
|
+
#
|
959
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
960
|
+
# # check the status of an operation, cancel it, or wait for results.
|
961
|
+
# # Here is how to wait for a response.
|
962
|
+
# result.wait_until_done! timeout: 60
|
963
|
+
# if result.response?
|
964
|
+
# p result.response
|
965
|
+
# else
|
966
|
+
# puts "No response received."
|
967
|
+
# end
|
968
|
+
#
|
789
969
|
def submit_config_source request, options = nil
|
790
970
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
791
971
|
|
@@ -868,6 +1048,26 @@ module Google
|
|
868
1048
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::Rollout>]
|
869
1049
|
#
|
870
1050
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1051
|
+
#
|
1052
|
+
# @example Basic example
|
1053
|
+
# require "google/cloud/service_management/v1"
|
1054
|
+
#
|
1055
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1056
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
1057
|
+
#
|
1058
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1059
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServiceRolloutsRequest.new
|
1060
|
+
#
|
1061
|
+
# # Call the list_service_rollouts method.
|
1062
|
+
# result = client.list_service_rollouts request
|
1063
|
+
#
|
1064
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1065
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1066
|
+
# result.each do |item|
|
1067
|
+
# # Each element is of type ::Google::Cloud::ServiceManagement::V1::Rollout.
|
1068
|
+
# p item
|
1069
|
+
# end
|
1070
|
+
#
|
871
1071
|
def list_service_rollouts request, options = nil
|
872
1072
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
873
1073
|
|
@@ -936,6 +1136,22 @@ module Google
|
|
936
1136
|
# @return [::Google::Cloud::ServiceManagement::V1::Rollout]
|
937
1137
|
#
|
938
1138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1139
|
+
#
|
1140
|
+
# @example Basic example
|
1141
|
+
# require "google/cloud/service_management/v1"
|
1142
|
+
#
|
1143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1144
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
1145
|
+
#
|
1146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1147
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceRolloutRequest.new
|
1148
|
+
#
|
1149
|
+
# # Call the get_service_rollout method.
|
1150
|
+
# result = client.get_service_rollout request
|
1151
|
+
#
|
1152
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::Rollout.
|
1153
|
+
# p result
|
1154
|
+
#
|
939
1155
|
def get_service_rollout request, options = nil
|
940
1156
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
941
1157
|
|
@@ -1015,6 +1231,29 @@ module Google
|
|
1015
1231
|
# @return [::Gapic::Operation]
|
1016
1232
|
#
|
1017
1233
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1234
|
+
#
|
1235
|
+
# @example Basic example
|
1236
|
+
# require "google/cloud/service_management/v1"
|
1237
|
+
#
|
1238
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1239
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
1240
|
+
#
|
1241
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1242
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceRolloutRequest.new
|
1243
|
+
#
|
1244
|
+
# # Call the create_service_rollout method.
|
1245
|
+
# result = client.create_service_rollout request
|
1246
|
+
#
|
1247
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1248
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1249
|
+
# # Here is how to wait for a response.
|
1250
|
+
# result.wait_until_done! timeout: 60
|
1251
|
+
# if result.response?
|
1252
|
+
# p result.response
|
1253
|
+
# else
|
1254
|
+
# puts "No response received."
|
1255
|
+
# end
|
1256
|
+
#
|
1018
1257
|
def create_service_rollout request, options = nil
|
1019
1258
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1020
1259
|
|
@@ -1098,6 +1337,22 @@ module Google
|
|
1098
1337
|
# @return [::Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse]
|
1099
1338
|
#
|
1100
1339
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1340
|
+
#
|
1341
|
+
# @example Basic example
|
1342
|
+
# require "google/cloud/service_management/v1"
|
1343
|
+
#
|
1344
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1345
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
1346
|
+
#
|
1347
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1348
|
+
# request = Google::Cloud::ServiceManagement::V1::GenerateConfigReportRequest.new
|
1349
|
+
#
|
1350
|
+
# # Call the generate_config_report method.
|
1351
|
+
# result = client.generate_config_report request
|
1352
|
+
#
|
1353
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse.
|
1354
|
+
# p result
|
1355
|
+
#
|
1101
1356
|
def generate_config_report request, options = nil
|
1102
1357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1103
1358
|
|
@@ -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
|
|
@@ -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-service_management-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
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.4.
|
268
|
+
rubygems_version: 3.4.19
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Google Service Management allows service producers to publish their services
|