google-cloud-service_management-v1 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/api/servicemanagement/v1/resources_pb.rb +2 -2
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +2 -2
- data/lib/google/api/servicemanagement/v1/servicemanager_services_pb.rb +1 -1
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +358 -38
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +115 -12
- data/lib/google/cloud/service_management/v1/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f16cdcf7faf60d2602ed704a6d888db5820ba247216f68fe0176d391ffc593a8
|
4
|
+
data.tar.gz: 2ea284cc6d9204e65e218b54feb536a5451d60b495cdaa1eeb989b20e3f00b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14bb257cca8a5908b58042e7cc4ca38d517b6a054dad2bd277dd0a46d58fa0c2f7ba052a25a7bf2b068a1d38c7fff1c94b972020a573707f456db4b8869d5525
|
7
|
+
data.tar.gz: 74c90ac4150d30a2713fc773b27f951bf06131c1a118e064f6ef3881c9006b2f88b345f0feba24cbbd0a5225c974062258ce72c24cab949a1115e64ed011d0ad
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicemanagement/v1/resources.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/config_change_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -14,6 +12,8 @@ require 'google/protobuf/any_pb'
|
|
14
12
|
require 'google/protobuf/field_mask_pb'
|
15
13
|
require 'google/protobuf/timestamp_pb'
|
16
14
|
require 'google/rpc/status_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/api/servicemanagement/v1/resources.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.api.servicemanagement.v1.ManagedService" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/api/servicemanagement/v1/servicemanager.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/longrunning/operations_pb'
|
|
12
10
|
require 'google/protobuf/any_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/rpc/status_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/api/servicemanagement/v1/servicemanager.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.api.servicemanagement.v1.ListServicesRequest" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# [Google Service Management API](https://cloud.google.com/service-management/overview)
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -203,6 +203,27 @@ module Google
|
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
205
205
|
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/service_management/v1"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServicesRequest.new
|
214
|
+
#
|
215
|
+
# # Call the list_services method.
|
216
|
+
# result = client.list_services request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
219
|
+
# # iterate over all elements by calling #each, and the enumerable
|
220
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
221
|
+
# # methods are also available for managing paging directly.
|
222
|
+
# result.each do |response|
|
223
|
+
# # Each element is of type ::Google::Cloud::ServiceManagement::V1::ManagedService.
|
224
|
+
# p response
|
225
|
+
# end
|
226
|
+
#
|
206
227
|
def list_services request, options = nil
|
207
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
208
229
|
|
@@ -268,6 +289,21 @@ module Google
|
|
268
289
|
#
|
269
290
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
291
|
#
|
292
|
+
# @example Basic example
|
293
|
+
# require "google/cloud/service_management/v1"
|
294
|
+
#
|
295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
296
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
297
|
+
#
|
298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
299
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceRequest.new
|
300
|
+
#
|
301
|
+
# # Call the get_service method.
|
302
|
+
# result = client.get_service request
|
303
|
+
#
|
304
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::ManagedService.
|
305
|
+
# p result
|
306
|
+
#
|
271
307
|
def get_service request, options = nil
|
272
308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
309
|
|
@@ -285,9 +321,11 @@ module Google
|
|
285
321
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
286
322
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
323
|
|
288
|
-
header_params = {
|
289
|
-
|
290
|
-
|
324
|
+
header_params = {}
|
325
|
+
if request.service_name
|
326
|
+
header_params["service_name"] = request.service_name
|
327
|
+
end
|
328
|
+
|
291
329
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
292
330
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
293
331
|
|
@@ -339,6 +377,28 @@ module Google
|
|
339
377
|
#
|
340
378
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
341
379
|
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/service_management/v1"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceRequest.new
|
388
|
+
#
|
389
|
+
# # Call the create_service method.
|
390
|
+
# result = client.create_service request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
393
|
+
# # object to check the status of an operation, cancel it, or wait
|
394
|
+
# # for results. Here is how to block until completion:
|
395
|
+
# result.wait_until_done! timeout: 60
|
396
|
+
# if result.response?
|
397
|
+
# p result.response
|
398
|
+
# else
|
399
|
+
# puts "Error!"
|
400
|
+
# end
|
401
|
+
#
|
342
402
|
def create_service request, options = nil
|
343
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
404
|
|
@@ -408,6 +468,28 @@ module Google
|
|
408
468
|
#
|
409
469
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
410
470
|
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/service_management/v1"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::ServiceManagement::V1::DeleteServiceRequest.new
|
479
|
+
#
|
480
|
+
# # Call the delete_service method.
|
481
|
+
# result = client.delete_service request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
484
|
+
# # object to check the status of an operation, cancel it, or wait
|
485
|
+
# # for results. Here is how to block until completion:
|
486
|
+
# result.wait_until_done! timeout: 60
|
487
|
+
# if result.response?
|
488
|
+
# p result.response
|
489
|
+
# else
|
490
|
+
# puts "Error!"
|
491
|
+
# end
|
492
|
+
#
|
411
493
|
def delete_service request, options = nil
|
412
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
413
495
|
|
@@ -425,9 +507,11 @@ module Google
|
|
425
507
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
426
508
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
427
509
|
|
428
|
-
header_params = {
|
429
|
-
|
430
|
-
|
510
|
+
header_params = {}
|
511
|
+
if request.service_name
|
512
|
+
header_params["service_name"] = request.service_name
|
513
|
+
end
|
514
|
+
|
431
515
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
432
516
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
433
517
|
|
@@ -483,6 +567,28 @@ module Google
|
|
483
567
|
#
|
484
568
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
485
569
|
#
|
570
|
+
# @example Basic example
|
571
|
+
# require "google/cloud/service_management/v1"
|
572
|
+
#
|
573
|
+
# # Create a client object. The client can be reused for multiple calls.
|
574
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
575
|
+
#
|
576
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
577
|
+
# request = Google::Cloud::ServiceManagement::V1::UndeleteServiceRequest.new
|
578
|
+
#
|
579
|
+
# # Call the undelete_service method.
|
580
|
+
# result = client.undelete_service request
|
581
|
+
#
|
582
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
583
|
+
# # object to check the status of an operation, cancel it, or wait
|
584
|
+
# # for results. Here is how to block until completion:
|
585
|
+
# result.wait_until_done! timeout: 60
|
586
|
+
# if result.response?
|
587
|
+
# p result.response
|
588
|
+
# else
|
589
|
+
# puts "Error!"
|
590
|
+
# end
|
591
|
+
#
|
486
592
|
def undelete_service request, options = nil
|
487
593
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
594
|
|
@@ -500,9 +606,11 @@ module Google
|
|
500
606
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
501
607
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
502
608
|
|
503
|
-
header_params = {
|
504
|
-
|
505
|
-
|
609
|
+
header_params = {}
|
610
|
+
if request.service_name
|
611
|
+
header_params["service_name"] = request.service_name
|
612
|
+
end
|
613
|
+
|
506
614
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
507
615
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
508
616
|
|
@@ -559,6 +667,27 @@ module Google
|
|
559
667
|
#
|
560
668
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
561
669
|
#
|
670
|
+
# @example Basic example
|
671
|
+
# require "google/cloud/service_management/v1"
|
672
|
+
#
|
673
|
+
# # Create a client object. The client can be reused for multiple calls.
|
674
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
675
|
+
#
|
676
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
677
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServiceConfigsRequest.new
|
678
|
+
#
|
679
|
+
# # Call the list_service_configs method.
|
680
|
+
# result = client.list_service_configs request
|
681
|
+
#
|
682
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
683
|
+
# # iterate over all elements by calling #each, and the enumerable
|
684
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
685
|
+
# # methods are also available for managing paging directly.
|
686
|
+
# result.each do |response|
|
687
|
+
# # Each element is of type ::Google::Api::Service.
|
688
|
+
# p response
|
689
|
+
# end
|
690
|
+
#
|
562
691
|
def list_service_configs request, options = nil
|
563
692
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
564
693
|
|
@@ -576,9 +705,11 @@ module Google
|
|
576
705
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
577
706
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
578
707
|
|
579
|
-
header_params = {
|
580
|
-
|
581
|
-
|
708
|
+
header_params = {}
|
709
|
+
if request.service_name
|
710
|
+
header_params["service_name"] = request.service_name
|
711
|
+
end
|
712
|
+
|
582
713
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
583
714
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
584
715
|
|
@@ -637,6 +768,21 @@ module Google
|
|
637
768
|
#
|
638
769
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
639
770
|
#
|
771
|
+
# @example Basic example
|
772
|
+
# require "google/cloud/service_management/v1"
|
773
|
+
#
|
774
|
+
# # Create a client object. The client can be reused for multiple calls.
|
775
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
776
|
+
#
|
777
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
778
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceConfigRequest.new
|
779
|
+
#
|
780
|
+
# # Call the get_service_config method.
|
781
|
+
# result = client.get_service_config request
|
782
|
+
#
|
783
|
+
# # The returned object is of type Google::Api::Service.
|
784
|
+
# p result
|
785
|
+
#
|
640
786
|
def get_service_config request, options = nil
|
641
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
642
788
|
|
@@ -654,10 +800,14 @@ module Google
|
|
654
800
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
655
801
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
656
802
|
|
657
|
-
header_params = {
|
658
|
-
|
659
|
-
"
|
660
|
-
|
803
|
+
header_params = {}
|
804
|
+
if request.service_name
|
805
|
+
header_params["service_name"] = request.service_name
|
806
|
+
end
|
807
|
+
if request.config_id
|
808
|
+
header_params["config_id"] = request.config_id
|
809
|
+
end
|
810
|
+
|
661
811
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
662
812
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
663
813
|
|
@@ -716,6 +866,21 @@ module Google
|
|
716
866
|
#
|
717
867
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
718
868
|
#
|
869
|
+
# @example Basic example
|
870
|
+
# require "google/cloud/service_management/v1"
|
871
|
+
#
|
872
|
+
# # Create a client object. The client can be reused for multiple calls.
|
873
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
874
|
+
#
|
875
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
876
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceConfigRequest.new
|
877
|
+
#
|
878
|
+
# # Call the create_service_config method.
|
879
|
+
# result = client.create_service_config request
|
880
|
+
#
|
881
|
+
# # The returned object is of type Google::Api::Service.
|
882
|
+
# p result
|
883
|
+
#
|
719
884
|
def create_service_config request, options = nil
|
720
885
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
721
886
|
|
@@ -733,9 +898,11 @@ module Google
|
|
733
898
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
734
899
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
735
900
|
|
736
|
-
header_params = {
|
737
|
-
|
738
|
-
|
901
|
+
header_params = {}
|
902
|
+
if request.service_name
|
903
|
+
header_params["service_name"] = request.service_name
|
904
|
+
end
|
905
|
+
|
739
906
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
740
907
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
741
908
|
|
@@ -803,6 +970,28 @@ module Google
|
|
803
970
|
#
|
804
971
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
805
972
|
#
|
973
|
+
# @example Basic example
|
974
|
+
# require "google/cloud/service_management/v1"
|
975
|
+
#
|
976
|
+
# # Create a client object. The client can be reused for multiple calls.
|
977
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
978
|
+
#
|
979
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
980
|
+
# request = Google::Cloud::ServiceManagement::V1::SubmitConfigSourceRequest.new
|
981
|
+
#
|
982
|
+
# # Call the submit_config_source method.
|
983
|
+
# result = client.submit_config_source request
|
984
|
+
#
|
985
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
986
|
+
# # object to check the status of an operation, cancel it, or wait
|
987
|
+
# # for results. Here is how to block until completion:
|
988
|
+
# result.wait_until_done! timeout: 60
|
989
|
+
# if result.response?
|
990
|
+
# p result.response
|
991
|
+
# else
|
992
|
+
# puts "Error!"
|
993
|
+
# end
|
994
|
+
#
|
806
995
|
def submit_config_source request, options = nil
|
807
996
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
808
997
|
|
@@ -820,9 +1009,11 @@ module Google
|
|
820
1009
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
821
1010
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
822
1011
|
|
823
|
-
header_params = {
|
824
|
-
|
825
|
-
|
1012
|
+
header_params = {}
|
1013
|
+
if request.service_name
|
1014
|
+
header_params["service_name"] = request.service_name
|
1015
|
+
end
|
1016
|
+
|
826
1017
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
827
1018
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
828
1019
|
|
@@ -888,6 +1079,27 @@ module Google
|
|
888
1079
|
#
|
889
1080
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
890
1081
|
#
|
1082
|
+
# @example Basic example
|
1083
|
+
# require "google/cloud/service_management/v1"
|
1084
|
+
#
|
1085
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1086
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1087
|
+
#
|
1088
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1089
|
+
# request = Google::Cloud::ServiceManagement::V1::ListServiceRolloutsRequest.new
|
1090
|
+
#
|
1091
|
+
# # Call the list_service_rollouts method.
|
1092
|
+
# result = client.list_service_rollouts request
|
1093
|
+
#
|
1094
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1095
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1096
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1097
|
+
# # methods are also available for managing paging directly.
|
1098
|
+
# result.each do |response|
|
1099
|
+
# # Each element is of type ::Google::Cloud::ServiceManagement::V1::Rollout.
|
1100
|
+
# p response
|
1101
|
+
# end
|
1102
|
+
#
|
891
1103
|
def list_service_rollouts request, options = nil
|
892
1104
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
893
1105
|
|
@@ -905,9 +1117,11 @@ module Google
|
|
905
1117
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
906
1118
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
907
1119
|
|
908
|
-
header_params = {
|
909
|
-
|
910
|
-
|
1120
|
+
header_params = {}
|
1121
|
+
if request.service_name
|
1122
|
+
header_params["service_name"] = request.service_name
|
1123
|
+
end
|
1124
|
+
|
911
1125
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
912
1126
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
913
1127
|
|
@@ -960,6 +1174,21 @@ module Google
|
|
960
1174
|
#
|
961
1175
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
962
1176
|
#
|
1177
|
+
# @example Basic example
|
1178
|
+
# require "google/cloud/service_management/v1"
|
1179
|
+
#
|
1180
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1181
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1182
|
+
#
|
1183
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1184
|
+
# request = Google::Cloud::ServiceManagement::V1::GetServiceRolloutRequest.new
|
1185
|
+
#
|
1186
|
+
# # Call the get_service_rollout method.
|
1187
|
+
# result = client.get_service_rollout request
|
1188
|
+
#
|
1189
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::Rollout.
|
1190
|
+
# p result
|
1191
|
+
#
|
963
1192
|
def get_service_rollout request, options = nil
|
964
1193
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
965
1194
|
|
@@ -977,10 +1206,14 @@ module Google
|
|
977
1206
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
978
1207
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
979
1208
|
|
980
|
-
header_params = {
|
981
|
-
|
982
|
-
"
|
983
|
-
|
1209
|
+
header_params = {}
|
1210
|
+
if request.service_name
|
1211
|
+
header_params["service_name"] = request.service_name
|
1212
|
+
end
|
1213
|
+
if request.rollout_id
|
1214
|
+
header_params["rollout_id"] = request.rollout_id
|
1215
|
+
end
|
1216
|
+
|
984
1217
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
985
1218
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
986
1219
|
|
@@ -1045,6 +1278,28 @@ module Google
|
|
1045
1278
|
#
|
1046
1279
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1047
1280
|
#
|
1281
|
+
# @example Basic example
|
1282
|
+
# require "google/cloud/service_management/v1"
|
1283
|
+
#
|
1284
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1285
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1286
|
+
#
|
1287
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1288
|
+
# request = Google::Cloud::ServiceManagement::V1::CreateServiceRolloutRequest.new
|
1289
|
+
#
|
1290
|
+
# # Call the create_service_rollout method.
|
1291
|
+
# result = client.create_service_rollout request
|
1292
|
+
#
|
1293
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1294
|
+
# # object to check the status of an operation, cancel it, or wait
|
1295
|
+
# # for results. Here is how to block until completion:
|
1296
|
+
# result.wait_until_done! timeout: 60
|
1297
|
+
# if result.response?
|
1298
|
+
# p result.response
|
1299
|
+
# else
|
1300
|
+
# puts "Error!"
|
1301
|
+
# end
|
1302
|
+
#
|
1048
1303
|
def create_service_rollout request, options = nil
|
1049
1304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1050
1305
|
|
@@ -1062,9 +1317,11 @@ module Google
|
|
1062
1317
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
1063
1318
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1064
1319
|
|
1065
|
-
header_params = {
|
1066
|
-
|
1067
|
-
|
1320
|
+
header_params = {}
|
1321
|
+
if request.service_name
|
1322
|
+
header_params["service_name"] = request.service_name
|
1323
|
+
end
|
1324
|
+
|
1068
1325
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1069
1326
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1070
1327
|
|
@@ -1134,6 +1391,21 @@ module Google
|
|
1134
1391
|
#
|
1135
1392
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1136
1393
|
#
|
1394
|
+
# @example Basic example
|
1395
|
+
# require "google/cloud/service_management/v1"
|
1396
|
+
#
|
1397
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1398
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1399
|
+
#
|
1400
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1401
|
+
# request = Google::Cloud::ServiceManagement::V1::GenerateConfigReportRequest.new
|
1402
|
+
#
|
1403
|
+
# # Call the generate_config_report method.
|
1404
|
+
# result = client.generate_config_report request
|
1405
|
+
#
|
1406
|
+
# # The returned object is of type Google::Cloud::ServiceManagement::V1::GenerateConfigReportResponse.
|
1407
|
+
# p result
|
1408
|
+
#
|
1137
1409
|
def generate_config_report request, options = nil
|
1138
1410
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1139
1411
|
|
@@ -1214,6 +1486,28 @@ module Google
|
|
1214
1486
|
#
|
1215
1487
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1216
1488
|
#
|
1489
|
+
# @example Basic example
|
1490
|
+
# require "google/cloud/service_management/v1"
|
1491
|
+
#
|
1492
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1493
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1494
|
+
#
|
1495
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1496
|
+
# request = Google::Cloud::ServiceManagement::V1::EnableServiceRequest.new
|
1497
|
+
#
|
1498
|
+
# # Call the enable_service method.
|
1499
|
+
# result = client.enable_service request
|
1500
|
+
#
|
1501
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1502
|
+
# # object to check the status of an operation, cancel it, or wait
|
1503
|
+
# # for results. Here is how to block until completion:
|
1504
|
+
# result.wait_until_done! timeout: 60
|
1505
|
+
# if result.response?
|
1506
|
+
# p result.response
|
1507
|
+
# else
|
1508
|
+
# puts "Error!"
|
1509
|
+
# end
|
1510
|
+
#
|
1217
1511
|
def enable_service request, options = nil
|
1218
1512
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1219
1513
|
|
@@ -1231,9 +1525,11 @@ module Google
|
|
1231
1525
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
1232
1526
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1233
1527
|
|
1234
|
-
header_params = {
|
1235
|
-
|
1236
|
-
|
1528
|
+
header_params = {}
|
1529
|
+
if request.service_name
|
1530
|
+
header_params["service_name"] = request.service_name
|
1531
|
+
end
|
1532
|
+
|
1237
1533
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1238
1534
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1239
1535
|
|
@@ -1300,6 +1596,28 @@ module Google
|
|
1300
1596
|
#
|
1301
1597
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1302
1598
|
#
|
1599
|
+
# @example Basic example
|
1600
|
+
# require "google/cloud/service_management/v1"
|
1601
|
+
#
|
1602
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1603
|
+
# client = Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
1604
|
+
#
|
1605
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1606
|
+
# request = Google::Cloud::ServiceManagement::V1::DisableServiceRequest.new
|
1607
|
+
#
|
1608
|
+
# # Call the disable_service method.
|
1609
|
+
# result = client.disable_service request
|
1610
|
+
#
|
1611
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1612
|
+
# # object to check the status of an operation, cancel it, or wait
|
1613
|
+
# # for results. Here is how to block until completion:
|
1614
|
+
# result.wait_until_done! timeout: 60
|
1615
|
+
# if result.response?
|
1616
|
+
# p result.response
|
1617
|
+
# else
|
1618
|
+
# puts "Error!"
|
1619
|
+
# end
|
1620
|
+
#
|
1303
1621
|
def disable_service request, options = nil
|
1304
1622
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1305
1623
|
|
@@ -1317,9 +1635,11 @@ module Google
|
|
1317
1635
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
1318
1636
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1319
1637
|
|
1320
|
-
header_params = {
|
1321
|
-
|
1322
|
-
|
1638
|
+
header_params = {}
|
1639
|
+
if request.service_name
|
1640
|
+
header_params["service_name"] = request.service_name
|
1641
|
+
end
|
1642
|
+
|
1323
1643
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1324
1644
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1325
1645
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::ServiceManagement::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
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.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|