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