google-cloud-gaming-v1 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5320a996cc49633f17eb4a1190c2f5c26dcd653e42aa880cbb09bd11c976cb1f
4
- data.tar.gz: 2dc977e9f1dc7a18877b95255552e0df063e215a72fe41925e150e1ad91080be
3
+ metadata.gz: a49d9ea1051bcf73ba5095d0995c107a5cc22fa5ff051f0ac36e0a7c1147333c
4
+ data.tar.gz: 57060d23a6a95e40734324260eb53612e2f077a47caa0a7d5083468d715435cc
5
5
  SHA512:
6
- metadata.gz: 0fcbbb7fb395ed77df0a3b0595de60311cab0bc51ce5fcc9e17a6426bdc458091826010e2f322ed6522feb3052ef549c8a7514180b4ca64a38da8a29f460ebe1
7
- data.tar.gz: 502ad0c781068acc323a5dee61a386f0acdb5c89ada077477cb13328a7a2dafa4c43068ac945f99c519a46369e06e5473f7f2863d4fd6218034dc895b81e492c
6
+ metadata.gz: f7b3053b3600c3ac21fd208eaf262afa6c42a9becdecd8eb7813c2126de3a100e0005b39eecdd232ac95e90bd288b19efe108f71a50e9a4708fb29f8091a283e
7
+ data.tar.gz: 1af00a6dc75f428df532142b829ceec9ac4f0d95eea9877e0f0886e39d5fb1c01076fe94c2c6966719211fa565689a3129621bec3f28cb4af14ad597a300ff9f
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Gaming::V1::GameServerClustersService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all GameServerClustersService clients:
48
- #
49
- # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all GameServerClustersService clients
48
+ # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -126,19 +125,15 @@ module Google
126
125
  ##
127
126
  # Create a new GameServerClustersService client object.
128
127
  #
129
- # ## Examples
130
- #
131
- # To create a new GameServerClustersService client with the default
132
- # configuration:
128
+ # @example
133
129
  #
134
- # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
130
+ # # Create a client using the default configuration
131
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new
135
132
  #
136
- # To create a new GameServerClustersService client with a custom
137
- # configuration:
138
- #
139
- # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
140
- # config.timeout = 10.0
141
- # end
133
+ # # Create a client using a custom configuration
134
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
135
+ # config.timeout = 10.0
136
+ # end
142
137
  #
143
138
  # @yield [config] Configure the GameServerClustersService client.
144
139
  # @yieldparam config [Client::Configuration]
@@ -158,10 +153,9 @@ module Google
158
153
 
159
154
  # Create credentials
160
155
  credentials = @config.credentials
161
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
156
+ # Use self-signed JWT if the endpoint is unchanged from default,
162
157
  # but only if the default endpoint does not have a region prefix.
163
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
164
- @config.endpoint == Client.configure.endpoint &&
158
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
165
159
  !@config.endpoint.split(".").first.include?("-")
166
160
  credentials ||= Credentials.default scope: @config.scope,
167
161
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -263,7 +257,9 @@ module Google
263
257
  options.apply_defaults timeout: @config.rpcs.list_game_server_clusters.timeout,
264
258
  metadata: metadata,
265
259
  retry_policy: @config.rpcs.list_game_server_clusters.retry_policy
266
- options.apply_defaults metadata: @config.metadata,
260
+
261
+ options.apply_defaults timeout: @config.timeout,
262
+ metadata: @config.metadata,
267
263
  retry_policy: @config.retry_policy
268
264
 
269
265
  @game_server_clusters_service_stub.call_rpc :list_game_server_clusters, request, options: options do |response, operation|
@@ -332,7 +328,9 @@ module Google
332
328
  options.apply_defaults timeout: @config.rpcs.get_game_server_cluster.timeout,
333
329
  metadata: metadata,
334
330
  retry_policy: @config.rpcs.get_game_server_cluster.retry_policy
335
- options.apply_defaults metadata: @config.metadata,
331
+
332
+ options.apply_defaults timeout: @config.timeout,
333
+ metadata: @config.metadata,
336
334
  retry_policy: @config.retry_policy
337
335
 
338
336
  @game_server_clusters_service_stub.call_rpc :get_game_server_cluster, request, options: options do |response, operation|
@@ -403,7 +401,9 @@ module Google
403
401
  options.apply_defaults timeout: @config.rpcs.create_game_server_cluster.timeout,
404
402
  metadata: metadata,
405
403
  retry_policy: @config.rpcs.create_game_server_cluster.retry_policy
406
- options.apply_defaults metadata: @config.metadata,
404
+
405
+ options.apply_defaults timeout: @config.timeout,
406
+ metadata: @config.metadata,
407
407
  retry_policy: @config.retry_policy
408
408
 
409
409
  @game_server_clusters_service_stub.call_rpc :create_game_server_cluster, request, options: options do |response, operation|
@@ -478,7 +478,9 @@ module Google
478
478
  options.apply_defaults timeout: @config.rpcs.preview_create_game_server_cluster.timeout,
479
479
  metadata: metadata,
480
480
  retry_policy: @config.rpcs.preview_create_game_server_cluster.retry_policy
481
- options.apply_defaults metadata: @config.metadata,
481
+
482
+ options.apply_defaults timeout: @config.timeout,
483
+ metadata: @config.metadata,
482
484
  retry_policy: @config.retry_policy
483
485
 
484
486
  @game_server_clusters_service_stub.call_rpc :preview_create_game_server_cluster, request, options: options do |response, operation|
@@ -545,7 +547,9 @@ module Google
545
547
  options.apply_defaults timeout: @config.rpcs.delete_game_server_cluster.timeout,
546
548
  metadata: metadata,
547
549
  retry_policy: @config.rpcs.delete_game_server_cluster.retry_policy
548
- options.apply_defaults metadata: @config.metadata,
550
+
551
+ options.apply_defaults timeout: @config.timeout,
552
+ metadata: @config.metadata,
549
553
  retry_policy: @config.retry_policy
550
554
 
551
555
  @game_server_clusters_service_stub.call_rpc :delete_game_server_cluster, request, options: options do |response, operation|
@@ -615,7 +619,9 @@ module Google
615
619
  options.apply_defaults timeout: @config.rpcs.preview_delete_game_server_cluster.timeout,
616
620
  metadata: metadata,
617
621
  retry_policy: @config.rpcs.preview_delete_game_server_cluster.retry_policy
618
- options.apply_defaults metadata: @config.metadata,
622
+
623
+ options.apply_defaults timeout: @config.timeout,
624
+ metadata: @config.metadata,
619
625
  retry_policy: @config.retry_policy
620
626
 
621
627
  @game_server_clusters_service_stub.call_rpc :preview_delete_game_server_cluster, request, options: options do |response, operation|
@@ -689,7 +695,9 @@ module Google
689
695
  options.apply_defaults timeout: @config.rpcs.update_game_server_cluster.timeout,
690
696
  metadata: metadata,
691
697
  retry_policy: @config.rpcs.update_game_server_cluster.retry_policy
692
- options.apply_defaults metadata: @config.metadata,
698
+
699
+ options.apply_defaults timeout: @config.timeout,
700
+ metadata: @config.metadata,
693
701
  retry_policy: @config.retry_policy
694
702
 
695
703
  @game_server_clusters_service_stub.call_rpc :update_game_server_cluster, request, options: options do |response, operation|
@@ -766,7 +774,9 @@ module Google
766
774
  options.apply_defaults timeout: @config.rpcs.preview_update_game_server_cluster.timeout,
767
775
  metadata: metadata,
768
776
  retry_policy: @config.rpcs.preview_update_game_server_cluster.retry_policy
769
- options.apply_defaults metadata: @config.metadata,
777
+
778
+ options.apply_defaults timeout: @config.timeout,
779
+ metadata: @config.metadata,
770
780
  retry_policy: @config.retry_policy
771
781
 
772
782
  @game_server_clusters_service_stub.call_rpc :preview_update_game_server_cluster, request, options: options do |response, operation|
@@ -790,22 +800,21 @@ module Google
790
800
  # Configuration can be applied globally to all clients, or to a single client
791
801
  # on construction.
792
802
  #
793
- # # Examples
794
- #
795
- # To modify the global config, setting the timeout for list_game_server_clusters
796
- # to 20 seconds, and all remaining timeouts to 10 seconds:
797
- #
798
- # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
799
- # config.timeout = 10.0
800
- # config.rpcs.list_game_server_clusters.timeout = 20.0
801
- # end
802
- #
803
- # To apply the above configuration only to a new client:
804
- #
805
- # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
806
- # config.timeout = 10.0
807
- # config.rpcs.list_game_server_clusters.timeout = 20.0
808
- # end
803
+ # @example
804
+ #
805
+ # # Modify the global config, setting the timeout for
806
+ # # list_game_server_clusters to 20 seconds,
807
+ # # and all remaining timeouts to 10 seconds.
808
+ # ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.configure do |config|
809
+ # config.timeout = 10.0
810
+ # config.rpcs.list_game_server_clusters.timeout = 20.0
811
+ # end
812
+ #
813
+ # # Apply the above configuration only to a new client.
814
+ # client = ::Google::Cloud::Gaming::V1::GameServerClustersService::Client.new do |config|
815
+ # config.timeout = 10.0
816
+ # config.rpcs.list_game_server_clusters.timeout = 20.0
817
+ # end
809
818
  #
810
819
  # @!attribute [rw] endpoint
811
820
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Gaming::V1::GameServerConfigsService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all GameServerConfigsService clients:
47
- #
48
- # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all GameServerConfigsService clients
47
+ # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -108,19 +107,15 @@ module Google
108
107
  ##
109
108
  # Create a new GameServerConfigsService client object.
110
109
  #
111
- # ## Examples
112
- #
113
- # To create a new GameServerConfigsService client with the default
114
- # configuration:
115
- #
116
- # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
110
+ # @example
117
111
  #
118
- # To create a new GameServerConfigsService client with a custom
119
- # configuration:
112
+ # # Create a client using the default configuration
113
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new
120
114
  #
121
- # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
122
- # config.timeout = 10.0
123
- # end
115
+ # # Create a client using a custom configuration
116
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
117
+ # config.timeout = 10.0
118
+ # end
124
119
  #
125
120
  # @yield [config] Configure the GameServerConfigsService client.
126
121
  # @yieldparam config [Client::Configuration]
@@ -140,10 +135,9 @@ module Google
140
135
 
141
136
  # Create credentials
142
137
  credentials = @config.credentials
143
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # Use self-signed JWT if the endpoint is unchanged from default,
144
139
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
146
- @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
147
141
  !@config.endpoint.split(".").first.include?("-")
148
142
  credentials ||= Credentials.default scope: @config.scope,
149
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -247,7 +241,9 @@ module Google
247
241
  options.apply_defaults timeout: @config.rpcs.list_game_server_configs.timeout,
248
242
  metadata: metadata,
249
243
  retry_policy: @config.rpcs.list_game_server_configs.retry_policy
250
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
251
247
  retry_policy: @config.retry_policy
252
248
 
253
249
  @game_server_configs_service_stub.call_rpc :list_game_server_configs, request, options: options do |response, operation|
@@ -316,7 +312,9 @@ module Google
316
312
  options.apply_defaults timeout: @config.rpcs.get_game_server_config.timeout,
317
313
  metadata: metadata,
318
314
  retry_policy: @config.rpcs.get_game_server_config.retry_policy
319
- options.apply_defaults metadata: @config.metadata,
315
+
316
+ options.apply_defaults timeout: @config.timeout,
317
+ metadata: @config.metadata,
320
318
  retry_policy: @config.retry_policy
321
319
 
322
320
  @game_server_configs_service_stub.call_rpc :get_game_server_config, request, options: options do |response, operation|
@@ -390,7 +388,9 @@ module Google
390
388
  options.apply_defaults timeout: @config.rpcs.create_game_server_config.timeout,
391
389
  metadata: metadata,
392
390
  retry_policy: @config.rpcs.create_game_server_config.retry_policy
393
- options.apply_defaults metadata: @config.metadata,
391
+
392
+ options.apply_defaults timeout: @config.timeout,
393
+ metadata: @config.metadata,
394
394
  retry_policy: @config.retry_policy
395
395
 
396
396
  @game_server_configs_service_stub.call_rpc :create_game_server_config, request, options: options do |response, operation|
@@ -460,7 +460,9 @@ module Google
460
460
  options.apply_defaults timeout: @config.rpcs.delete_game_server_config.timeout,
461
461
  metadata: metadata,
462
462
  retry_policy: @config.rpcs.delete_game_server_config.retry_policy
463
- options.apply_defaults metadata: @config.metadata,
463
+
464
+ options.apply_defaults timeout: @config.timeout,
465
+ metadata: @config.metadata,
464
466
  retry_policy: @config.retry_policy
465
467
 
466
468
  @game_server_configs_service_stub.call_rpc :delete_game_server_config, request, options: options do |response, operation|
@@ -485,22 +487,21 @@ module Google
485
487
  # Configuration can be applied globally to all clients, or to a single client
486
488
  # on construction.
487
489
  #
488
- # # Examples
489
- #
490
- # To modify the global config, setting the timeout for list_game_server_configs
491
- # to 20 seconds, and all remaining timeouts to 10 seconds:
492
- #
493
- # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
494
- # config.timeout = 10.0
495
- # config.rpcs.list_game_server_configs.timeout = 20.0
496
- # end
497
- #
498
- # To apply the above configuration only to a new client:
499
- #
500
- # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
501
- # config.timeout = 10.0
502
- # config.rpcs.list_game_server_configs.timeout = 20.0
503
- # end
490
+ # @example
491
+ #
492
+ # # Modify the global config, setting the timeout for
493
+ # # list_game_server_configs to 20 seconds,
494
+ # # and all remaining timeouts to 10 seconds.
495
+ # ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.configure do |config|
496
+ # config.timeout = 10.0
497
+ # config.rpcs.list_game_server_configs.timeout = 20.0
498
+ # end
499
+ #
500
+ # # Apply the above configuration only to a new client.
501
+ # client = ::Google::Cloud::Gaming::V1::GameServerConfigsService::Client.new do |config|
502
+ # config.timeout = 10.0
503
+ # config.rpcs.list_game_server_configs.timeout = 20.0
504
+ # end
504
505
  #
505
506
  # @!attribute [rw] endpoint
506
507
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -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
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all GameServerDeploymentsService clients:
48
- #
49
- # ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.configure do |config|
50
- # config.timeout = 10.0
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]
@@ -128,19 +127,15 @@ module Google
128
127
  ##
129
128
  # Create a new GameServerDeploymentsService client object.
130
129
  #
131
- # ## Examples
132
- #
133
- # To create a new GameServerDeploymentsService client with the default
134
- # configuration:
130
+ # @example
135
131
  #
136
- # client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
132
+ # # Create a client using the default configuration
133
+ # client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new
137
134
  #
138
- # To create a new GameServerDeploymentsService client with a custom
139
- # configuration:
140
- #
141
- # client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new do |config|
142
- # config.timeout = 10.0
143
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
@@ -266,7 +260,9 @@ module Google
266
260
  options.apply_defaults timeout: @config.rpcs.list_game_server_deployments.timeout,
267
261
  metadata: metadata,
268
262
  retry_policy: @config.rpcs.list_game_server_deployments.retry_policy
269
- options.apply_defaults metadata: @config.metadata,
263
+
264
+ options.apply_defaults timeout: @config.timeout,
265
+ metadata: @config.metadata,
270
266
  retry_policy: @config.retry_policy
271
267
 
272
268
  @game_server_deployments_service_stub.call_rpc :list_game_server_deployments, request, options: options do |response, operation|
@@ -335,7 +331,9 @@ module Google
335
331
  options.apply_defaults timeout: @config.rpcs.get_game_server_deployment.timeout,
336
332
  metadata: metadata,
337
333
  retry_policy: @config.rpcs.get_game_server_deployment.retry_policy
338
- options.apply_defaults metadata: @config.metadata,
334
+
335
+ options.apply_defaults timeout: @config.timeout,
336
+ metadata: @config.metadata,
339
337
  retry_policy: @config.retry_policy
340
338
 
341
339
  @game_server_deployments_service_stub.call_rpc :get_game_server_deployment, request, options: options do |response, operation|
@@ -406,7 +404,9 @@ module Google
406
404
  options.apply_defaults timeout: @config.rpcs.create_game_server_deployment.timeout,
407
405
  metadata: metadata,
408
406
  retry_policy: @config.rpcs.create_game_server_deployment.retry_policy
409
- options.apply_defaults metadata: @config.metadata,
407
+
408
+ options.apply_defaults timeout: @config.timeout,
409
+ metadata: @config.metadata,
410
410
  retry_policy: @config.retry_policy
411
411
 
412
412
  @game_server_deployments_service_stub.call_rpc :create_game_server_deployment, request, options: options do |response, operation|
@@ -475,7 +475,9 @@ module Google
475
475
  options.apply_defaults timeout: @config.rpcs.delete_game_server_deployment.timeout,
476
476
  metadata: metadata,
477
477
  retry_policy: @config.rpcs.delete_game_server_deployment.retry_policy
478
- options.apply_defaults metadata: @config.metadata,
478
+
479
+ options.apply_defaults timeout: @config.timeout,
480
+ metadata: @config.metadata,
479
481
  retry_policy: @config.retry_policy
480
482
 
481
483
  @game_server_deployments_service_stub.call_rpc :delete_game_server_deployment, request, options: options do |response, operation|
@@ -550,7 +552,9 @@ module Google
550
552
  options.apply_defaults timeout: @config.rpcs.update_game_server_deployment.timeout,
551
553
  metadata: metadata,
552
554
  retry_policy: @config.rpcs.update_game_server_deployment.retry_policy
553
- options.apply_defaults metadata: @config.metadata,
555
+
556
+ options.apply_defaults timeout: @config.timeout,
557
+ metadata: @config.metadata,
554
558
  retry_policy: @config.retry_policy
555
559
 
556
560
  @game_server_deployments_service_stub.call_rpc :update_game_server_deployment, request, options: options do |response, operation|
@@ -619,7 +623,9 @@ module Google
619
623
  options.apply_defaults timeout: @config.rpcs.get_game_server_deployment_rollout.timeout,
620
624
  metadata: metadata,
621
625
  retry_policy: @config.rpcs.get_game_server_deployment_rollout.retry_policy
622
- options.apply_defaults metadata: @config.metadata,
626
+
627
+ options.apply_defaults timeout: @config.timeout,
628
+ metadata: @config.metadata,
623
629
  retry_policy: @config.retry_policy
624
630
 
625
631
  @game_server_deployments_service_stub.call_rpc :get_game_server_deployment_rollout, request, options: options do |response, operation|
@@ -698,7 +704,9 @@ module Google
698
704
  options.apply_defaults timeout: @config.rpcs.update_game_server_deployment_rollout.timeout,
699
705
  metadata: metadata,
700
706
  retry_policy: @config.rpcs.update_game_server_deployment_rollout.retry_policy
701
- options.apply_defaults metadata: @config.metadata,
707
+
708
+ options.apply_defaults timeout: @config.timeout,
709
+ metadata: @config.metadata,
702
710
  retry_policy: @config.retry_policy
703
711
 
704
712
  @game_server_deployments_service_stub.call_rpc :update_game_server_deployment_rollout, request, options: options do |response, operation|
@@ -777,7 +785,9 @@ module Google
777
785
  options.apply_defaults timeout: @config.rpcs.preview_game_server_deployment_rollout.timeout,
778
786
  metadata: metadata,
779
787
  retry_policy: @config.rpcs.preview_game_server_deployment_rollout.retry_policy
780
- options.apply_defaults metadata: @config.metadata,
788
+
789
+ options.apply_defaults timeout: @config.timeout,
790
+ metadata: @config.metadata,
781
791
  retry_policy: @config.retry_policy
782
792
 
783
793
  @game_server_deployments_service_stub.call_rpc :preview_game_server_deployment_rollout, request, options: options do |response, operation|
@@ -847,7 +857,9 @@ module Google
847
857
  options.apply_defaults timeout: @config.rpcs.fetch_deployment_state.timeout,
848
858
  metadata: metadata,
849
859
  retry_policy: @config.rpcs.fetch_deployment_state.retry_policy
850
- options.apply_defaults metadata: @config.metadata,
860
+
861
+ options.apply_defaults timeout: @config.timeout,
862
+ metadata: @config.metadata,
851
863
  retry_policy: @config.retry_policy
852
864
 
853
865
  @game_server_deployments_service_stub.call_rpc :fetch_deployment_state, request, options: options do |response, operation|
@@ -871,22 +883,21 @@ module Google
871
883
  # Configuration can be applied globally to all clients, or to a single client
872
884
  # on construction.
873
885
  #
874
- # # Examples
875
- #
876
- # To modify the global config, setting the timeout for list_game_server_deployments
877
- # to 20 seconds, and all remaining timeouts to 10 seconds:
878
- #
879
- # ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.configure do |config|
880
- # config.timeout = 10.0
881
- # config.rpcs.list_game_server_deployments.timeout = 20.0
882
- # end
883
- #
884
- # To apply the above configuration only to a new client:
885
- #
886
- # client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new do |config|
887
- # config.timeout = 10.0
888
- # config.rpcs.list_game_server_deployments.timeout = 20.0
889
- # end
886
+ # @example
887
+ #
888
+ # # Modify the global config, setting the timeout for
889
+ # # list_game_server_deployments to 20 seconds,
890
+ # # and all remaining timeouts to 10 seconds.
891
+ # ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.configure do |config|
892
+ # config.timeout = 10.0
893
+ # config.rpcs.list_game_server_deployments.timeout = 20.0
894
+ # end
895
+ #
896
+ # # Apply the above configuration only to a new client.
897
+ # client = ::Google::Cloud::Gaming::V1::GameServerDeploymentsService::Client.new do |config|
898
+ # config.timeout = 10.0
899
+ # config.rpcs.list_game_server_deployments.timeout = 20.0
900
+ # end
890
901
  #
891
902
  # @!attribute [rw] endpoint
892
903
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Gaming::V1::RealmsService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all RealmsService clients:
48
- #
49
- # ::Google::Cloud::Gaming::V1::RealmsService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all RealmsService clients
48
+ # ::Google::Cloud::Gaming::V1::RealmsService::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]
@@ -116,19 +115,15 @@ module Google
116
115
  ##
117
116
  # Create a new RealmsService client object.
118
117
  #
119
- # ## Examples
120
- #
121
- # To create a new RealmsService client with the default
122
- # configuration:
118
+ # @example
123
119
  #
124
- # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new
120
+ # # Create a client using the default configuration
121
+ # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new
125
122
  #
126
- # To create a new RealmsService client with a custom
127
- # configuration:
128
- #
129
- # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new do |config|
130
- # config.timeout = 10.0
131
- # end
123
+ # # Create a client using a custom configuration
124
+ # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new do |config|
125
+ # config.timeout = 10.0
126
+ # end
132
127
  #
133
128
  # @yield [config] Configure the RealmsService client.
134
129
  # @yieldparam config [Client::Configuration]
@@ -148,10 +143,9 @@ module Google
148
143
 
149
144
  # Create credentials
150
145
  credentials = @config.credentials
151
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
146
+ # Use self-signed JWT if the endpoint is unchanged from default,
152
147
  # but only if the default endpoint does not have a region prefix.
153
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
154
- @config.endpoint == Client.configure.endpoint &&
148
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
155
149
  !@config.endpoint.split(".").first.include?("-")
156
150
  credentials ||= Credentials.default scope: @config.scope,
157
151
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -254,7 +248,9 @@ module Google
254
248
  options.apply_defaults timeout: @config.rpcs.list_realms.timeout,
255
249
  metadata: metadata,
256
250
  retry_policy: @config.rpcs.list_realms.retry_policy
257
- options.apply_defaults metadata: @config.metadata,
251
+
252
+ options.apply_defaults timeout: @config.timeout,
253
+ metadata: @config.metadata,
258
254
  retry_policy: @config.retry_policy
259
255
 
260
256
  @realms_service_stub.call_rpc :list_realms, request, options: options do |response, operation|
@@ -322,7 +318,9 @@ module Google
322
318
  options.apply_defaults timeout: @config.rpcs.get_realm.timeout,
323
319
  metadata: metadata,
324
320
  retry_policy: @config.rpcs.get_realm.retry_policy
325
- options.apply_defaults metadata: @config.metadata,
321
+
322
+ options.apply_defaults timeout: @config.timeout,
323
+ metadata: @config.metadata,
326
324
  retry_policy: @config.retry_policy
327
325
 
328
326
  @realms_service_stub.call_rpc :get_realm, request, options: options do |response, operation|
@@ -393,7 +391,9 @@ module Google
393
391
  options.apply_defaults timeout: @config.rpcs.create_realm.timeout,
394
392
  metadata: metadata,
395
393
  retry_policy: @config.rpcs.create_realm.retry_policy
396
- options.apply_defaults metadata: @config.metadata,
394
+
395
+ options.apply_defaults timeout: @config.timeout,
396
+ metadata: @config.metadata,
397
397
  retry_policy: @config.retry_policy
398
398
 
399
399
  @realms_service_stub.call_rpc :create_realm, request, options: options do |response, operation|
@@ -461,7 +461,9 @@ module Google
461
461
  options.apply_defaults timeout: @config.rpcs.delete_realm.timeout,
462
462
  metadata: metadata,
463
463
  retry_policy: @config.rpcs.delete_realm.retry_policy
464
- options.apply_defaults metadata: @config.metadata,
464
+
465
+ options.apply_defaults timeout: @config.timeout,
466
+ metadata: @config.metadata,
465
467
  retry_policy: @config.retry_policy
466
468
 
467
469
  @realms_service_stub.call_rpc :delete_realm, request, options: options do |response, operation|
@@ -536,7 +538,9 @@ module Google
536
538
  options.apply_defaults timeout: @config.rpcs.update_realm.timeout,
537
539
  metadata: metadata,
538
540
  retry_policy: @config.rpcs.update_realm.retry_policy
539
- options.apply_defaults metadata: @config.metadata,
541
+
542
+ options.apply_defaults timeout: @config.timeout,
543
+ metadata: @config.metadata,
540
544
  retry_policy: @config.retry_policy
541
545
 
542
546
  @realms_service_stub.call_rpc :update_realm, request, options: options do |response, operation|
@@ -613,7 +617,9 @@ module Google
613
617
  options.apply_defaults timeout: @config.rpcs.preview_realm_update.timeout,
614
618
  metadata: metadata,
615
619
  retry_policy: @config.rpcs.preview_realm_update.retry_policy
616
- options.apply_defaults metadata: @config.metadata,
620
+
621
+ options.apply_defaults timeout: @config.timeout,
622
+ metadata: @config.metadata,
617
623
  retry_policy: @config.retry_policy
618
624
 
619
625
  @realms_service_stub.call_rpc :preview_realm_update, request, options: options do |response, operation|
@@ -637,22 +643,21 @@ module Google
637
643
  # Configuration can be applied globally to all clients, or to a single client
638
644
  # on construction.
639
645
  #
640
- # # Examples
641
- #
642
- # To modify the global config, setting the timeout for list_realms
643
- # to 20 seconds, and all remaining timeouts to 10 seconds:
644
- #
645
- # ::Google::Cloud::Gaming::V1::RealmsService::Client.configure do |config|
646
- # config.timeout = 10.0
647
- # config.rpcs.list_realms.timeout = 20.0
648
- # end
649
- #
650
- # To apply the above configuration only to a new client:
651
- #
652
- # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new do |config|
653
- # config.timeout = 10.0
654
- # config.rpcs.list_realms.timeout = 20.0
655
- # end
646
+ # @example
647
+ #
648
+ # # Modify the global config, setting the timeout for
649
+ # # list_realms to 20 seconds,
650
+ # # and all remaining timeouts to 10 seconds.
651
+ # ::Google::Cloud::Gaming::V1::RealmsService::Client.configure do |config|
652
+ # config.timeout = 10.0
653
+ # config.rpcs.list_realms.timeout = 20.0
654
+ # end
655
+ #
656
+ # # Apply the above configuration only to a new client.
657
+ # client = ::Google::Cloud::Gaming::V1::RealmsService::Client.new do |config|
658
+ # config.timeout = 10.0
659
+ # config.rpcs.list_realms.timeout = 20.0
660
+ # end
656
661
  #
657
662
  # @!attribute [rw] endpoint
658
663
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Gaming
23
23
  module V1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gaming-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a