google-cloud-compute-v1 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 NodeTemplates API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :node_templates_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
|
+
@node_templates_stub.universe_domain
|
132
|
+
end
|
133
|
+
|
122
134
|
##
|
123
135
|
# Create a new NodeTemplates 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
|
-
@node_templates_stub = ::Google::Cloud::Compute::V1::NodeTemplates::Rest::ServiceStub.new
|
180
|
+
@node_templates_stub = ::Google::Cloud::Compute::V1::NodeTemplates::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
|
##
|
@@ -908,9 +927,9 @@ module Google
|
|
908
927
|
# end
|
909
928
|
#
|
910
929
|
# @!attribute [rw] endpoint
|
911
|
-
#
|
912
|
-
#
|
913
|
-
# @return [::String]
|
930
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
931
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
932
|
+
# @return [::String,nil]
|
914
933
|
# @!attribute [rw] credentials
|
915
934
|
# Credentials to send with calls. You may provide any of the following types:
|
916
935
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -947,13 +966,20 @@ module Google
|
|
947
966
|
# @!attribute [rw] quota_project
|
948
967
|
# A separate project against which to charge quota.
|
949
968
|
# @return [::String]
|
969
|
+
# @!attribute [rw] universe_domain
|
970
|
+
# The universe domain within which to make requests. This determines the
|
971
|
+
# default endpoint URL. The default value of nil uses the environment
|
972
|
+
# universe (usually the default "googleapis.com" universe).
|
973
|
+
# @return [::String,nil]
|
950
974
|
#
|
951
975
|
class Configuration
|
952
976
|
extend ::Gapic::Config
|
953
977
|
|
978
|
+
# @private
|
979
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
954
980
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
955
981
|
|
956
|
-
config_attr :endpoint,
|
982
|
+
config_attr :endpoint, nil, ::String, nil
|
957
983
|
config_attr :credentials, nil do |value|
|
958
984
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
959
985
|
allowed.any? { |klass| klass === value }
|
@@ -965,6 +991,7 @@ module Google
|
|
965
991
|
config_attr :metadata, nil, ::Hash, nil
|
966
992
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
967
993
|
config_attr :quota_project, nil, ::String, nil
|
994
|
+
config_attr :universe_domain, nil, ::String, nil
|
968
995
|
|
969
996
|
# @private
|
970
997
|
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 NodeTypes API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
# @private
|
36
39
|
attr_reader :node_types_stub
|
37
40
|
|
@@ -105,6 +108,15 @@ module Google
|
|
105
108
|
@config
|
106
109
|
end
|
107
110
|
|
111
|
+
##
|
112
|
+
# The effective universe domain
|
113
|
+
#
|
114
|
+
# @return [String]
|
115
|
+
#
|
116
|
+
def universe_domain
|
117
|
+
@node_types_stub.universe_domain
|
118
|
+
end
|
119
|
+
|
108
120
|
##
|
109
121
|
# Create a new NodeTypes REST client object.
|
110
122
|
#
|
@@ -132,8 +144,9 @@ module Google
|
|
132
144
|
credentials = @config.credentials
|
133
145
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
134
146
|
# but only if the default endpoint does not have a region prefix.
|
135
|
-
enable_self_signed_jwt = @config.endpoint
|
136
|
-
|
147
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
148
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
149
|
+
!@config.endpoint.split(".").first.include?("-"))
|
137
150
|
credentials ||= Credentials.default scope: @config.scope,
|
138
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
139
152
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -143,7 +156,12 @@ module Google
|
|
143
156
|
@quota_project_id = @config.quota_project
|
144
157
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
145
158
|
|
146
|
-
@node_types_stub = ::Google::Cloud::Compute::V1::NodeTypes::Rest::ServiceStub.new
|
159
|
+
@node_types_stub = ::Google::Cloud::Compute::V1::NodeTypes::Rest::ServiceStub.new(
|
160
|
+
endpoint: @config.endpoint,
|
161
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
162
|
+
universe_domain: @config.universe_domain,
|
163
|
+
credentials: credentials
|
164
|
+
)
|
147
165
|
end
|
148
166
|
|
149
167
|
# Service calls
|
@@ -443,9 +461,9 @@ module Google
|
|
443
461
|
# end
|
444
462
|
#
|
445
463
|
# @!attribute [rw] endpoint
|
446
|
-
#
|
447
|
-
#
|
448
|
-
# @return [::String]
|
464
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
465
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
466
|
+
# @return [::String,nil]
|
449
467
|
# @!attribute [rw] credentials
|
450
468
|
# Credentials to send with calls. You may provide any of the following types:
|
451
469
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -482,13 +500,20 @@ module Google
|
|
482
500
|
# @!attribute [rw] quota_project
|
483
501
|
# A separate project against which to charge quota.
|
484
502
|
# @return [::String]
|
503
|
+
# @!attribute [rw] universe_domain
|
504
|
+
# The universe domain within which to make requests. This determines the
|
505
|
+
# default endpoint URL. The default value of nil uses the environment
|
506
|
+
# universe (usually the default "googleapis.com" universe).
|
507
|
+
# @return [::String,nil]
|
485
508
|
#
|
486
509
|
class Configuration
|
487
510
|
extend ::Gapic::Config
|
488
511
|
|
512
|
+
# @private
|
513
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
489
514
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
490
515
|
|
491
|
-
config_attr :endpoint,
|
516
|
+
config_attr :endpoint, nil, ::String, nil
|
492
517
|
config_attr :credentials, nil do |value|
|
493
518
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
494
519
|
allowed.any? { |klass| klass === value }
|
@@ -500,6 +525,7 @@ module Google
|
|
500
525
|
config_attr :metadata, nil, ::Hash, nil
|
501
526
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
502
527
|
config_attr :quota_project, nil, ::String, nil
|
528
|
+
config_attr :universe_domain, nil, ::String, nil
|
503
529
|
|
504
530
|
# @private
|
505
531
|
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
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The PacketMirrorings API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :packet_mirrorings_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
|
+
@packet_mirrorings_stub.universe_domain
|
127
|
+
end
|
128
|
+
|
117
129
|
##
|
118
130
|
# Create a new PacketMirrorings 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
|
-
@packet_mirrorings_stub = ::Google::Cloud::Compute::V1::PacketMirrorings::Rest::ServiceStub.new
|
175
|
+
@packet_mirrorings_stub = ::Google::Cloud::Compute::V1::PacketMirrorings::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
|
##
|
@@ -830,9 +849,9 @@ module Google
|
|
830
849
|
# end
|
831
850
|
#
|
832
851
|
# @!attribute [rw] endpoint
|
833
|
-
#
|
834
|
-
#
|
835
|
-
# @return [::String]
|
852
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
853
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
854
|
+
# @return [::String,nil]
|
836
855
|
# @!attribute [rw] credentials
|
837
856
|
# Credentials to send with calls. You may provide any of the following types:
|
838
857
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -869,13 +888,20 @@ module Google
|
|
869
888
|
# @!attribute [rw] quota_project
|
870
889
|
# A separate project against which to charge quota.
|
871
890
|
# @return [::String]
|
891
|
+
# @!attribute [rw] universe_domain
|
892
|
+
# The universe domain within which to make requests. This determines the
|
893
|
+
# default endpoint URL. The default value of nil uses the environment
|
894
|
+
# universe (usually the default "googleapis.com" universe).
|
895
|
+
# @return [::String,nil]
|
872
896
|
#
|
873
897
|
class Configuration
|
874
898
|
extend ::Gapic::Config
|
875
899
|
|
900
|
+
# @private
|
901
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
876
902
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
877
903
|
|
878
|
-
config_attr :endpoint,
|
904
|
+
config_attr :endpoint, nil, ::String, nil
|
879
905
|
config_attr :credentials, nil do |value|
|
880
906
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
881
907
|
allowed.any? { |klass| klass === value }
|
@@ -887,6 +913,7 @@ module Google
|
|
887
913
|
config_attr :metadata, nil, ::Hash, nil
|
888
914
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
889
915
|
config_attr :quota_project, nil, ::String, nil
|
916
|
+
config_attr :universe_domain, nil, ::String, nil
|
890
917
|
|
891
918
|
# @private
|
892
919
|
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
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The Projects API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :projects_stub
|
38
41
|
|
@@ -126,6 +129,15 @@ module Google
|
|
126
129
|
@config
|
127
130
|
end
|
128
131
|
|
132
|
+
##
|
133
|
+
# The effective universe domain
|
134
|
+
#
|
135
|
+
# @return [String]
|
136
|
+
#
|
137
|
+
def universe_domain
|
138
|
+
@projects_stub.universe_domain
|
139
|
+
end
|
140
|
+
|
129
141
|
##
|
130
142
|
# Create a new Projects REST client object.
|
131
143
|
#
|
@@ -153,8 +165,9 @@ module Google
|
|
153
165
|
credentials = @config.credentials
|
154
166
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
167
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.endpoint
|
157
|
-
|
168
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
169
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
170
|
+
!@config.endpoint.split(".").first.include?("-"))
|
158
171
|
credentials ||= Credentials.default scope: @config.scope,
|
159
172
|
enable_self_signed_jwt: enable_self_signed_jwt
|
160
173
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -168,9 +181,15 @@ module Google
|
|
168
181
|
config.credentials = credentials
|
169
182
|
config.quota_project = @quota_project_id
|
170
183
|
config.endpoint = @config.endpoint
|
184
|
+
config.universe_domain = @config.universe_domain
|
171
185
|
end
|
172
186
|
|
173
|
-
@projects_stub = ::Google::Cloud::Compute::V1::Projects::Rest::ServiceStub.new
|
187
|
+
@projects_stub = ::Google::Cloud::Compute::V1::Projects::Rest::ServiceStub.new(
|
188
|
+
endpoint: @config.endpoint,
|
189
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
190
|
+
universe_domain: @config.universe_domain,
|
191
|
+
credentials: credentials
|
192
|
+
)
|
174
193
|
end
|
175
194
|
|
176
195
|
##
|
@@ -1354,9 +1373,9 @@ module Google
|
|
1354
1373
|
# end
|
1355
1374
|
#
|
1356
1375
|
# @!attribute [rw] endpoint
|
1357
|
-
#
|
1358
|
-
#
|
1359
|
-
# @return [::String]
|
1376
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1377
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1378
|
+
# @return [::String,nil]
|
1360
1379
|
# @!attribute [rw] credentials
|
1361
1380
|
# Credentials to send with calls. You may provide any of the following types:
|
1362
1381
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1393,13 +1412,20 @@ module Google
|
|
1393
1412
|
# @!attribute [rw] quota_project
|
1394
1413
|
# A separate project against which to charge quota.
|
1395
1414
|
# @return [::String]
|
1415
|
+
# @!attribute [rw] universe_domain
|
1416
|
+
# The universe domain within which to make requests. This determines the
|
1417
|
+
# default endpoint URL. The default value of nil uses the environment
|
1418
|
+
# universe (usually the default "googleapis.com" universe).
|
1419
|
+
# @return [::String,nil]
|
1396
1420
|
#
|
1397
1421
|
class Configuration
|
1398
1422
|
extend ::Gapic::Config
|
1399
1423
|
|
1424
|
+
# @private
|
1425
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1400
1426
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
1401
1427
|
|
1402
|
-
config_attr :endpoint,
|
1428
|
+
config_attr :endpoint, nil, ::String, nil
|
1403
1429
|
config_attr :credentials, nil do |value|
|
1404
1430
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1405
1431
|
allowed.any? { |klass| klass === value }
|
@@ -1411,6 +1437,7 @@ module Google
|
|
1411
1437
|
config_attr :metadata, nil, ::Hash, nil
|
1412
1438
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1413
1439
|
config_attr :quota_project, nil, ::String, nil
|
1440
|
+
config_attr :universe_domain, nil, ::String, nil
|
1414
1441
|
|
1415
1442
|
# @private
|
1416
1443
|
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 disable_xpn_host REST call
|
45
57
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The PublicAdvertisedPrefixes API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :public_advertised_prefixes_stub
|
38
41
|
|
@@ -111,6 +114,15 @@ module Google
|
|
111
114
|
@config
|
112
115
|
end
|
113
116
|
|
117
|
+
##
|
118
|
+
# The effective universe domain
|
119
|
+
#
|
120
|
+
# @return [String]
|
121
|
+
#
|
122
|
+
def universe_domain
|
123
|
+
@public_advertised_prefixes_stub.universe_domain
|
124
|
+
end
|
125
|
+
|
114
126
|
##
|
115
127
|
# Create a new PublicAdvertisedPrefixes REST client object.
|
116
128
|
#
|
@@ -138,8 +150,9 @@ module Google
|
|
138
150
|
credentials = @config.credentials
|
139
151
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
152
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.endpoint
|
142
|
-
|
153
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
154
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
155
|
+
!@config.endpoint.split(".").first.include?("-"))
|
143
156
|
credentials ||= Credentials.default scope: @config.scope,
|
144
157
|
enable_self_signed_jwt: enable_self_signed_jwt
|
145
158
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -153,9 +166,15 @@ module Google
|
|
153
166
|
config.credentials = credentials
|
154
167
|
config.quota_project = @quota_project_id
|
155
168
|
config.endpoint = @config.endpoint
|
169
|
+
config.universe_domain = @config.universe_domain
|
156
170
|
end
|
157
171
|
|
158
|
-
@public_advertised_prefixes_stub = ::Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::ServiceStub.new
|
172
|
+
@public_advertised_prefixes_stub = ::Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::ServiceStub.new(
|
173
|
+
endpoint: @config.endpoint,
|
174
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
175
|
+
universe_domain: @config.universe_domain,
|
176
|
+
credentials: credentials
|
177
|
+
)
|
159
178
|
end
|
160
179
|
|
161
180
|
##
|
@@ -818,9 +837,9 @@ module Google
|
|
818
837
|
# end
|
819
838
|
#
|
820
839
|
# @!attribute [rw] endpoint
|
821
|
-
#
|
822
|
-
#
|
823
|
-
# @return [::String]
|
840
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
841
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
842
|
+
# @return [::String,nil]
|
824
843
|
# @!attribute [rw] credentials
|
825
844
|
# Credentials to send with calls. You may provide any of the following types:
|
826
845
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -857,13 +876,20 @@ module Google
|
|
857
876
|
# @!attribute [rw] quota_project
|
858
877
|
# A separate project against which to charge quota.
|
859
878
|
# @return [::String]
|
879
|
+
# @!attribute [rw] universe_domain
|
880
|
+
# The universe domain within which to make requests. This determines the
|
881
|
+
# default endpoint URL. The default value of nil uses the environment
|
882
|
+
# universe (usually the default "googleapis.com" universe).
|
883
|
+
# @return [::String,nil]
|
860
884
|
#
|
861
885
|
class Configuration
|
862
886
|
extend ::Gapic::Config
|
863
887
|
|
888
|
+
# @private
|
889
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
864
890
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
865
891
|
|
866
|
-
config_attr :endpoint,
|
892
|
+
config_attr :endpoint, nil, ::String, nil
|
867
893
|
config_attr :credentials, nil do |value|
|
868
894
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
869
895
|
allowed.any? { |klass| klass === value }
|
@@ -875,6 +901,7 @@ module Google
|
|
875
901
|
config_attr :metadata, nil, ::Hash, nil
|
876
902
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
877
903
|
config_attr :quota_project, nil, ::String, nil
|
904
|
+
config_attr :universe_domain, nil, ::String, nil
|
878
905
|
|
879
906
|
# @private
|
880
907
|
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 announce REST call
|
45
57
|
#
|