google-cloud-gaming-v1 0.5.0 → 0.7.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/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/gaming/v1/common_pb.rb +26 -80
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +27 -101
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +22 -22
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +938 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +524 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +26 -43
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +18 -18
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +607 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +285 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest.rb +53 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +27 -80
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +26 -26
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +999 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +584 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/realms_pb.rb +27 -46
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +22 -22
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +17 -17
- data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +763 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +795 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +405 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest.rb +54 -0
- data/lib/google/cloud/gaming/v1/realms_service.rb +7 -1
- data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
- data/lib/google/cloud/gaming/v1/rest.rb +40 -0
- data/lib/google/cloud/gaming/v1/version.rb +1 -1
- data/lib/google/cloud/gaming/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +27 -8
@@ -157,7 +157,7 @@ module Google
|
|
157
157
|
credentials = @config.credentials
|
158
158
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
159
159
|
# but only if the default endpoint does not have a region prefix.
|
160
|
-
enable_self_signed_jwt = @config.endpoint ==
|
160
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
161
161
|
!@config.endpoint.split(".").first.include?("-")
|
162
162
|
credentials ||= Credentials.default scope: @config.scope,
|
163
163
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -247,13 +247,11 @@ module Google
|
|
247
247
|
# # Call the list_game_server_deployments method.
|
248
248
|
# result = client.list_game_server_deployments request
|
249
249
|
#
|
250
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
251
|
-
# #
|
252
|
-
#
|
253
|
-
# # methods are also available for managing paging directly.
|
254
|
-
# result.each do |response|
|
250
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
251
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
252
|
+
# result.each do |item|
|
255
253
|
# # Each element is of type ::Google::Cloud::Gaming::V1::GameServerDeployment.
|
256
|
-
# p
|
254
|
+
# p item
|
257
255
|
# end
|
258
256
|
#
|
259
257
|
def list_game_server_deployments request, options = nil
|
@@ -430,14 +428,14 @@ module Google
|
|
430
428
|
# # Call the create_game_server_deployment method.
|
431
429
|
# result = client.create_game_server_deployment request
|
432
430
|
#
|
433
|
-
# # The returned object is of type Gapic::Operation. You can use
|
434
|
-
# #
|
435
|
-
# #
|
431
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
432
|
+
# # check the status of an operation, cancel it, or wait for results.
|
433
|
+
# # Here is how to wait for a response.
|
436
434
|
# result.wait_until_done! timeout: 60
|
437
435
|
# if result.response?
|
438
436
|
# p result.response
|
439
437
|
# else
|
440
|
-
# puts "
|
438
|
+
# puts "No response received."
|
441
439
|
# end
|
442
440
|
#
|
443
441
|
def create_game_server_deployment request, options = nil
|
@@ -524,14 +522,14 @@ module Google
|
|
524
522
|
# # Call the delete_game_server_deployment method.
|
525
523
|
# result = client.delete_game_server_deployment request
|
526
524
|
#
|
527
|
-
# # The returned object is of type Gapic::Operation. You can use
|
528
|
-
# #
|
529
|
-
# #
|
525
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
526
|
+
# # check the status of an operation, cancel it, or wait for results.
|
527
|
+
# # Here is how to wait for a response.
|
530
528
|
# result.wait_until_done! timeout: 60
|
531
529
|
# if result.response?
|
532
530
|
# p result.response
|
533
531
|
# else
|
534
|
-
# puts "
|
532
|
+
# puts "No response received."
|
535
533
|
# end
|
536
534
|
#
|
537
535
|
def delete_game_server_deployment request, options = nil
|
@@ -622,14 +620,14 @@ module Google
|
|
622
620
|
# # Call the update_game_server_deployment method.
|
623
621
|
# result = client.update_game_server_deployment request
|
624
622
|
#
|
625
|
-
# # The returned object is of type Gapic::Operation. You can use
|
626
|
-
# #
|
627
|
-
# #
|
623
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
624
|
+
# # check the status of an operation, cancel it, or wait for results.
|
625
|
+
# # Here is how to wait for a response.
|
628
626
|
# result.wait_until_done! timeout: 60
|
629
627
|
# if result.response?
|
630
628
|
# p result.response
|
631
629
|
# else
|
632
|
-
# puts "
|
630
|
+
# puts "No response received."
|
633
631
|
# end
|
634
632
|
#
|
635
633
|
def update_game_server_deployment request, options = nil
|
@@ -811,14 +809,14 @@ module Google
|
|
811
809
|
# # Call the update_game_server_deployment_rollout method.
|
812
810
|
# result = client.update_game_server_deployment_rollout request
|
813
811
|
#
|
814
|
-
# # The returned object is of type Gapic::Operation. You can use
|
815
|
-
# #
|
816
|
-
# #
|
812
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
813
|
+
# # check the status of an operation, cancel it, or wait for results.
|
814
|
+
# # Here is how to wait for a response.
|
817
815
|
# result.wait_until_done! timeout: 60
|
818
816
|
# if result.response?
|
819
817
|
# p result.response
|
820
818
|
# else
|
821
|
-
# puts "
|
819
|
+
# puts "No response received."
|
822
820
|
# end
|
823
821
|
#
|
824
822
|
def update_game_server_deployment_rollout request, options = nil
|
@@ -1083,9 +1081,9 @@ module Google
|
|
1083
1081
|
# * (`String`) The path to a service account key file in JSON format
|
1084
1082
|
# * (`Hash`) A service account key as a Hash
|
1085
1083
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1086
|
-
# (see the [googleauth docs](https://
|
1084
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1087
1085
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1088
|
-
# (see the [signet docs](https://
|
1086
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1089
1087
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1090
1088
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1091
1089
|
# * (`nil`) indicating no credentials
|
@@ -1127,7 +1125,9 @@ module Google
|
|
1127
1125
|
class Configuration
|
1128
1126
|
extend ::Gapic::Config
|
1129
1127
|
|
1130
|
-
|
1128
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
1129
|
+
|
1130
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1131
1131
|
config_attr :credentials, nil do |value|
|
1132
1132
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1133
1133
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -622,9 +620,9 @@ module Google
|
|
622
620
|
# * (`String`) The path to a service account key file in JSON format
|
623
621
|
# * (`Hash`) A service account key as a Hash
|
624
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
628
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +664,9 @@ module Google
|
|
666
664
|
class Configuration
|
667
665
|
extend ::Gapic::Config
|
668
666
|
|
669
|
-
|
667
|
+
DEFAULT_ENDPOINT = "gameservices.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
670
|
config_attr :credentials, nil do |value|
|
671
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|