google-cloud-app_engine-v1 0.3.0 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/appengine/v1/app_yaml_pb.rb +2 -2
  5. data/lib/google/appengine/v1/appengine_pb.rb +2 -2
  6. data/lib/google/appengine/v1/appengine_services_pb.rb +8 -8
  7. data/lib/google/appengine/v1/application_pb.rb +2 -2
  8. data/lib/google/appengine/v1/audit_data_pb.rb +2 -2
  9. data/lib/google/appengine/v1/certificate_pb.rb +2 -2
  10. data/lib/google/appengine/v1/deploy_pb.rb +2 -2
  11. data/lib/google/appengine/v1/deployed_files_pb.rb +1 -1
  12. data/lib/google/appengine/v1/domain_mapping_pb.rb +1 -1
  13. data/lib/google/appengine/v1/domain_pb.rb +1 -1
  14. data/lib/google/appengine/v1/firewall_pb.rb +1 -1
  15. data/lib/google/appengine/v1/instance_pb.rb +2 -2
  16. data/lib/google/appengine/v1/location_pb.rb +2 -2
  17. data/lib/google/appengine/v1/network_settings_pb.rb +1 -1
  18. data/lib/google/appengine/v1/operation_pb.rb +2 -2
  19. data/lib/google/appengine/v1/service_pb.rb +2 -2
  20. data/lib/google/appengine/v1/version_pb.rb +2 -2
  21. data/lib/google/cloud/app_engine/v1/applications/client.rb +138 -50
  22. data/lib/google/cloud/app_engine/v1/applications/operations.rb +149 -37
  23. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +151 -57
  24. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +59 -41
  25. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +172 -57
  26. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +149 -37
  27. data/lib/google/cloud/app_engine/v1/firewall/client.rb +174 -61
  28. data/lib/google/cloud/app_engine/v1/instances/client.rb +142 -53
  29. data/lib/google/cloud/app_engine/v1/instances/operations.rb +149 -37
  30. data/lib/google/cloud/app_engine/v1/services/client.rb +142 -53
  31. data/lib/google/cloud/app_engine/v1/services/operations.rb +149 -37
  32. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  33. data/lib/google/cloud/app_engine/v1/versions/client.rb +172 -57
  34. data/lib/google/cloud/app_engine/v1/versions/operations.rb +149 -37
  35. data/proto_docs/google/api/field_behavior.rb +7 -1
  36. metadata +13 -7
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::AppEngine::V1::AuthorizedDomains::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 AuthorizedDomains clients:
47
- #
48
- # ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all AuthorizedDomains clients
47
+ # ::Google::Cloud::AppEngine::V1::AuthorizedDomains::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]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new AuthorizedDomains client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new AuthorizedDomains client with the default
100
- # configuration:
96
+ # @example
101
97
  #
102
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new
103
100
  #
104
- # To create a new AuthorizedDomains client with a custom
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the AuthorizedDomains client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,14 +121,13 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
136
- if credentials.is_a?(String) || credentials.is_a?(Hash)
130
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
137
131
  credentials = Credentials.new credentials, scope: @config.scope
138
132
  end
139
133
  @quota_project_id = @config.quota_project
@@ -183,6 +177,27 @@ module Google
183
177
  #
184
178
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
185
179
  #
180
+ # @example Basic example
181
+ # require "google/cloud/app_engine/v1"
182
+ #
183
+ # # Create a client object. The client can be reused for multiple calls.
184
+ # client = Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new
185
+ #
186
+ # # Create a request. To set request fields, pass in keyword arguments.
187
+ # request = Google::Cloud::AppEngine::V1::ListAuthorizedDomainsRequest.new
188
+ #
189
+ # # Call the list_authorized_domains method.
190
+ # result = client.list_authorized_domains request
191
+ #
192
+ # # The returned object is of type Gapic::PagedEnumerable. You can
193
+ # # iterate over all elements by calling #each, and the enumerable
194
+ # # will lazily make API calls to fetch subsequent pages. Other
195
+ # # methods are also available for managing paging directly.
196
+ # result.each do |response|
197
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedDomain.
198
+ # p response
199
+ # end
200
+ #
186
201
  def list_authorized_domains request, options = nil
187
202
  raise ::ArgumentError, "request must be provided" if request.nil?
188
203
 
@@ -200,16 +215,20 @@ module Google
200
215
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
201
216
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
202
217
 
203
- header_params = {
204
- "parent" => request.parent
205
- }
218
+ header_params = {}
219
+ if request.parent
220
+ header_params["parent"] = request.parent
221
+ end
222
+
206
223
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
207
224
  metadata[:"x-goog-request-params"] ||= request_params_header
208
225
 
209
226
  options.apply_defaults timeout: @config.rpcs.list_authorized_domains.timeout,
210
227
  metadata: metadata,
211
228
  retry_policy: @config.rpcs.list_authorized_domains.retry_policy
212
- options.apply_defaults metadata: @config.metadata,
229
+
230
+ options.apply_defaults timeout: @config.timeout,
231
+ metadata: @config.metadata,
213
232
  retry_policy: @config.retry_policy
214
233
 
215
234
  @authorized_domains_stub.call_rpc :list_authorized_domains, request, options: options do |response, operation|
@@ -234,22 +253,21 @@ module Google
234
253
  # Configuration can be applied globally to all clients, or to a single client
235
254
  # on construction.
236
255
  #
237
- # # Examples
238
- #
239
- # To modify the global config, setting the timeout for list_authorized_domains
240
- # to 20 seconds, and all remaining timeouts to 10 seconds:
241
- #
242
- # ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.configure do |config|
243
- # config.timeout = 10.0
244
- # config.rpcs.list_authorized_domains.timeout = 20.0
245
- # end
246
- #
247
- # To apply the above configuration only to a new client:
248
- #
249
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new do |config|
250
- # config.timeout = 10.0
251
- # config.rpcs.list_authorized_domains.timeout = 20.0
252
- # end
256
+ # @example
257
+ #
258
+ # # Modify the global config, setting the timeout for
259
+ # # list_authorized_domains to 20 seconds,
260
+ # # and all remaining timeouts to 10 seconds.
261
+ # ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.configure do |config|
262
+ # config.timeout = 10.0
263
+ # config.rpcs.list_authorized_domains.timeout = 20.0
264
+ # end
265
+ #
266
+ # # Apply the above configuration only to a new client.
267
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new do |config|
268
+ # config.timeout = 10.0
269
+ # config.rpcs.list_authorized_domains.timeout = 20.0
270
+ # end
253
271
  #
254
272
  # @!attribute [rw] endpoint
255
273
  # The hostname or hostname:port of the service endpoint.
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::AppEngine::V1::DomainMappings::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all DomainMappings clients:
45
- #
46
- # ::Google::Cloud::AppEngine::V1::DomainMappings::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all DomainMappings clients
45
+ # ::Google::Cloud::AppEngine::V1::DomainMappings::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -92,19 +91,15 @@ module Google
92
91
  ##
93
92
  # Create a new DomainMappings client object.
94
93
  #
95
- # ## Examples
96
- #
97
- # To create a new DomainMappings client with the default
98
- # configuration:
99
- #
100
- # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new
94
+ # @example
101
95
  #
102
- # To create a new DomainMappings client with a custom
103
- # configuration:
96
+ # # Create a client using the default configuration
97
+ # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new
104
98
  #
105
- # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new do |config|
106
- # config.timeout = 10.0
107
- # end
99
+ # # Create a client using a custom configuration
100
+ # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new do |config|
101
+ # config.timeout = 10.0
102
+ # end
108
103
  #
109
104
  # @yield [config] Configure the DomainMappings client.
110
105
  # @yieldparam config [Client::Configuration]
@@ -124,14 +119,13 @@ module Google
124
119
 
125
120
  # Create credentials
126
121
  credentials = @config.credentials
127
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
122
+ # Use self-signed JWT if the endpoint is unchanged from default,
128
123
  # but only if the default endpoint does not have a region prefix.
129
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
130
- @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
125
  !@config.endpoint.split(".").first.include?("-")
132
126
  credentials ||= Credentials.default scope: @config.scope,
133
127
  enable_self_signed_jwt: enable_self_signed_jwt
134
- if credentials.is_a?(String) || credentials.is_a?(Hash)
128
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
135
129
  credentials = Credentials.new credentials, scope: @config.scope
136
130
  end
137
131
  @quota_project_id = @config.quota_project
@@ -193,6 +187,27 @@ module Google
193
187
  #
194
188
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
195
189
  #
190
+ # @example Basic example
191
+ # require "google/cloud/app_engine/v1"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::AppEngine::V1::ListDomainMappingsRequest.new
198
+ #
199
+ # # Call the list_domain_mappings method.
200
+ # result = client.list_domain_mappings request
201
+ #
202
+ # # The returned object is of type Gapic::PagedEnumerable. You can
203
+ # # iterate over all elements by calling #each, and the enumerable
204
+ # # will lazily make API calls to fetch subsequent pages. Other
205
+ # # methods are also available for managing paging directly.
206
+ # result.each do |response|
207
+ # # Each element is of type ::Google::Cloud::AppEngine::V1::DomainMapping.
208
+ # p response
209
+ # end
210
+ #
196
211
  def list_domain_mappings request, options = nil
197
212
  raise ::ArgumentError, "request must be provided" if request.nil?
198
213
 
@@ -210,16 +225,20 @@ module Google
210
225
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
211
226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
212
227
 
213
- header_params = {
214
- "parent" => request.parent
215
- }
228
+ header_params = {}
229
+ if request.parent
230
+ header_params["parent"] = request.parent
231
+ end
232
+
216
233
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
217
234
  metadata[:"x-goog-request-params"] ||= request_params_header
218
235
 
219
236
  options.apply_defaults timeout: @config.rpcs.list_domain_mappings.timeout,
220
237
  metadata: metadata,
221
238
  retry_policy: @config.rpcs.list_domain_mappings.retry_policy
222
- options.apply_defaults metadata: @config.metadata,
239
+
240
+ options.apply_defaults timeout: @config.timeout,
241
+ metadata: @config.metadata,
223
242
  retry_policy: @config.retry_policy
224
243
 
225
244
  @domain_mappings_stub.call_rpc :list_domain_mappings, request, options: options do |response, operation|
@@ -261,6 +280,21 @@ module Google
261
280
  #
262
281
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
263
282
  #
283
+ # @example Basic example
284
+ # require "google/cloud/app_engine/v1"
285
+ #
286
+ # # Create a client object. The client can be reused for multiple calls.
287
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
288
+ #
289
+ # # Create a request. To set request fields, pass in keyword arguments.
290
+ # request = Google::Cloud::AppEngine::V1::GetDomainMappingRequest.new
291
+ #
292
+ # # Call the get_domain_mapping method.
293
+ # result = client.get_domain_mapping request
294
+ #
295
+ # # The returned object is of type Google::Cloud::AppEngine::V1::DomainMapping.
296
+ # p result
297
+ #
264
298
  def get_domain_mapping request, options = nil
265
299
  raise ::ArgumentError, "request must be provided" if request.nil?
266
300
 
@@ -278,16 +312,20 @@ module Google
278
312
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
279
313
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
314
 
281
- header_params = {
282
- "name" => request.name
283
- }
315
+ header_params = {}
316
+ if request.name
317
+ header_params["name"] = request.name
318
+ end
319
+
284
320
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
285
321
  metadata[:"x-goog-request-params"] ||= request_params_header
286
322
 
287
323
  options.apply_defaults timeout: @config.rpcs.get_domain_mapping.timeout,
288
324
  metadata: metadata,
289
325
  retry_policy: @config.rpcs.get_domain_mapping.retry_policy
290
- options.apply_defaults metadata: @config.metadata,
326
+
327
+ options.apply_defaults timeout: @config.timeout,
328
+ metadata: @config.metadata,
291
329
  retry_policy: @config.retry_policy
292
330
 
293
331
  @domain_mappings_stub.call_rpc :get_domain_mapping, request, options: options do |response, operation|
@@ -334,6 +372,28 @@ module Google
334
372
  #
335
373
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
336
374
  #
375
+ # @example Basic example
376
+ # require "google/cloud/app_engine/v1"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::AppEngine::V1::CreateDomainMappingRequest.new
383
+ #
384
+ # # Call the create_domain_mapping method.
385
+ # result = client.create_domain_mapping request
386
+ #
387
+ # # The returned object is of type Gapic::Operation. You can use this
388
+ # # object to check the status of an operation, cancel it, or wait
389
+ # # for results. Here is how to block until completion:
390
+ # result.wait_until_done! timeout: 60
391
+ # if result.response?
392
+ # p result.response
393
+ # else
394
+ # puts "Error!"
395
+ # end
396
+ #
337
397
  def create_domain_mapping request, options = nil
338
398
  raise ::ArgumentError, "request must be provided" if request.nil?
339
399
 
@@ -351,16 +411,20 @@ module Google
351
411
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
352
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
353
413
 
354
- header_params = {
355
- "parent" => request.parent
356
- }
414
+ header_params = {}
415
+ if request.parent
416
+ header_params["parent"] = request.parent
417
+ end
418
+
357
419
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
358
420
  metadata[:"x-goog-request-params"] ||= request_params_header
359
421
 
360
422
  options.apply_defaults timeout: @config.rpcs.create_domain_mapping.timeout,
361
423
  metadata: metadata,
362
424
  retry_policy: @config.rpcs.create_domain_mapping.retry_policy
363
- options.apply_defaults metadata: @config.metadata,
425
+
426
+ options.apply_defaults timeout: @config.timeout,
427
+ metadata: @config.metadata,
364
428
  retry_policy: @config.retry_policy
365
429
 
366
430
  @domain_mappings_stub.call_rpc :create_domain_mapping, request, options: options do |response, operation|
@@ -410,6 +474,28 @@ module Google
410
474
  #
411
475
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
412
476
  #
477
+ # @example Basic example
478
+ # require "google/cloud/app_engine/v1"
479
+ #
480
+ # # Create a client object. The client can be reused for multiple calls.
481
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
482
+ #
483
+ # # Create a request. To set request fields, pass in keyword arguments.
484
+ # request = Google::Cloud::AppEngine::V1::UpdateDomainMappingRequest.new
485
+ #
486
+ # # Call the update_domain_mapping method.
487
+ # result = client.update_domain_mapping request
488
+ #
489
+ # # The returned object is of type Gapic::Operation. You can use this
490
+ # # object to check the status of an operation, cancel it, or wait
491
+ # # for results. Here is how to block until completion:
492
+ # result.wait_until_done! timeout: 60
493
+ # if result.response?
494
+ # p result.response
495
+ # else
496
+ # puts "Error!"
497
+ # end
498
+ #
413
499
  def update_domain_mapping request, options = nil
414
500
  raise ::ArgumentError, "request must be provided" if request.nil?
415
501
 
@@ -427,16 +513,20 @@ module Google
427
513
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
428
514
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
429
515
 
430
- header_params = {
431
- "name" => request.name
432
- }
516
+ header_params = {}
517
+ if request.name
518
+ header_params["name"] = request.name
519
+ end
520
+
433
521
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
434
522
  metadata[:"x-goog-request-params"] ||= request_params_header
435
523
 
436
524
  options.apply_defaults timeout: @config.rpcs.update_domain_mapping.timeout,
437
525
  metadata: metadata,
438
526
  retry_policy: @config.rpcs.update_domain_mapping.retry_policy
439
- options.apply_defaults metadata: @config.metadata,
527
+
528
+ options.apply_defaults timeout: @config.timeout,
529
+ metadata: @config.metadata,
440
530
  retry_policy: @config.retry_policy
441
531
 
442
532
  @domain_mappings_stub.call_rpc :update_domain_mapping, request, options: options do |response, operation|
@@ -480,6 +570,28 @@ module Google
480
570
  #
481
571
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
482
572
  #
573
+ # @example Basic example
574
+ # require "google/cloud/app_engine/v1"
575
+ #
576
+ # # Create a client object. The client can be reused for multiple calls.
577
+ # client = Google::Cloud::AppEngine::V1::DomainMappings::Client.new
578
+ #
579
+ # # Create a request. To set request fields, pass in keyword arguments.
580
+ # request = Google::Cloud::AppEngine::V1::DeleteDomainMappingRequest.new
581
+ #
582
+ # # Call the delete_domain_mapping method.
583
+ # result = client.delete_domain_mapping request
584
+ #
585
+ # # The returned object is of type Gapic::Operation. You can use this
586
+ # # object to check the status of an operation, cancel it, or wait
587
+ # # for results. Here is how to block until completion:
588
+ # result.wait_until_done! timeout: 60
589
+ # if result.response?
590
+ # p result.response
591
+ # else
592
+ # puts "Error!"
593
+ # end
594
+ #
483
595
  def delete_domain_mapping request, options = nil
484
596
  raise ::ArgumentError, "request must be provided" if request.nil?
485
597
 
@@ -497,16 +609,20 @@ module Google
497
609
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
498
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
499
611
 
500
- header_params = {
501
- "name" => request.name
502
- }
612
+ header_params = {}
613
+ if request.name
614
+ header_params["name"] = request.name
615
+ end
616
+
503
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
504
618
  metadata[:"x-goog-request-params"] ||= request_params_header
505
619
 
506
620
  options.apply_defaults timeout: @config.rpcs.delete_domain_mapping.timeout,
507
621
  metadata: metadata,
508
622
  retry_policy: @config.rpcs.delete_domain_mapping.retry_policy
509
- options.apply_defaults metadata: @config.metadata,
623
+
624
+ options.apply_defaults timeout: @config.timeout,
625
+ metadata: @config.metadata,
510
626
  retry_policy: @config.retry_policy
511
627
 
512
628
  @domain_mappings_stub.call_rpc :delete_domain_mapping, request, options: options do |response, operation|
@@ -531,22 +647,21 @@ module Google
531
647
  # Configuration can be applied globally to all clients, or to a single client
532
648
  # on construction.
533
649
  #
534
- # # Examples
535
- #
536
- # To modify the global config, setting the timeout for list_domain_mappings
537
- # to 20 seconds, and all remaining timeouts to 10 seconds:
538
- #
539
- # ::Google::Cloud::AppEngine::V1::DomainMappings::Client.configure do |config|
540
- # config.timeout = 10.0
541
- # config.rpcs.list_domain_mappings.timeout = 20.0
542
- # end
543
- #
544
- # To apply the above configuration only to a new client:
545
- #
546
- # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new do |config|
547
- # config.timeout = 10.0
548
- # config.rpcs.list_domain_mappings.timeout = 20.0
549
- # end
650
+ # @example
651
+ #
652
+ # # Modify the global config, setting the timeout for
653
+ # # list_domain_mappings to 20 seconds,
654
+ # # and all remaining timeouts to 10 seconds.
655
+ # ::Google::Cloud::AppEngine::V1::DomainMappings::Client.configure do |config|
656
+ # config.timeout = 10.0
657
+ # config.rpcs.list_domain_mappings.timeout = 20.0
658
+ # end
659
+ #
660
+ # # Apply the above configuration only to a new client.
661
+ # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new do |config|
662
+ # config.timeout = 10.0
663
+ # config.rpcs.list_domain_mappings.timeout = 20.0
664
+ # end
550
665
  #
551
666
  # @!attribute [rw] endpoint
552
667
  # The hostname or hostname:port of the service endpoint.