google-cloud-compute-v1 2.6.0 → 2.7.1
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 +23 -2
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +23 -2
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/images/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +23 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +23 -2
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +34 -7
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -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 +23 -2
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -7
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +23 -2
- data/proto_docs/google/api/client.rb +1 -0
- metadata +5 -5
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The MachineImages API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :machine_images_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
|
+
@machine_images_stub.universe_domain
|
127
|
+
end
|
128
|
+
|
117
129
|
##
|
118
130
|
# Create a new MachineImages 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
|
-
@machine_images_stub = ::Google::Cloud::Compute::V1::MachineImages::Rest::ServiceStub.new
|
175
|
+
@machine_images_stub = ::Google::Cloud::Compute::V1::MachineImages::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
|
##
|
@@ -797,9 +816,9 @@ module Google
|
|
797
816
|
# end
|
798
817
|
#
|
799
818
|
# @!attribute [rw] endpoint
|
800
|
-
#
|
801
|
-
#
|
802
|
-
# @return [::String]
|
819
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
820
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
821
|
+
# @return [::String,nil]
|
803
822
|
# @!attribute [rw] credentials
|
804
823
|
# Credentials to send with calls. You may provide any of the following types:
|
805
824
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -836,13 +855,20 @@ module Google
|
|
836
855
|
# @!attribute [rw] quota_project
|
837
856
|
# A separate project against which to charge quota.
|
838
857
|
# @return [::String]
|
858
|
+
# @!attribute [rw] universe_domain
|
859
|
+
# The universe domain within which to make requests. This determines the
|
860
|
+
# default endpoint URL. The default value of nil uses the environment
|
861
|
+
# universe (usually the default "googleapis.com" universe).
|
862
|
+
# @return [::String,nil]
|
839
863
|
#
|
840
864
|
class Configuration
|
841
865
|
extend ::Gapic::Config
|
842
866
|
|
867
|
+
# @private
|
868
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
843
869
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
844
870
|
|
845
|
-
config_attr :endpoint,
|
871
|
+
config_attr :endpoint, nil, ::String, nil
|
846
872
|
config_attr :credentials, nil do |value|
|
847
873
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
848
874
|
allowed.any? { |klass| klass === value }
|
@@ -854,6 +880,7 @@ module Google
|
|
854
880
|
config_attr :metadata, nil, ::Hash, nil
|
855
881
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
856
882
|
config_attr :quota_project, nil, ::String, nil
|
883
|
+
config_attr :universe_domain, nil, ::String, nil
|
857
884
|
|
858
885
|
# @private
|
859
886
|
def initialize parent_config = nil
|
@@ -30,16 +30,37 @@ 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
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
43
64
|
##
|
44
65
|
# Baseline implementation for the delete REST call
|
45
66
|
#
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# The MachineTypes API.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
37
|
+
|
35
38
|
# @private
|
36
39
|
attr_reader :machine_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
|
+
@machine_types_stub.universe_domain
|
118
|
+
end
|
119
|
+
|
108
120
|
##
|
109
121
|
# Create a new MachineTypes 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
|
-
@machine_types_stub = ::Google::Cloud::Compute::V1::MachineTypes::Rest::ServiceStub.new
|
159
|
+
@machine_types_stub = ::Google::Cloud::Compute::V1::MachineTypes::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,37 @@ 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
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
43
64
|
##
|
44
65
|
# Baseline implementation for the aggregated_list REST call
|
45
66
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The NetworkAttachments API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :network_attachments_stub
|
38
41
|
|
@@ -121,6 +124,15 @@ module Google
|
|
121
124
|
@config
|
122
125
|
end
|
123
126
|
|
127
|
+
##
|
128
|
+
# The effective universe domain
|
129
|
+
#
|
130
|
+
# @return [String]
|
131
|
+
#
|
132
|
+
def universe_domain
|
133
|
+
@network_attachments_stub.universe_domain
|
134
|
+
end
|
135
|
+
|
124
136
|
##
|
125
137
|
# Create a new NetworkAttachments REST client object.
|
126
138
|
#
|
@@ -148,8 +160,9 @@ module Google
|
|
148
160
|
credentials = @config.credentials
|
149
161
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
150
162
|
# but only if the default endpoint does not have a region prefix.
|
151
|
-
enable_self_signed_jwt = @config.endpoint
|
152
|
-
|
163
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
164
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
165
|
+
!@config.endpoint.split(".").first.include?("-"))
|
153
166
|
credentials ||= Credentials.default scope: @config.scope,
|
154
167
|
enable_self_signed_jwt: enable_self_signed_jwt
|
155
168
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -163,9 +176,15 @@ module Google
|
|
163
176
|
config.credentials = credentials
|
164
177
|
config.quota_project = @quota_project_id
|
165
178
|
config.endpoint = @config.endpoint
|
179
|
+
config.universe_domain = @config.universe_domain
|
166
180
|
end
|
167
181
|
|
168
|
-
@network_attachments_stub = ::Google::Cloud::Compute::V1::NetworkAttachments::Rest::ServiceStub.new
|
182
|
+
@network_attachments_stub = ::Google::Cloud::Compute::V1::NetworkAttachments::Rest::ServiceStub.new(
|
183
|
+
endpoint: @config.endpoint,
|
184
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
185
|
+
universe_domain: @config.universe_domain,
|
186
|
+
credentials: credentials
|
187
|
+
)
|
169
188
|
end
|
170
189
|
|
171
190
|
##
|
@@ -1005,9 +1024,9 @@ module Google
|
|
1005
1024
|
# end
|
1006
1025
|
#
|
1007
1026
|
# @!attribute [rw] endpoint
|
1008
|
-
#
|
1009
|
-
#
|
1010
|
-
# @return [::String]
|
1027
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1028
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1029
|
+
# @return [::String,nil]
|
1011
1030
|
# @!attribute [rw] credentials
|
1012
1031
|
# Credentials to send with calls. You may provide any of the following types:
|
1013
1032
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1044,13 +1063,20 @@ module Google
|
|
1044
1063
|
# @!attribute [rw] quota_project
|
1045
1064
|
# A separate project against which to charge quota.
|
1046
1065
|
# @return [::String]
|
1066
|
+
# @!attribute [rw] universe_domain
|
1067
|
+
# The universe domain within which to make requests. This determines the
|
1068
|
+
# default endpoint URL. The default value of nil uses the environment
|
1069
|
+
# universe (usually the default "googleapis.com" universe).
|
1070
|
+
# @return [::String,nil]
|
1047
1071
|
#
|
1048
1072
|
class Configuration
|
1049
1073
|
extend ::Gapic::Config
|
1050
1074
|
|
1075
|
+
# @private
|
1076
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1051
1077
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
1052
1078
|
|
1053
|
-
config_attr :endpoint,
|
1079
|
+
config_attr :endpoint, nil, ::String, nil
|
1054
1080
|
config_attr :credentials, nil do |value|
|
1055
1081
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1056
1082
|
allowed.any? { |klass| klass === value }
|
@@ -1062,6 +1088,7 @@ module Google
|
|
1062
1088
|
config_attr :metadata, nil, ::Hash, nil
|
1063
1089
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1064
1090
|
config_attr :quota_project, nil, ::String, nil
|
1091
|
+
config_attr :universe_domain, nil, ::String, nil
|
1065
1092
|
|
1066
1093
|
# @private
|
1067
1094
|
def initialize parent_config = nil
|
@@ -30,16 +30,37 @@ 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
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
43
64
|
##
|
44
65
|
# Baseline implementation for the aggregated_list REST call
|
45
66
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The NetworkEdgeSecurityServices API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :network_edge_security_services_stub
|
38
41
|
|
@@ -107,6 +110,15 @@ module Google
|
|
107
110
|
@config
|
108
111
|
end
|
109
112
|
|
113
|
+
##
|
114
|
+
# The effective universe domain
|
115
|
+
#
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
def universe_domain
|
119
|
+
@network_edge_security_services_stub.universe_domain
|
120
|
+
end
|
121
|
+
|
110
122
|
##
|
111
123
|
# Create a new NetworkEdgeSecurityServices REST client object.
|
112
124
|
#
|
@@ -134,8 +146,9 @@ module Google
|
|
134
146
|
credentials = @config.credentials
|
135
147
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
136
148
|
# but only if the default endpoint does not have a region prefix.
|
137
|
-
enable_self_signed_jwt = @config.endpoint
|
138
|
-
|
149
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
150
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
151
|
+
!@config.endpoint.split(".").first.include?("-"))
|
139
152
|
credentials ||= Credentials.default scope: @config.scope,
|
140
153
|
enable_self_signed_jwt: enable_self_signed_jwt
|
141
154
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -149,9 +162,15 @@ module Google
|
|
149
162
|
config.credentials = credentials
|
150
163
|
config.quota_project = @quota_project_id
|
151
164
|
config.endpoint = @config.endpoint
|
165
|
+
config.universe_domain = @config.universe_domain
|
152
166
|
end
|
153
167
|
|
154
|
-
@network_edge_security_services_stub = ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::ServiceStub.new
|
168
|
+
@network_edge_security_services_stub = ::Google::Cloud::Compute::V1::NetworkEdgeSecurityServices::Rest::ServiceStub.new(
|
169
|
+
endpoint: @config.endpoint,
|
170
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
171
|
+
universe_domain: @config.universe_domain,
|
172
|
+
credentials: credentials
|
173
|
+
)
|
155
174
|
end
|
156
175
|
|
157
176
|
##
|
@@ -653,9 +672,9 @@ module Google
|
|
653
672
|
# end
|
654
673
|
#
|
655
674
|
# @!attribute [rw] endpoint
|
656
|
-
#
|
657
|
-
#
|
658
|
-
# @return [::String]
|
675
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
676
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
677
|
+
# @return [::String,nil]
|
659
678
|
# @!attribute [rw] credentials
|
660
679
|
# Credentials to send with calls. You may provide any of the following types:
|
661
680
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -692,13 +711,20 @@ module Google
|
|
692
711
|
# @!attribute [rw] quota_project
|
693
712
|
# A separate project against which to charge quota.
|
694
713
|
# @return [::String]
|
714
|
+
# @!attribute [rw] universe_domain
|
715
|
+
# The universe domain within which to make requests. This determines the
|
716
|
+
# default endpoint URL. The default value of nil uses the environment
|
717
|
+
# universe (usually the default "googleapis.com" universe).
|
718
|
+
# @return [::String,nil]
|
695
719
|
#
|
696
720
|
class Configuration
|
697
721
|
extend ::Gapic::Config
|
698
722
|
|
723
|
+
# @private
|
724
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
699
725
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
700
726
|
|
701
|
-
config_attr :endpoint,
|
727
|
+
config_attr :endpoint, nil, ::String, nil
|
702
728
|
config_attr :credentials, nil do |value|
|
703
729
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
704
730
|
allowed.any? { |klass| klass === value }
|
@@ -710,6 +736,7 @@ module Google
|
|
710
736
|
config_attr :metadata, nil, ::Hash, nil
|
711
737
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
712
738
|
config_attr :quota_project, nil, ::String, nil
|
739
|
+
config_attr :universe_domain, nil, ::String, nil
|
713
740
|
|
714
741
|
# @private
|
715
742
|
def initialize parent_config = nil
|
@@ -30,16 +30,37 @@ 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
|
+
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
43
64
|
##
|
44
65
|
# Baseline implementation for the aggregated_list REST call
|
45
66
|
#
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The NetworkEndpointGroups API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
|
+
|
36
39
|
# @private
|
37
40
|
attr_reader :network_endpoint_groups_stub
|
38
41
|
|
@@ -118,6 +121,15 @@ module Google
|
|
118
121
|
@config
|
119
122
|
end
|
120
123
|
|
124
|
+
##
|
125
|
+
# The effective universe domain
|
126
|
+
#
|
127
|
+
# @return [String]
|
128
|
+
#
|
129
|
+
def universe_domain
|
130
|
+
@network_endpoint_groups_stub.universe_domain
|
131
|
+
end
|
132
|
+
|
121
133
|
##
|
122
134
|
# Create a new NetworkEndpointGroups REST client object.
|
123
135
|
#
|
@@ -145,8 +157,9 @@ module Google
|
|
145
157
|
credentials = @config.credentials
|
146
158
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
159
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.endpoint
|
149
|
-
|
160
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
161
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
162
|
+
!@config.endpoint.split(".").first.include?("-"))
|
150
163
|
credentials ||= Credentials.default scope: @config.scope,
|
151
164
|
enable_self_signed_jwt: enable_self_signed_jwt
|
152
165
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -160,9 +173,15 @@ module Google
|
|
160
173
|
config.credentials = credentials
|
161
174
|
config.quota_project = @quota_project_id
|
162
175
|
config.endpoint = @config.endpoint
|
176
|
+
config.universe_domain = @config.universe_domain
|
163
177
|
end
|
164
178
|
|
165
|
-
@network_endpoint_groups_stub = ::Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::ServiceStub.new
|
179
|
+
@network_endpoint_groups_stub = ::Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::ServiceStub.new(
|
180
|
+
endpoint: @config.endpoint,
|
181
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
182
|
+
universe_domain: @config.universe_domain,
|
183
|
+
credentials: credentials
|
184
|
+
)
|
166
185
|
end
|
167
186
|
|
168
187
|
##
|
@@ -1024,9 +1043,9 @@ module Google
|
|
1024
1043
|
# end
|
1025
1044
|
#
|
1026
1045
|
# @!attribute [rw] endpoint
|
1027
|
-
#
|
1028
|
-
#
|
1029
|
-
# @return [::String]
|
1046
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1047
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1048
|
+
# @return [::String,nil]
|
1030
1049
|
# @!attribute [rw] credentials
|
1031
1050
|
# Credentials to send with calls. You may provide any of the following types:
|
1032
1051
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1063,13 +1082,20 @@ module Google
|
|
1063
1082
|
# @!attribute [rw] quota_project
|
1064
1083
|
# A separate project against which to charge quota.
|
1065
1084
|
# @return [::String]
|
1085
|
+
# @!attribute [rw] universe_domain
|
1086
|
+
# The universe domain within which to make requests. This determines the
|
1087
|
+
# default endpoint URL. The default value of nil uses the environment
|
1088
|
+
# universe (usually the default "googleapis.com" universe).
|
1089
|
+
# @return [::String,nil]
|
1066
1090
|
#
|
1067
1091
|
class Configuration
|
1068
1092
|
extend ::Gapic::Config
|
1069
1093
|
|
1094
|
+
# @private
|
1095
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1070
1096
|
DEFAULT_ENDPOINT = "compute.googleapis.com"
|
1071
1097
|
|
1072
|
-
config_attr :endpoint,
|
1098
|
+
config_attr :endpoint, nil, ::String, nil
|
1073
1099
|
config_attr :credentials, nil do |value|
|
1074
1100
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1075
1101
|
allowed.any? { |klass| klass === value }
|
@@ -1081,6 +1107,7 @@ module Google
|
|
1081
1107
|
config_attr :metadata, nil, ::Hash, nil
|
1082
1108
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1083
1109
|
config_attr :quota_project, nil, ::String, nil
|
1110
|
+
config_attr :universe_domain, nil, ::String, nil
|
1084
1111
|
|
1085
1112
|
# @private
|
1086
1113
|
def initialize parent_config = nil
|