google-cloud-gaming-v1 0.4.0 → 0.4.1
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/gaming/v1/common_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +187 -24
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +115 -12
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +100 -12
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +115 -12
- data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +214 -27
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +115 -12
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/realms_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +147 -18
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +115 -12
- data/lib/google/cloud/gaming/v1/realms_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/realms_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/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: f39e7106ab30dd79cd7649106732fb5bae297256ba669e19342f2895b9acc0e4
|
4
|
+
data.tar.gz: 43aca0acc4764cb8291c956a571c51556d3e23a4e40b0b589b91ec39d46b9e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7210843d9956a9d177cdc002ed4ad979a0598a2cb39362b30eea171c597115675cff3023bf58a8dd3d9136f0897cde6649264228787c8a49999f9c7bd9e247a9
|
7
|
+
data.tar.gz: 868675f214598cbc63bade9248e9cbaab56b31603312db6509b386e1607012d3fa0dc82ac05edddbf4d548fec61df0e9b3512e28749fd574db436c94d87b9445
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/common.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
9
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gaming/v1/common.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.gaming.v1.OperationMetadata" do
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_clusters.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/gaming/v1/common_pb'
|
9
7
|
require 'google/protobuf/field_mask_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/gaming/v1/game_server_clusters.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.gaming.v1.ListGameServerClustersRequest" do
|
@@ -238,6 +238,27 @@ module Google
|
|
238
238
|
#
|
239
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
240
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/cloud/gaming/v1"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Cloud::Gaming::V1::ListGameServerClustersRequest.new
|
249
|
+
#
|
250
|
+
# # Call the list_game_server_clusters method.
|
251
|
+
# result = client.list_game_server_clusters request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
254
|
+
# # iterate over all elements by calling #each, and the enumerable
|
255
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
256
|
+
# # methods are also available for managing paging directly.
|
257
|
+
# result.each do |response|
|
258
|
+
# # Each element is of type ::Google::Cloud::Gaming::V1::GameServerCluster.
|
259
|
+
# p response
|
260
|
+
# end
|
261
|
+
#
|
241
262
|
def list_game_server_clusters request, options = nil
|
242
263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
243
264
|
|
@@ -255,9 +276,11 @@ module Google
|
|
255
276
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
256
277
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
278
|
|
258
|
-
header_params = {
|
259
|
-
|
260
|
-
|
279
|
+
header_params = {}
|
280
|
+
if request.parent
|
281
|
+
header_params["parent"] = request.parent
|
282
|
+
end
|
283
|
+
|
261
284
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
262
285
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
263
286
|
|
@@ -315,6 +338,21 @@ module Google
|
|
315
338
|
#
|
316
339
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
317
340
|
#
|
341
|
+
# @example Basic example
|
342
|
+
# require "google/cloud/gaming/v1"
|
343
|
+
#
|
344
|
+
# # Create a client object. The client can be reused for multiple calls.
|
345
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
346
|
+
#
|
347
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
348
|
+
# request = Google::Cloud::Gaming::V1::GetGameServerClusterRequest.new
|
349
|
+
#
|
350
|
+
# # Call the get_game_server_cluster method.
|
351
|
+
# result = client.get_game_server_cluster request
|
352
|
+
#
|
353
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::GameServerCluster.
|
354
|
+
# p result
|
355
|
+
#
|
318
356
|
def get_game_server_cluster request, options = nil
|
319
357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
320
358
|
|
@@ -332,9 +370,11 @@ module Google
|
|
332
370
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
333
371
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
334
372
|
|
335
|
-
header_params = {
|
336
|
-
|
337
|
-
|
373
|
+
header_params = {}
|
374
|
+
if request.name
|
375
|
+
header_params["name"] = request.name
|
376
|
+
end
|
377
|
+
|
338
378
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
339
379
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
340
380
|
|
@@ -388,6 +428,28 @@ module Google
|
|
388
428
|
#
|
389
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
390
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/cloud/gaming/v1"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Cloud::Gaming::V1::CreateGameServerClusterRequest.new
|
439
|
+
#
|
440
|
+
# # Call the create_game_server_cluster method.
|
441
|
+
# result = client.create_game_server_cluster request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
444
|
+
# # object to check the status of an operation, cancel it, or wait
|
445
|
+
# # for results. Here is how to block until completion:
|
446
|
+
# result.wait_until_done! timeout: 60
|
447
|
+
# if result.response?
|
448
|
+
# p result.response
|
449
|
+
# else
|
450
|
+
# puts "Error!"
|
451
|
+
# end
|
452
|
+
#
|
391
453
|
def create_game_server_cluster request, options = nil
|
392
454
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
393
455
|
|
@@ -405,9 +467,11 @@ module Google
|
|
405
467
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
406
468
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
407
469
|
|
408
|
-
header_params = {
|
409
|
-
|
410
|
-
|
470
|
+
header_params = {}
|
471
|
+
if request.parent
|
472
|
+
header_params["parent"] = request.parent
|
473
|
+
end
|
474
|
+
|
411
475
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
412
476
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
413
477
|
|
@@ -468,6 +532,21 @@ module Google
|
|
468
532
|
#
|
469
533
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
470
534
|
#
|
535
|
+
# @example Basic example
|
536
|
+
# require "google/cloud/gaming/v1"
|
537
|
+
#
|
538
|
+
# # Create a client object. The client can be reused for multiple calls.
|
539
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
540
|
+
#
|
541
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
542
|
+
# request = Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterRequest.new
|
543
|
+
#
|
544
|
+
# # Call the preview_create_game_server_cluster method.
|
545
|
+
# result = client.preview_create_game_server_cluster request
|
546
|
+
#
|
547
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterResponse.
|
548
|
+
# p result
|
549
|
+
#
|
471
550
|
def preview_create_game_server_cluster request, options = nil
|
472
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
473
552
|
|
@@ -485,9 +564,11 @@ module Google
|
|
485
564
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
486
565
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
487
566
|
|
488
|
-
header_params = {
|
489
|
-
|
490
|
-
|
567
|
+
header_params = {}
|
568
|
+
if request.parent
|
569
|
+
header_params["parent"] = request.parent
|
570
|
+
end
|
571
|
+
|
491
572
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
492
573
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
493
574
|
|
@@ -537,6 +618,28 @@ module Google
|
|
537
618
|
#
|
538
619
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
539
620
|
#
|
621
|
+
# @example Basic example
|
622
|
+
# require "google/cloud/gaming/v1"
|
623
|
+
#
|
624
|
+
# # Create a client object. The client can be reused for multiple calls.
|
625
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
626
|
+
#
|
627
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
628
|
+
# request = Google::Cloud::Gaming::V1::DeleteGameServerClusterRequest.new
|
629
|
+
#
|
630
|
+
# # Call the delete_game_server_cluster method.
|
631
|
+
# result = client.delete_game_server_cluster request
|
632
|
+
#
|
633
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
634
|
+
# # object to check the status of an operation, cancel it, or wait
|
635
|
+
# # for results. Here is how to block until completion:
|
636
|
+
# result.wait_until_done! timeout: 60
|
637
|
+
# if result.response?
|
638
|
+
# p result.response
|
639
|
+
# else
|
640
|
+
# puts "Error!"
|
641
|
+
# end
|
642
|
+
#
|
540
643
|
def delete_game_server_cluster request, options = nil
|
541
644
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
542
645
|
|
@@ -554,9 +657,11 @@ module Google
|
|
554
657
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
555
658
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
556
659
|
|
557
|
-
header_params = {
|
558
|
-
|
559
|
-
|
660
|
+
header_params = {}
|
661
|
+
if request.name
|
662
|
+
header_params["name"] = request.name
|
663
|
+
end
|
664
|
+
|
560
665
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
561
666
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
562
667
|
|
@@ -609,6 +714,21 @@ module Google
|
|
609
714
|
#
|
610
715
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
611
716
|
#
|
717
|
+
# @example Basic example
|
718
|
+
# require "google/cloud/gaming/v1"
|
719
|
+
#
|
720
|
+
# # Create a client object. The client can be reused for multiple calls.
|
721
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
722
|
+
#
|
723
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
724
|
+
# request = Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterRequest.new
|
725
|
+
#
|
726
|
+
# # Call the preview_delete_game_server_cluster method.
|
727
|
+
# result = client.preview_delete_game_server_cluster request
|
728
|
+
#
|
729
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::PreviewDeleteGameServerClusterResponse.
|
730
|
+
# p result
|
731
|
+
#
|
612
732
|
def preview_delete_game_server_cluster request, options = nil
|
613
733
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
614
734
|
|
@@ -626,9 +746,11 @@ module Google
|
|
626
746
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
627
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
628
748
|
|
629
|
-
header_params = {
|
630
|
-
|
631
|
-
|
749
|
+
header_params = {}
|
750
|
+
if request.name
|
751
|
+
header_params["name"] = request.name
|
752
|
+
end
|
753
|
+
|
632
754
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
633
755
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
634
756
|
|
@@ -682,6 +804,28 @@ module Google
|
|
682
804
|
#
|
683
805
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
684
806
|
#
|
807
|
+
# @example Basic example
|
808
|
+
# require "google/cloud/gaming/v1"
|
809
|
+
#
|
810
|
+
# # Create a client object. The client can be reused for multiple calls.
|
811
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
812
|
+
#
|
813
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
814
|
+
# request = Google::Cloud::Gaming::V1::UpdateGameServerClusterRequest.new
|
815
|
+
#
|
816
|
+
# # Call the update_game_server_cluster method.
|
817
|
+
# result = client.update_game_server_cluster request
|
818
|
+
#
|
819
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
820
|
+
# # object to check the status of an operation, cancel it, or wait
|
821
|
+
# # for results. Here is how to block until completion:
|
822
|
+
# result.wait_until_done! timeout: 60
|
823
|
+
# if result.response?
|
824
|
+
# p result.response
|
825
|
+
# else
|
826
|
+
# puts "Error!"
|
827
|
+
# end
|
828
|
+
#
|
685
829
|
def update_game_server_cluster request, options = nil
|
686
830
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
831
|
|
@@ -699,9 +843,11 @@ module Google
|
|
699
843
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
700
844
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
701
845
|
|
702
|
-
header_params = {
|
703
|
-
|
704
|
-
|
846
|
+
header_params = {}
|
847
|
+
if request.game_server_cluster&.name
|
848
|
+
header_params["game_server_cluster.name"] = request.game_server_cluster.name
|
849
|
+
end
|
850
|
+
|
705
851
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
706
852
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
707
853
|
|
@@ -758,6 +904,21 @@ module Google
|
|
758
904
|
#
|
759
905
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
760
906
|
#
|
907
|
+
# @example Basic example
|
908
|
+
# require "google/cloud/gaming/v1"
|
909
|
+
#
|
910
|
+
# # Create a client object. The client can be reused for multiple calls.
|
911
|
+
# client = Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
912
|
+
#
|
913
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
914
|
+
# request = Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterRequest.new
|
915
|
+
#
|
916
|
+
# # Call the preview_update_game_server_cluster method.
|
917
|
+
# result = client.preview_update_game_server_cluster request
|
918
|
+
#
|
919
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::PreviewUpdateGameServerClusterResponse.
|
920
|
+
# p result
|
921
|
+
#
|
761
922
|
def preview_update_game_server_cluster request, options = nil
|
762
923
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
763
924
|
|
@@ -775,9 +936,11 @@ module Google
|
|
775
936
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
776
937
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
777
938
|
|
778
|
-
header_params = {
|
779
|
-
|
780
|
-
|
939
|
+
header_params = {}
|
940
|
+
if request.game_server_cluster&.name
|
941
|
+
header_params["game_server_cluster.name"] = request.game_server_cluster.name
|
942
|
+
end
|
943
|
+
|
781
944
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
782
945
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
783
946
|
|
@@ -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::Gaming::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::Gaming::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::Gaming::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::Gaming::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
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_clusters_service.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/cloud/gaming/v1/game_server_clusters_pb'
|
9
7
|
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gaming/v1/game_server_clusters_service.proto", :syntax => :proto3) do
|
12
12
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_configs.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/gaming/v1/common_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/gaming/v1/game_server_configs.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.gaming.v1.ListGameServerConfigsRequest" do
|