# Cloud Scheduler V1 API - Class Google::Cloud::Scheduler::V1::OidcToken (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.2 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud Scheduler V1 API class Google::Cloud::Scheduler::V1::OidcToken.

Contains information needed for generating an
[OpenID Connect
token](https://developers.google.com/identity/protocols/OpenIDConnect).
This type of authorization can be used for many scenarios, including
calling Cloud Run, or endpoints where you intend to validate the token
yourself.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #audience

    def audience() -> ::String

**Returns**

- (::String) --- Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.

### #audience=

    def audience=(value) -> ::String

**Parameter**

- **value** (::String) --- Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
**Returns**

- (::String) --- Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.

### #service_account_email

    def service_account_email() -> ::String

**Returns**

- (::String) --- [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.

### #service_account_email=

    def service_account_email=(value) -> ::String

**Parameter**

- **value** (::String) --- [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.
**Returns**

- (::String) --- [Service account email](https://cloud.google.com/iam/docs/service-accounts) to be used for generating OIDC token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.