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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +3 -3
  4. data/lib/google/cloud/gaming/v1/common_pb.rb +26 -80
  5. data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +27 -101
  6. data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +22 -22
  7. data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +17 -17
  8. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +938 -0
  9. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +795 -0
  10. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/service_stub.rb +524 -0
  11. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest.rb +54 -0
  12. data/lib/google/cloud/gaming/v1/game_server_clusters_service.rb +7 -1
  13. data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +25 -2
  14. data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +26 -43
  15. data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +18 -18
  16. data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +17 -17
  17. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +607 -0
  18. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +795 -0
  19. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/service_stub.rb +285 -0
  20. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest.rb +53 -0
  21. data/lib/google/cloud/gaming/v1/game_server_configs_service.rb +7 -1
  22. data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +25 -2
  23. data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +27 -80
  24. data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +26 -26
  25. data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +17 -17
  26. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +999 -0
  27. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +795 -0
  28. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/service_stub.rb +584 -0
  29. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest.rb +54 -0
  30. data/lib/google/cloud/gaming/v1/game_server_deployments_service.rb +7 -1
  31. data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +25 -2
  32. data/lib/google/cloud/gaming/v1/realms_pb.rb +27 -46
  33. data/lib/google/cloud/gaming/v1/realms_service/client.rb +22 -22
  34. data/lib/google/cloud/gaming/v1/realms_service/operations.rb +17 -17
  35. data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +763 -0
  36. data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +795 -0
  37. data/lib/google/cloud/gaming/v1/realms_service/rest/service_stub.rb +405 -0
  38. data/lib/google/cloud/gaming/v1/realms_service/rest.rb +54 -0
  39. data/lib/google/cloud/gaming/v1/realms_service.rb +7 -1
  40. data/lib/google/cloud/gaming/v1/realms_service_pb.rb +25 -2
  41. data/lib/google/cloud/gaming/v1/rest.rb +40 -0
  42. data/lib/google/cloud/gaming/v1/version.rb +1 -1
  43. data/lib/google/cloud/gaming/v1.rb +7 -2
  44. data/proto_docs/google/api/client.rb +381 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/protobuf/any.rb +7 -4
  47. data/proto_docs/google/protobuf/empty.rb +0 -2
  48. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  49. data/proto_docs/google/rpc/status.rb +4 -2
  50. 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 == Client.configure.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
- # # iterate over all elements by calling #each, and the enumerable
252
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
434
- # # object to check the status of an operation, cancel it, or wait
435
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
528
- # # object to check the status of an operation, cancel it, or wait
529
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
626
- # # object to check the status of an operation, cancel it, or wait
627
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
815
- # # object to check the status of an operation, cancel it, or wait
816
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "gameservices.googleapis.com", ::String
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "gameservices.googleapis.com", ::String
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