google-cloud-gaming-v1 0.3.0 → 0.4.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 +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +31 -0
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +88 -84
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +34 -25
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +48 -57
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +34 -25
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +72 -89
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +34 -25
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +57 -67
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +34 -25
- data/lib/google/cloud/gaming/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/gaming/v1/common.rb +0 -3
- data/proto_docs/google/cloud/gaming/v1/game_server_clusters.rb +117 -19
- data/proto_docs/google/cloud/gaming/v1/game_server_configs.rb +5 -11
- data/proto_docs/google/cloud/gaming/v1/game_server_deployments.rb +12 -28
- data/proto_docs/google/cloud/gaming/v1/realms.rb +7 -13
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98254618a2299d4c607b4a035d1352e1da0dc4b45748e973ecce723ecda7b362
|
4
|
+
data.tar.gz: d24deafaff83ef225dc313005e105c5dcd028eb5121a1ad1e378eec487d88181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc12ae90380c9b370902ae7883b24448a9a3c46c028befcc6625b58fd7962ea527166408e8f2c0336bf25e977b5ea6e2f78d63f45885a1dd03a3738ad5d4b15a
|
7
|
+
data.tar.gz: '08565051f4191107b36f50cbf0e523d95d190ccd7a1df74d520fff2cb2a5628c00131b89d0bb88774d4410ff96fb3fdceda15f1718c51c511e69e57b65437a38'
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-gaming-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Gaming::V1::GameServerClustersService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `GAMING_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `GAMING_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/gaming/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/gaming/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/gaming/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/gaming/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Gaming::V1::ListGameServerClustersRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_game_server_clusters request
|
38
38
|
```
|
39
39
|
|
@@ -17,6 +17,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
optional :page_token, :string, 3
|
18
18
|
optional :filter, :string, 4
|
19
19
|
optional :order_by, :string, 5
|
20
|
+
optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
|
20
21
|
end
|
21
22
|
add_message "google.cloud.gaming.v1.ListGameServerClustersResponse" do
|
22
23
|
repeated :game_server_clusters, :message, 1, "google.cloud.gaming.v1.GameServerCluster"
|
@@ -25,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
26
|
end
|
26
27
|
add_message "google.cloud.gaming.v1.GetGameServerClusterRequest" do
|
27
28
|
optional :name, :string, 1
|
29
|
+
optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
|
28
30
|
end
|
29
31
|
add_message "google.cloud.gaming.v1.CreateGameServerClusterRequest" do
|
30
32
|
optional :parent, :string, 1
|
@@ -36,10 +38,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
38
|
optional :game_server_cluster_id, :string, 2
|
37
39
|
optional :game_server_cluster, :message, 3, "google.cloud.gaming.v1.GameServerCluster"
|
38
40
|
optional :preview_time, :message, 4, "google.protobuf.Timestamp"
|
41
|
+
optional :view, :enum, 6, "google.cloud.gaming.v1.GameServerClusterView"
|
39
42
|
end
|
40
43
|
add_message "google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse" do
|
41
44
|
optional :etag, :string, 2
|
42
45
|
optional :target_state, :message, 3, "google.cloud.gaming.v1.TargetState"
|
46
|
+
optional :cluster_state, :message, 4, "google.cloud.gaming.v1.KubernetesClusterState"
|
43
47
|
end
|
44
48
|
add_message "google.cloud.gaming.v1.DeleteGameServerClusterRequest" do
|
45
49
|
optional :name, :string, 1
|
@@ -82,6 +86,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
82
86
|
optional :connection_info, :message, 5, "google.cloud.gaming.v1.GameServerClusterConnectionInfo"
|
83
87
|
optional :etag, :string, 6
|
84
88
|
optional :description, :string, 7
|
89
|
+
optional :cluster_state, :message, 11, "google.cloud.gaming.v1.KubernetesClusterState"
|
90
|
+
end
|
91
|
+
add_message "google.cloud.gaming.v1.KubernetesClusterState" do
|
92
|
+
optional :agones_version_installed, :string, 1
|
93
|
+
optional :kubernetes_version_installed, :string, 2
|
94
|
+
optional :installation_state, :enum, 3, "google.cloud.gaming.v1.KubernetesClusterState.InstallationState"
|
95
|
+
optional :version_installed_error_message, :string, 4
|
96
|
+
optional :provider, :string, 5
|
97
|
+
optional :agones_version_targeted, :string, 6
|
98
|
+
end
|
99
|
+
add_enum "google.cloud.gaming.v1.KubernetesClusterState.InstallationState" do
|
100
|
+
value :INSTALLATION_STATE_UNSPECIFIED, 0
|
101
|
+
value :AGONES_KUBERNETES_VERSION_SUPPORTED, 1
|
102
|
+
value :AGONES_VERSION_UNSUPPORTED, 2
|
103
|
+
value :AGONES_KUBERNETES_VERSION_UNSUPPORTED, 3
|
104
|
+
value :AGONES_VERSION_UNRECOGNIZED, 4
|
105
|
+
value :KUBERNETES_VERSION_UNRECOGNIZED, 5
|
106
|
+
value :VERSION_VERIFICATION_FAILED, 6
|
107
|
+
value :AGONES_NOT_INSTALLED, 7
|
108
|
+
end
|
109
|
+
add_enum "google.cloud.gaming.v1.GameServerClusterView" do
|
110
|
+
value :GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, 0
|
111
|
+
value :BASIC, 1
|
112
|
+
value :FULL, 2
|
85
113
|
end
|
86
114
|
end
|
87
115
|
end
|
@@ -105,6 +133,9 @@ module Google
|
|
105
133
|
GameServerClusterConnectionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerClusterConnectionInfo").msgclass
|
106
134
|
GkeClusterReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GkeClusterReference").msgclass
|
107
135
|
GameServerCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerCluster").msgclass
|
136
|
+
KubernetesClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.KubernetesClusterState").msgclass
|
137
|
+
KubernetesClusterState::InstallationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.KubernetesClusterState.InstallationState").enummodule
|
138
|
+
GameServerClusterView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gaming.v1.GameServerClusterView").enummodule
|
108
139
|
end
|
109
140
|
end
|
110
141
|
end
|
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Gaming::V1::GameServerClustersService::Client::Configuration}
|
43
43
|
# for a description of the configuration fields.
|
44
44
|
#
|
45
|
-
#
|
45
|
+
# @example
|
46
46
|
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all GameServerClustersService clients
|
48
|
+
# ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -68,48 +67,33 @@ module Google
|
|
68
67
|
|
69
68
|
default_config.rpcs.list_game_server_clusters.timeout = 60.0
|
70
69
|
default_config.rpcs.list_game_server_clusters.retry_policy = {
|
71
|
-
initial_delay: 1.0,
|
72
|
-
max_delay: 10.0,
|
73
|
-
multiplier: 1.3,
|
74
|
-
retry_codes: [14]
|
70
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
75
71
|
}
|
76
72
|
|
77
73
|
default_config.rpcs.get_game_server_cluster.timeout = 60.0
|
78
74
|
default_config.rpcs.get_game_server_cluster.retry_policy = {
|
79
|
-
initial_delay: 1.0,
|
80
|
-
max_delay: 10.0,
|
81
|
-
multiplier: 1.3,
|
82
|
-
retry_codes: [14]
|
75
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
83
76
|
}
|
84
77
|
|
85
78
|
default_config.rpcs.create_game_server_cluster.timeout = 120.0
|
86
79
|
|
87
80
|
default_config.rpcs.preview_create_game_server_cluster.timeout = 60.0
|
88
81
|
default_config.rpcs.preview_create_game_server_cluster.retry_policy = {
|
89
|
-
initial_delay: 1.0,
|
90
|
-
max_delay: 10.0,
|
91
|
-
multiplier: 1.3,
|
92
|
-
retry_codes: [14]
|
82
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
93
83
|
}
|
94
84
|
|
95
85
|
default_config.rpcs.delete_game_server_cluster.timeout = 60.0
|
96
86
|
|
97
87
|
default_config.rpcs.preview_delete_game_server_cluster.timeout = 60.0
|
98
88
|
default_config.rpcs.preview_delete_game_server_cluster.retry_policy = {
|
99
|
-
initial_delay: 1.0,
|
100
|
-
max_delay: 10.0,
|
101
|
-
multiplier: 1.3,
|
102
|
-
retry_codes: [14]
|
89
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
103
90
|
}
|
104
91
|
|
105
92
|
default_config.rpcs.update_game_server_cluster.timeout = 60.0
|
106
93
|
|
107
94
|
default_config.rpcs.preview_update_game_server_cluster.timeout = 60.0
|
108
95
|
default_config.rpcs.preview_update_game_server_cluster.retry_policy = {
|
109
|
-
initial_delay: 1.0,
|
110
|
-
max_delay: 10.0,
|
111
|
-
multiplier: 1.3,
|
112
|
-
retry_codes: [14]
|
96
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
113
97
|
}
|
114
98
|
|
115
99
|
default_config
|
@@ -141,19 +125,15 @@ module Google
|
|
141
125
|
##
|
142
126
|
# Create a new GameServerClustersService client object.
|
143
127
|
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# To create a new GameServerClustersService client with the default
|
147
|
-
# configuration:
|
148
|
-
#
|
149
|
-
# client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
128
|
+
# @example
|
150
129
|
#
|
151
|
-
#
|
152
|
-
#
|
130
|
+
# # Create a client using the default configuration
|
131
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
|
153
132
|
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
133
|
+
# # Create a client using a custom configuration
|
134
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
|
135
|
+
# config.timeout = 10.0
|
136
|
+
# end
|
157
137
|
#
|
158
138
|
# @yield [config] Configure the GameServerClustersService client.
|
159
139
|
# @yieldparam config [Client::Configuration]
|
@@ -173,14 +153,13 @@ module Google
|
|
173
153
|
|
174
154
|
# Create credentials
|
175
155
|
credentials = @config.credentials
|
176
|
-
# Use self-signed JWT if the
|
156
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
177
157
|
# but only if the default endpoint does not have a region prefix.
|
178
|
-
enable_self_signed_jwt = @config.
|
179
|
-
@config.endpoint == Client.configure.endpoint &&
|
158
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
180
159
|
!@config.endpoint.split(".").first.include?("-")
|
181
160
|
credentials ||= Credentials.default scope: @config.scope,
|
182
161
|
enable_self_signed_jwt: enable_self_signed_jwt
|
183
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
162
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
184
163
|
credentials = Credentials.new credentials, scope: @config.scope
|
185
164
|
end
|
186
165
|
@quota_project_id = @config.quota_project
|
@@ -222,16 +201,16 @@ module Google
|
|
222
201
|
# @param options [::Gapic::CallOptions, ::Hash]
|
223
202
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
224
203
|
#
|
225
|
-
# @overload list_game_server_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
204
|
+
# @overload list_game_server_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil)
|
226
205
|
# Pass arguments to `list_game_server_clusters` via keyword arguments. Note that at
|
227
206
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
228
207
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
229
208
|
#
|
230
209
|
# @param parent [::String]
|
231
|
-
# Required. The parent resource name
|
210
|
+
# Required. The parent resource name, in the following form:
|
232
211
|
# "projects/\\{project}/locations/\\{location}/realms/\\{realm}".
|
233
212
|
# @param page_size [::Integer]
|
234
|
-
# Optional. The maximum number of items to return.
|
213
|
+
# Optional. The maximum number of items to return. If unspecified, the server
|
235
214
|
# will pick an appropriate default. The server may return fewer items than
|
236
215
|
# requested. A caller should only rely on response's
|
237
216
|
# {::Google::Cloud::Gaming::V1::ListGameServerClustersResponse#next_page_token next_page_token} to
|
@@ -243,6 +222,13 @@ module Google
|
|
243
222
|
# @param order_by [::String]
|
244
223
|
# Optional. Specifies the ordering of results following syntax at
|
245
224
|
# https://cloud.google.com/apis/design/design_patterns#sorting_order.
|
225
|
+
# @param view [::Google::Cloud::Gaming::V1::GameServerClusterView]
|
226
|
+
# Optional. View for the returned GameServerCluster objects. When `FULL` is
|
227
|
+
# specified, the `cluster_state` field is also returned in the
|
228
|
+
# GameServerCluster object, which includes the state of the referenced
|
229
|
+
# Kubernetes cluster such as versions and provider info. The default/unset
|
230
|
+
# value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
|
231
|
+
# not return the `cluster_state` field.
|
246
232
|
#
|
247
233
|
# @yield [response, operation] Access the result along with the RPC operation
|
248
234
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Gaming::V1::GameServerCluster>]
|
@@ -278,7 +264,9 @@ module Google
|
|
278
264
|
options.apply_defaults timeout: @config.rpcs.list_game_server_clusters.timeout,
|
279
265
|
metadata: metadata,
|
280
266
|
retry_policy: @config.rpcs.list_game_server_clusters.retry_policy
|
281
|
-
|
267
|
+
|
268
|
+
options.apply_defaults timeout: @config.timeout,
|
269
|
+
metadata: @config.metadata,
|
282
270
|
retry_policy: @config.retry_policy
|
283
271
|
|
284
272
|
@game_server_clusters_service_stub.call_rpc :list_game_server_clusters, request, options: options do |response, operation|
|
@@ -303,15 +291,21 @@ module Google
|
|
303
291
|
# @param options [::Gapic::CallOptions, ::Hash]
|
304
292
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
305
293
|
#
|
306
|
-
# @overload get_game_server_cluster(name: nil)
|
294
|
+
# @overload get_game_server_cluster(name: nil, view: nil)
|
307
295
|
# Pass arguments to `get_game_server_cluster` via keyword arguments. Note that at
|
308
296
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
309
297
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
310
298
|
#
|
311
299
|
# @param name [::String]
|
312
|
-
# Required. The name of the game server cluster to retrieve
|
313
|
-
#
|
300
|
+
# Required. The name of the game server cluster to retrieve, in the following form:
|
314
301
|
# `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`.
|
302
|
+
# @param view [::Google::Cloud::Gaming::V1::GameServerClusterView]
|
303
|
+
# Optional. View for the returned GameServerCluster objects. When `FULL` is
|
304
|
+
# specified, the `cluster_state` field is also returned in the
|
305
|
+
# GameServerCluster object, which includes the state of the referenced
|
306
|
+
# Kubernetes cluster such as versions and provider info. The default/unset
|
307
|
+
# value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does
|
308
|
+
# not return the `cluster_state` field.
|
315
309
|
#
|
316
310
|
# @yield [response, operation] Access the result along with the RPC operation
|
317
311
|
# @yieldparam response [::Google::Cloud::Gaming::V1::GameServerCluster]
|
@@ -347,7 +341,9 @@ module Google
|
|
347
341
|
options.apply_defaults timeout: @config.rpcs.get_game_server_cluster.timeout,
|
348
342
|
metadata: metadata,
|
349
343
|
retry_policy: @config.rpcs.get_game_server_cluster.retry_policy
|
350
|
-
|
344
|
+
|
345
|
+
options.apply_defaults timeout: @config.timeout,
|
346
|
+
metadata: @config.metadata,
|
351
347
|
retry_policy: @config.retry_policy
|
352
348
|
|
353
349
|
@game_server_clusters_service_stub.call_rpc :get_game_server_cluster, request, options: options do |response, operation|
|
@@ -377,7 +373,7 @@ module Google
|
|
377
373
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
378
374
|
#
|
379
375
|
# @param parent [::String]
|
380
|
-
# Required. The parent resource name
|
376
|
+
# Required. The parent resource name, in the following form:
|
381
377
|
# `projects/{project}/locations/{location}/realms/{realm-id}`.
|
382
378
|
# @param game_server_cluster_id [::String]
|
383
379
|
# Required. The ID of the game server cluster resource to be created.
|
@@ -418,7 +414,9 @@ module Google
|
|
418
414
|
options.apply_defaults timeout: @config.rpcs.create_game_server_cluster.timeout,
|
419
415
|
metadata: metadata,
|
420
416
|
retry_policy: @config.rpcs.create_game_server_cluster.retry_policy
|
421
|
-
|
417
|
+
|
418
|
+
options.apply_defaults timeout: @config.timeout,
|
419
|
+
metadata: @config.metadata,
|
422
420
|
retry_policy: @config.retry_policy
|
423
421
|
|
424
422
|
@game_server_clusters_service_stub.call_rpc :create_game_server_cluster, request, options: options do |response, operation|
|
@@ -444,13 +442,13 @@ module Google
|
|
444
442
|
# @param options [::Gapic::CallOptions, ::Hash]
|
445
443
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
446
444
|
#
|
447
|
-
# @overload preview_create_game_server_cluster(parent: nil, game_server_cluster_id: nil, game_server_cluster: nil, preview_time: nil)
|
445
|
+
# @overload preview_create_game_server_cluster(parent: nil, game_server_cluster_id: nil, game_server_cluster: nil, preview_time: nil, view: nil)
|
448
446
|
# Pass arguments to `preview_create_game_server_cluster` via keyword arguments. Note that at
|
449
447
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
450
448
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
451
449
|
#
|
452
450
|
# @param parent [::String]
|
453
|
-
# Required. The parent resource name
|
451
|
+
# Required. The parent resource name, in the following form:
|
454
452
|
# `projects/{project}/locations/{location}/realms/{realm}`.
|
455
453
|
# @param game_server_cluster_id [::String]
|
456
454
|
# Required. The ID of the game server cluster resource to be created.
|
@@ -458,6 +456,9 @@ module Google
|
|
458
456
|
# Required. The game server cluster resource to be created.
|
459
457
|
# @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
|
460
458
|
# Optional. The target timestamp to compute the preview.
|
459
|
+
# @param view [::Google::Cloud::Gaming::V1::GameServerClusterView]
|
460
|
+
# Optional. This field is deprecated, preview will always return
|
461
|
+
# KubernetesClusterState.
|
461
462
|
#
|
462
463
|
# @yield [response, operation] Access the result along with the RPC operation
|
463
464
|
# @yieldparam response [::Google::Cloud::Gaming::V1::PreviewCreateGameServerClusterResponse]
|
@@ -493,7 +494,9 @@ module Google
|
|
493
494
|
options.apply_defaults timeout: @config.rpcs.preview_create_game_server_cluster.timeout,
|
494
495
|
metadata: metadata,
|
495
496
|
retry_policy: @config.rpcs.preview_create_game_server_cluster.retry_policy
|
496
|
-
|
497
|
+
|
498
|
+
options.apply_defaults timeout: @config.timeout,
|
499
|
+
metadata: @config.metadata,
|
497
500
|
retry_policy: @config.retry_policy
|
498
501
|
|
499
502
|
@game_server_clusters_service_stub.call_rpc :preview_create_game_server_cluster, request, options: options do |response, operation|
|
@@ -523,7 +526,7 @@ module Google
|
|
523
526
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
524
527
|
#
|
525
528
|
# @param name [::String]
|
526
|
-
# Required. The name of the game server cluster to delete
|
529
|
+
# Required. The name of the game server cluster to delete, in the following form:
|
527
530
|
# `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
|
528
531
|
#
|
529
532
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -560,7 +563,9 @@ module Google
|
|
560
563
|
options.apply_defaults timeout: @config.rpcs.delete_game_server_cluster.timeout,
|
561
564
|
metadata: metadata,
|
562
565
|
retry_policy: @config.rpcs.delete_game_server_cluster.retry_policy
|
563
|
-
|
566
|
+
|
567
|
+
options.apply_defaults timeout: @config.timeout,
|
568
|
+
metadata: @config.metadata,
|
564
569
|
retry_policy: @config.retry_policy
|
565
570
|
|
566
571
|
@game_server_clusters_service_stub.call_rpc :delete_game_server_cluster, request, options: options do |response, operation|
|
@@ -591,7 +596,7 @@ module Google
|
|
591
596
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
592
597
|
#
|
593
598
|
# @param name [::String]
|
594
|
-
# Required. The name of the game server cluster to delete
|
599
|
+
# Required. The name of the game server cluster to delete, in the following form:
|
595
600
|
# `projects/{project}/locations/{location}/gameServerClusters/{cluster}`.
|
596
601
|
# @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
|
597
602
|
# Optional. The target timestamp to compute the preview.
|
@@ -630,7 +635,9 @@ module Google
|
|
630
635
|
options.apply_defaults timeout: @config.rpcs.preview_delete_game_server_cluster.timeout,
|
631
636
|
metadata: metadata,
|
632
637
|
retry_policy: @config.rpcs.preview_delete_game_server_cluster.retry_policy
|
633
|
-
|
638
|
+
|
639
|
+
options.apply_defaults timeout: @config.timeout,
|
640
|
+
metadata: @config.metadata,
|
634
641
|
retry_policy: @config.retry_policy
|
635
642
|
|
636
643
|
@game_server_clusters_service_stub.call_rpc :preview_delete_game_server_cluster, request, options: options do |response, operation|
|
@@ -665,10 +672,7 @@ module Google
|
|
665
672
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
666
673
|
# Required. Mask of fields to update. At least one path must be supplied in
|
667
674
|
# this field. For the `FieldMask` definition, see
|
668
|
-
#
|
669
|
-
# https:
|
670
|
-
# //developers.google.com/protocol-buffers
|
671
|
-
# // /docs/reference/google.protobuf#fieldmask
|
675
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
672
676
|
#
|
673
677
|
# @yield [response, operation] Access the result along with the RPC operation
|
674
678
|
# @yieldparam response [::Gapic::Operation]
|
@@ -704,7 +708,9 @@ module Google
|
|
704
708
|
options.apply_defaults timeout: @config.rpcs.update_game_server_cluster.timeout,
|
705
709
|
metadata: metadata,
|
706
710
|
retry_policy: @config.rpcs.update_game_server_cluster.retry_policy
|
707
|
-
|
711
|
+
|
712
|
+
options.apply_defaults timeout: @config.timeout,
|
713
|
+
metadata: @config.metadata,
|
708
714
|
retry_policy: @config.retry_policy
|
709
715
|
|
710
716
|
@game_server_clusters_service_stub.call_rpc :update_game_server_cluster, request, options: options do |response, operation|
|
@@ -740,10 +746,7 @@ module Google
|
|
740
746
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
741
747
|
# Required. Mask of fields to update. At least one path must be supplied in
|
742
748
|
# this field. For the `FieldMask` definition, see
|
743
|
-
#
|
744
|
-
# https:
|
745
|
-
# //developers.google.com/protocol-buffers
|
746
|
-
# // /docs/reference/google.protobuf#fieldmask
|
749
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
747
750
|
# @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
|
748
751
|
# Optional. The target timestamp to compute the preview.
|
749
752
|
#
|
@@ -781,7 +784,9 @@ module Google
|
|
781
784
|
options.apply_defaults timeout: @config.rpcs.preview_update_game_server_cluster.timeout,
|
782
785
|
metadata: metadata,
|
783
786
|
retry_policy: @config.rpcs.preview_update_game_server_cluster.retry_policy
|
784
|
-
|
787
|
+
|
788
|
+
options.apply_defaults timeout: @config.timeout,
|
789
|
+
metadata: @config.metadata,
|
785
790
|
retry_policy: @config.retry_policy
|
786
791
|
|
787
792
|
@game_server_clusters_service_stub.call_rpc :preview_update_game_server_cluster, request, options: options do |response, operation|
|
@@ -805,22 +810,21 @@ module Google
|
|
805
810
|
# Configuration can be applied globally to all clients, or to a single client
|
806
811
|
# on construction.
|
807
812
|
#
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
811
|
-
# to 20 seconds,
|
812
|
-
#
|
813
|
-
#
|
814
|
-
#
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
819
|
-
#
|
820
|
-
#
|
821
|
-
#
|
822
|
-
#
|
823
|
-
# end
|
813
|
+
# @example
|
814
|
+
#
|
815
|
+
# # Modify the global config, setting the timeout for
|
816
|
+
# # list_game_server_clusters to 20 seconds,
|
817
|
+
# # and all remaining timeouts to 10 seconds.
|
818
|
+
# ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
|
819
|
+
# config.timeout = 10.0
|
820
|
+
# config.rpcs.list_game_server_clusters.timeout = 20.0
|
821
|
+
# end
|
822
|
+
#
|
823
|
+
# # Apply the above configuration only to a new client.
|
824
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
|
825
|
+
# config.timeout = 10.0
|
826
|
+
# config.rpcs.list_game_server_clusters.timeout = 20.0
|
827
|
+
# end
|
824
828
|
#
|
825
829
|
# @!attribute [rw] endpoint
|
826
830
|
# The hostname or hostname:port of the service endpoint.
|