This type of authorization can be used for many scenarios, including
calling Cloud Run, or endpoints where you intend to validate the token
yourself.
Generated from protobuf message google.cloud.scheduler.v1.OidcToken
Namespace
Google \ Cloud \ Scheduler \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ service_account_email
string
Service account email 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.
↳ audience
string
Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Scheduler V1 Client - Class OidcToken (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-scheduler/latest/V1.OidcToken)\n- [2.0.4](/php/docs/reference/cloud-scheduler/2.0.4/V1.OidcToken)\n- [1.10.5](/php/docs/reference/cloud-scheduler/1.10.5/V1.OidcToken)\n- [1.9.4](/php/docs/reference/cloud-scheduler/1.9.4/V1.OidcToken)\n- [1.8.3](/php/docs/reference/cloud-scheduler/1.8.3/V1.OidcToken)\n- [1.7.1](/php/docs/reference/cloud-scheduler/1.7.1/V1.OidcToken)\n- [1.6.8](/php/docs/reference/cloud-scheduler/1.6.8/V1.OidcToken) \nReference documentation and code samples for the Cloud Scheduler V1 Client class OidcToken.\n\nContains information needed for generating an\n[OpenID Connect\ntoken](https://developers.google.com/identity/protocols/OpenIDConnect).\n\nThis type of authorization can be used for many scenarios, including\ncalling Cloud Run, or endpoints where you intend to validate the token\nyourself.\n\nGenerated from protobuf message `google.cloud.scheduler.v1.OidcToken`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Scheduler \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getServiceAccountEmail\n\n[Service account email](https://cloud.google.com/iam/docs/service-accounts)\nto be used for generating OIDC token.\n\nThe service account must be within the same project as the job. The caller\nmust have iam.serviceAccounts.actAs permission for the service account.\n\n### setServiceAccountEmail\n\n[Service account email](https://cloud.google.com/iam/docs/service-accounts)\nto be used for generating OIDC token.\n\nThe service account must be within the same project as the job. The caller\nmust have iam.serviceAccounts.actAs permission for the service account.\n\n### getAudience\n\nAudience to be used when generating OIDC token. If not specified, the URI\nspecified in target will be used.\n\n### setAudience\n\nAudience to be used when generating OIDC token. If not specified, the URI\nspecified in target will be used."]]