google-cloud-app_engine-v1 0.2.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) 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/instance_pb.rb +15 -0
  5. data/lib/google/appengine/v1/location_pb.rb +2 -0
  6. data/lib/google/appengine/v1/network_settings_pb.rb +11 -0
  7. data/lib/google/appengine/v1/operation_pb.rb +1 -0
  8. data/lib/google/appengine/v1/service_pb.rb +2 -0
  9. data/lib/google/appengine/v1/version_pb.rb +4 -0
  10. data/lib/google/cloud/app_engine/v1/applications/client.rb +42 -41
  11. data/lib/google/cloud/app_engine/v1/applications/operations.rb +34 -25
  12. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +45 -42
  13. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +33 -38
  14. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +45 -42
  15. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +34 -25
  16. data/lib/google/cloud/app_engine/v1/firewall/client.rb +48 -43
  17. data/lib/google/cloud/app_engine/v1/instances/client.rb +42 -41
  18. data/lib/google/cloud/app_engine/v1/instances/operations.rb +34 -25
  19. data/lib/google/cloud/app_engine/v1/services/client.rb +42 -41
  20. data/lib/google/cloud/app_engine/v1/services/operations.rb +34 -25
  21. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  22. data/lib/google/cloud/app_engine/v1/versions/client.rb +45 -42
  23. data/lib/google/cloud/app_engine/v1/versions/operations.rb +34 -25
  24. data/proto_docs/google/api/field_behavior.rb +71 -0
  25. data/proto_docs/google/appengine/v1/instance.rb +71 -32
  26. data/proto_docs/google/appengine/v1/location.rb +4 -0
  27. data/proto_docs/google/appengine/v1/network_settings.rb +51 -0
  28. data/proto_docs/google/appengine/v1/service.rb +3 -0
  29. data/proto_docs/google/appengine/v1/version.rb +26 -1
  30. metadata +15 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63794941a7d4c11917924c1ce1306755b0afea07747297ea9bfad29d26d98793
4
- data.tar.gz: 15835bfe2fda664c4a9e511a0c55d6b51694d8a89835521f7f739c3e448317f6
3
+ metadata.gz: 75db990aef798981b48a838937b7efadf8056d205100c13dcd090e9a2a240ed7
4
+ data.tar.gz: 8e506a925ce59b3c03c0fda5b0ea4025bf6f2bcf242c7ff74f36900131c25ed0
5
5
  SHA512:
6
- metadata.gz: 4f59bcd391ce20cff38864fb40bf4d42e18738498aa4b2dfaa89a91178590fddc2d2b490bf850e133ac26569a0f26aaaf47b1998a15c7cadee71894523036228
7
- data.tar.gz: '047313934e02b17c3e3e353f7494a992cfd00ddc02622f3524651a02e470b2d4a81961e0bcd0ad61f8f0dae1fc24482e4de9503b06dccf85a5db4eaccb3e6167'
6
+ metadata.gz: 27a0e34749bdf4d5379d1a3565721a649f6e0378c0a4b185a68c93c539a00c8bb7678c77d9380309e0f3fa6810aa8618f0ed6bfc46de9f4d3368bb1bdfa3257d
7
+ data.tar.gz: 49510fcceee41312cedefaee9e298de35206fda344e960af6d031c0ea4898104bf2610b9e16914c1bc9d6f8c3af2cef254d62ea0ff58248859f9b8d0782ec381
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-app_engine-v1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::AppEngine::V1::Applications::Credentials}):
68
68
 
69
- 1. `APP_ENGINE_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `APP_ENGINE_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `APP_ENGINE_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `APP_ENGINE_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/app_engine/v1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::AppEngine::V1::Applications::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/app_engine/v1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::AppEngine::V1::Applications::Client.new do |config|
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/app_engine/v1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/app_engine/v1"
34
34
 
35
35
  client = ::Google::Cloud::AppEngine::V1::Applications::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::AppEngine::V1::GetApplicationRequest.new # (request fields as keyword arguments...)
37
37
  response = client.get_application request
38
38
  ```
39
39
 
@@ -3,6 +3,8 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
6
8
  require 'google/protobuf/timestamp_pb'
7
9
  require 'google/api/annotations_pb'
8
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -24,6 +26,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
26
  optional :vm_status, :string, 14
25
27
  optional :vm_debug_enabled, :bool, 15
26
28
  optional :vm_ip, :string, 16
29
+ optional :vm_liveness, :enum, 17, "google.appengine.v1.Instance.Liveness.LivenessState"
30
+ end
31
+ add_message "google.appengine.v1.Instance.Liveness" do
32
+ end
33
+ add_enum "google.appengine.v1.Instance.Liveness.LivenessState" do
34
+ value :LIVENESS_STATE_UNSPECIFIED, 0
35
+ value :UNKNOWN, 1
36
+ value :HEALTHY, 2
37
+ value :UNHEALTHY, 3
38
+ value :DRAINING, 4
39
+ value :TIMEOUT, 5
27
40
  end
28
41
  add_enum "google.appengine.v1.Instance.Availability" do
29
42
  value :UNSPECIFIED, 0
@@ -38,6 +51,8 @@ module Google
38
51
  module AppEngine
39
52
  module V1
40
53
  Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.Instance").msgclass
54
+ Instance::Liveness = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.Instance.Liveness").msgclass
55
+ Instance::Liveness::LivenessState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.Instance.Liveness.LivenessState").enummodule
41
56
  Instance::Availability = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.Instance.Availability").enummodule
42
57
  end
43
58
  end
@@ -3,12 +3,14 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/api/field_behavior_pb'
6
7
  require 'google/api/annotations_pb'
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/appengine/v1/location.proto", :syntax => :proto3) do
9
10
  add_message "google.appengine.v1.LocationMetadata" do
10
11
  optional :standard_environment_available, :bool, 2
11
12
  optional :flexible_environment_available, :bool, 4
13
+ optional :search_api_available, :bool, 6
12
14
  end
13
15
  end
14
16
  end
@@ -6,6 +6,15 @@ require 'google/protobuf'
6
6
  require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/appengine/v1/network_settings.proto", :syntax => :proto3) do
9
+ add_message "google.appengine.v1.NetworkSettings" do
10
+ optional :ingress_traffic_allowed, :enum, 1, "google.appengine.v1.NetworkSettings.IngressTrafficAllowed"
11
+ end
12
+ add_enum "google.appengine.v1.NetworkSettings.IngressTrafficAllowed" do
13
+ value :INGRESS_TRAFFIC_ALLOWED_UNSPECIFIED, 0
14
+ value :INGRESS_TRAFFIC_ALLOWED_ALL, 1
15
+ value :INGRESS_TRAFFIC_ALLOWED_INTERNAL_ONLY, 2
16
+ value :INGRESS_TRAFFIC_ALLOWED_INTERNAL_AND_LB, 3
17
+ end
9
18
  end
10
19
  end
11
20
 
@@ -13,6 +22,8 @@ module Google
13
22
  module Cloud
14
23
  module AppEngine
15
24
  module V1
25
+ NetworkSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.NetworkSettings").msgclass
26
+ NetworkSettings::IngressTrafficAllowed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.appengine.v1.NetworkSettings.IngressTrafficAllowed").enummodule
16
27
  end
17
28
  end
18
29
  end
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/protobuf/duration_pb'
6
7
  require 'google/protobuf/timestamp_pb'
7
8
  require 'google/api/annotations_pb'
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/appengine/v1/network_settings_pb'
6
7
  require 'google/api/annotations_pb'
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/appengine/v1/service.proto", :syntax => :proto3) do
@@ -10,6 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  optional :name, :string, 1
11
12
  optional :id, :string, 2
12
13
  optional :split, :message, 3, "google.appengine.v1.TrafficSplit"
14
+ optional :network_settings, :message, 6, "google.appengine.v1.NetworkSettings"
13
15
  end
14
16
  add_message "google.appengine.v1.TrafficSplit" do
15
17
  optional :shard_by, :enum, 1, "google.appengine.v1.TrafficSplit.ShardBy"
@@ -5,6 +5,7 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/appengine/v1/app_yaml_pb'
7
7
  require 'google/appengine/v1/deploy_pb'
8
+ require 'google/appengine/v1/network_settings_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
  require 'google/api/annotations_pb'
@@ -30,11 +31,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
31
  optional :disk_usage_bytes, :int64, 18
31
32
  optional :runtime_api_version, :string, 21
32
33
  optional :runtime_main_executable_path, :string, 22
34
+ optional :service_account, :string, 127
33
35
  repeated :handlers, :message, 100, "google.appengine.v1.UrlMap"
34
36
  repeated :error_handlers, :message, 101, "google.appengine.v1.ErrorHandler"
35
37
  repeated :libraries, :message, 102, "google.appengine.v1.Library"
36
38
  optional :api_config, :message, 103, "google.appengine.v1.ApiConfigHandler"
37
39
  map :env_variables, :string, :string, 104
40
+ map :build_env_variables, :string, :string, 125
38
41
  optional :default_expiration, :message, 105, "google.protobuf.Duration"
39
42
  optional :health_check, :message, 106, "google.appengine.v1.HealthCheck"
40
43
  optional :readiness_check, :message, 112, "google.appengine.v1.ReadinessCheck"
@@ -127,6 +130,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
127
130
  optional :disk_gb, :double, 2
128
131
  optional :memory_gb, :double, 3
129
132
  repeated :volumes, :message, 4, "google.appengine.v1.Volume"
133
+ optional :kms_key_reference, :string, 5
130
134
  end
131
135
  add_message "google.appengine.v1.VpcAccessConnector" do
132
136
  optional :name, :string, 1
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::AppEngine::V1::Applications::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 Applications clients:
45
- #
46
- # ::Google::Cloud::AppEngine::V1::Applications::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all Applications clients
45
+ # ::Google::Cloud::AppEngine::V1::Applications::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 Applications client object.
94
93
  #
95
- # ## Examples
96
- #
97
- # To create a new Applications client with the default
98
- # configuration:
99
- #
100
- # client = ::Google::Cloud::AppEngine::V1::Applications::Client.new
94
+ # @example
101
95
  #
102
- # To create a new Applications client with a custom
103
- # configuration:
96
+ # # Create a client using the default configuration
97
+ # client = ::Google::Cloud::AppEngine::V1::Applications::Client.new
104
98
  #
105
- # client = ::Google::Cloud::AppEngine::V1::Applications::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::Applications::Client.new do |config|
101
+ # config.timeout = 10.0
102
+ # end
108
103
  #
109
104
  # @yield [config] Configure the Applications 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
@@ -215,7 +209,9 @@ module Google
215
209
  options.apply_defaults timeout: @config.rpcs.get_application.timeout,
216
210
  metadata: metadata,
217
211
  retry_policy: @config.rpcs.get_application.retry_policy
218
- options.apply_defaults metadata: @config.metadata,
212
+
213
+ options.apply_defaults timeout: @config.timeout,
214
+ metadata: @config.metadata,
219
215
  retry_policy: @config.retry_policy
220
216
 
221
217
  @applications_stub.call_rpc :get_application, request, options: options do |response, operation|
@@ -281,7 +277,9 @@ module Google
281
277
  options.apply_defaults timeout: @config.rpcs.create_application.timeout,
282
278
  metadata: metadata,
283
279
  retry_policy: @config.rpcs.create_application.retry_policy
284
- options.apply_defaults metadata: @config.metadata,
280
+
281
+ options.apply_defaults timeout: @config.timeout,
282
+ metadata: @config.metadata,
285
283
  retry_policy: @config.retry_policy
286
284
 
287
285
  @applications_stub.call_rpc :create_application, request, options: options do |response, operation|
@@ -356,7 +354,9 @@ module Google
356
354
  options.apply_defaults timeout: @config.rpcs.update_application.timeout,
357
355
  metadata: metadata,
358
356
  retry_policy: @config.rpcs.update_application.retry_policy
359
- options.apply_defaults metadata: @config.metadata,
357
+
358
+ options.apply_defaults timeout: @config.timeout,
359
+ metadata: @config.metadata,
360
360
  retry_policy: @config.retry_policy
361
361
 
362
362
  @applications_stub.call_rpc :update_application, request, options: options do |response, operation|
@@ -432,7 +432,9 @@ module Google
432
432
  options.apply_defaults timeout: @config.rpcs.repair_application.timeout,
433
433
  metadata: metadata,
434
434
  retry_policy: @config.rpcs.repair_application.retry_policy
435
- options.apply_defaults metadata: @config.metadata,
435
+
436
+ options.apply_defaults timeout: @config.timeout,
437
+ metadata: @config.metadata,
436
438
  retry_policy: @config.retry_policy
437
439
 
438
440
  @applications_stub.call_rpc :repair_application, request, options: options do |response, operation|
@@ -457,22 +459,21 @@ module Google
457
459
  # Configuration can be applied globally to all clients, or to a single client
458
460
  # on construction.
459
461
  #
460
- # # Examples
461
- #
462
- # To modify the global config, setting the timeout for get_application
463
- # to 20 seconds, and all remaining timeouts to 10 seconds:
464
- #
465
- # ::Google::Cloud::AppEngine::V1::Applications::Client.configure do |config|
466
- # config.timeout = 10.0
467
- # config.rpcs.get_application.timeout = 20.0
468
- # end
469
- #
470
- # To apply the above configuration only to a new client:
471
- #
472
- # client = ::Google::Cloud::AppEngine::V1::Applications::Client.new do |config|
473
- # config.timeout = 10.0
474
- # config.rpcs.get_application.timeout = 20.0
475
- # end
462
+ # @example
463
+ #
464
+ # # Modify the global config, setting the timeout for
465
+ # # get_application to 20 seconds,
466
+ # # and all remaining timeouts to 10 seconds.
467
+ # ::Google::Cloud::AppEngine::V1::Applications::Client.configure do |config|
468
+ # config.timeout = 10.0
469
+ # config.rpcs.get_application.timeout = 20.0
470
+ # end
471
+ #
472
+ # # Apply the above configuration only to a new client.
473
+ # client = ::Google::Cloud::AppEngine::V1::Applications::Client.new do |config|
474
+ # config.timeout = 10.0
475
+ # config.rpcs.get_application.timeout = 20.0
476
+ # end
476
477
  #
477
478
  # @!attribute [rw] endpoint
478
479
  # The hostname or hostname:port of the service endpoint.
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -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|
@@ -396,9 +404,9 @@ module Google
396
404
  end
397
405
 
398
406
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
407
+ # Waits until the specified long-running operation is done or reaches at most
408
+ # a specified timeout, returning the latest state. If the operation is
409
+ # already done, the latest state is immediately returned. If the timeout
402
410
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
411
  # timeout is used. If the server does not support this method, it returns
404
412
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -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.