google-cloud-app_engine-v1 0.3.2 → 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/lib/google/cloud/app_engine/v1/applications/client.rb +41 -40
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +30 -21
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +44 -41
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +32 -37
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +44 -41
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +30 -21
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +47 -42
- data/lib/google/cloud/app_engine/v1/instances/client.rb +41 -40
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +30 -21
- data/lib/google/cloud/app_engine/v1/services/client.rb +41 -40
- data/lib/google/cloud/app_engine/v1/services/operations.rb +30 -21
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +44 -41
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +30 -21
- metadata +4 -4
@@ -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|
|
@@ -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.
|
@@ -39,13 +39,12 @@ module Google
|
|
39
39
|
# See {::Google::Cloud::AppEngine::V1::Services::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 Services clients
|
45
|
+
# ::Google::Cloud::AppEngine::V1::Services::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 Services client object.
|
94
93
|
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# To create a new Services client with the default
|
98
|
-
# configuration:
|
99
|
-
#
|
100
|
-
# client = ::Google::Cloud::AppEngine::V1::Services::Client.new
|
94
|
+
# @example
|
101
95
|
#
|
102
|
-
#
|
103
|
-
#
|
96
|
+
# # Create a client using the default configuration
|
97
|
+
# client = ::Google::Cloud::AppEngine::V1::Services::Client.new
|
104
98
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
99
|
+
# # Create a client using a custom configuration
|
100
|
+
# client = ::Google::Cloud::AppEngine::V1::Services::Client.new do |config|
|
101
|
+
# config.timeout = 10.0
|
102
|
+
# end
|
108
103
|
#
|
109
104
|
# @yield [config] Configure the Services client.
|
110
105
|
# @yieldparam config [Client::Configuration]
|
@@ -124,10 +119,9 @@ 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
|
@@ -219,7 +213,9 @@ module Google
|
|
219
213
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
220
214
|
metadata: metadata,
|
221
215
|
retry_policy: @config.rpcs.list_services.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
|
@services_stub.call_rpc :list_services, request, options: options do |response, operation|
|
@@ -286,7 +282,9 @@ module Google
|
|
286
282
|
options.apply_defaults timeout: @config.rpcs.get_service.timeout,
|
287
283
|
metadata: metadata,
|
288
284
|
retry_policy: @config.rpcs.get_service.retry_policy
|
289
|
-
|
285
|
+
|
286
|
+
options.apply_defaults timeout: @config.timeout,
|
287
|
+
metadata: @config.metadata,
|
290
288
|
retry_policy: @config.retry_policy
|
291
289
|
|
292
290
|
@services_stub.call_rpc :get_service, request, options: options do |response, operation|
|
@@ -370,7 +368,9 @@ module Google
|
|
370
368
|
options.apply_defaults timeout: @config.rpcs.update_service.timeout,
|
371
369
|
metadata: metadata,
|
372
370
|
retry_policy: @config.rpcs.update_service.retry_policy
|
373
|
-
|
371
|
+
|
372
|
+
options.apply_defaults timeout: @config.timeout,
|
373
|
+
metadata: @config.metadata,
|
374
374
|
retry_policy: @config.retry_policy
|
375
375
|
|
376
376
|
@services_stub.call_rpc :update_service, request, options: options do |response, operation|
|
@@ -437,7 +437,9 @@ module Google
|
|
437
437
|
options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
|
438
438
|
metadata: metadata,
|
439
439
|
retry_policy: @config.rpcs.delete_service.retry_policy
|
440
|
-
|
440
|
+
|
441
|
+
options.apply_defaults timeout: @config.timeout,
|
442
|
+
metadata: @config.metadata,
|
441
443
|
retry_policy: @config.retry_policy
|
442
444
|
|
443
445
|
@services_stub.call_rpc :delete_service, request, options: options do |response, operation|
|
@@ -462,22 +464,21 @@ module Google
|
|
462
464
|
# Configuration can be applied globally to all clients, or to a single client
|
463
465
|
# on construction.
|
464
466
|
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
# to 20 seconds,
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
# end
|
467
|
+
# @example
|
468
|
+
#
|
469
|
+
# # Modify the global config, setting the timeout for
|
470
|
+
# # list_services to 20 seconds,
|
471
|
+
# # and all remaining timeouts to 10 seconds.
|
472
|
+
# ::Google::Cloud::AppEngine::V1::Services::Client.configure do |config|
|
473
|
+
# config.timeout = 10.0
|
474
|
+
# config.rpcs.list_services.timeout = 20.0
|
475
|
+
# end
|
476
|
+
#
|
477
|
+
# # Apply the above configuration only to a new client.
|
478
|
+
# client = ::Google::Cloud::AppEngine::V1::Services::Client.new do |config|
|
479
|
+
# config.timeout = 10.0
|
480
|
+
# config.rpcs.list_services.timeout = 20.0
|
481
|
+
# end
|
481
482
|
#
|
482
483
|
# @!attribute [rw] endpoint
|
483
484
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
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|
|
@@ -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.
|
@@ -39,13 +39,12 @@ module Google
|
|
39
39
|
# See {::Google::Cloud::AppEngine::V1::Versions::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 Versions clients
|
45
|
+
# ::Google::Cloud::AppEngine::V1::Versions::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 Versions client object.
|
94
93
|
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# To create a new Versions client with the default
|
98
|
-
# configuration:
|
99
|
-
#
|
100
|
-
# client = ::Google::Cloud::AppEngine::V1::Versions::Client.new
|
94
|
+
# @example
|
101
95
|
#
|
102
|
-
#
|
103
|
-
#
|
96
|
+
# # Create a client using the default configuration
|
97
|
+
# client = ::Google::Cloud::AppEngine::V1::Versions::Client.new
|
104
98
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
99
|
+
# # Create a client using a custom configuration
|
100
|
+
# client = ::Google::Cloud::AppEngine::V1::Versions::Client.new do |config|
|
101
|
+
# config.timeout = 10.0
|
102
|
+
# end
|
108
103
|
#
|
109
104
|
# @yield [config] Configure the Versions client.
|
110
105
|
# @yieldparam config [Client::Configuration]
|
@@ -124,10 +119,9 @@ 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
|
@@ -222,7 +216,9 @@ module Google
|
|
222
216
|
options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
|
223
217
|
metadata: metadata,
|
224
218
|
retry_policy: @config.rpcs.list_versions.retry_policy
|
225
|
-
|
219
|
+
|
220
|
+
options.apply_defaults timeout: @config.timeout,
|
221
|
+
metadata: @config.metadata,
|
226
222
|
retry_policy: @config.retry_policy
|
227
223
|
|
228
224
|
@versions_stub.call_rpc :list_versions, request, options: options do |response, operation|
|
@@ -294,7 +290,9 @@ module Google
|
|
294
290
|
options.apply_defaults timeout: @config.rpcs.get_version.timeout,
|
295
291
|
metadata: metadata,
|
296
292
|
retry_policy: @config.rpcs.get_version.retry_policy
|
297
|
-
|
293
|
+
|
294
|
+
options.apply_defaults timeout: @config.timeout,
|
295
|
+
metadata: @config.metadata,
|
298
296
|
retry_policy: @config.retry_policy
|
299
297
|
|
300
298
|
@versions_stub.call_rpc :get_version, request, options: options do |response, operation|
|
@@ -363,7 +361,9 @@ module Google
|
|
363
361
|
options.apply_defaults timeout: @config.rpcs.create_version.timeout,
|
364
362
|
metadata: metadata,
|
365
363
|
retry_policy: @config.rpcs.create_version.retry_policy
|
366
|
-
|
364
|
+
|
365
|
+
options.apply_defaults timeout: @config.timeout,
|
366
|
+
metadata: @config.metadata,
|
367
367
|
retry_policy: @config.retry_policy
|
368
368
|
|
369
369
|
@versions_stub.call_rpc :create_version, request, options: options do |response, operation|
|
@@ -471,7 +471,9 @@ module Google
|
|
471
471
|
options.apply_defaults timeout: @config.rpcs.update_version.timeout,
|
472
472
|
metadata: metadata,
|
473
473
|
retry_policy: @config.rpcs.update_version.retry_policy
|
474
|
-
|
474
|
+
|
475
|
+
options.apply_defaults timeout: @config.timeout,
|
476
|
+
metadata: @config.metadata,
|
475
477
|
retry_policy: @config.retry_policy
|
476
478
|
|
477
479
|
@versions_stub.call_rpc :update_version, request, options: options do |response, operation|
|
@@ -539,7 +541,9 @@ module Google
|
|
539
541
|
options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
|
540
542
|
metadata: metadata,
|
541
543
|
retry_policy: @config.rpcs.delete_version.retry_policy
|
542
|
-
|
544
|
+
|
545
|
+
options.apply_defaults timeout: @config.timeout,
|
546
|
+
metadata: @config.metadata,
|
543
547
|
retry_policy: @config.retry_policy
|
544
548
|
|
545
549
|
@versions_stub.call_rpc :delete_version, request, options: options do |response, operation|
|
@@ -564,22 +568,21 @@ module Google
|
|
564
568
|
# Configuration can be applied globally to all clients, or to a single client
|
565
569
|
# on construction.
|
566
570
|
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
# to 20 seconds,
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
575
|
-
#
|
576
|
-
#
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
#
|
581
|
-
#
|
582
|
-
# end
|
571
|
+
# @example
|
572
|
+
#
|
573
|
+
# # Modify the global config, setting the timeout for
|
574
|
+
# # list_versions to 20 seconds,
|
575
|
+
# # and all remaining timeouts to 10 seconds.
|
576
|
+
# ::Google::Cloud::AppEngine::V1::Versions::Client.configure do |config|
|
577
|
+
# config.timeout = 10.0
|
578
|
+
# config.rpcs.list_versions.timeout = 20.0
|
579
|
+
# end
|
580
|
+
#
|
581
|
+
# # Apply the above configuration only to a new client.
|
582
|
+
# client = ::Google::Cloud::AppEngine::V1::Versions::Client.new do |config|
|
583
|
+
# config.timeout = 10.0
|
584
|
+
# config.rpcs.list_versions.timeout = 20.0
|
585
|
+
# end
|
583
586
|
#
|
584
587
|
# @!attribute [rw] endpoint
|
585
588
|
# The hostname or hostname:port of the service endpoint.
|