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
#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
- request_pb (::Google::Iam::Credentials::V1::GenerateAccessTokenRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::Credentials::V1::GenerateAccessTokenResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::Credentials::V1::GenerateAccessTokenResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Iam::Credentials::V1::GenerateIdTokenRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::Credentials::V1::GenerateIdTokenResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::Credentials::V1::GenerateIdTokenResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#sign_blob
def sign_blob(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::Credentials::V1::SignBlobResponse
Baseline implementation for the sign_blob REST call
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::Credentials::V1::SignBlobResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::Credentials::V1::SignBlobResponse) — A result object deserialized from the server's reply
- (::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
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::Credentials::V1::SignJwtResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::Credentials::V1::SignJwtResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)