Module: Gapic::UniverseDomainConcerns

Included in:
Rest::ClientStub, ServiceStub
Defined in:
lib/gapic/universe_domain_concerns.rb

Overview

A mixin module that provides methods for obtaining the effective universe domain, endpoint, and credentials for a stub. This is included in Grpc::ServiceStub and Rest::ClientStub.

Constant Summary collapse

ENDPOINT_SUBSTITUTION =

A substitution string for the universe domain in an endpoint template

Returns:

  • (String)
"$UNIVERSE_DOMAIN$".freeze

Instance Attribute Summary collapse

Instance Attribute Details

#credentialsGoogle::Auth::Credentials, ... (readonly)

The effective credentials

Returns:

  • (Google::Auth::Credentials, Signet::OAuth2::Client, Proc, ::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials)


48
49
50
# File 'lib/gapic/universe_domain_concerns.rb', line 48

def credentials
  @credentials
end

#endpointString (readonly)

The effective endpoint

Returns:

  • (String)


34
35
36
# File 'lib/gapic/universe_domain_concerns.rb', line 34

def endpoint
  @endpoint
end

#universe_domainString (readonly)

The effective universe domain

Returns:

  • (String)


40
41
42
# File 'lib/gapic/universe_domain_concerns.rb', line 40

def universe_domain
  @universe_domain
end