# IAM Service Account Credentials V1 API - Class Google::Iam::Credentials::V1::IAMCredentials::Rest::ServiceStub (v1.6.0)

1.6.0 (latest) 1.5.1 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.9.0 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.5 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**

- **request_pb** ([::Google::Iam::Credentials::V1::GenerateAccessTokenRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Iam::Credentials::V1::GenerateAccessTokenResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-GenerateAccessTokenResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::Credentials::V1::GenerateAccessTokenResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-GenerateAccessTokenResponse)) --- A result object deserialized from the server's reply
**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**

- **request_pb** ([::Google::Iam::Credentials::V1::GenerateIdTokenRequest](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Iam::Credentials::V1::GenerateIdTokenResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-GenerateIdTokenResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::Credentials::V1::GenerateIdTokenResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-GenerateIdTokenResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #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](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/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**

- **result** ([::Google::Iam::Credentials::V1::SignBlobResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-SignBlobResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::Credentials::V1::SignBlobResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-SignBlobResponse)) --- A result object deserialized from the server's reply
**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](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/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**

- **result** ([::Google::Iam::Credentials::V1::SignJwtResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-SignJwtResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Iam::Credentials::V1::SignJwtResponse](https://docs.cloud.google.com/ruby/docs/reference/google-iam-credentials-v1/latest/Google-Iam-Credentials-V1-SignJwtResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)