lib/google/cloud/domains/v1/domains/rest/service_stub.rb in google-cloud-domains-v1-0.5.0 vs lib/google/cloud/domains/v1/domains/rest/service_stub.rb in google-cloud-domains-v1-0.6.0

- old
+ new

@@ -28,17 +28,29 @@ # REST service stub for the Domains 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 search_domains REST call #