google-cloud-app_engine-v1 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/appengine/v1/app_yaml_pb.rb +25 -103
- data/lib/google/appengine/v1/appengine_pb.rb +33 -186
- data/lib/google/appengine/v1/application_pb.rb +25 -45
- data/lib/google/appengine/v1/audit_data_pb.rb +25 -13
- data/lib/google/appengine/v1/certificate_pb.rb +25 -29
- data/lib/google/appengine/v1/deploy_pb.rb +25 -23
- data/lib/google/appengine/v1/deployed_files_pb.rb +25 -2
- data/lib/google/appengine/v1/domain_mapping_pb.rb +24 -28
- data/lib/google/appengine/v1/domain_pb.rb +24 -5
- data/lib/google/appengine/v1/firewall_pb.rb +24 -12
- data/lib/google/appengine/v1/instance_pb.rb +25 -35
- data/lib/google/appengine/v1/location_pb.rb +24 -6
- data/lib/google/appengine/v1/network_settings_pb.rb +24 -10
- data/lib/google/appengine/v1/operation_pb.rb +25 -16
- data/lib/google/appengine/v1/service_pb.rb +25 -18
- data/lib/google/appengine/v1/version_pb.rb +28 -153
- data/lib/google/cloud/app_engine/v1/applications/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +89 -2
- data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/applications/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +88 -2
- data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/service_stub.rb +5 -5
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +24 -2
- data/lib/google/cloud/app_engine/v1/authorized_domains/rest/service_stub.rb +1 -1
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +109 -2
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/service_stub.rb +5 -5
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +104 -2
- data/lib/google/cloud/app_engine/v1/firewall/rest/service_stub.rb +6 -6
- data/lib/google/cloud/app_engine/v1/instances/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +86 -2
- data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/instances/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/services/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/services/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/services/rest/client.rb +86 -2
- data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/services/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +109 -2
- data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/versions/rest/service_stub.rb +5 -5
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -118,7 +118,7 @@ module Google
|
|
118
118
|
credentials = @config.credentials
|
119
119
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
120
120
|
# but only if the default endpoint does not have a region prefix.
|
121
|
-
enable_self_signed_jwt = @config.endpoint ==
|
121
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
122
122
|
!@config.endpoint.split(".").first.include?("-")
|
123
123
|
credentials ||= Credentials.default scope: @config.scope,
|
124
124
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -167,6 +167,26 @@ module Google
|
|
167
167
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::AuthorizedCertificate>]
|
168
168
|
#
|
169
169
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
170
|
+
#
|
171
|
+
# @example Basic example
|
172
|
+
# require "google/cloud/app_engine/v1"
|
173
|
+
#
|
174
|
+
# # Create a client object. The client can be reused for multiple calls.
|
175
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
|
176
|
+
#
|
177
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
178
|
+
# request = Google::Cloud::AppEngine::V1::ListAuthorizedCertificatesRequest.new
|
179
|
+
#
|
180
|
+
# # Call the list_authorized_certificates method.
|
181
|
+
# result = client.list_authorized_certificates request
|
182
|
+
#
|
183
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
184
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
185
|
+
# result.each do |item|
|
186
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedCertificate.
|
187
|
+
# p item
|
188
|
+
# end
|
189
|
+
#
|
170
190
|
def list_authorized_certificates request, options = nil
|
171
191
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
172
192
|
|
@@ -233,6 +253,22 @@ module Google
|
|
233
253
|
# @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
|
234
254
|
#
|
235
255
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
256
|
+
#
|
257
|
+
# @example Basic example
|
258
|
+
# require "google/cloud/app_engine/v1"
|
259
|
+
#
|
260
|
+
# # Create a client object. The client can be reused for multiple calls.
|
261
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
|
262
|
+
#
|
263
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
264
|
+
# request = Google::Cloud::AppEngine::V1::GetAuthorizedCertificateRequest.new
|
265
|
+
#
|
266
|
+
# # Call the get_authorized_certificate method.
|
267
|
+
# result = client.get_authorized_certificate request
|
268
|
+
#
|
269
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
|
270
|
+
# p result
|
271
|
+
#
|
236
272
|
def get_authorized_certificate request, options = nil
|
237
273
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
238
274
|
|
@@ -297,6 +333,22 @@ module Google
|
|
297
333
|
# @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
|
298
334
|
#
|
299
335
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
336
|
+
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/cloud/app_engine/v1"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Cloud::AppEngine::V1::CreateAuthorizedCertificateRequest.new
|
345
|
+
#
|
346
|
+
# # Call the create_authorized_certificate method.
|
347
|
+
# result = client.create_authorized_certificate request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
|
350
|
+
# p result
|
351
|
+
#
|
300
352
|
def create_authorized_certificate request, options = nil
|
301
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
302
354
|
|
@@ -370,6 +422,22 @@ module Google
|
|
370
422
|
# @return [::Google::Cloud::AppEngine::V1::AuthorizedCertificate]
|
371
423
|
#
|
372
424
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
425
|
+
#
|
426
|
+
# @example Basic example
|
427
|
+
# require "google/cloud/app_engine/v1"
|
428
|
+
#
|
429
|
+
# # Create a client object. The client can be reused for multiple calls.
|
430
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
|
431
|
+
#
|
432
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
433
|
+
# request = Google::Cloud::AppEngine::V1::UpdateAuthorizedCertificateRequest.new
|
434
|
+
#
|
435
|
+
# # Call the update_authorized_certificate method.
|
436
|
+
# result = client.update_authorized_certificate request
|
437
|
+
#
|
438
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::AuthorizedCertificate.
|
439
|
+
# p result
|
440
|
+
#
|
373
441
|
def update_authorized_certificate request, options = nil
|
374
442
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
375
443
|
|
@@ -433,6 +501,22 @@ module Google
|
|
433
501
|
# @return [::Google::Protobuf::Empty]
|
434
502
|
#
|
435
503
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
504
|
+
#
|
505
|
+
# @example Basic example
|
506
|
+
# require "google/cloud/app_engine/v1"
|
507
|
+
#
|
508
|
+
# # Create a client object. The client can be reused for multiple calls.
|
509
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedCertificates::Rest::Client.new
|
510
|
+
#
|
511
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
512
|
+
# request = Google::Cloud::AppEngine::V1::DeleteAuthorizedCertificateRequest.new
|
513
|
+
#
|
514
|
+
# # Call the delete_authorized_certificate method.
|
515
|
+
# result = client.delete_authorized_certificate request
|
516
|
+
#
|
517
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
518
|
+
# p result
|
519
|
+
#
|
436
520
|
def delete_authorized_certificate request, options = nil
|
437
521
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
438
522
|
|
@@ -541,7 +625,9 @@ module Google
|
|
541
625
|
class Configuration
|
542
626
|
extend ::Gapic::Config
|
543
627
|
|
544
|
-
|
628
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
629
|
+
|
630
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
545
631
|
config_attr :credentials, nil do |value|
|
546
632
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
547
633
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_authorized_certificates_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_authorized_certificate_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_authorized_certificate_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_authorized_certificate_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_authorized_certificate_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
credentials = @config.credentials
|
124
124
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
125
125
|
# but only if the default endpoint does not have a region prefix.
|
126
|
-
enable_self_signed_jwt = @config.endpoint ==
|
126
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
127
127
|
!@config.endpoint.split(".").first.include?("-")
|
128
128
|
credentials ||= Credentials.default scope: @config.scope,
|
129
129
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -138,7 +138,8 @@ module Google
|
|
138
138
|
credentials: credentials,
|
139
139
|
endpoint: @config.endpoint,
|
140
140
|
channel_args: @config.channel_args,
|
141
|
-
interceptors: @config.interceptors
|
141
|
+
interceptors: @config.interceptors,
|
142
|
+
channel_pool_config: @config.channel_pool
|
142
143
|
)
|
143
144
|
end
|
144
145
|
|
@@ -320,7 +321,9 @@ module Google
|
|
320
321
|
class Configuration
|
321
322
|
extend ::Gapic::Config
|
322
323
|
|
323
|
-
|
324
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
325
|
+
|
326
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
324
327
|
config_attr :credentials, nil do |value|
|
325
328
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
326
329
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -355,6 +358,14 @@ module Google
|
|
355
358
|
end
|
356
359
|
end
|
357
360
|
|
361
|
+
##
|
362
|
+
# Configuration for the channel pool
|
363
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
364
|
+
#
|
365
|
+
def channel_pool
|
366
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
367
|
+
end
|
368
|
+
|
358
369
|
##
|
359
370
|
# Configuration RPC class for the AuthorizedDomains API.
|
360
371
|
#
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
credentials = @config.credentials
|
120
120
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
121
121
|
# but only if the default endpoint does not have a region prefix.
|
122
|
-
enable_self_signed_jwt = @config.endpoint ==
|
122
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
123
123
|
!@config.endpoint.split(".").first.include?("-")
|
124
124
|
credentials ||= Credentials.default scope: @config.scope,
|
125
125
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -166,6 +166,26 @@ module Google
|
|
166
166
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::AuthorizedDomain>]
|
167
167
|
#
|
168
168
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
169
|
+
#
|
170
|
+
# @example Basic example
|
171
|
+
# require "google/cloud/app_engine/v1"
|
172
|
+
#
|
173
|
+
# # Create a client object. The client can be reused for multiple calls.
|
174
|
+
# client = Google::Cloud::AppEngine::V1::AuthorizedDomains::Rest::Client.new
|
175
|
+
#
|
176
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
177
|
+
# request = Google::Cloud::AppEngine::V1::ListAuthorizedDomainsRequest.new
|
178
|
+
#
|
179
|
+
# # Call the list_authorized_domains method.
|
180
|
+
# result = client.list_authorized_domains request
|
181
|
+
#
|
182
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
183
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
184
|
+
# result.each do |item|
|
185
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::AuthorizedDomain.
|
186
|
+
# p item
|
187
|
+
# end
|
188
|
+
#
|
169
189
|
def list_authorized_domains request, options = nil
|
170
190
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
171
191
|
|
@@ -275,7 +295,9 @@ module Google
|
|
275
295
|
class Configuration
|
276
296
|
extend ::Gapic::Config
|
277
297
|
|
278
|
-
|
298
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
299
|
+
|
300
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
279
301
|
config_attr :credentials, nil do |value|
|
280
302
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
281
303
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_authorized_domains_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
credentials = @config.credentials
|
122
122
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
123
123
|
# but only if the default endpoint does not have a region prefix.
|
124
|
-
enable_self_signed_jwt = @config.endpoint ==
|
124
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
125
125
|
!@config.endpoint.split(".").first.include?("-")
|
126
126
|
credentials ||= Credentials.default scope: @config.scope,
|
127
127
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -142,7 +142,8 @@ module Google
|
|
142
142
|
credentials: credentials,
|
143
143
|
endpoint: @config.endpoint,
|
144
144
|
channel_args: @config.channel_args,
|
145
|
-
interceptors: @config.interceptors
|
145
|
+
interceptors: @config.interceptors,
|
146
|
+
channel_pool_config: @config.channel_pool
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
@@ -715,7 +716,9 @@ module Google
|
|
715
716
|
class Configuration
|
716
717
|
extend ::Gapic::Config
|
717
718
|
|
718
|
-
|
719
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
720
|
+
|
721
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
719
722
|
config_attr :credentials, nil do |value|
|
720
723
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
721
724
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -750,6 +753,14 @@ module Google
|
|
750
753
|
end
|
751
754
|
end
|
752
755
|
|
756
|
+
##
|
757
|
+
# Configuration for the channel pool
|
758
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
759
|
+
#
|
760
|
+
def channel_pool
|
761
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
762
|
+
end
|
763
|
+
|
753
764
|
##
|
754
765
|
# Configuration RPC class for the DomainMappings API.
|
755
766
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -117,7 +117,7 @@ module Google
|
|
117
117
|
credentials = @config.credentials
|
118
118
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
119
119
|
# but only if the default endpoint does not have a region prefix.
|
120
|
-
enable_self_signed_jwt = @config.endpoint ==
|
120
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
121
121
|
!@config.endpoint.split(".").first.include?("-")
|
122
122
|
credentials ||= Credentials.default scope: @config.scope,
|
123
123
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -177,6 +177,26 @@ module Google
|
|
177
177
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::DomainMapping>]
|
178
178
|
#
|
179
179
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
180
|
+
#
|
181
|
+
# @example Basic example
|
182
|
+
# require "google/cloud/app_engine/v1"
|
183
|
+
#
|
184
|
+
# # Create a client object. The client can be reused for multiple calls.
|
185
|
+
# client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
|
186
|
+
#
|
187
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
188
|
+
# request = Google::Cloud::AppEngine::V1::ListDomainMappingsRequest.new
|
189
|
+
#
|
190
|
+
# # Call the list_domain_mappings method.
|
191
|
+
# result = client.list_domain_mappings request
|
192
|
+
#
|
193
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
194
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
195
|
+
# result.each do |item|
|
196
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::DomainMapping.
|
197
|
+
# p item
|
198
|
+
# end
|
199
|
+
#
|
180
200
|
def list_domain_mappings request, options = nil
|
181
201
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
182
202
|
|
@@ -241,6 +261,22 @@ module Google
|
|
241
261
|
# @return [::Google::Cloud::AppEngine::V1::DomainMapping]
|
242
262
|
#
|
243
263
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
264
|
+
#
|
265
|
+
# @example Basic example
|
266
|
+
# require "google/cloud/app_engine/v1"
|
267
|
+
#
|
268
|
+
# # Create a client object. The client can be reused for multiple calls.
|
269
|
+
# client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
|
270
|
+
#
|
271
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
272
|
+
# request = Google::Cloud::AppEngine::V1::GetDomainMappingRequest.new
|
273
|
+
#
|
274
|
+
# # Call the get_domain_mapping method.
|
275
|
+
# result = client.get_domain_mapping request
|
276
|
+
#
|
277
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::DomainMapping.
|
278
|
+
# p result
|
279
|
+
#
|
244
280
|
def get_domain_mapping request, options = nil
|
245
281
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
246
282
|
|
@@ -310,6 +346,29 @@ module Google
|
|
310
346
|
# @return [::Gapic::Operation]
|
311
347
|
#
|
312
348
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
349
|
+
#
|
350
|
+
# @example Basic example
|
351
|
+
# require "google/cloud/app_engine/v1"
|
352
|
+
#
|
353
|
+
# # Create a client object. The client can be reused for multiple calls.
|
354
|
+
# client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
|
355
|
+
#
|
356
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
357
|
+
# request = Google::Cloud::AppEngine::V1::CreateDomainMappingRequest.new
|
358
|
+
#
|
359
|
+
# # Call the create_domain_mapping method.
|
360
|
+
# result = client.create_domain_mapping request
|
361
|
+
#
|
362
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
363
|
+
# # check the status of an operation, cancel it, or wait for results.
|
364
|
+
# # Here is how to wait for a response.
|
365
|
+
# result.wait_until_done! timeout: 60
|
366
|
+
# if result.response?
|
367
|
+
# p result.response
|
368
|
+
# else
|
369
|
+
# puts "No response received."
|
370
|
+
# end
|
371
|
+
#
|
313
372
|
def create_domain_mapping request, options = nil
|
314
373
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
315
374
|
|
@@ -382,6 +441,29 @@ module Google
|
|
382
441
|
# @return [::Gapic::Operation]
|
383
442
|
#
|
384
443
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
444
|
+
#
|
445
|
+
# @example Basic example
|
446
|
+
# require "google/cloud/app_engine/v1"
|
447
|
+
#
|
448
|
+
# # Create a client object. The client can be reused for multiple calls.
|
449
|
+
# client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
|
450
|
+
#
|
451
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
452
|
+
# request = Google::Cloud::AppEngine::V1::UpdateDomainMappingRequest.new
|
453
|
+
#
|
454
|
+
# # Call the update_domain_mapping method.
|
455
|
+
# result = client.update_domain_mapping request
|
456
|
+
#
|
457
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
458
|
+
# # check the status of an operation, cancel it, or wait for results.
|
459
|
+
# # Here is how to wait for a response.
|
460
|
+
# result.wait_until_done! timeout: 60
|
461
|
+
# if result.response?
|
462
|
+
# p result.response
|
463
|
+
# else
|
464
|
+
# puts "No response received."
|
465
|
+
# end
|
466
|
+
#
|
385
467
|
def update_domain_mapping request, options = nil
|
386
468
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
387
469
|
|
@@ -448,6 +530,29 @@ module Google
|
|
448
530
|
# @return [::Gapic::Operation]
|
449
531
|
#
|
450
532
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
533
|
+
#
|
534
|
+
# @example Basic example
|
535
|
+
# require "google/cloud/app_engine/v1"
|
536
|
+
#
|
537
|
+
# # Create a client object. The client can be reused for multiple calls.
|
538
|
+
# client = Google::Cloud::AppEngine::V1::DomainMappings::Rest::Client.new
|
539
|
+
#
|
540
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
541
|
+
# request = Google::Cloud::AppEngine::V1::DeleteDomainMappingRequest.new
|
542
|
+
#
|
543
|
+
# # Call the delete_domain_mapping method.
|
544
|
+
# result = client.delete_domain_mapping request
|
545
|
+
#
|
546
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
547
|
+
# # check the status of an operation, cancel it, or wait for results.
|
548
|
+
# # Here is how to wait for a response.
|
549
|
+
# result.wait_until_done! timeout: 60
|
550
|
+
# if result.response?
|
551
|
+
# p result.response
|
552
|
+
# else
|
553
|
+
# puts "No response received."
|
554
|
+
# end
|
555
|
+
#
|
451
556
|
def delete_domain_mapping request, options = nil
|
452
557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
453
558
|
|
@@ -557,7 +662,9 @@ module Google
|
|
557
662
|
class Configuration
|
558
663
|
extend ::Gapic::Config
|
559
664
|
|
560
|
-
|
665
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
666
|
+
|
667
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
561
668
|
config_attr :credentials, nil do |value|
|
562
669
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
563
670
|
allowed.any? { |klass| klass === value }
|