google-apis-gameservices_v1 0.22.0 → 0.23.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.
@@ -125,144 +125,6 @@ module Google
|
|
125
125
|
execute_or_queue_command(command, &block)
|
126
126
|
end
|
127
127
|
|
128
|
-
# Creates a new game server deployment in a given project and location.
|
129
|
-
# @param [String] parent
|
130
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
131
|
-
# locations/`locationId``.
|
132
|
-
# @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
|
133
|
-
# @param [String] deployment_id
|
134
|
-
# Required. The ID of the game server deployment resource to create.
|
135
|
-
# @param [String] fields
|
136
|
-
# Selector specifying which fields to include in a partial response.
|
137
|
-
# @param [String] quota_user
|
138
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
139
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
140
|
-
# @param [Google::Apis::RequestOptions] options
|
141
|
-
# Request-specific options
|
142
|
-
#
|
143
|
-
# @yield [result, err] Result & error if block supplied
|
144
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
145
|
-
# @yieldparam err [StandardError] error object if request failed
|
146
|
-
#
|
147
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
148
|
-
#
|
149
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def create_project_location_game_server_deployment(parent, game_server_deployment_object = nil, deployment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
153
|
-
command = make_simple_command(:post, 'v1/{+parent}/gameServerDeployments', options)
|
154
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
|
155
|
-
command.request_object = game_server_deployment_object
|
156
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
157
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
158
|
-
command.params['parent'] = parent unless parent.nil?
|
159
|
-
command.query['deploymentId'] = deployment_id unless deployment_id.nil?
|
160
|
-
command.query['fields'] = fields unless fields.nil?
|
161
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
|
-
execute_or_queue_command(command, &block)
|
163
|
-
end
|
164
|
-
|
165
|
-
# Deletes a single game server deployment.
|
166
|
-
# @param [String] name
|
167
|
-
# Required. The name of the game server deployment to delete, in the following
|
168
|
-
# form: `projects/`project`/locations/`locationId`/gameServerDeployments/`
|
169
|
-
# deploymentId``.
|
170
|
-
# @param [String] fields
|
171
|
-
# Selector specifying which fields to include in a partial response.
|
172
|
-
# @param [String] quota_user
|
173
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
174
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
175
|
-
# @param [Google::Apis::RequestOptions] options
|
176
|
-
# Request-specific options
|
177
|
-
#
|
178
|
-
# @yield [result, err] Result & error if block supplied
|
179
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
180
|
-
# @yieldparam err [StandardError] error object if request failed
|
181
|
-
#
|
182
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
183
|
-
#
|
184
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
185
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
186
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
187
|
-
def delete_project_location_game_server_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
189
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
190
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
191
|
-
command.params['name'] = name unless name.nil?
|
192
|
-
command.query['fields'] = fields unless fields.nil?
|
193
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
|
-
execute_or_queue_command(command, &block)
|
195
|
-
end
|
196
|
-
|
197
|
-
# Retrieves information about the current state of the game server deployment.
|
198
|
-
# Gathers all the Agones fleets and Agones autoscalers, including fleets running
|
199
|
-
# an older version of the game server deployment.
|
200
|
-
# @param [String] name
|
201
|
-
# Required. The name of the game server deployment, in the following form: `
|
202
|
-
# projects/`project`/locations/`locationId`/gameServerDeployments/`deploymentId``
|
203
|
-
# .
|
204
|
-
# @param [Google::Apis::GameservicesV1::FetchDeploymentStateRequest] fetch_deployment_state_request_object
|
205
|
-
# @param [String] fields
|
206
|
-
# Selector specifying which fields to include in a partial response.
|
207
|
-
# @param [String] quota_user
|
208
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
209
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
210
|
-
# @param [Google::Apis::RequestOptions] options
|
211
|
-
# Request-specific options
|
212
|
-
#
|
213
|
-
# @yield [result, err] Result & error if block supplied
|
214
|
-
# @yieldparam result [Google::Apis::GameservicesV1::FetchDeploymentStateResponse] parsed result object
|
215
|
-
# @yieldparam err [StandardError] error object if request failed
|
216
|
-
#
|
217
|
-
# @return [Google::Apis::GameservicesV1::FetchDeploymentStateResponse]
|
218
|
-
#
|
219
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
-
def fetch_game_server_deployment_deployment_state(name, fetch_deployment_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
-
command = make_simple_command(:post, 'v1/{+name}:fetchDeploymentState', options)
|
224
|
-
command.request_representation = Google::Apis::GameservicesV1::FetchDeploymentStateRequest::Representation
|
225
|
-
command.request_object = fetch_deployment_state_request_object
|
226
|
-
command.response_representation = Google::Apis::GameservicesV1::FetchDeploymentStateResponse::Representation
|
227
|
-
command.response_class = Google::Apis::GameservicesV1::FetchDeploymentStateResponse
|
228
|
-
command.params['name'] = name unless name.nil?
|
229
|
-
command.query['fields'] = fields unless fields.nil?
|
230
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
|
-
execute_or_queue_command(command, &block)
|
232
|
-
end
|
233
|
-
|
234
|
-
# Gets details of a single game server deployment.
|
235
|
-
# @param [String] name
|
236
|
-
# Required. The name of the game server deployment to retrieve, in the following
|
237
|
-
# form: `projects/`project`/locations/`locationId`/gameServerDeployments/`
|
238
|
-
# deploymentId``.
|
239
|
-
# @param [String] fields
|
240
|
-
# Selector specifying which fields to include in a partial response.
|
241
|
-
# @param [String] quota_user
|
242
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
243
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
244
|
-
# @param [Google::Apis::RequestOptions] options
|
245
|
-
# Request-specific options
|
246
|
-
#
|
247
|
-
# @yield [result, err] Result & error if block supplied
|
248
|
-
# @yieldparam result [Google::Apis::GameservicesV1::GameServerDeployment] parsed result object
|
249
|
-
# @yieldparam err [StandardError] error object if request failed
|
250
|
-
#
|
251
|
-
# @return [Google::Apis::GameservicesV1::GameServerDeployment]
|
252
|
-
#
|
253
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
254
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
255
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
256
|
-
def get_project_location_game_server_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
|
257
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
258
|
-
command.response_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
|
259
|
-
command.response_class = Google::Apis::GameservicesV1::GameServerDeployment
|
260
|
-
command.params['name'] = name unless name.nil?
|
261
|
-
command.query['fields'] = fields unless fields.nil?
|
262
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
-
execute_or_queue_command(command, &block)
|
264
|
-
end
|
265
|
-
|
266
128
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
267
129
|
# resource exists and does not have a policy set.
|
268
130
|
# @param [String] resource
|
@@ -308,176 +170,6 @@ module Google
|
|
308
170
|
execute_or_queue_command(command, &block)
|
309
171
|
end
|
310
172
|
|
311
|
-
# Gets details of a single game server deployment rollout.
|
312
|
-
# @param [String] name
|
313
|
-
# Required. The name of the game server deployment rollout to retrieve, in the
|
314
|
-
# following form: `projects/`project`/locations/`locationId`/
|
315
|
-
# gameServerDeployments/`deploymentId`/rollout`.
|
316
|
-
# @param [String] fields
|
317
|
-
# Selector specifying which fields to include in a partial response.
|
318
|
-
# @param [String] quota_user
|
319
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
320
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
321
|
-
# @param [Google::Apis::RequestOptions] options
|
322
|
-
# Request-specific options
|
323
|
-
#
|
324
|
-
# @yield [result, err] Result & error if block supplied
|
325
|
-
# @yieldparam result [Google::Apis::GameservicesV1::GameServerDeploymentRollout] parsed result object
|
326
|
-
# @yieldparam err [StandardError] error object if request failed
|
327
|
-
#
|
328
|
-
# @return [Google::Apis::GameservicesV1::GameServerDeploymentRollout]
|
329
|
-
#
|
330
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
331
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
332
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
333
|
-
def get_project_location_game_server_deployment_rollout(name, fields: nil, quota_user: nil, options: nil, &block)
|
334
|
-
command = make_simple_command(:get, 'v1/{+name}/rollout', options)
|
335
|
-
command.response_representation = Google::Apis::GameservicesV1::GameServerDeploymentRollout::Representation
|
336
|
-
command.response_class = Google::Apis::GameservicesV1::GameServerDeploymentRollout
|
337
|
-
command.params['name'] = name unless name.nil?
|
338
|
-
command.query['fields'] = fields unless fields.nil?
|
339
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
-
execute_or_queue_command(command, &block)
|
341
|
-
end
|
342
|
-
|
343
|
-
# Lists game server deployments in a given project and location.
|
344
|
-
# @param [String] parent
|
345
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
346
|
-
# locations/`locationId``.
|
347
|
-
# @param [String] filter
|
348
|
-
# Optional. The filter to apply to list results (see [Filtering](https://google.
|
349
|
-
# aip.dev/160)).
|
350
|
-
# @param [String] order_by
|
351
|
-
# Optional. Specifies the ordering of results following [Cloud API syntax](https:
|
352
|
-
# //cloud.google.com/apis/design/design_patterns#sorting_order).
|
353
|
-
# @param [Fixnum] page_size
|
354
|
-
# Optional. The maximum number of items to return. If unspecified, the server
|
355
|
-
# picks an appropriate default. The server may return fewer items than requested.
|
356
|
-
# A caller should only rely on the response's next_page_token to determine if
|
357
|
-
# there are more GameServerDeployments left to be queried.
|
358
|
-
# @param [String] page_token
|
359
|
-
# Optional. The next_page_token value returned from a previous list request, if
|
360
|
-
# any.
|
361
|
-
# @param [String] fields
|
362
|
-
# Selector specifying which fields to include in a partial response.
|
363
|
-
# @param [String] quota_user
|
364
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
365
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
366
|
-
# @param [Google::Apis::RequestOptions] options
|
367
|
-
# Request-specific options
|
368
|
-
#
|
369
|
-
# @yield [result, err] Result & error if block supplied
|
370
|
-
# @yieldparam result [Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse] parsed result object
|
371
|
-
# @yieldparam err [StandardError] error object if request failed
|
372
|
-
#
|
373
|
-
# @return [Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse]
|
374
|
-
#
|
375
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
376
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
377
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
378
|
-
def list_project_location_game_server_deployments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
379
|
-
command = make_simple_command(:get, 'v1/{+parent}/gameServerDeployments', options)
|
380
|
-
command.response_representation = Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse::Representation
|
381
|
-
command.response_class = Google::Apis::GameservicesV1::ListGameServerDeploymentsResponse
|
382
|
-
command.params['parent'] = parent unless parent.nil?
|
383
|
-
command.query['filter'] = filter unless filter.nil?
|
384
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
385
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
386
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
387
|
-
command.query['fields'] = fields unless fields.nil?
|
388
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
389
|
-
execute_or_queue_command(command, &block)
|
390
|
-
end
|
391
|
-
|
392
|
-
# Patches a game server deployment.
|
393
|
-
# @param [String] name
|
394
|
-
# The resource name of the game server deployment, in the following form: `
|
395
|
-
# projects/`project`/locations/`locationId`/gameServerDeployments/`deploymentId``
|
396
|
-
# . For example, `projects/my-project/locations/global/gameServerDeployments/my-
|
397
|
-
# deployment`.
|
398
|
-
# @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
|
399
|
-
# @param [String] update_mask
|
400
|
-
# Required. The update mask to apply to the resource. At least one path must be
|
401
|
-
# supplied in this field. For more information, see the [`FieldMask` definition](
|
402
|
-
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
403
|
-
# fieldmask).
|
404
|
-
# @param [String] fields
|
405
|
-
# Selector specifying which fields to include in a partial response.
|
406
|
-
# @param [String] quota_user
|
407
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
408
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
409
|
-
# @param [Google::Apis::RequestOptions] options
|
410
|
-
# Request-specific options
|
411
|
-
#
|
412
|
-
# @yield [result, err] Result & error if block supplied
|
413
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
414
|
-
# @yieldparam err [StandardError] error object if request failed
|
415
|
-
#
|
416
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
417
|
-
#
|
418
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
419
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
420
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
421
|
-
def patch_project_location_game_server_deployment(name, game_server_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
422
|
-
command = make_simple_command(:patch, 'v1/{+name}', options)
|
423
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerDeployment::Representation
|
424
|
-
command.request_object = game_server_deployment_object
|
425
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
426
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
427
|
-
command.params['name'] = name unless name.nil?
|
428
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
429
|
-
command.query['fields'] = fields unless fields.nil?
|
430
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
431
|
-
execute_or_queue_command(command, &block)
|
432
|
-
end
|
433
|
-
|
434
|
-
# Previews the game server deployment rollout. This API does not mutate the
|
435
|
-
# rollout resource.
|
436
|
-
# @param [String] name
|
437
|
-
# The resource name of the game server deployment rollout, in the following form:
|
438
|
-
# `projects/`project`/locations/`locationId`/gameServerDeployments/`
|
439
|
-
# deploymentId`/rollout`. For example, `projects/my-project/locations/global/
|
440
|
-
# gameServerDeployments/my-deployment/rollout`.
|
441
|
-
# @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
|
442
|
-
# @param [String] preview_time
|
443
|
-
# Optional. The target timestamp to compute the preview. Defaults to the
|
444
|
-
# immediately after the proposed rollout completes.
|
445
|
-
# @param [String] update_mask
|
446
|
-
# Optional. The update mask to apply to the resource. At least one path must be
|
447
|
-
# supplied in this field. For more information, see the [`FieldMask` definition](
|
448
|
-
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
449
|
-
# fieldmask).
|
450
|
-
# @param [String] fields
|
451
|
-
# Selector specifying which fields to include in a partial response.
|
452
|
-
# @param [String] quota_user
|
453
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
454
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
455
|
-
# @param [Google::Apis::RequestOptions] options
|
456
|
-
# Request-specific options
|
457
|
-
#
|
458
|
-
# @yield [result, err] Result & error if block supplied
|
459
|
-
# @yieldparam result [Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse] parsed result object
|
460
|
-
# @yieldparam err [StandardError] error object if request failed
|
461
|
-
#
|
462
|
-
# @return [Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse]
|
463
|
-
#
|
464
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
465
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
466
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
467
|
-
def preview_project_location_game_server_deployment_rollout(name, game_server_deployment_rollout_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
468
|
-
command = make_simple_command(:patch, 'v1/{+name}/rollout:preview', options)
|
469
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerDeploymentRollout::Representation
|
470
|
-
command.request_object = game_server_deployment_rollout_object
|
471
|
-
command.response_representation = Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse::Representation
|
472
|
-
command.response_class = Google::Apis::GameservicesV1::PreviewGameServerDeploymentRolloutResponse
|
473
|
-
command.params['name'] = name unless name.nil?
|
474
|
-
command.query['previewTime'] = preview_time unless preview_time.nil?
|
475
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
476
|
-
command.query['fields'] = fields unless fields.nil?
|
477
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
-
execute_or_queue_command(command, &block)
|
479
|
-
end
|
480
|
-
|
481
173
|
# Sets the access control policy on the specified resource. Replaces any
|
482
174
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
483
175
|
# PERMISSION_DENIED` errors.
|
@@ -554,22 +246,17 @@ module Google
|
|
554
246
|
execute_or_queue_command(command, &block)
|
555
247
|
end
|
556
248
|
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
#
|
249
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
250
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
251
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
252
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
253
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
254
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
255
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
256
|
+
# corresponding to `Code.CANCELLED`.
|
562
257
|
# @param [String] name
|
563
|
-
# The
|
564
|
-
#
|
565
|
-
# deploymentId`/rollout`. For example, `projects/my-project/locations/global/
|
566
|
-
# gameServerDeployments/my-deployment/rollout`.
|
567
|
-
# @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
|
568
|
-
# @param [String] update_mask
|
569
|
-
# Required. The update mask to apply to the resource. At least one path must be
|
570
|
-
# supplied in this field. For more information, see the [`FieldMask` definition](
|
571
|
-
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
572
|
-
# fieldmask).
|
258
|
+
# The name of the operation resource to be cancelled.
|
259
|
+
# @param [Google::Apis::GameservicesV1::CancelOperationRequest] cancel_operation_request_object
|
573
260
|
# @param [String] fields
|
574
261
|
# Selector specifying which fields to include in a partial response.
|
575
262
|
# @param [String] quota_user
|
@@ -579,36 +266,32 @@ module Google
|
|
579
266
|
# Request-specific options
|
580
267
|
#
|
581
268
|
# @yield [result, err] Result & error if block supplied
|
582
|
-
# @yieldparam result [Google::Apis::GameservicesV1::
|
269
|
+
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
583
270
|
# @yieldparam err [StandardError] error object if request failed
|
584
271
|
#
|
585
|
-
# @return [Google::Apis::GameservicesV1::
|
272
|
+
# @return [Google::Apis::GameservicesV1::Empty]
|
586
273
|
#
|
587
274
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
588
275
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
589
276
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
590
|
-
def
|
591
|
-
command = make_simple_command(:
|
592
|
-
command.request_representation = Google::Apis::GameservicesV1::
|
593
|
-
command.request_object =
|
594
|
-
command.response_representation = Google::Apis::GameservicesV1::
|
595
|
-
command.response_class = Google::Apis::GameservicesV1::
|
277
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
278
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
279
|
+
command.request_representation = Google::Apis::GameservicesV1::CancelOperationRequest::Representation
|
280
|
+
command.request_object = cancel_operation_request_object
|
281
|
+
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
282
|
+
command.response_class = Google::Apis::GameservicesV1::Empty
|
596
283
|
command.params['name'] = name unless name.nil?
|
597
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
598
284
|
command.query['fields'] = fields unless fields.nil?
|
599
285
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
600
286
|
execute_or_queue_command(command, &block)
|
601
287
|
end
|
602
288
|
|
603
|
-
#
|
604
|
-
#
|
605
|
-
#
|
606
|
-
#
|
607
|
-
#
|
608
|
-
#
|
609
|
-
# @param [Google::Apis::GameservicesV1::GameServerConfig] game_server_config_object
|
610
|
-
# @param [String] config_id
|
611
|
-
# Required. The ID of the game server config resource to create.
|
289
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
290
|
+
# longer interested in the operation result. It does not cancel the operation.
|
291
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
292
|
+
# UNIMPLEMENTED`.
|
293
|
+
# @param [String] name
|
294
|
+
# The name of the operation resource to be deleted.
|
612
295
|
# @param [String] fields
|
613
296
|
# Selector specifying which fields to include in a partial response.
|
614
297
|
# @param [String] quota_user
|
@@ -618,33 +301,28 @@ module Google
|
|
618
301
|
# Request-specific options
|
619
302
|
#
|
620
303
|
# @yield [result, err] Result & error if block supplied
|
621
|
-
# @yieldparam result [Google::Apis::GameservicesV1::
|
304
|
+
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
622
305
|
# @yieldparam err [StandardError] error object if request failed
|
623
306
|
#
|
624
|
-
# @return [Google::Apis::GameservicesV1::
|
307
|
+
# @return [Google::Apis::GameservicesV1::Empty]
|
625
308
|
#
|
626
309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
627
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
628
311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
629
|
-
def
|
630
|
-
command = make_simple_command(:
|
631
|
-
command.
|
632
|
-
command.
|
633
|
-
command.
|
634
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
635
|
-
command.params['parent'] = parent unless parent.nil?
|
636
|
-
command.query['configId'] = config_id unless config_id.nil?
|
312
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
313
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
314
|
+
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
315
|
+
command.response_class = Google::Apis::GameservicesV1::Empty
|
316
|
+
command.params['name'] = name unless name.nil?
|
637
317
|
command.query['fields'] = fields unless fields.nil?
|
638
318
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
639
319
|
execute_or_queue_command(command, &block)
|
640
320
|
end
|
641
321
|
|
642
|
-
#
|
643
|
-
#
|
322
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
323
|
+
# to poll the operation result at intervals as recommended by the API service.
|
644
324
|
# @param [String] name
|
645
|
-
#
|
646
|
-
# `projects/`project`/locations/`locationId`/gameServerDeployments/`deploymentId`
|
647
|
-
# /configs/`configId``.
|
325
|
+
# The name of the operation resource.
|
648
326
|
# @param [String] fields
|
649
327
|
# Selector specifying which fields to include in a partial response.
|
650
328
|
# @param [String] quota_user
|
@@ -662,8 +340,8 @@ module Google
|
|
662
340
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
663
341
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
664
342
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
665
|
-
def
|
666
|
-
command = make_simple_command(:
|
343
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
344
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
667
345
|
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
668
346
|
command.response_class = Google::Apis::GameservicesV1::Operation
|
669
347
|
command.params['name'] = name unless name.nil?
|
@@ -672,11 +350,22 @@ module Google
|
|
672
350
|
execute_or_queue_command(command, &block)
|
673
351
|
end
|
674
352
|
|
675
|
-
#
|
353
|
+
# Lists operations that match the specified filter in the request. If the server
|
354
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
355
|
+
# binding allows API services to override the binding to use different resource
|
356
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
357
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
358
|
+
# service configuration. For backwards compatibility, the default name includes
|
359
|
+
# the operations collection id, however overriding users must ensure the name
|
360
|
+
# binding is the parent resource, without the operations collection id.
|
676
361
|
# @param [String] name
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
362
|
+
# The name of the operation's parent resource.
|
363
|
+
# @param [String] filter
|
364
|
+
# The standard list filter.
|
365
|
+
# @param [Fixnum] page_size
|
366
|
+
# The standard list page size.
|
367
|
+
# @param [String] page_token
|
368
|
+
# The standard list page token.
|
680
369
|
# @param [String] fields
|
681
370
|
# Selector specifying which fields to include in a partial response.
|
682
371
|
# @param [String] quota_user
|
@@ -686,207 +375,10 @@ module Google
|
|
686
375
|
# Request-specific options
|
687
376
|
#
|
688
377
|
# @yield [result, err] Result & error if block supplied
|
689
|
-
# @yieldparam result [Google::Apis::GameservicesV1::
|
378
|
+
# @yieldparam result [Google::Apis::GameservicesV1::ListOperationsResponse] parsed result object
|
690
379
|
# @yieldparam err [StandardError] error object if request failed
|
691
380
|
#
|
692
|
-
# @return [Google::Apis::GameservicesV1::
|
693
|
-
#
|
694
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
695
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
696
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
697
|
-
def get_project_location_game_server_deployment_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
698
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
699
|
-
command.response_representation = Google::Apis::GameservicesV1::GameServerConfig::Representation
|
700
|
-
command.response_class = Google::Apis::GameservicesV1::GameServerConfig
|
701
|
-
command.params['name'] = name unless name.nil?
|
702
|
-
command.query['fields'] = fields unless fields.nil?
|
703
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
704
|
-
execute_or_queue_command(command, &block)
|
705
|
-
end
|
706
|
-
|
707
|
-
# Lists game server configs in a given project, location, and game server
|
708
|
-
# deployment.
|
709
|
-
# @param [String] parent
|
710
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
711
|
-
# locations/`locationId`/gameServerDeployments/`deploymentId`/configs/*`.
|
712
|
-
# @param [String] filter
|
713
|
-
# Optional. The filter to apply to list results (see [Filtering](https://google.
|
714
|
-
# aip.dev/160)).
|
715
|
-
# @param [String] order_by
|
716
|
-
# Optional. Specifies the ordering of results following [Cloud API syntax](https:
|
717
|
-
# //cloud.google.com/apis/design/design_patterns#sorting_order).
|
718
|
-
# @param [Fixnum] page_size
|
719
|
-
# Optional. The maximum number of items to return. If unspecified, the server
|
720
|
-
# picks an appropriate default. The server may return fewer items than requested.
|
721
|
-
# A caller should only rely on response's next_page_token to determine if there
|
722
|
-
# are more GameServerConfigs left to be queried.
|
723
|
-
# @param [String] page_token
|
724
|
-
# Optional. The next_page_token value returned from a previous list request, if
|
725
|
-
# any.
|
726
|
-
# @param [String] fields
|
727
|
-
# Selector specifying which fields to include in a partial response.
|
728
|
-
# @param [String] quota_user
|
729
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
730
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
731
|
-
# @param [Google::Apis::RequestOptions] options
|
732
|
-
# Request-specific options
|
733
|
-
#
|
734
|
-
# @yield [result, err] Result & error if block supplied
|
735
|
-
# @yieldparam result [Google::Apis::GameservicesV1::ListGameServerConfigsResponse] parsed result object
|
736
|
-
# @yieldparam err [StandardError] error object if request failed
|
737
|
-
#
|
738
|
-
# @return [Google::Apis::GameservicesV1::ListGameServerConfigsResponse]
|
739
|
-
#
|
740
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
741
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
742
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
743
|
-
def list_project_location_game_server_deployment_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
744
|
-
command = make_simple_command(:get, 'v1/{+parent}/configs', options)
|
745
|
-
command.response_representation = Google::Apis::GameservicesV1::ListGameServerConfigsResponse::Representation
|
746
|
-
command.response_class = Google::Apis::GameservicesV1::ListGameServerConfigsResponse
|
747
|
-
command.params['parent'] = parent unless parent.nil?
|
748
|
-
command.query['filter'] = filter unless filter.nil?
|
749
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
750
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
751
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
752
|
-
command.query['fields'] = fields unless fields.nil?
|
753
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
754
|
-
execute_or_queue_command(command, &block)
|
755
|
-
end
|
756
|
-
|
757
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
758
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
759
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
760
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
761
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
762
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
763
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
764
|
-
# corresponding to `Code.CANCELLED`.
|
765
|
-
# @param [String] name
|
766
|
-
# The name of the operation resource to be cancelled.
|
767
|
-
# @param [Google::Apis::GameservicesV1::CancelOperationRequest] cancel_operation_request_object
|
768
|
-
# @param [String] fields
|
769
|
-
# Selector specifying which fields to include in a partial response.
|
770
|
-
# @param [String] quota_user
|
771
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
772
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
773
|
-
# @param [Google::Apis::RequestOptions] options
|
774
|
-
# Request-specific options
|
775
|
-
#
|
776
|
-
# @yield [result, err] Result & error if block supplied
|
777
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
778
|
-
# @yieldparam err [StandardError] error object if request failed
|
779
|
-
#
|
780
|
-
# @return [Google::Apis::GameservicesV1::Empty]
|
781
|
-
#
|
782
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
783
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
784
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
785
|
-
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
786
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
787
|
-
command.request_representation = Google::Apis::GameservicesV1::CancelOperationRequest::Representation
|
788
|
-
command.request_object = cancel_operation_request_object
|
789
|
-
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
790
|
-
command.response_class = Google::Apis::GameservicesV1::Empty
|
791
|
-
command.params['name'] = name unless name.nil?
|
792
|
-
command.query['fields'] = fields unless fields.nil?
|
793
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
794
|
-
execute_or_queue_command(command, &block)
|
795
|
-
end
|
796
|
-
|
797
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
798
|
-
# longer interested in the operation result. It does not cancel the operation.
|
799
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
800
|
-
# UNIMPLEMENTED`.
|
801
|
-
# @param [String] name
|
802
|
-
# The name of the operation resource to be deleted.
|
803
|
-
# @param [String] fields
|
804
|
-
# Selector specifying which fields to include in a partial response.
|
805
|
-
# @param [String] quota_user
|
806
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
807
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
808
|
-
# @param [Google::Apis::RequestOptions] options
|
809
|
-
# Request-specific options
|
810
|
-
#
|
811
|
-
# @yield [result, err] Result & error if block supplied
|
812
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Empty] parsed result object
|
813
|
-
# @yieldparam err [StandardError] error object if request failed
|
814
|
-
#
|
815
|
-
# @return [Google::Apis::GameservicesV1::Empty]
|
816
|
-
#
|
817
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
818
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
819
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
820
|
-
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
821
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
822
|
-
command.response_representation = Google::Apis::GameservicesV1::Empty::Representation
|
823
|
-
command.response_class = Google::Apis::GameservicesV1::Empty
|
824
|
-
command.params['name'] = name unless name.nil?
|
825
|
-
command.query['fields'] = fields unless fields.nil?
|
826
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
827
|
-
execute_or_queue_command(command, &block)
|
828
|
-
end
|
829
|
-
|
830
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
831
|
-
# to poll the operation result at intervals as recommended by the API service.
|
832
|
-
# @param [String] name
|
833
|
-
# The name of the operation resource.
|
834
|
-
# @param [String] fields
|
835
|
-
# Selector specifying which fields to include in a partial response.
|
836
|
-
# @param [String] quota_user
|
837
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
838
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
839
|
-
# @param [Google::Apis::RequestOptions] options
|
840
|
-
# Request-specific options
|
841
|
-
#
|
842
|
-
# @yield [result, err] Result & error if block supplied
|
843
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
844
|
-
# @yieldparam err [StandardError] error object if request failed
|
845
|
-
#
|
846
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
847
|
-
#
|
848
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
849
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
850
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
851
|
-
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
852
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
853
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
854
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
855
|
-
command.params['name'] = name unless name.nil?
|
856
|
-
command.query['fields'] = fields unless fields.nil?
|
857
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
858
|
-
execute_or_queue_command(command, &block)
|
859
|
-
end
|
860
|
-
|
861
|
-
# Lists operations that match the specified filter in the request. If the server
|
862
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
863
|
-
# binding allows API services to override the binding to use different resource
|
864
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
865
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
866
|
-
# service configuration. For backwards compatibility, the default name includes
|
867
|
-
# the operations collection id, however overriding users must ensure the name
|
868
|
-
# binding is the parent resource, without the operations collection id.
|
869
|
-
# @param [String] name
|
870
|
-
# The name of the operation's parent resource.
|
871
|
-
# @param [String] filter
|
872
|
-
# The standard list filter.
|
873
|
-
# @param [Fixnum] page_size
|
874
|
-
# The standard list page size.
|
875
|
-
# @param [String] page_token
|
876
|
-
# The standard list page token.
|
877
|
-
# @param [String] fields
|
878
|
-
# Selector specifying which fields to include in a partial response.
|
879
|
-
# @param [String] quota_user
|
880
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
881
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
882
|
-
# @param [Google::Apis::RequestOptions] options
|
883
|
-
# Request-specific options
|
884
|
-
#
|
885
|
-
# @yield [result, err] Result & error if block supplied
|
886
|
-
# @yieldparam result [Google::Apis::GameservicesV1::ListOperationsResponse] parsed result object
|
887
|
-
# @yieldparam err [StandardError] error object if request failed
|
888
|
-
#
|
889
|
-
# @return [Google::Apis::GameservicesV1::ListOperationsResponse]
|
381
|
+
# @return [Google::Apis::GameservicesV1::ListOperationsResponse]
|
890
382
|
#
|
891
383
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
892
384
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -903,569 +395,6 @@ module Google
|
|
903
395
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
904
396
|
execute_or_queue_command(command, &block)
|
905
397
|
end
|
906
|
-
|
907
|
-
# Creates a new realm in a given project and location.
|
908
|
-
# @param [String] parent
|
909
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
910
|
-
# locations/`locationId``.
|
911
|
-
# @param [Google::Apis::GameservicesV1::Realm] realm_object
|
912
|
-
# @param [String] realm_id
|
913
|
-
# Required. The ID of the realm resource to create.
|
914
|
-
# @param [String] fields
|
915
|
-
# Selector specifying which fields to include in a partial response.
|
916
|
-
# @param [String] quota_user
|
917
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
918
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
919
|
-
# @param [Google::Apis::RequestOptions] options
|
920
|
-
# Request-specific options
|
921
|
-
#
|
922
|
-
# @yield [result, err] Result & error if block supplied
|
923
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
924
|
-
# @yieldparam err [StandardError] error object if request failed
|
925
|
-
#
|
926
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
927
|
-
#
|
928
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
929
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
930
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
931
|
-
def create_project_location_realm(parent, realm_object = nil, realm_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
932
|
-
command = make_simple_command(:post, 'v1/{+parent}/realms', options)
|
933
|
-
command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
|
934
|
-
command.request_object = realm_object
|
935
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
936
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
937
|
-
command.params['parent'] = parent unless parent.nil?
|
938
|
-
command.query['realmId'] = realm_id unless realm_id.nil?
|
939
|
-
command.query['fields'] = fields unless fields.nil?
|
940
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
941
|
-
execute_or_queue_command(command, &block)
|
942
|
-
end
|
943
|
-
|
944
|
-
# Deletes a single realm.
|
945
|
-
# @param [String] name
|
946
|
-
# Required. The name of the realm to delete, in the following form: `projects/`
|
947
|
-
# project`/locations/`locationId`/realms/`realmId``.
|
948
|
-
# @param [String] fields
|
949
|
-
# Selector specifying which fields to include in a partial response.
|
950
|
-
# @param [String] quota_user
|
951
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
952
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
953
|
-
# @param [Google::Apis::RequestOptions] options
|
954
|
-
# Request-specific options
|
955
|
-
#
|
956
|
-
# @yield [result, err] Result & error if block supplied
|
957
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
958
|
-
# @yieldparam err [StandardError] error object if request failed
|
959
|
-
#
|
960
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
961
|
-
#
|
962
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
963
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
964
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
965
|
-
def delete_project_location_realm(name, fields: nil, quota_user: nil, options: nil, &block)
|
966
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
967
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
968
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
969
|
-
command.params['name'] = name unless name.nil?
|
970
|
-
command.query['fields'] = fields unless fields.nil?
|
971
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
972
|
-
execute_or_queue_command(command, &block)
|
973
|
-
end
|
974
|
-
|
975
|
-
# Gets details of a single realm.
|
976
|
-
# @param [String] name
|
977
|
-
# Required. The name of the realm to retrieve, in the following form: `projects/`
|
978
|
-
# project`/locations/`locationId`/realms/`realmId``.
|
979
|
-
# @param [String] fields
|
980
|
-
# Selector specifying which fields to include in a partial response.
|
981
|
-
# @param [String] quota_user
|
982
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
983
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
984
|
-
# @param [Google::Apis::RequestOptions] options
|
985
|
-
# Request-specific options
|
986
|
-
#
|
987
|
-
# @yield [result, err] Result & error if block supplied
|
988
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Realm] parsed result object
|
989
|
-
# @yieldparam err [StandardError] error object if request failed
|
990
|
-
#
|
991
|
-
# @return [Google::Apis::GameservicesV1::Realm]
|
992
|
-
#
|
993
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
994
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
995
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
996
|
-
def get_project_location_realm(name, fields: nil, quota_user: nil, options: nil, &block)
|
997
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
998
|
-
command.response_representation = Google::Apis::GameservicesV1::Realm::Representation
|
999
|
-
command.response_class = Google::Apis::GameservicesV1::Realm
|
1000
|
-
command.params['name'] = name unless name.nil?
|
1001
|
-
command.query['fields'] = fields unless fields.nil?
|
1002
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1003
|
-
execute_or_queue_command(command, &block)
|
1004
|
-
end
|
1005
|
-
|
1006
|
-
# Lists realms in a given project and location.
|
1007
|
-
# @param [String] parent
|
1008
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
1009
|
-
# locations/`locationId``.
|
1010
|
-
# @param [String] filter
|
1011
|
-
# Optional. The filter to apply to list results (see [Filtering](https://google.
|
1012
|
-
# aip.dev/160)).
|
1013
|
-
# @param [String] order_by
|
1014
|
-
# Optional. Specifies the ordering of results following [Cloud API syntax](https:
|
1015
|
-
# //cloud.google.com/apis/design/design_patterns#sorting_order).
|
1016
|
-
# @param [Fixnum] page_size
|
1017
|
-
# Optional. The maximum number of items to return. If unspecified, the server
|
1018
|
-
# picks an appropriate default. The server may return fewer items than requested.
|
1019
|
-
# A caller should only rely on the response's next_page_token to determine if
|
1020
|
-
# there are more realms left to be queried.
|
1021
|
-
# @param [String] page_token
|
1022
|
-
# Optional. The next_page_token value returned from a previous list request, if
|
1023
|
-
# any.
|
1024
|
-
# @param [String] fields
|
1025
|
-
# Selector specifying which fields to include in a partial response.
|
1026
|
-
# @param [String] quota_user
|
1027
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1028
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1029
|
-
# @param [Google::Apis::RequestOptions] options
|
1030
|
-
# Request-specific options
|
1031
|
-
#
|
1032
|
-
# @yield [result, err] Result & error if block supplied
|
1033
|
-
# @yieldparam result [Google::Apis::GameservicesV1::ListRealmsResponse] parsed result object
|
1034
|
-
# @yieldparam err [StandardError] error object if request failed
|
1035
|
-
#
|
1036
|
-
# @return [Google::Apis::GameservicesV1::ListRealmsResponse]
|
1037
|
-
#
|
1038
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1039
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1040
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1041
|
-
def list_project_location_realms(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1042
|
-
command = make_simple_command(:get, 'v1/{+parent}/realms', options)
|
1043
|
-
command.response_representation = Google::Apis::GameservicesV1::ListRealmsResponse::Representation
|
1044
|
-
command.response_class = Google::Apis::GameservicesV1::ListRealmsResponse
|
1045
|
-
command.params['parent'] = parent unless parent.nil?
|
1046
|
-
command.query['filter'] = filter unless filter.nil?
|
1047
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
1048
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1049
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1050
|
-
command.query['fields'] = fields unless fields.nil?
|
1051
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1052
|
-
execute_or_queue_command(command, &block)
|
1053
|
-
end
|
1054
|
-
|
1055
|
-
# Patches a single realm.
|
1056
|
-
# @param [String] name
|
1057
|
-
# The resource name of the realm, in the following form: `projects/`project`/
|
1058
|
-
# locations/`locationId`/realms/`realmId``. For example, `projects/my-project/
|
1059
|
-
# locations/global/realms/my-realm`.
|
1060
|
-
# @param [Google::Apis::GameservicesV1::Realm] realm_object
|
1061
|
-
# @param [String] update_mask
|
1062
|
-
# Required. The update mask to apply to the resource. For more information, see
|
1063
|
-
# the [`FieldMask` definition](https://developers.google.com/protocol-buffers/
|
1064
|
-
# docs/reference/google.protobuf#fieldmask).
|
1065
|
-
# @param [String] fields
|
1066
|
-
# Selector specifying which fields to include in a partial response.
|
1067
|
-
# @param [String] quota_user
|
1068
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1069
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1070
|
-
# @param [Google::Apis::RequestOptions] options
|
1071
|
-
# Request-specific options
|
1072
|
-
#
|
1073
|
-
# @yield [result, err] Result & error if block supplied
|
1074
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
1075
|
-
# @yieldparam err [StandardError] error object if request failed
|
1076
|
-
#
|
1077
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
1078
|
-
#
|
1079
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1080
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1081
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1082
|
-
def patch_project_location_realm(name, realm_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1083
|
-
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1084
|
-
command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
|
1085
|
-
command.request_object = realm_object
|
1086
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
1087
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
1088
|
-
command.params['name'] = name unless name.nil?
|
1089
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1090
|
-
command.query['fields'] = fields unless fields.nil?
|
1091
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1092
|
-
execute_or_queue_command(command, &block)
|
1093
|
-
end
|
1094
|
-
|
1095
|
-
# Previews patches to a single realm.
|
1096
|
-
# @param [String] name
|
1097
|
-
# The resource name of the realm, in the following form: `projects/`project`/
|
1098
|
-
# locations/`locationId`/realms/`realmId``. For example, `projects/my-project/
|
1099
|
-
# locations/global/realms/my-realm`.
|
1100
|
-
# @param [Google::Apis::GameservicesV1::Realm] realm_object
|
1101
|
-
# @param [String] preview_time
|
1102
|
-
# Optional. The target timestamp to compute the preview.
|
1103
|
-
# @param [String] update_mask
|
1104
|
-
# Required. The update mask to apply to the resource. For more information, see
|
1105
|
-
# the [`FieldMask` definition](https://developers.google.com/protocol-buffers/
|
1106
|
-
# docs/reference/google.protobuf#fieldmask).
|
1107
|
-
# @param [String] fields
|
1108
|
-
# Selector specifying which fields to include in a partial response.
|
1109
|
-
# @param [String] quota_user
|
1110
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1111
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1112
|
-
# @param [Google::Apis::RequestOptions] options
|
1113
|
-
# Request-specific options
|
1114
|
-
#
|
1115
|
-
# @yield [result, err] Result & error if block supplied
|
1116
|
-
# @yieldparam result [Google::Apis::GameservicesV1::PreviewRealmUpdateResponse] parsed result object
|
1117
|
-
# @yieldparam err [StandardError] error object if request failed
|
1118
|
-
#
|
1119
|
-
# @return [Google::Apis::GameservicesV1::PreviewRealmUpdateResponse]
|
1120
|
-
#
|
1121
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1122
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1123
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1124
|
-
def preview_project_location_realm_update(name, realm_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1125
|
-
command = make_simple_command(:patch, 'v1/{+name}:previewUpdate', options)
|
1126
|
-
command.request_representation = Google::Apis::GameservicesV1::Realm::Representation
|
1127
|
-
command.request_object = realm_object
|
1128
|
-
command.response_representation = Google::Apis::GameservicesV1::PreviewRealmUpdateResponse::Representation
|
1129
|
-
command.response_class = Google::Apis::GameservicesV1::PreviewRealmUpdateResponse
|
1130
|
-
command.params['name'] = name unless name.nil?
|
1131
|
-
command.query['previewTime'] = preview_time unless preview_time.nil?
|
1132
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1133
|
-
command.query['fields'] = fields unless fields.nil?
|
1134
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1135
|
-
execute_or_queue_command(command, &block)
|
1136
|
-
end
|
1137
|
-
|
1138
|
-
# Creates a new game server cluster in a given project and location.
|
1139
|
-
# @param [String] parent
|
1140
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
1141
|
-
# locations/`locationId`/realms/`realmId``.
|
1142
|
-
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
|
1143
|
-
# @param [String] game_server_cluster_id
|
1144
|
-
# Required. The ID of the game server cluster resource to create.
|
1145
|
-
# @param [String] fields
|
1146
|
-
# Selector specifying which fields to include in a partial response.
|
1147
|
-
# @param [String] quota_user
|
1148
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1149
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1150
|
-
# @param [Google::Apis::RequestOptions] options
|
1151
|
-
# Request-specific options
|
1152
|
-
#
|
1153
|
-
# @yield [result, err] Result & error if block supplied
|
1154
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
1155
|
-
# @yieldparam err [StandardError] error object if request failed
|
1156
|
-
#
|
1157
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
1158
|
-
#
|
1159
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1160
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1161
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1162
|
-
def create_project_location_realm_game_server_cluster(parent, game_server_cluster_object = nil, game_server_cluster_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1163
|
-
command = make_simple_command(:post, 'v1/{+parent}/gameServerClusters', options)
|
1164
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
|
1165
|
-
command.request_object = game_server_cluster_object
|
1166
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
1167
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
1168
|
-
command.params['parent'] = parent unless parent.nil?
|
1169
|
-
command.query['gameServerClusterId'] = game_server_cluster_id unless game_server_cluster_id.nil?
|
1170
|
-
command.query['fields'] = fields unless fields.nil?
|
1171
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1172
|
-
execute_or_queue_command(command, &block)
|
1173
|
-
end
|
1174
|
-
|
1175
|
-
# Deletes a single game server cluster.
|
1176
|
-
# @param [String] name
|
1177
|
-
# Required. The name of the game server cluster to delete, in the following form:
|
1178
|
-
# `projects/`project`/locations/`locationId`/gameServerClusters/`
|
1179
|
-
# gameServerClusterId``.
|
1180
|
-
# @param [String] fields
|
1181
|
-
# Selector specifying which fields to include in a partial response.
|
1182
|
-
# @param [String] quota_user
|
1183
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1184
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1185
|
-
# @param [Google::Apis::RequestOptions] options
|
1186
|
-
# Request-specific options
|
1187
|
-
#
|
1188
|
-
# @yield [result, err] Result & error if block supplied
|
1189
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
1190
|
-
# @yieldparam err [StandardError] error object if request failed
|
1191
|
-
#
|
1192
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
1193
|
-
#
|
1194
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1195
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1196
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1197
|
-
def delete_project_location_realm_game_server_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
1198
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1199
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
1200
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
1201
|
-
command.params['name'] = name unless name.nil?
|
1202
|
-
command.query['fields'] = fields unless fields.nil?
|
1203
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1204
|
-
execute_or_queue_command(command, &block)
|
1205
|
-
end
|
1206
|
-
|
1207
|
-
# Gets details of a single game server cluster.
|
1208
|
-
# @param [String] name
|
1209
|
-
# Required. The name of the game server cluster to retrieve, in the following
|
1210
|
-
# form: `projects/`project`/locations/`locationId`/realms/`realmId`/
|
1211
|
-
# gameServerClusters/`gameServerClusterId``.
|
1212
|
-
# @param [String] view
|
1213
|
-
# Optional. View for the returned GameServerCluster objects. When `FULL` is
|
1214
|
-
# specified, the `cluster_state` field is also returned in the GameServerCluster
|
1215
|
-
# object, which includes the state of the referenced Kubernetes cluster such as
|
1216
|
-
# versions and provider info. The default/unset value is `
|
1217
|
-
# GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED`, the same as `BASIC`, which does not
|
1218
|
-
# return the `cluster_state` field.
|
1219
|
-
# @param [String] fields
|
1220
|
-
# Selector specifying which fields to include in a partial response.
|
1221
|
-
# @param [String] quota_user
|
1222
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1223
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1224
|
-
# @param [Google::Apis::RequestOptions] options
|
1225
|
-
# Request-specific options
|
1226
|
-
#
|
1227
|
-
# @yield [result, err] Result & error if block supplied
|
1228
|
-
# @yieldparam result [Google::Apis::GameservicesV1::GameServerCluster] parsed result object
|
1229
|
-
# @yieldparam err [StandardError] error object if request failed
|
1230
|
-
#
|
1231
|
-
# @return [Google::Apis::GameservicesV1::GameServerCluster]
|
1232
|
-
#
|
1233
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1234
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1235
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1236
|
-
def get_project_location_realm_game_server_cluster(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1237
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
1238
|
-
command.response_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
|
1239
|
-
command.response_class = Google::Apis::GameservicesV1::GameServerCluster
|
1240
|
-
command.params['name'] = name unless name.nil?
|
1241
|
-
command.query['view'] = view unless view.nil?
|
1242
|
-
command.query['fields'] = fields unless fields.nil?
|
1243
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1244
|
-
execute_or_queue_command(command, &block)
|
1245
|
-
end
|
1246
|
-
|
1247
|
-
# Lists game server clusters in a given project and location.
|
1248
|
-
# @param [String] parent
|
1249
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
1250
|
-
# locations/`locationId`/realms/`realmId``.
|
1251
|
-
# @param [String] filter
|
1252
|
-
# Optional. The filter to apply to list results (see [Filtering](https://google.
|
1253
|
-
# aip.dev/160)).
|
1254
|
-
# @param [String] order_by
|
1255
|
-
# Optional. Specifies the ordering of results following [Cloud API syntax](https:
|
1256
|
-
# //cloud.google.com/apis/design/design_patterns#sorting_order).
|
1257
|
-
# @param [Fixnum] page_size
|
1258
|
-
# Optional. The maximum number of items to return. If unspecified, the server
|
1259
|
-
# picks an appropriate default. The server may return fewer items than requested.
|
1260
|
-
# A caller should only rely on response's next_page_token to determine if there
|
1261
|
-
# are more GameServerClusters left to be queried.
|
1262
|
-
# @param [String] page_token
|
1263
|
-
# Optional. The next_page_token value returned from a previous list request, if
|
1264
|
-
# any.
|
1265
|
-
# @param [String] view
|
1266
|
-
# Optional. View for the returned GameServerCluster objects. When `FULL` is
|
1267
|
-
# specified, the `cluster_state` field is also returned in the GameServerCluster
|
1268
|
-
# object, which includes the state of the referenced Kubernetes cluster such as
|
1269
|
-
# versions and provider info. The default/unset value is `
|
1270
|
-
# GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED`, the same as `BASIC`, which does not
|
1271
|
-
# return the `cluster_state` field.
|
1272
|
-
# @param [String] fields
|
1273
|
-
# Selector specifying which fields to include in a partial response.
|
1274
|
-
# @param [String] quota_user
|
1275
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1276
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1277
|
-
# @param [Google::Apis::RequestOptions] options
|
1278
|
-
# Request-specific options
|
1279
|
-
#
|
1280
|
-
# @yield [result, err] Result & error if block supplied
|
1281
|
-
# @yieldparam result [Google::Apis::GameservicesV1::ListGameServerClustersResponse] parsed result object
|
1282
|
-
# @yieldparam err [StandardError] error object if request failed
|
1283
|
-
#
|
1284
|
-
# @return [Google::Apis::GameservicesV1::ListGameServerClustersResponse]
|
1285
|
-
#
|
1286
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1287
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1288
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1289
|
-
def list_project_location_realm_game_server_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1290
|
-
command = make_simple_command(:get, 'v1/{+parent}/gameServerClusters', options)
|
1291
|
-
command.response_representation = Google::Apis::GameservicesV1::ListGameServerClustersResponse::Representation
|
1292
|
-
command.response_class = Google::Apis::GameservicesV1::ListGameServerClustersResponse
|
1293
|
-
command.params['parent'] = parent unless parent.nil?
|
1294
|
-
command.query['filter'] = filter unless filter.nil?
|
1295
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
1296
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1297
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1298
|
-
command.query['view'] = view unless view.nil?
|
1299
|
-
command.query['fields'] = fields unless fields.nil?
|
1300
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1301
|
-
execute_or_queue_command(command, &block)
|
1302
|
-
end
|
1303
|
-
|
1304
|
-
# Patches a single game server cluster.
|
1305
|
-
# @param [String] name
|
1306
|
-
# Required. The resource name of the game server cluster, in the following form:
|
1307
|
-
# `projects/`project`/locations/`locationId`/realms/`realmId`/gameServerClusters/
|
1308
|
-
# `gameServerClusterId``. For example, `projects/my-project/locations/global/
|
1309
|
-
# realms/zanzibar/gameServerClusters/my-gke-cluster`.
|
1310
|
-
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
|
1311
|
-
# @param [String] update_mask
|
1312
|
-
# Required. The update mask to apply to the resource. At least one path must be
|
1313
|
-
# supplied in this field. For more information, see the [`FieldMask` definition](
|
1314
|
-
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
1315
|
-
# fieldmask).
|
1316
|
-
# @param [String] fields
|
1317
|
-
# Selector specifying which fields to include in a partial response.
|
1318
|
-
# @param [String] quota_user
|
1319
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1320
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1321
|
-
# @param [Google::Apis::RequestOptions] options
|
1322
|
-
# Request-specific options
|
1323
|
-
#
|
1324
|
-
# @yield [result, err] Result & error if block supplied
|
1325
|
-
# @yieldparam result [Google::Apis::GameservicesV1::Operation] parsed result object
|
1326
|
-
# @yieldparam err [StandardError] error object if request failed
|
1327
|
-
#
|
1328
|
-
# @return [Google::Apis::GameservicesV1::Operation]
|
1329
|
-
#
|
1330
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1331
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1332
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1333
|
-
def patch_project_location_realm_game_server_cluster(name, game_server_cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1334
|
-
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1335
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
|
1336
|
-
command.request_object = game_server_cluster_object
|
1337
|
-
command.response_representation = Google::Apis::GameservicesV1::Operation::Representation
|
1338
|
-
command.response_class = Google::Apis::GameservicesV1::Operation
|
1339
|
-
command.params['name'] = name unless name.nil?
|
1340
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1341
|
-
command.query['fields'] = fields unless fields.nil?
|
1342
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1343
|
-
execute_or_queue_command(command, &block)
|
1344
|
-
end
|
1345
|
-
|
1346
|
-
# Previews creation of a new game server cluster in a given project and location.
|
1347
|
-
# @param [String] parent
|
1348
|
-
# Required. The parent resource name, in the following form: `projects/`project`/
|
1349
|
-
# locations/`locationId`/realms/`realmId``.
|
1350
|
-
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
|
1351
|
-
# @param [String] game_server_cluster_id
|
1352
|
-
# Required. The ID of the game server cluster resource to create.
|
1353
|
-
# @param [String] preview_time
|
1354
|
-
# Optional. The target timestamp to compute the preview.
|
1355
|
-
# @param [String] view
|
1356
|
-
# Optional. This field is deprecated. Preview will always return
|
1357
|
-
# KubernetesClusterState.
|
1358
|
-
# @param [String] fields
|
1359
|
-
# Selector specifying which fields to include in a partial response.
|
1360
|
-
# @param [String] quota_user
|
1361
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1362
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1363
|
-
# @param [Google::Apis::RequestOptions] options
|
1364
|
-
# Request-specific options
|
1365
|
-
#
|
1366
|
-
# @yield [result, err] Result & error if block supplied
|
1367
|
-
# @yieldparam result [Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse] parsed result object
|
1368
|
-
# @yieldparam err [StandardError] error object if request failed
|
1369
|
-
#
|
1370
|
-
# @return [Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse]
|
1371
|
-
#
|
1372
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1373
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1374
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1375
|
-
def preview_project_location_realm_game_server_cluster_create(parent, game_server_cluster_object = nil, game_server_cluster_id: nil, preview_time: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1376
|
-
command = make_simple_command(:post, 'v1/{+parent}/gameServerClusters:previewCreate', options)
|
1377
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
|
1378
|
-
command.request_object = game_server_cluster_object
|
1379
|
-
command.response_representation = Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse::Representation
|
1380
|
-
command.response_class = Google::Apis::GameservicesV1::PreviewCreateGameServerClusterResponse
|
1381
|
-
command.params['parent'] = parent unless parent.nil?
|
1382
|
-
command.query['gameServerClusterId'] = game_server_cluster_id unless game_server_cluster_id.nil?
|
1383
|
-
command.query['previewTime'] = preview_time unless preview_time.nil?
|
1384
|
-
command.query['view'] = view unless view.nil?
|
1385
|
-
command.query['fields'] = fields unless fields.nil?
|
1386
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1387
|
-
execute_or_queue_command(command, &block)
|
1388
|
-
end
|
1389
|
-
|
1390
|
-
# Previews deletion of a single game server cluster.
|
1391
|
-
# @param [String] name
|
1392
|
-
# Required. The name of the game server cluster to delete, in the following form:
|
1393
|
-
# `projects/`project`/locations/`locationId`/gameServerClusters/`
|
1394
|
-
# gameServerClusterId``.
|
1395
|
-
# @param [String] preview_time
|
1396
|
-
# Optional. The target timestamp to compute the preview.
|
1397
|
-
# @param [String] fields
|
1398
|
-
# Selector specifying which fields to include in a partial response.
|
1399
|
-
# @param [String] quota_user
|
1400
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1401
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1402
|
-
# @param [Google::Apis::RequestOptions] options
|
1403
|
-
# Request-specific options
|
1404
|
-
#
|
1405
|
-
# @yield [result, err] Result & error if block supplied
|
1406
|
-
# @yieldparam result [Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse] parsed result object
|
1407
|
-
# @yieldparam err [StandardError] error object if request failed
|
1408
|
-
#
|
1409
|
-
# @return [Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse]
|
1410
|
-
#
|
1411
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1412
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1413
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1414
|
-
def preview_project_location_realm_game_server_cluster_delete(name, preview_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1415
|
-
command = make_simple_command(:delete, 'v1/{+name}:previewDelete', options)
|
1416
|
-
command.response_representation = Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse::Representation
|
1417
|
-
command.response_class = Google::Apis::GameservicesV1::PreviewDeleteGameServerClusterResponse
|
1418
|
-
command.params['name'] = name unless name.nil?
|
1419
|
-
command.query['previewTime'] = preview_time unless preview_time.nil?
|
1420
|
-
command.query['fields'] = fields unless fields.nil?
|
1421
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1422
|
-
execute_or_queue_command(command, &block)
|
1423
|
-
end
|
1424
|
-
|
1425
|
-
# Previews updating a GameServerCluster.
|
1426
|
-
# @param [String] name
|
1427
|
-
# Required. The resource name of the game server cluster, in the following form:
|
1428
|
-
# `projects/`project`/locations/`locationId`/realms/`realmId`/gameServerClusters/
|
1429
|
-
# `gameServerClusterId``. For example, `projects/my-project/locations/global/
|
1430
|
-
# realms/zanzibar/gameServerClusters/my-gke-cluster`.
|
1431
|
-
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
|
1432
|
-
# @param [String] preview_time
|
1433
|
-
# Optional. The target timestamp to compute the preview.
|
1434
|
-
# @param [String] update_mask
|
1435
|
-
# Required. Mask of fields to update. At least one path must be supplied in this
|
1436
|
-
# field. For more information, see the [`FieldMask` definition](https://
|
1437
|
-
# developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
1438
|
-
# fieldmask).
|
1439
|
-
# @param [String] fields
|
1440
|
-
# Selector specifying which fields to include in a partial response.
|
1441
|
-
# @param [String] quota_user
|
1442
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1443
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1444
|
-
# @param [Google::Apis::RequestOptions] options
|
1445
|
-
# Request-specific options
|
1446
|
-
#
|
1447
|
-
# @yield [result, err] Result & error if block supplied
|
1448
|
-
# @yieldparam result [Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse] parsed result object
|
1449
|
-
# @yieldparam err [StandardError] error object if request failed
|
1450
|
-
#
|
1451
|
-
# @return [Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse]
|
1452
|
-
#
|
1453
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1454
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1455
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1456
|
-
def preview_project_location_realm_game_server_cluster_update(name, game_server_cluster_object = nil, preview_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1457
|
-
command = make_simple_command(:patch, 'v1/{+name}:previewUpdate', options)
|
1458
|
-
command.request_representation = Google::Apis::GameservicesV1::GameServerCluster::Representation
|
1459
|
-
command.request_object = game_server_cluster_object
|
1460
|
-
command.response_representation = Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse::Representation
|
1461
|
-
command.response_class = Google::Apis::GameservicesV1::PreviewUpdateGameServerClusterResponse
|
1462
|
-
command.params['name'] = name unless name.nil?
|
1463
|
-
command.query['previewTime'] = preview_time unless preview_time.nil?
|
1464
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1465
|
-
command.query['fields'] = fields unless fields.nil?
|
1466
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1467
|
-
execute_or_queue_command(command, &block)
|
1468
|
-
end
|
1469
398
|
|
1470
399
|
protected
|
1471
400
|
|