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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +12 -7
- data/lib/google/cloud/gaming/v1/common_pb.rb +2 -1
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +2 -1
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +16 -18
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +15 -14
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/client.rb +936 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/rest/operations.rb +793 -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 +2 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +2 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +12 -14
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +15 -14
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/client.rb +605 -0
- data/lib/google/cloud/gaming/v1/game_server_configs_service/rest/operations.rb +793 -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 +2 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +2 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +20 -22
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +15 -14
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/client.rb +997 -0
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/rest/operations.rb +793 -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 +2 -1
- data/lib/google/cloud/gaming/v1/realms_pb.rb +2 -1
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +16 -18
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +15 -14
- data/lib/google/cloud/gaming/v1/realms_service/rest/client.rb +761 -0
- data/lib/google/cloud/gaming/v1/realms_service/rest/operations.rb +793 -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 +2 -1
- 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 +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +32 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1449fc3600ab1bb97db2d0fc2030b20cab6a9b06e3fa1777b77dd847d04e5fc5
|
4
|
+
data.tar.gz: 8dbecee2878824e105f69e582271915b66f3f12af2d5d505937aab2f6a781c20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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.
|
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.
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
# #
|
256
|
-
#
|
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
|
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
|
445
|
-
# #
|
446
|
-
# #
|
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 "
|
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
|
635
|
-
# #
|
636
|
-
# #
|
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 "
|
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
|
821
|
-
# #
|
822
|
-
# #
|
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 "
|
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
|
-
# #
|
160
|
-
#
|
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
|
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
|
254
|
-
# #
|
255
|
-
# #
|
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 "
|
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
|
541
|
-
# #
|
542
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
548
549
|
# end
|
549
550
|
#
|
550
551
|
def wait_operation request, options = nil
|