google-cloud-app_engine-v1 0.2.0 → 0.3.3

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 (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
@@ -40,13 +40,12 @@ module Google
40
40
  # See {::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
- # ## Example
43
+ # @example
44
44
  #
45
- # To modify the configuration for all AuthorizedCertificates clients:
46
- #
47
- # ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.configure do |config|
48
- # config.timeout = 10.0
49
- # end
45
+ # # Modify the configuration for all AuthorizedCertificates clients
46
+ # ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.configure do |config|
47
+ # config.timeout = 10.0
48
+ # end
50
49
  #
51
50
  # @yield [config] Configure the Client client.
52
51
  # @yieldparam config [Client::Configuration]
@@ -93,19 +92,15 @@ module Google
93
92
  ##
94
93
  # Create a new AuthorizedCertificates client object.
95
94
  #
96
- # ## Examples
97
- #
98
- # To create a new AuthorizedCertificates client with the default
99
- # configuration:
100
- #
101
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
95
+ # @example
102
96
  #
103
- # To create a new AuthorizedCertificates client with a custom
104
- # configuration:
97
+ # # Create a client using the default configuration
98
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
105
99
  #
106
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new do |config|
107
- # config.timeout = 10.0
108
- # end
100
+ # # Create a client using a custom configuration
101
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new do |config|
102
+ # config.timeout = 10.0
103
+ # end
109
104
  #
110
105
  # @yield [config] Configure the AuthorizedCertificates client.
111
106
  # @yieldparam config [Client::Configuration]
@@ -125,14 +120,13 @@ module Google
125
120
 
126
121
  # Create credentials
127
122
  credentials = @config.credentials
128
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
123
+ # Use self-signed JWT if the endpoint is unchanged from default,
129
124
  # but only if the default endpoint does not have a region prefix.
130
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
131
- @config.endpoint == Client.configure.endpoint &&
125
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
132
126
  !@config.endpoint.split(".").first.include?("-")
133
127
  credentials ||= Credentials.default scope: @config.scope,
134
128
  enable_self_signed_jwt: enable_self_signed_jwt
135
- if credentials.is_a?(String) || credentials.is_a?(Hash)
129
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
136
130
  credentials = Credentials.new credentials, scope: @config.scope
137
131
  end
138
132
  @quota_project_id = @config.quota_project
@@ -210,7 +204,9 @@ module Google
210
204
  options.apply_defaults timeout: @config.rpcs.list_authorized_certificates.timeout,
211
205
  metadata: metadata,
212
206
  retry_policy: @config.rpcs.list_authorized_certificates.retry_policy
213
- options.apply_defaults metadata: @config.metadata,
207
+
208
+ options.apply_defaults timeout: @config.timeout,
209
+ metadata: @config.metadata,
214
210
  retry_policy: @config.retry_policy
215
211
 
216
212
  @authorized_certificates_stub.call_rpc :list_authorized_certificates, request, options: options do |response, operation|
@@ -280,7 +276,9 @@ module Google
280
276
  options.apply_defaults timeout: @config.rpcs.get_authorized_certificate.timeout,
281
277
  metadata: metadata,
282
278
  retry_policy: @config.rpcs.get_authorized_certificate.retry_policy
283
- options.apply_defaults metadata: @config.metadata,
279
+
280
+ options.apply_defaults timeout: @config.timeout,
281
+ metadata: @config.metadata,
284
282
  retry_policy: @config.retry_policy
285
283
 
286
284
  @authorized_certificates_stub.call_rpc :get_authorized_certificate, request, options: options do |response, operation|
@@ -348,7 +346,9 @@ module Google
348
346
  options.apply_defaults timeout: @config.rpcs.create_authorized_certificate.timeout,
349
347
  metadata: metadata,
350
348
  retry_policy: @config.rpcs.create_authorized_certificate.retry_policy
351
- options.apply_defaults metadata: @config.metadata,
349
+
350
+ options.apply_defaults timeout: @config.timeout,
351
+ metadata: @config.metadata,
352
352
  retry_policy: @config.retry_policy
353
353
 
354
354
  @authorized_certificates_stub.call_rpc :create_authorized_certificate, request, options: options do |response, operation|
@@ -425,7 +425,9 @@ module Google
425
425
  options.apply_defaults timeout: @config.rpcs.update_authorized_certificate.timeout,
426
426
  metadata: metadata,
427
427
  retry_policy: @config.rpcs.update_authorized_certificate.retry_policy
428
- options.apply_defaults metadata: @config.metadata,
428
+
429
+ options.apply_defaults timeout: @config.timeout,
430
+ metadata: @config.metadata,
429
431
  retry_policy: @config.retry_policy
430
432
 
431
433
  @authorized_certificates_stub.call_rpc :update_authorized_certificate, request, options: options do |response, operation|
@@ -492,7 +494,9 @@ module Google
492
494
  options.apply_defaults timeout: @config.rpcs.delete_authorized_certificate.timeout,
493
495
  metadata: metadata,
494
496
  retry_policy: @config.rpcs.delete_authorized_certificate.retry_policy
495
- options.apply_defaults metadata: @config.metadata,
497
+
498
+ options.apply_defaults timeout: @config.timeout,
499
+ metadata: @config.metadata,
496
500
  retry_policy: @config.retry_policy
497
501
 
498
502
  @authorized_certificates_stub.call_rpc :delete_authorized_certificate, request, options: options do |response, operation|
@@ -516,22 +520,21 @@ module Google
516
520
  # Configuration can be applied globally to all clients, or to a single client
517
521
  # on construction.
518
522
  #
519
- # # Examples
520
- #
521
- # To modify the global config, setting the timeout for list_authorized_certificates
522
- # to 20 seconds, and all remaining timeouts to 10 seconds:
523
- #
524
- # ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.configure do |config|
525
- # config.timeout = 10.0
526
- # config.rpcs.list_authorized_certificates.timeout = 20.0
527
- # end
528
- #
529
- # To apply the above configuration only to a new client:
530
- #
531
- # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new do |config|
532
- # config.timeout = 10.0
533
- # config.rpcs.list_authorized_certificates.timeout = 20.0
534
- # end
523
+ # @example
524
+ #
525
+ # # Modify the global config, setting the timeout for
526
+ # # list_authorized_certificates to 20 seconds,
527
+ # # and all remaining timeouts to 10 seconds.
528
+ # ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.configure do |config|
529
+ # config.timeout = 10.0
530
+ # config.rpcs.list_authorized_certificates.timeout = 20.0
531
+ # end
532
+ #
533
+ # # Apply the above configuration only to a new client.
534
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new do |config|
535
+ # config.timeout = 10.0
536
+ # config.rpcs.list_authorized_certificates.timeout = 20.0
537
+ # end
535
538
  #
536
539
  # @!attribute [rw] endpoint
537
540
  # The hostname or hostname:port of the service endpoint.
@@ -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
@@ -209,7 +203,9 @@ module Google
209
203
  options.apply_defaults timeout: @config.rpcs.list_authorized_domains.timeout,
210
204
  metadata: metadata,
211
205
  retry_policy: @config.rpcs.list_authorized_domains.retry_policy
212
- options.apply_defaults metadata: @config.metadata,
206
+
207
+ options.apply_defaults timeout: @config.timeout,
208
+ metadata: @config.metadata,
213
209
  retry_policy: @config.retry_policy
214
210
 
215
211
  @authorized_domains_stub.call_rpc :list_authorized_domains, request, options: options do |response, operation|
@@ -234,22 +230,21 @@ module Google
234
230
  # Configuration can be applied globally to all clients, or to a single client
235
231
  # on construction.
236
232
  #
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
233
+ # @example
234
+ #
235
+ # # Modify the global config, setting the timeout for
236
+ # # list_authorized_domains to 20 seconds,
237
+ # # and all remaining timeouts to 10 seconds.
238
+ # ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.configure do |config|
239
+ # config.timeout = 10.0
240
+ # config.rpcs.list_authorized_domains.timeout = 20.0
241
+ # end
242
+ #
243
+ # # Apply the above configuration only to a new client.
244
+ # client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new do |config|
245
+ # config.timeout = 10.0
246
+ # config.rpcs.list_authorized_domains.timeout = 20.0
247
+ # end
253
248
  #
254
249
  # @!attribute [rw] endpoint
255
250
  # 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
@@ -219,7 +213,9 @@ module Google
219
213
  options.apply_defaults timeout: @config.rpcs.list_domain_mappings.timeout,
220
214
  metadata: metadata,
221
215
  retry_policy: @config.rpcs.list_domain_mappings.retry_policy
222
- options.apply_defaults metadata: @config.metadata,
216
+
217
+ options.apply_defaults timeout: @config.timeout,
218
+ metadata: @config.metadata,
223
219
  retry_policy: @config.retry_policy
224
220
 
225
221
  @domain_mappings_stub.call_rpc :list_domain_mappings, request, options: options do |response, operation|
@@ -287,7 +283,9 @@ module Google
287
283
  options.apply_defaults timeout: @config.rpcs.get_domain_mapping.timeout,
288
284
  metadata: metadata,
289
285
  retry_policy: @config.rpcs.get_domain_mapping.retry_policy
290
- options.apply_defaults metadata: @config.metadata,
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata,
291
289
  retry_policy: @config.retry_policy
292
290
 
293
291
  @domain_mappings_stub.call_rpc :get_domain_mapping, request, options: options do |response, operation|
@@ -360,7 +358,9 @@ module Google
360
358
  options.apply_defaults timeout: @config.rpcs.create_domain_mapping.timeout,
361
359
  metadata: metadata,
362
360
  retry_policy: @config.rpcs.create_domain_mapping.retry_policy
363
- options.apply_defaults metadata: @config.metadata,
361
+
362
+ options.apply_defaults timeout: @config.timeout,
363
+ metadata: @config.metadata,
364
364
  retry_policy: @config.retry_policy
365
365
 
366
366
  @domain_mappings_stub.call_rpc :create_domain_mapping, request, options: options do |response, operation|
@@ -436,7 +436,9 @@ module Google
436
436
  options.apply_defaults timeout: @config.rpcs.update_domain_mapping.timeout,
437
437
  metadata: metadata,
438
438
  retry_policy: @config.rpcs.update_domain_mapping.retry_policy
439
- options.apply_defaults metadata: @config.metadata,
439
+
440
+ options.apply_defaults timeout: @config.timeout,
441
+ metadata: @config.metadata,
440
442
  retry_policy: @config.retry_policy
441
443
 
442
444
  @domain_mappings_stub.call_rpc :update_domain_mapping, request, options: options do |response, operation|
@@ -506,7 +508,9 @@ module Google
506
508
  options.apply_defaults timeout: @config.rpcs.delete_domain_mapping.timeout,
507
509
  metadata: metadata,
508
510
  retry_policy: @config.rpcs.delete_domain_mapping.retry_policy
509
- options.apply_defaults metadata: @config.metadata,
511
+
512
+ options.apply_defaults timeout: @config.timeout,
513
+ metadata: @config.metadata,
510
514
  retry_policy: @config.retry_policy
511
515
 
512
516
  @domain_mappings_stub.call_rpc :delete_domain_mapping, request, options: options do |response, operation|
@@ -531,22 +535,21 @@ module Google
531
535
  # Configuration can be applied globally to all clients, or to a single client
532
536
  # on construction.
533
537
  #
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
538
+ # @example
539
+ #
540
+ # # Modify the global config, setting the timeout for
541
+ # # list_domain_mappings to 20 seconds,
542
+ # # and all remaining timeouts to 10 seconds.
543
+ # ::Google::Cloud::AppEngine::V1::DomainMappings::Client.configure do |config|
544
+ # config.timeout = 10.0
545
+ # config.rpcs.list_domain_mappings.timeout = 20.0
546
+ # end
547
+ #
548
+ # # Apply the above configuration only to a new client.
549
+ # client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new do |config|
550
+ # config.timeout = 10.0
551
+ # config.rpcs.list_domain_mappings.timeout = 20.0
552
+ # end
550
553
  #
551
554
  # @!attribute [rw] endpoint
552
555
  # 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.