google-cloud-compute-v1 2.6.0 → 2.7.0
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 +72 -101
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +14 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +14 -2
- data/proto_docs/google/api/client.rb +1 -0
- metadata +5 -5
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The Instances API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :instances_stub
|
38
41
|
|
@@ -215,6 +218,15 @@ module Google
|
|
215
218
|
@config
|
216
219
|
end
|
217
220
|
|
221
|
+
##
|
222
|
+
# The effective universe domain
|
223
|
+
#
|
224
|
+
# @return [String]
|
225
|
+
#
|
226
|
+
def universe_domain
|
227
|
+
@instances_stub.universe_domain
|
228
|
+
end
|
229
|
+
|
218
230
|
##
|
219
231
|
# Create a new Instances REST client object.
|
220
232
|
#
|
@@ -242,8 +254,9 @@ module Google
|
|
242
254
|
credentials = @config.credentials
|
243
255
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
244
256
|
# but only if the default endpoint does not have a region prefix.
|
245
|
-
enable_self_signed_jwt = @config.endpoint
|
246
|
-
|
257
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
258
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
259
|
+
!@config.endpoint.split(".").first.include?("-"))
|
247
260
|
credentials ||= Credentials.default scope: @config.scope,
|
248
261
|
enable_self_signed_jwt: enable_self_signed_jwt
|
249
262
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -257,9 +270,15 @@ module Google
|
|
257
270
|
config.credentials = credentials
|
258
271
|
config.quota_project = @quota_project_id
|
259
272
|
config.endpoint = @config.endpoint
|
273
|
+
config.universe_domain = @config.universe_domain
|
260
274
|
end
|
261
275
|
|
262
|
-
@instances_stub = ::Google::Cloud::Compute::V1::Instances::Rest::ServiceStub.new
|
276
|
+
@instances_stub = ::Google::Cloud::Compute::V1::Instances::Rest::ServiceStub.new(
|
277
|
+
endpoint: @config.endpoint,
|
278
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
279
|
+
universe_domain: @config.universe_domain,
|
280
|
+
credentials: credentials
|
281
|
+
)
|
263
282
|
end
|
264
283
|
|
265
284
|
##
|
@@ -4651,9 +4670,9 @@ module Google
|
|
4651
4670
|
# end
|
4652
4671
|
#
|
4653
4672
|
# @!attribute [rw] endpoint
|
4654
|
-
#
|
4655
|
-
#
|
4656
|
-
# @return [::String]
|
4673
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
4674
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
4675
|
+
# @return [::String,nil]
|
4657
4676
|
# @!attribute [rw] credentials
|
4658
4677
|
# Credentials to send with calls. You may provide any of the following types:
|
4659
4678
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -4690,13 +4709,20 @@ module Google
|
|
4690
4709
|
# @!attribute [rw] quota_project
|
4691
4710
|
# A separate project against which to charge quota.
|
4692
4711
|
# @return [::String]
|
4712
|
+
# @!attribute [rw] universe_domain
|
4713
|
+
# The universe domain within which to make requests. This determines the
|
4714
|
+
# default endpoint URL. The default value of nil uses the environment
|
4715
|
+
# universe (usually the default "googleapis.com" universe).
|
4716
|
+
# @return [::String,nil]
|
4693
4717
|
#
|
4694
4718
|
class Configuration
|
4695
4719
|
extend ::Gapic::Config
|
4696
4720
|
|
4721
|
+
# @private
|
4722
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
4697
4723
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
4698
4724
|
|
4699
|
-
config_attr :endpoint,
|
4725
|
+
config_attr :endpoint, nil, ::String, nil
|
4700
4726
|
config_attr :credentials, nil do |value|
|
4701
4727
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4702
4728
|
allowed.any? { |klass| klass === value }
|
@@ -4708,6 +4734,7 @@ module Google
|
|
4708
4734
|
config_attr :metadata, nil, ::Hash, nil
|
4709
4735
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4710
4736
|
config_attr :quota_project, nil, ::String, nil
|
4737
|
+
config_attr :universe_domain, nil, ::String, nil
|
4711
4738
|
|
4712
4739
|
# @private
|
4713
4740
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the add_access_config REST call
|
45
57
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The InterconnectAttachments API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :interconnect_attachments_stub
|
38
41
|
|
@@ -114,6 +117,15 @@ module Google
|
|
114
117
|
@config
|
115
118
|
end
|
116
119
|
|
120
|
+
##
|
121
|
+
# The effective universe domain
|
122
|
+
#
|
123
|
+
# @return [String]
|
124
|
+
#
|
125
|
+
def universe_domain
|
126
|
+
@interconnect_attachments_stub.universe_domain
|
127
|
+
end
|
128
|
+
|
117
129
|
##
|
118
130
|
# Create a new InterconnectAttachments REST client object.
|
119
131
|
#
|
@@ -141,8 +153,9 @@ module Google
|
|
141
153
|
credentials = @config.credentials
|
142
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
143
155
|
# but only if the default endpoint does not have a region prefix.
|
144
|
-
enable_self_signed_jwt = @config.endpoint
|
145
|
-
|
156
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
157
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
158
|
+
!@config.endpoint.split(".").first.include?("-"))
|
146
159
|
credentials ||= Credentials.default scope: @config.scope,
|
147
160
|
enable_self_signed_jwt: enable_self_signed_jwt
|
148
161
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -156,9 +169,15 @@ module Google
|
|
156
169
|
config.credentials = credentials
|
157
170
|
config.quota_project = @quota_project_id
|
158
171
|
config.endpoint = @config.endpoint
|
172
|
+
config.universe_domain = @config.universe_domain
|
159
173
|
end
|
160
174
|
|
161
|
-
@interconnect_attachments_stub = ::Google::Cloud::Compute::V1::InterconnectAttachments::Rest::ServiceStub.new
|
175
|
+
@interconnect_attachments_stub = ::Google::Cloud::Compute::V1::InterconnectAttachments::Rest::ServiceStub.new(
|
176
|
+
endpoint: @config.endpoint,
|
177
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
178
|
+
universe_domain: @config.universe_domain,
|
179
|
+
credentials: credentials
|
180
|
+
)
|
162
181
|
end
|
163
182
|
|
164
183
|
##
|
@@ -843,9 +862,9 @@ module Google
|
|
843
862
|
# end
|
844
863
|
#
|
845
864
|
# @!attribute [rw] endpoint
|
846
|
-
#
|
847
|
-
#
|
848
|
-
# @return [::String]
|
865
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
866
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
867
|
+
# @return [::String,nil]
|
849
868
|
# @!attribute [rw] credentials
|
850
869
|
# Credentials to send with calls. You may provide any of the following types:
|
851
870
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -882,13 +901,20 @@ module Google
|
|
882
901
|
# @!attribute [rw] quota_project
|
883
902
|
# A separate project against which to charge quota.
|
884
903
|
# @return [::String]
|
904
|
+
# @!attribute [rw] universe_domain
|
905
|
+
# The universe domain within which to make requests. This determines the
|
906
|
+
# default endpoint URL. The default value of nil uses the environment
|
907
|
+
# universe (usually the default "googleapis.com" universe).
|
908
|
+
# @return [::String,nil]
|
885
909
|
#
|
886
910
|
class Configuration
|
887
911
|
extend ::Gapic::Config
|
888
912
|
|
913
|
+
# @private
|
914
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
889
915
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
890
916
|
|
891
|
-
config_attr :endpoint,
|
917
|
+
config_attr :endpoint, nil, ::String, nil
|
892
918
|
config_attr :credentials, nil do |value|
|
893
919
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
894
920
|
allowed.any? { |klass| klass === value }
|
@@ -900,6 +926,7 @@ module Google
|
|
900
926
|
config_attr :metadata, nil, ::Hash, nil
|
901
927
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
902
928
|
config_attr :quota_project, nil, ::String, nil
|
929
|
+
config_attr :universe_domain, nil, ::String, nil
|
903
930
|
|
904
931
|
# @private
|
905
932
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the aggregated_list REST call
|
45
57
|
#
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The InterconnectLocations API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
# @private
|
36
39
|
attr_reader :interconnect_locations_stub
|
37
40
|
|
@@ -100,6 +103,15 @@ module Google
|
|
100
103
|
@config
|
101
104
|
end
|
102
105
|
|
106
|
+
##
|
107
|
+
# The effective universe domain
|
108
|
+
#
|
109
|
+
# @return [String]
|
110
|
+
#
|
111
|
+
def universe_domain
|
112
|
+
@interconnect_locations_stub.universe_domain
|
113
|
+
end
|
114
|
+
|
103
115
|
##
|
104
116
|
# Create a new InterconnectLocations REST client object.
|
105
117
|
#
|
@@ -127,8 +139,9 @@ module Google
|
|
127
139
|
credentials = @config.credentials
|
128
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
141
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint
|
131
|
-
|
142
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
143
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
144
|
+
!@config.endpoint.split(".").first.include?("-"))
|
132
145
|
credentials ||= Credentials.default scope: @config.scope,
|
133
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
134
147
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -138,7 +151,12 @@ module Google
|
|
138
151
|
@quota_project_id = @config.quota_project
|
139
152
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
140
153
|
|
141
|
-
@interconnect_locations_stub = ::Google::Cloud::Compute::V1::InterconnectLocations::Rest::ServiceStub.new
|
154
|
+
@interconnect_locations_stub = ::Google::Cloud::Compute::V1::InterconnectLocations::Rest::ServiceStub.new(
|
155
|
+
endpoint: @config.endpoint,
|
156
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
157
|
+
universe_domain: @config.universe_domain,
|
158
|
+
credentials: credentials
|
159
|
+
)
|
142
160
|
end
|
143
161
|
|
144
162
|
# Service calls
|
@@ -342,9 +360,9 @@ module Google
|
|
342
360
|
# end
|
343
361
|
#
|
344
362
|
# @!attribute [rw] endpoint
|
345
|
-
#
|
346
|
-
#
|
347
|
-
# @return [::String]
|
363
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
364
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
365
|
+
# @return [::String,nil]
|
348
366
|
# @!attribute [rw] credentials
|
349
367
|
# Credentials to send with calls. You may provide any of the following types:
|
350
368
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -381,13 +399,20 @@ module Google
|
|
381
399
|
# @!attribute [rw] quota_project
|
382
400
|
# A separate project against which to charge quota.
|
383
401
|
# @return [::String]
|
402
|
+
# @!attribute [rw] universe_domain
|
403
|
+
# The universe domain within which to make requests. This determines the
|
404
|
+
# default endpoint URL. The default value of nil uses the environment
|
405
|
+
# universe (usually the default "googleapis.com" universe).
|
406
|
+
# @return [::String,nil]
|
384
407
|
#
|
385
408
|
class Configuration
|
386
409
|
extend ::Gapic::Config
|
387
410
|
|
411
|
+
# @private
|
412
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
388
413
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
389
414
|
|
390
|
-
config_attr :endpoint,
|
415
|
+
config_attr :endpoint, nil, ::String, nil
|
391
416
|
config_attr :credentials, nil do |value|
|
392
417
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
393
418
|
allowed.any? { |klass| klass === value }
|
@@ -399,6 +424,7 @@ module Google
|
|
399
424
|
config_attr :metadata, nil, ::Hash, nil
|
400
425
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
401
426
|
config_attr :quota_project, nil, ::String, nil
|
427
|
+
config_attr :universe_domain, nil, ::String, nil
|
402
428
|
|
403
429
|
# @private
|
404
430
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the get REST call
|
45
57
|
#
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The InterconnectRemoteLocations API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
# @private
|
36
39
|
attr_reader :interconnect_remote_locations_stub
|
37
40
|
|
@@ -100,6 +103,15 @@ module Google
|
|
100
103
|
@config
|
101
104
|
end
|
102
105
|
|
106
|
+
##
|
107
|
+
# The effective universe domain
|
108
|
+
#
|
109
|
+
# @return [String]
|
110
|
+
#
|
111
|
+
def universe_domain
|
112
|
+
@interconnect_remote_locations_stub.universe_domain
|
113
|
+
end
|
114
|
+
|
103
115
|
##
|
104
116
|
# Create a new InterconnectRemoteLocations REST client object.
|
105
117
|
#
|
@@ -127,8 +139,9 @@ module Google
|
|
127
139
|
credentials = @config.credentials
|
128
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
141
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint
|
131
|
-
|
142
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
143
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
144
|
+
!@config.endpoint.split(".").first.include?("-"))
|
132
145
|
credentials ||= Credentials.default scope: @config.scope,
|
133
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
134
147
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -138,7 +151,12 @@ module Google
|
|
138
151
|
@quota_project_id = @config.quota_project
|
139
152
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
140
153
|
|
141
|
-
@interconnect_remote_locations_stub = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::ServiceStub.new
|
154
|
+
@interconnect_remote_locations_stub = ::Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::ServiceStub.new(
|
155
|
+
endpoint: @config.endpoint,
|
156
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
157
|
+
universe_domain: @config.universe_domain,
|
158
|
+
credentials: credentials
|
159
|
+
)
|
142
160
|
end
|
143
161
|
|
144
162
|
# Service calls
|
@@ -342,9 +360,9 @@ module Google
|
|
342
360
|
# end
|
343
361
|
#
|
344
362
|
# @!attribute [rw] endpoint
|
345
|
-
#
|
346
|
-
#
|
347
|
-
# @return [::String]
|
363
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
364
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
365
|
+
# @return [::String,nil]
|
348
366
|
# @!attribute [rw] credentials
|
349
367
|
# Credentials to send with calls. You may provide any of the following types:
|
350
368
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -381,13 +399,20 @@ module Google
|
|
381
399
|
# @!attribute [rw] quota_project
|
382
400
|
# A separate project against which to charge quota.
|
383
401
|
# @return [::String]
|
402
|
+
# @!attribute [rw] universe_domain
|
403
|
+
# The universe domain within which to make requests. This determines the
|
404
|
+
# default endpoint URL. The default value of nil uses the environment
|
405
|
+
# universe (usually the default "googleapis.com" universe).
|
406
|
+
# @return [::String,nil]
|
384
407
|
#
|
385
408
|
class Configuration
|
386
409
|
extend ::Gapic::Config
|
387
410
|
|
411
|
+
# @private
|
412
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
388
413
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
389
414
|
|
390
|
-
config_attr :endpoint,
|
415
|
+
config_attr :endpoint, nil, ::String, nil
|
391
416
|
config_attr :credentials, nil do |value|
|
392
417
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
393
418
|
allowed.any? { |klass| klass === value }
|
@@ -399,6 +424,7 @@ module Google
|
|
399
424
|
config_attr :metadata, nil, ::Hash, nil
|
400
425
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
401
426
|
config_attr :quota_project, nil, ::String, nil
|
427
|
+
config_attr :universe_domain, nil, ::String, nil
|
402
428
|
|
403
429
|
# @private
|
404
430
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the get REST call
|
45
57
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The Interconnects API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :interconnects_stub
|
38
41
|
|
@@ -119,6 +122,15 @@ module Google
|
|
119
122
|
@config
|
120
123
|
end
|
121
124
|
|
125
|
+
##
|
126
|
+
# The effective universe domain
|
127
|
+
#
|
128
|
+
# @return [String]
|
129
|
+
#
|
130
|
+
def universe_domain
|
131
|
+
@interconnects_stub.universe_domain
|
132
|
+
end
|
133
|
+
|
122
134
|
##
|
123
135
|
# Create a new Interconnects REST client object.
|
124
136
|
#
|
@@ -146,8 +158,9 @@ module Google
|
|
146
158
|
credentials = @config.credentials
|
147
159
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
148
160
|
# but only if the default endpoint does not have a region prefix.
|
149
|
-
enable_self_signed_jwt = @config.endpoint
|
150
|
-
|
161
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
162
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
163
|
+
!@config.endpoint.split(".").first.include?("-"))
|
151
164
|
credentials ||= Credentials.default scope: @config.scope,
|
152
165
|
enable_self_signed_jwt: enable_self_signed_jwt
|
153
166
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -161,9 +174,15 @@ module Google
|
|
161
174
|
config.credentials = credentials
|
162
175
|
config.quota_project = @quota_project_id
|
163
176
|
config.endpoint = @config.endpoint
|
177
|
+
config.universe_domain = @config.universe_domain
|
164
178
|
end
|
165
179
|
|
166
|
-
@interconnects_stub = ::Google::Cloud::Compute::V1::Interconnects::Rest::ServiceStub.new
|
180
|
+
@interconnects_stub = ::Google::Cloud::Compute::V1::Interconnects::Rest::ServiceStub.new(
|
181
|
+
endpoint: @config.endpoint,
|
182
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
183
|
+
universe_domain: @config.universe_domain,
|
184
|
+
credentials: credentials
|
185
|
+
)
|
167
186
|
end
|
168
187
|
|
169
188
|
##
|
@@ -896,9 +915,9 @@ module Google
|
|
896
915
|
# end
|
897
916
|
#
|
898
917
|
# @!attribute [rw] endpoint
|
899
|
-
#
|
900
|
-
#
|
901
|
-
# @return [::String]
|
918
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
919
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
920
|
+
# @return [::String,nil]
|
902
921
|
# @!attribute [rw] credentials
|
903
922
|
# Credentials to send with calls. You may provide any of the following types:
|
904
923
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -935,13 +954,20 @@ module Google
|
|
935
954
|
# @!attribute [rw] quota_project
|
936
955
|
# A separate project against which to charge quota.
|
937
956
|
# @return [::String]
|
957
|
+
# @!attribute [rw] universe_domain
|
958
|
+
# The universe domain within which to make requests. This determines the
|
959
|
+
# default endpoint URL. The default value of nil uses the environment
|
960
|
+
# universe (usually the default "googleapis.com" universe).
|
961
|
+
# @return [::String,nil]
|
938
962
|
#
|
939
963
|
class Configuration
|
940
964
|
extend ::Gapic::Config
|
941
965
|
|
966
|
+
# @private
|
967
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
942
968
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
943
969
|
|
944
|
-
config_attr :endpoint,
|
970
|
+
config_attr :endpoint, nil, ::String, nil
|
945
971
|
config_attr :credentials, nil do |value|
|
946
972
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
947
973
|
allowed.any? { |klass| klass === value }
|
@@ -953,6 +979,7 @@ module Google
|
|
953
979
|
config_attr :metadata, nil, ::Hash, nil
|
954
980
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
955
981
|
config_attr :quota_project, nil, ::String, nil
|
982
|
+
config_attr :universe_domain, nil, ::String, nil
|
956
983
|
|
957
984
|
# @private
|
958
985
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: false,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the delete REST call
|
45
57
|
#
|