google-cloud-gaming-v1 0.3.2 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/gaming/v1/common_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_pb.rb +33 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/client.rb +269 -87
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +145 -33
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_clusters_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/game_server_configs_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_service/client.rb +145 -60
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +145 -33
- data/lib/google/cloud/gaming/v1/game_server_configs_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_configs_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/game_server_deployments_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/client.rb +280 -95
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +145 -33
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/game_server_deployments_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/realms_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/realms_service/client.rb +200 -72
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +145 -33
- data/lib/google/cloud/gaming/v1/realms_service_pb.rb +2 -2
- data/lib/google/cloud/gaming/v1/realms_service_services_pb.rb +1 -1
- data/lib/google/cloud/gaming/v1/version.rb +1 -1
- data/proto_docs/google/cloud/gaming/v1/common.rb +4 -5
- 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 +4 -4
@@ -42,13 +42,12 @@ module Google
|
|
42
42
|
# See {::Google::Cloud::Gaming::V1::GameServerDeploymentsService::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 GameServerDeploymentsService clients
|
48
|
+
# ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::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]
|
@@ -94,7 +93,7 @@ module Google
|
|
94
93
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
95
94
|
}
|
96
95
|
|
97
|
-
default_config.rpcs.fetch_deployment_state.timeout =
|
96
|
+
default_config.rpcs.fetch_deployment_state.timeout = 60.0
|
98
97
|
default_config.rpcs.fetch_deployment_state.retry_policy = {
|
99
98
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
100
99
|
}
|
@@ -128,19 +127,15 @@ module Google
|
|
128
127
|
##
|
129
128
|
# Create a new GameServerDeploymentsService client object.
|
130
129
|
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
# To create a new GameServerDeploymentsService client with the default
|
134
|
-
# configuration:
|
135
|
-
#
|
136
|
-
# client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
130
|
+
# @example
|
137
131
|
#
|
138
|
-
#
|
139
|
-
#
|
132
|
+
# # Create a client using the default configuration
|
133
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
140
134
|
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
135
|
+
# # Create a client using a custom configuration
|
136
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new do |config|
|
137
|
+
# config.timeout = 10.0
|
138
|
+
# end
|
144
139
|
#
|
145
140
|
# @yield [config] Configure the GameServerDeploymentsService client.
|
146
141
|
# @yieldparam config [Client::Configuration]
|
@@ -160,10 +155,9 @@ module Google
|
|
160
155
|
|
161
156
|
# Create credentials
|
162
157
|
credentials = @config.credentials
|
163
|
-
# Use self-signed JWT if the
|
158
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
164
159
|
# but only if the default endpoint does not have a region prefix.
|
165
|
-
enable_self_signed_jwt = @config.
|
166
|
-
@config.endpoint == Client.configure.endpoint &&
|
160
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
167
161
|
!@config.endpoint.split(".").first.include?("-")
|
168
162
|
credentials ||= Credentials.default scope: @config.scope,
|
169
163
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -215,7 +209,7 @@ module Google
|
|
215
209
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
216
210
|
#
|
217
211
|
# @param parent [::String]
|
218
|
-
# Required. The parent resource name
|
212
|
+
# Required. The parent resource name, in the following form:
|
219
213
|
# `projects/{project}/locations/{location}`.
|
220
214
|
# @param page_size [::Integer]
|
221
215
|
# Optional. The maximum number of items to return. If unspecified, the server
|
@@ -240,6 +234,27 @@ module Google
|
|
240
234
|
#
|
241
235
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
242
236
|
#
|
237
|
+
# @example Basic example
|
238
|
+
# require "google/cloud/gaming/v1"
|
239
|
+
#
|
240
|
+
# # Create a client object. The client can be reused for multiple calls.
|
241
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
242
|
+
#
|
243
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
244
|
+
# request = Google::Cloud::Gaming::V1::ListGameServerDeploymentsRequest.new
|
245
|
+
#
|
246
|
+
# # Call the list_game_server_deployments method.
|
247
|
+
# result = client.list_game_server_deployments request
|
248
|
+
#
|
249
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
250
|
+
# # iterate over all elements by calling #each, and the enumerable
|
251
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
252
|
+
# # methods are also available for managing paging directly.
|
253
|
+
# result.each do |response|
|
254
|
+
# # Each element is of type ::Google::Cloud::Gaming::V1::GameServerDeployment.
|
255
|
+
# p response
|
256
|
+
# end
|
257
|
+
#
|
243
258
|
def list_game_server_deployments request, options = nil
|
244
259
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
245
260
|
|
@@ -257,16 +272,20 @@ module Google
|
|
257
272
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
258
273
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
259
274
|
|
260
|
-
header_params = {
|
261
|
-
|
262
|
-
|
275
|
+
header_params = {}
|
276
|
+
if request.parent
|
277
|
+
header_params["parent"] = request.parent
|
278
|
+
end
|
279
|
+
|
263
280
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
264
281
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
265
282
|
|
266
283
|
options.apply_defaults timeout: @config.rpcs.list_game_server_deployments.timeout,
|
267
284
|
metadata: metadata,
|
268
285
|
retry_policy: @config.rpcs.list_game_server_deployments.retry_policy
|
269
|
-
|
286
|
+
|
287
|
+
options.apply_defaults timeout: @config.timeout,
|
288
|
+
metadata: @config.metadata,
|
270
289
|
retry_policy: @config.retry_policy
|
271
290
|
|
272
291
|
@game_server_deployments_service_stub.call_rpc :list_game_server_deployments, request, options: options do |response, operation|
|
@@ -297,8 +316,7 @@ module Google
|
|
297
316
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
298
317
|
#
|
299
318
|
# @param name [::String]
|
300
|
-
# Required. The name of the game server delpoyment to retrieve
|
301
|
-
#
|
319
|
+
# Required. The name of the game server delpoyment to retrieve, in the following form:
|
302
320
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
|
303
321
|
#
|
304
322
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -309,6 +327,21 @@ module Google
|
|
309
327
|
#
|
310
328
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
311
329
|
#
|
330
|
+
# @example Basic example
|
331
|
+
# require "google/cloud/gaming/v1"
|
332
|
+
#
|
333
|
+
# # Create a client object. The client can be reused for multiple calls.
|
334
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
335
|
+
#
|
336
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
337
|
+
# request = Google::Cloud::Gaming::V1::GetGameServerDeploymentRequest.new
|
338
|
+
#
|
339
|
+
# # Call the get_game_server_deployment method.
|
340
|
+
# result = client.get_game_server_deployment request
|
341
|
+
#
|
342
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::GameServerDeployment.
|
343
|
+
# p result
|
344
|
+
#
|
312
345
|
def get_game_server_deployment request, options = nil
|
313
346
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
314
347
|
|
@@ -326,16 +359,20 @@ module Google
|
|
326
359
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
327
360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
328
361
|
|
329
|
-
header_params = {
|
330
|
-
|
331
|
-
|
362
|
+
header_params = {}
|
363
|
+
if request.name
|
364
|
+
header_params["name"] = request.name
|
365
|
+
end
|
366
|
+
|
332
367
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
333
368
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
334
369
|
|
335
370
|
options.apply_defaults timeout: @config.rpcs.get_game_server_deployment.timeout,
|
336
371
|
metadata: metadata,
|
337
372
|
retry_policy: @config.rpcs.get_game_server_deployment.retry_policy
|
338
|
-
|
373
|
+
|
374
|
+
options.apply_defaults timeout: @config.timeout,
|
375
|
+
metadata: @config.metadata,
|
339
376
|
retry_policy: @config.retry_policy
|
340
377
|
|
341
378
|
@game_server_deployments_service_stub.call_rpc :get_game_server_deployment, request, options: options do |response, operation|
|
@@ -365,7 +402,7 @@ module Google
|
|
365
402
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
366
403
|
#
|
367
404
|
# @param parent [::String]
|
368
|
-
# Required. The parent resource name
|
405
|
+
# Required. The parent resource name, in the following form:
|
369
406
|
# `projects/{project}/locations/{location}`.
|
370
407
|
# @param deployment_id [::String]
|
371
408
|
# Required. The ID of the game server delpoyment resource to be created.
|
@@ -380,6 +417,28 @@ module Google
|
|
380
417
|
#
|
381
418
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
382
419
|
#
|
420
|
+
# @example Basic example
|
421
|
+
# require "google/cloud/gaming/v1"
|
422
|
+
#
|
423
|
+
# # Create a client object. The client can be reused for multiple calls.
|
424
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
425
|
+
#
|
426
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
427
|
+
# request = Google::Cloud::Gaming::V1::CreateGameServerDeploymentRequest.new
|
428
|
+
#
|
429
|
+
# # Call the create_game_server_deployment method.
|
430
|
+
# result = client.create_game_server_deployment request
|
431
|
+
#
|
432
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
433
|
+
# # object to check the status of an operation, cancel it, or wait
|
434
|
+
# # for results. Here is how to block until completion:
|
435
|
+
# result.wait_until_done! timeout: 60
|
436
|
+
# if result.response?
|
437
|
+
# p result.response
|
438
|
+
# else
|
439
|
+
# puts "Error!"
|
440
|
+
# end
|
441
|
+
#
|
383
442
|
def create_game_server_deployment request, options = nil
|
384
443
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
385
444
|
|
@@ -397,16 +456,20 @@ module Google
|
|
397
456
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
398
457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
458
|
|
400
|
-
header_params = {
|
401
|
-
|
402
|
-
|
459
|
+
header_params = {}
|
460
|
+
if request.parent
|
461
|
+
header_params["parent"] = request.parent
|
462
|
+
end
|
463
|
+
|
403
464
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
404
465
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
405
466
|
|
406
467
|
options.apply_defaults timeout: @config.rpcs.create_game_server_deployment.timeout,
|
407
468
|
metadata: metadata,
|
408
469
|
retry_policy: @config.rpcs.create_game_server_deployment.retry_policy
|
409
|
-
|
470
|
+
|
471
|
+
options.apply_defaults timeout: @config.timeout,
|
472
|
+
metadata: @config.metadata,
|
410
473
|
retry_policy: @config.retry_policy
|
411
474
|
|
412
475
|
@game_server_deployments_service_stub.call_rpc :create_game_server_deployment, request, options: options do |response, operation|
|
@@ -437,8 +500,7 @@ module Google
|
|
437
500
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
438
501
|
#
|
439
502
|
# @param name [::String]
|
440
|
-
# Required. The name of the game server delpoyment to delete
|
441
|
-
#
|
503
|
+
# Required. The name of the game server delpoyment to delete, in the following form:
|
442
504
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
|
443
505
|
#
|
444
506
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -449,6 +511,28 @@ module Google
|
|
449
511
|
#
|
450
512
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
451
513
|
#
|
514
|
+
# @example Basic example
|
515
|
+
# require "google/cloud/gaming/v1"
|
516
|
+
#
|
517
|
+
# # Create a client object. The client can be reused for multiple calls.
|
518
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
519
|
+
#
|
520
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
521
|
+
# request = Google::Cloud::Gaming::V1::DeleteGameServerDeploymentRequest.new
|
522
|
+
#
|
523
|
+
# # Call the delete_game_server_deployment method.
|
524
|
+
# result = client.delete_game_server_deployment request
|
525
|
+
#
|
526
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
527
|
+
# # object to check the status of an operation, cancel it, or wait
|
528
|
+
# # for results. Here is how to block until completion:
|
529
|
+
# result.wait_until_done! timeout: 60
|
530
|
+
# if result.response?
|
531
|
+
# p result.response
|
532
|
+
# else
|
533
|
+
# puts "Error!"
|
534
|
+
# end
|
535
|
+
#
|
452
536
|
def delete_game_server_deployment request, options = nil
|
453
537
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
454
538
|
|
@@ -466,16 +550,20 @@ module Google
|
|
466
550
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
467
551
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
468
552
|
|
469
|
-
header_params = {
|
470
|
-
|
471
|
-
|
553
|
+
header_params = {}
|
554
|
+
if request.name
|
555
|
+
header_params["name"] = request.name
|
556
|
+
end
|
557
|
+
|
472
558
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
473
559
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
474
560
|
|
475
561
|
options.apply_defaults timeout: @config.rpcs.delete_game_server_deployment.timeout,
|
476
562
|
metadata: metadata,
|
477
563
|
retry_policy: @config.rpcs.delete_game_server_deployment.retry_policy
|
478
|
-
|
564
|
+
|
565
|
+
options.apply_defaults timeout: @config.timeout,
|
566
|
+
metadata: @config.metadata,
|
479
567
|
retry_policy: @config.retry_policy
|
480
568
|
|
481
569
|
@game_server_deployments_service_stub.call_rpc :delete_game_server_deployment, request, options: options do |response, operation|
|
@@ -511,10 +599,7 @@ module Google
|
|
511
599
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
512
600
|
# Required. Mask of fields to update. At least one path must be supplied in
|
513
601
|
# this field. For the `FieldMask` definition, see
|
514
|
-
#
|
515
|
-
# https:
|
516
|
-
# //developers.google.com/protocol-buffers
|
517
|
-
# // /docs/reference/google.protobuf#fieldmask
|
602
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
518
603
|
#
|
519
604
|
# @yield [response, operation] Access the result along with the RPC operation
|
520
605
|
# @yieldparam response [::Gapic::Operation]
|
@@ -524,6 +609,28 @@ module Google
|
|
524
609
|
#
|
525
610
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
526
611
|
#
|
612
|
+
# @example Basic example
|
613
|
+
# require "google/cloud/gaming/v1"
|
614
|
+
#
|
615
|
+
# # Create a client object. The client can be reused for multiple calls.
|
616
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
617
|
+
#
|
618
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
619
|
+
# request = Google::Cloud::Gaming::V1::UpdateGameServerDeploymentRequest.new
|
620
|
+
#
|
621
|
+
# # Call the update_game_server_deployment method.
|
622
|
+
# result = client.update_game_server_deployment request
|
623
|
+
#
|
624
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
625
|
+
# # object to check the status of an operation, cancel it, or wait
|
626
|
+
# # for results. Here is how to block until completion:
|
627
|
+
# result.wait_until_done! timeout: 60
|
628
|
+
# if result.response?
|
629
|
+
# p result.response
|
630
|
+
# else
|
631
|
+
# puts "Error!"
|
632
|
+
# end
|
633
|
+
#
|
527
634
|
def update_game_server_deployment request, options = nil
|
528
635
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
529
636
|
|
@@ -541,16 +648,20 @@ module Google
|
|
541
648
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
542
649
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
543
650
|
|
544
|
-
header_params = {
|
545
|
-
|
546
|
-
|
651
|
+
header_params = {}
|
652
|
+
if request.game_server_deployment&.name
|
653
|
+
header_params["game_server_deployment.name"] = request.game_server_deployment.name
|
654
|
+
end
|
655
|
+
|
547
656
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
548
657
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
549
658
|
|
550
659
|
options.apply_defaults timeout: @config.rpcs.update_game_server_deployment.timeout,
|
551
660
|
metadata: metadata,
|
552
661
|
retry_policy: @config.rpcs.update_game_server_deployment.retry_policy
|
553
|
-
|
662
|
+
|
663
|
+
options.apply_defaults timeout: @config.timeout,
|
664
|
+
metadata: @config.metadata,
|
554
665
|
retry_policy: @config.retry_policy
|
555
666
|
|
556
667
|
@game_server_deployments_service_stub.call_rpc :update_game_server_deployment, request, options: options do |response, operation|
|
@@ -581,8 +692,7 @@ module Google
|
|
581
692
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
582
693
|
#
|
583
694
|
# @param name [::String]
|
584
|
-
# Required. The name of the game server delpoyment to retrieve
|
585
|
-
#
|
695
|
+
# Required. The name of the game server delpoyment to retrieve, in the following form:
|
586
696
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`.
|
587
697
|
#
|
588
698
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -593,6 +703,21 @@ module Google
|
|
593
703
|
#
|
594
704
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
595
705
|
#
|
706
|
+
# @example Basic example
|
707
|
+
# require "google/cloud/gaming/v1"
|
708
|
+
#
|
709
|
+
# # Create a client object. The client can be reused for multiple calls.
|
710
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
711
|
+
#
|
712
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
713
|
+
# request = Google::Cloud::Gaming::V1::GetGameServerDeploymentRolloutRequest.new
|
714
|
+
#
|
715
|
+
# # Call the get_game_server_deployment_rollout method.
|
716
|
+
# result = client.get_game_server_deployment_rollout request
|
717
|
+
#
|
718
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::GameServerDeploymentRollout.
|
719
|
+
# p result
|
720
|
+
#
|
596
721
|
def get_game_server_deployment_rollout request, options = nil
|
597
722
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
598
723
|
|
@@ -610,16 +735,20 @@ module Google
|
|
610
735
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
611
736
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
612
737
|
|
613
|
-
header_params = {
|
614
|
-
|
615
|
-
|
738
|
+
header_params = {}
|
739
|
+
if request.name
|
740
|
+
header_params["name"] = request.name
|
741
|
+
end
|
742
|
+
|
616
743
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
617
744
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
618
745
|
|
619
746
|
options.apply_defaults timeout: @config.rpcs.get_game_server_deployment_rollout.timeout,
|
620
747
|
metadata: metadata,
|
621
748
|
retry_policy: @config.rpcs.get_game_server_deployment_rollout.retry_policy
|
622
|
-
|
749
|
+
|
750
|
+
options.apply_defaults timeout: @config.timeout,
|
751
|
+
metadata: @config.metadata,
|
623
752
|
retry_policy: @config.retry_policy
|
624
753
|
|
625
754
|
@game_server_deployments_service_stub.call_rpc :get_game_server_deployment_rollout, request, options: options do |response, operation|
|
@@ -659,10 +788,7 @@ module Google
|
|
659
788
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
660
789
|
# Required. Mask of fields to update. At least one path must be supplied in
|
661
790
|
# this field. For the `FieldMask` definition, see
|
662
|
-
#
|
663
|
-
# https:
|
664
|
-
# //developers.google.com/protocol-buffers
|
665
|
-
# // /docs/reference/google.protobuf#fieldmask
|
791
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
666
792
|
#
|
667
793
|
# @yield [response, operation] Access the result along with the RPC operation
|
668
794
|
# @yieldparam response [::Gapic::Operation]
|
@@ -672,6 +798,28 @@ module Google
|
|
672
798
|
#
|
673
799
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
674
800
|
#
|
801
|
+
# @example Basic example
|
802
|
+
# require "google/cloud/gaming/v1"
|
803
|
+
#
|
804
|
+
# # Create a client object. The client can be reused for multiple calls.
|
805
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
806
|
+
#
|
807
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
808
|
+
# request = Google::Cloud::Gaming::V1::UpdateGameServerDeploymentRolloutRequest.new
|
809
|
+
#
|
810
|
+
# # Call the update_game_server_deployment_rollout method.
|
811
|
+
# result = client.update_game_server_deployment_rollout request
|
812
|
+
#
|
813
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
814
|
+
# # object to check the status of an operation, cancel it, or wait
|
815
|
+
# # for results. Here is how to block until completion:
|
816
|
+
# result.wait_until_done! timeout: 60
|
817
|
+
# if result.response?
|
818
|
+
# p result.response
|
819
|
+
# else
|
820
|
+
# puts "Error!"
|
821
|
+
# end
|
822
|
+
#
|
675
823
|
def update_game_server_deployment_rollout request, options = nil
|
676
824
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
677
825
|
|
@@ -689,16 +837,20 @@ module Google
|
|
689
837
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
690
838
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
691
839
|
|
692
|
-
header_params = {
|
693
|
-
|
694
|
-
|
840
|
+
header_params = {}
|
841
|
+
if request.rollout&.name
|
842
|
+
header_params["rollout.name"] = request.rollout.name
|
843
|
+
end
|
844
|
+
|
695
845
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
696
846
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
697
847
|
|
698
848
|
options.apply_defaults timeout: @config.rpcs.update_game_server_deployment_rollout.timeout,
|
699
849
|
metadata: metadata,
|
700
850
|
retry_policy: @config.rpcs.update_game_server_deployment_rollout.retry_policy
|
701
|
-
|
851
|
+
|
852
|
+
options.apply_defaults timeout: @config.timeout,
|
853
|
+
metadata: @config.metadata,
|
702
854
|
retry_policy: @config.retry_policy
|
703
855
|
|
704
856
|
@game_server_deployments_service_stub.call_rpc :update_game_server_deployment_rollout, request, options: options do |response, operation|
|
@@ -735,10 +887,7 @@ module Google
|
|
735
887
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
736
888
|
# Optional. Mask of fields to update. At least one path must be supplied in
|
737
889
|
# this field. For the `FieldMask` definition, see
|
738
|
-
#
|
739
|
-
# https:
|
740
|
-
# //developers.google.com/protocol-buffers
|
741
|
-
# // /docs/reference/google.protobuf#fieldmask
|
890
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
|
742
891
|
# @param preview_time [::Google::Protobuf::Timestamp, ::Hash]
|
743
892
|
# Optional. The target timestamp to compute the preview. Defaults to the immediately
|
744
893
|
# after the proposed rollout completes.
|
@@ -751,6 +900,21 @@ module Google
|
|
751
900
|
#
|
752
901
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
753
902
|
#
|
903
|
+
# @example Basic example
|
904
|
+
# require "google/cloud/gaming/v1"
|
905
|
+
#
|
906
|
+
# # Create a client object. The client can be reused for multiple calls.
|
907
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
908
|
+
#
|
909
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
910
|
+
# request = Google::Cloud::Gaming::V1::PreviewGameServerDeploymentRolloutRequest.new
|
911
|
+
#
|
912
|
+
# # Call the preview_game_server_deployment_rollout method.
|
913
|
+
# result = client.preview_game_server_deployment_rollout request
|
914
|
+
#
|
915
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::PreviewGameServerDeploymentRolloutResponse.
|
916
|
+
# p result
|
917
|
+
#
|
754
918
|
def preview_game_server_deployment_rollout request, options = nil
|
755
919
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
756
920
|
|
@@ -768,16 +932,20 @@ module Google
|
|
768
932
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
769
933
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
770
934
|
|
771
|
-
header_params = {
|
772
|
-
|
773
|
-
|
935
|
+
header_params = {}
|
936
|
+
if request.rollout&.name
|
937
|
+
header_params["rollout.name"] = request.rollout.name
|
938
|
+
end
|
939
|
+
|
774
940
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
775
941
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
776
942
|
|
777
943
|
options.apply_defaults timeout: @config.rpcs.preview_game_server_deployment_rollout.timeout,
|
778
944
|
metadata: metadata,
|
779
945
|
retry_policy: @config.rpcs.preview_game_server_deployment_rollout.retry_policy
|
780
|
-
|
946
|
+
|
947
|
+
options.apply_defaults timeout: @config.timeout,
|
948
|
+
metadata: @config.metadata,
|
781
949
|
retry_policy: @config.retry_policy
|
782
950
|
|
783
951
|
@game_server_deployments_service_stub.call_rpc :preview_game_server_deployment_rollout, request, options: options do |response, operation|
|
@@ -809,8 +977,7 @@ module Google
|
|
809
977
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
810
978
|
#
|
811
979
|
# @param name [::String]
|
812
|
-
# Required. The name of the game server delpoyment
|
813
|
-
#
|
980
|
+
# Required. The name of the game server delpoyment, in the following form:
|
814
981
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`.
|
815
982
|
#
|
816
983
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -821,6 +988,21 @@ module Google
|
|
821
988
|
#
|
822
989
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
823
990
|
#
|
991
|
+
# @example Basic example
|
992
|
+
# require "google/cloud/gaming/v1"
|
993
|
+
#
|
994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
995
|
+
# client = Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
|
996
|
+
#
|
997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
998
|
+
# request = Google::Cloud::Gaming::V1::FetchDeploymentStateRequest.new
|
999
|
+
#
|
1000
|
+
# # Call the fetch_deployment_state method.
|
1001
|
+
# result = client.fetch_deployment_state request
|
1002
|
+
#
|
1003
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::FetchDeploymentStateResponse.
|
1004
|
+
# p result
|
1005
|
+
#
|
824
1006
|
def fetch_deployment_state request, options = nil
|
825
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
826
1008
|
|
@@ -838,16 +1020,20 @@ module Google
|
|
838
1020
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
839
1021
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
840
1022
|
|
841
|
-
header_params = {
|
842
|
-
|
843
|
-
|
1023
|
+
header_params = {}
|
1024
|
+
if request.name
|
1025
|
+
header_params["name"] = request.name
|
1026
|
+
end
|
1027
|
+
|
844
1028
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
845
1029
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
846
1030
|
|
847
1031
|
options.apply_defaults timeout: @config.rpcs.fetch_deployment_state.timeout,
|
848
1032
|
metadata: metadata,
|
849
1033
|
retry_policy: @config.rpcs.fetch_deployment_state.retry_policy
|
850
|
-
|
1034
|
+
|
1035
|
+
options.apply_defaults timeout: @config.timeout,
|
1036
|
+
metadata: @config.metadata,
|
851
1037
|
retry_policy: @config.retry_policy
|
852
1038
|
|
853
1039
|
@game_server_deployments_service_stub.call_rpc :fetch_deployment_state, request, options: options do |response, operation|
|
@@ -871,22 +1057,21 @@ module Google
|
|
871
1057
|
# Configuration can be applied globally to all clients, or to a single client
|
872
1058
|
# on construction.
|
873
1059
|
#
|
874
|
-
#
|
875
|
-
#
|
876
|
-
#
|
877
|
-
# to 20 seconds,
|
878
|
-
#
|
879
|
-
#
|
880
|
-
#
|
881
|
-
#
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
# end
|
1060
|
+
# @example
|
1061
|
+
#
|
1062
|
+
# # Modify the global config, setting the timeout for
|
1063
|
+
# # list_game_server_deployments to 20 seconds,
|
1064
|
+
# # and all remaining timeouts to 10 seconds.
|
1065
|
+
# ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.configure do |config|
|
1066
|
+
# config.timeout = 10.0
|
1067
|
+
# config.rpcs.list_game_server_deployments.timeout = 20.0
|
1068
|
+
# end
|
1069
|
+
#
|
1070
|
+
# # Apply the above configuration only to a new client.
|
1071
|
+
# client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new do |config|
|
1072
|
+
# config.timeout = 10.0
|
1073
|
+
# config.rpcs.list_game_server_deployments.timeout = 20.0
|
1074
|
+
# end
|
890
1075
|
#
|
891
1076
|
# @!attribute [rw] endpoint
|
892
1077
|
# The hostname or hostname:port of the service endpoint.
|