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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/appengine/v1/instance_pb.rb +15 -0
- data/lib/google/appengine/v1/location_pb.rb +2 -0
- data/lib/google/appengine/v1/network_settings_pb.rb +11 -0
- data/lib/google/appengine/v1/operation_pb.rb +1 -0
- data/lib/google/appengine/v1/service_pb.rb +2 -0
- data/lib/google/appengine/v1/version_pb.rb +4 -0
- data/lib/google/cloud/app_engine/v1/applications/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +33 -38
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +48 -43
- data/lib/google/cloud/app_engine/v1/instances/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/services/client.rb +42 -41
- data/lib/google/cloud/app_engine/v1/services/operations.rb +34 -25
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +45 -42
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +34 -25
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/appengine/v1/instance.rb +71 -32
- data/proto_docs/google/appengine/v1/location.rb +4 -0
- data/proto_docs/google/appengine/v1/network_settings.rb +51 -0
- data/proto_docs/google/appengine/v1/service.rb +3 -0
- data/proto_docs/google/appengine/v1/version.rb +26 -1
- 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
|
-
#
|
43
|
+
# @example
|
44
44
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
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
|
-
#
|
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
|
-
#
|
104
|
-
#
|
97
|
+
# # Create a client using the default configuration
|
98
|
+
# client = ::Google::Cloud::AppEngine::V1::AuthorizedCertificates::Client.new
|
105
99
|
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
520
|
-
#
|
521
|
-
#
|
522
|
-
# to 20 seconds,
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
#
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
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
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
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
|
-
#
|
98
|
-
#
|
99
|
-
# To create a new AuthorizedDomains client with the default
|
100
|
-
# configuration:
|
96
|
+
# @example
|
101
97
|
#
|
102
|
-
#
|
98
|
+
# # Create a client using the default configuration
|
99
|
+
# client = ::Google::Cloud::AppEngine::V1::AuthorizedDomains::Client.new
|
103
100
|
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
# to 20 seconds,
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
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
|
-
#
|
42
|
+
# @example
|
43
43
|
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
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
|
-
#
|
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
|
-
#
|
103
|
-
#
|
96
|
+
# # Create a client using the default configuration
|
97
|
+
# client = ::Google::Cloud::AppEngine::V1::DomainMappings::Client.new
|
104
98
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
# to 20 seconds,
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
#
|
543
|
-
#
|
544
|
-
#
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
400
|
-
#
|
401
|
-
#
|
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
|
-
|
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
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
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.
|