gapic-common - Module Gapic::UniverseDomainConcerns (v0.24.0)

Reference documentation and code samples for the gapic-common module Gapic::UniverseDomainConcerns.

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.

Methods

#credentials

def credentials() -> Google::Auth::Credentials, Signet::OAuth2::Client, Proc, ::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials

The effective credentials

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

Constants

ENDPOINT_SUBSTITUTION

value: "$UNIVERSE_DOMAIN$".freeze
A substitution string for the universe domain in an endpoint template