google-cloud-gaming-v1 0.3.3 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- 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 +217 -43
- data/lib/google/cloud/gaming/v1/game_server_clusters_service/operations.rb +115 -12
- 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 +105 -20
- data/lib/google/cloud/gaming/v1/game_server_configs_service/operations.rb +115 -12
- 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 +225 -50
- data/lib/google/cloud/gaming/v1/game_server_deployments_service/operations.rb +115 -12
- 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 +154 -30
- data/lib/google/cloud/gaming/v1/realms_service/operations.rb +115 -12
- 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/api/resource.rb +10 -71
- 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 +3 -3
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_clusters_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/cloud/gaming/v1/game_server_clusters_pb'
|
9
7
|
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gaming/v1/game_server_clusters_service.proto", :syntax => :proto3) do
|
12
12
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_configs.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/gaming/v1/common_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/gaming/v1/game_server_configs.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.gaming.v1.ListGameServerConfigsRequest" do
|
@@ -149,6 +149,7 @@ module Google
|
|
149
149
|
|
150
150
|
@operations_client = Operations.new do |config|
|
151
151
|
config.credentials = credentials
|
152
|
+
config.quota_project = @quota_project_id
|
152
153
|
config.endpoint = @config.endpoint
|
153
154
|
end
|
154
155
|
|
@@ -190,8 +191,7 @@ module Google
|
|
190
191
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
191
192
|
#
|
192
193
|
# @param parent [::String]
|
193
|
-
# Required. The parent resource name
|
194
|
-
#
|
194
|
+
# Required. The parent resource name, in the following form:
|
195
195
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`.
|
196
196
|
# @param page_size [::Integer]
|
197
197
|
# Optional. The maximum number of items to return. If unspecified, server
|
@@ -215,6 +215,27 @@ module Google
|
|
215
215
|
#
|
216
216
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
217
|
#
|
218
|
+
# @example Basic example
|
219
|
+
# require "google/cloud/gaming/v1"
|
220
|
+
#
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
222
|
+
# client = Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
|
223
|
+
#
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
225
|
+
# request = Google::Cloud::Gaming::V1::ListGameServerConfigsRequest.new
|
226
|
+
#
|
227
|
+
# # Call the list_game_server_configs method.
|
228
|
+
# result = client.list_game_server_configs request
|
229
|
+
#
|
230
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
231
|
+
# # iterate over all elements by calling #each, and the enumerable
|
232
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
233
|
+
# # methods are also available for managing paging directly.
|
234
|
+
# result.each do |response|
|
235
|
+
# # Each element is of type ::Google::Cloud::Gaming::V1::GameServerConfig.
|
236
|
+
# p response
|
237
|
+
# end
|
238
|
+
#
|
218
239
|
def list_game_server_configs request, options = nil
|
219
240
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
241
|
|
@@ -232,9 +253,11 @@ module Google
|
|
232
253
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
233
254
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
255
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
256
|
+
header_params = {}
|
257
|
+
if request.parent
|
258
|
+
header_params["parent"] = request.parent
|
259
|
+
end
|
260
|
+
|
238
261
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
262
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
263
|
|
@@ -274,8 +297,7 @@ module Google
|
|
274
297
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
275
298
|
#
|
276
299
|
# @param name [::String]
|
277
|
-
# Required. The name of the game server config to retrieve
|
278
|
-
#
|
300
|
+
# Required. The name of the game server config to retrieve, in the following form:
|
279
301
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
|
280
302
|
#
|
281
303
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -286,6 +308,21 @@ module Google
|
|
286
308
|
#
|
287
309
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
288
310
|
#
|
311
|
+
# @example Basic example
|
312
|
+
# require "google/cloud/gaming/v1"
|
313
|
+
#
|
314
|
+
# # Create a client object. The client can be reused for multiple calls.
|
315
|
+
# client = Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
|
316
|
+
#
|
317
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
318
|
+
# request = Google::Cloud::Gaming::V1::GetGameServerConfigRequest.new
|
319
|
+
#
|
320
|
+
# # Call the get_game_server_config method.
|
321
|
+
# result = client.get_game_server_config request
|
322
|
+
#
|
323
|
+
# # The returned object is of type Google::Cloud::Gaming::V1::GameServerConfig.
|
324
|
+
# p result
|
325
|
+
#
|
289
326
|
def get_game_server_config request, options = nil
|
290
327
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
291
328
|
|
@@ -303,9 +340,11 @@ module Google
|
|
303
340
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
304
341
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
305
342
|
|
306
|
-
header_params = {
|
307
|
-
|
308
|
-
|
343
|
+
header_params = {}
|
344
|
+
if request.name
|
345
|
+
header_params["name"] = request.name
|
346
|
+
end
|
347
|
+
|
309
348
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
310
349
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
311
350
|
|
@@ -346,8 +385,7 @@ module Google
|
|
346
385
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
347
386
|
#
|
348
387
|
# @param parent [::String]
|
349
|
-
# Required. The parent resource name
|
350
|
-
#
|
388
|
+
# Required. The parent resource name, in the following form:
|
351
389
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`.
|
352
390
|
# @param config_id [::String]
|
353
391
|
# Required. The ID of the game server config resource to be created.
|
@@ -362,6 +400,28 @@ module Google
|
|
362
400
|
#
|
363
401
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
364
402
|
#
|
403
|
+
# @example Basic example
|
404
|
+
# require "google/cloud/gaming/v1"
|
405
|
+
#
|
406
|
+
# # Create a client object. The client can be reused for multiple calls.
|
407
|
+
# client = Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
|
408
|
+
#
|
409
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
410
|
+
# request = Google::Cloud::Gaming::V1::CreateGameServerConfigRequest.new
|
411
|
+
#
|
412
|
+
# # Call the create_game_server_config method.
|
413
|
+
# result = client.create_game_server_config request
|
414
|
+
#
|
415
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
416
|
+
# # object to check the status of an operation, cancel it, or wait
|
417
|
+
# # for results. Here is how to block until completion:
|
418
|
+
# result.wait_until_done! timeout: 60
|
419
|
+
# if result.response?
|
420
|
+
# p result.response
|
421
|
+
# else
|
422
|
+
# puts "Error!"
|
423
|
+
# end
|
424
|
+
#
|
365
425
|
def create_game_server_config request, options = nil
|
366
426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
367
427
|
|
@@ -379,9 +439,11 @@ module Google
|
|
379
439
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
380
440
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
381
441
|
|
382
|
-
header_params = {
|
383
|
-
|
384
|
-
|
442
|
+
header_params = {}
|
443
|
+
if request.parent
|
444
|
+
header_params["parent"] = request.parent
|
445
|
+
end
|
446
|
+
|
385
447
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
386
448
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
387
449
|
|
@@ -422,8 +484,7 @@ module Google
|
|
422
484
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
423
485
|
#
|
424
486
|
# @param name [::String]
|
425
|
-
# Required. The name of the game server config to delete
|
426
|
-
#
|
487
|
+
# Required. The name of the game server config to delete, in the following form:
|
427
488
|
# `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
|
428
489
|
#
|
429
490
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -434,6 +495,28 @@ module Google
|
|
434
495
|
#
|
435
496
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
436
497
|
#
|
498
|
+
# @example Basic example
|
499
|
+
# require "google/cloud/gaming/v1"
|
500
|
+
#
|
501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
502
|
+
# client = Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
|
503
|
+
#
|
504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
505
|
+
# request = Google::Cloud::Gaming::V1::DeleteGameServerConfigRequest.new
|
506
|
+
#
|
507
|
+
# # Call the delete_game_server_config method.
|
508
|
+
# result = client.delete_game_server_config request
|
509
|
+
#
|
510
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
511
|
+
# # object to check the status of an operation, cancel it, or wait
|
512
|
+
# # for results. Here is how to block until completion:
|
513
|
+
# result.wait_until_done! timeout: 60
|
514
|
+
# if result.response?
|
515
|
+
# p result.response
|
516
|
+
# else
|
517
|
+
# puts "Error!"
|
518
|
+
# end
|
519
|
+
#
|
437
520
|
def delete_game_server_config request, options = nil
|
438
521
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
439
522
|
|
@@ -451,9 +534,11 @@ module Google
|
|
451
534
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
452
535
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
453
536
|
|
454
|
-
header_params = {
|
455
|
-
|
456
|
-
|
537
|
+
header_params = {}
|
538
|
+
if request.name
|
539
|
+
header_params["name"] = request.name
|
540
|
+
end
|
541
|
+
|
457
542
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
458
543
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
459
544
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Gaming::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_configs_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/cloud/gaming/v1/game_server_configs_pb'
|
9
7
|
require 'google/longrunning/operations_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gaming/v1/game_server_configs_service.proto", :syntax => :proto3) do
|
12
12
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gaming/v1/game_server_deployments.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/cloud/gaming/v1/common_pb'
|
9
7
|
require 'google/protobuf/field_mask_pb'
|
10
8
|
require 'google/protobuf/timestamp_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/gaming/v1/game_server_deployments.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.gaming.v1.ListGameServerDeploymentsRequest" do
|