google-cloud-gaming-v1 0.4.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +12 -7
  4. data/lib/google/cloud/gaming/v1/common_pb.rb +2 -1
  5. data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +2 -1
  6. data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +16 -18
  7. data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +15 -14
  8. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +936 -0
  9. data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +793 -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 +2 -1
  14. data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +2 -1
  15. data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +12 -14
  16. data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +15 -14
  17. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +605 -0
  18. data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +793 -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 +2 -1
  23. data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +2 -1
  24. data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +20 -22
  25. data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +15 -14
  26. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +997 -0
  27. data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +793 -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 +2 -1
  32. data/lib/google/cloud/gaming/v1/realms_pb.rb +2 -1
  33. data/lib/google/cloud/gaming/v1/realms_service/client.rb +16 -18
  34. data/lib/google/cloud/gaming/v1/realms_service/operations.rb +15 -14
  35. data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +761 -0
  36. data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +793 -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 +2 -1
  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 +318 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/protobuf/any.rb +3 -3
  47. data/proto_docs/google/protobuf/empty.rb +0 -2
  48. data/proto_docs/google/rpc/status.rb +4 -2
  49. metadata +32 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a99b422300806102440d99270fb3e505e8e5a3ba3734af592ecddae70242ca4f
4
- data.tar.gz: ac164e7f646a27e7dc74b606ce4e0d4de584927a065a0ee35b702ba9413c55c2
3
+ metadata.gz: 1449fc3600ab1bb97db2d0fc2030b20cab6a9b06e3fa1777b77dd847d04e5fc5
4
+ data.tar.gz: 8dbecee2878824e105f69e582271915b66f3f12af2d5d505937aab2f6a781c20
5
5
  SHA512:
6
- metadata.gz: 005c5fca374628383bfb9cb166004740d22fa529a8afe087f9e948dda4f2a40e603630be4cc506232e7f2bba00c225168743b1d86a2fa9c7f439c51b7a224a81
7
- data.tar.gz: 0bbf2c0cade781100428e17bcdf30540e85bb8abdc12b5d260143e24cb8251013cedfd09dda4c225a9a1086540c9274417b21df5b35a12093f1c70cae4ed69c5
6
+ metadata.gz: 40c85896e4fb901855dbe15f1f3e412f49735ad7c1a9f6c86b39531f952fd5fc21f6ed91baa970ff279c38f08b35314116f7c73226bc97359b9d02716e3af4d6
7
+ data.tar.gz: 9ea3ce1293d13ed78a156ae62362a064f53ba8eddb13f7740dc84465a218308afb59e972e7b9ce0c329380b9195dfef9009f72a6d75d64ed10b847ee6b16e6e2
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Gaming V1 API
2
2
 
3
- API Client library for the Cloud Gaming V1 API
3
+ Deploy and manage infrastructure for global multiplayer gaming experiences.
4
4
 
5
5
  With Game Servers, studios and publishers can deploy and manage their game server infrastructure hosted on multiple Agones clusters around the world through a single interface.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,10 +1,11 @@
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
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/protobuf/duration_pb'
6
8
  require 'google/protobuf/timestamp_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/cloud/gaming/v1/common.proto", :syntax => :proto3) do
@@ -1,12 +1,13 @@
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
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/cloud/gaming/v1/common_pb'
7
9
  require 'google/protobuf/field_mask_pb'
8
10
  require 'google/protobuf/timestamp_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/gaming/v1/game_server_clusters.proto", :syntax => :proto3) do
@@ -251,13 +251,11 @@ module Google
251
251
  # # Call the list_game_server_clusters method.
252
252
  # result = client.list_game_server_clusters request
253
253
  #
254
- # # The returned object is of type Gapic::PagedEnumerable. You can
255
- # # iterate over all elements by calling #each, and the enumerable
256
- # # will lazily make API calls to fetch subsequent pages. Other
257
- # # methods are also available for managing paging directly.
258
- # result.each do |response|
254
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
255
+ # # over elements, and API calls will be issued to fetch pages as needed.
256
+ # result.each do |item|
259
257
  # # Each element is of type ::Google::Cloud::Gaming::V1::GameServerCluster.
260
- # p response
258
+ # p item
261
259
  # end
262
260
  #
263
261
  def list_game_server_clusters request, options = nil
@@ -441,14 +439,14 @@ module Google
441
439
  # # Call the create_game_server_cluster method.
442
440
  # result = client.create_game_server_cluster request
443
441
  #
444
- # # The returned object is of type Gapic::Operation. You can use this
445
- # # object to check the status of an operation, cancel it, or wait
446
- # # for results. Here is how to block until completion:
442
+ # # The returned object is of type Gapic::Operation. You can use it to
443
+ # # check the status of an operation, cancel it, or wait for results.
444
+ # # Here is how to wait for a response.
447
445
  # result.wait_until_done! timeout: 60
448
446
  # if result.response?
449
447
  # p result.response
450
448
  # else
451
- # puts "Error!"
449
+ # puts "No response received."
452
450
  # end
453
451
  #
454
452
  def create_game_server_cluster request, options = nil
@@ -631,14 +629,14 @@ module Google
631
629
  # # Call the delete_game_server_cluster method.
632
630
  # result = client.delete_game_server_cluster request
633
631
  #
634
- # # The returned object is of type Gapic::Operation. You can use this
635
- # # object to check the status of an operation, cancel it, or wait
636
- # # for results. Here is how to block until completion:
632
+ # # The returned object is of type Gapic::Operation. You can use it to
633
+ # # check the status of an operation, cancel it, or wait for results.
634
+ # # Here is how to wait for a response.
637
635
  # result.wait_until_done! timeout: 60
638
636
  # if result.response?
639
637
  # p result.response
640
638
  # else
641
- # puts "Error!"
639
+ # puts "No response received."
642
640
  # end
643
641
  #
644
642
  def delete_game_server_cluster request, options = nil
@@ -817,14 +815,14 @@ module Google
817
815
  # # Call the update_game_server_cluster method.
818
816
  # result = client.update_game_server_cluster request
819
817
  #
820
- # # The returned object is of type Gapic::Operation. You can use this
821
- # # object to check the status of an operation, cancel it, or wait
822
- # # for results. Here is how to block until completion:
818
+ # # The returned object is of type Gapic::Operation. You can use it to
819
+ # # check the status of an operation, cancel it, or wait for results.
820
+ # # Here is how to wait for a response.
823
821
  # result.wait_until_done! timeout: 60
824
822
  # if result.response?
825
823
  # p result.response
826
824
  # else
827
- # puts "Error!"
825
+ # puts "No response received."
828
826
  # end
829
827
  #
830
828
  def update_game_server_cluster request, options = nil
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -155,13 +158,11 @@ module Google
155
158
  # # Call the list_operations method.
156
159
  # result = client.list_operations request
157
160
  #
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|
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|
163
164
  # # Each element is of type ::Google::Longrunning::Operation.
164
- # p response
165
+ # p item
165
166
  # end
166
167
  #
167
168
  def list_operations request, options = nil
@@ -250,14 +251,14 @@ module Google
250
251
  # # Call the get_operation method.
251
252
  # result = client.get_operation request
252
253
  #
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:
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.
256
257
  # result.wait_until_done! timeout: 60
257
258
  # if result.response?
258
259
  # p result.response
259
260
  # else
260
- # puts "Error!"
261
+ # puts "No response received."
261
262
  # end
262
263
  #
263
264
  def get_operation request, options = nil
@@ -537,14 +538,14 @@ module Google
537
538
  # # Call the wait_operation method.
538
539
  # result = client.wait_operation request
539
540
  #
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:
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.
543
544
  # result.wait_until_done! timeout: 60
544
545
  # if result.response?
545
546
  # p result.response
546
547
  # else
547
- # puts "Error!"
548
+ # puts "No response received."
548
549
  # end
549
550
  #
550
551
  def wait_operation request, options = nil