IAM Service Account Credentials V1 API - Class Google::Iam::Credentials::V1::IAMCredentials::Rest::ServiceStub (v0.9.0)

Reference documentation and code samples for the IAM Service Account Credentials V1 API class Google::Iam::Credentials::V1::IAMCredentials::Rest::ServiceStub.

REST service stub for the IAMCredentials service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#generate_access_token

def generate_access_token(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::Credentials::V1::GenerateAccessTokenResponse

Baseline implementation for the generate_access_token REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#generate_id_token

def generate_id_token(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::Credentials::V1::GenerateIdTokenResponse

Baseline implementation for the generate_id_token REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#sign_blob

def sign_blob(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::Credentials::V1::SignBlobResponse

Baseline implementation for the sign_blob REST call

Parameters
  • request_pb (::Google::Iam::Credentials::V1::SignBlobRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#sign_jwt

def sign_jwt(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::Credentials::V1::SignJwtResponse

Baseline implementation for the sign_jwt REST call

Parameters
  • request_pb (::Google::Iam::Credentials::V1::SignJwtRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)