lib/google/cloud/location/locations/rest/service_stub.rb in google-cloud-location-0.6.0 vs lib/google/cloud/location/locations/rest/service_stub.rb in google-cloud-location-0.7.0

- old
+ new

@@ -27,17 +27,29 @@ # REST service stub for the Locations service. # Service stub contains baseline method implementations # including transcoding, making the REST call, and deserialing the response. # class ServiceStub - def initialize endpoint:, credentials: + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: # These require statements are intentionally placed here to initialize # the REST modules only when it's required. require "gapic/rest" - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, numeric_enums: true, raise_faraday_errors: false + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain end ## # Baseline implementation for the list_locations REST call #