Reference documentation and code samples for the Cloud Scheduler V1 Client class OAuthToken.
Contains information needed for generating an
OAuth token.
This type of authorization should generally only be used when calling Google
APIs hosted on *.googleapis.com.
Generated from protobuf message google.cloud.scheduler.v1.OAuthToken
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 OAuth 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.
[[["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 OAuthToken (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-scheduler/latest/V1.OAuthToken)\n- [2.0.4](/php/docs/reference/cloud-scheduler/2.0.4/V1.OAuthToken)\n- [1.10.5](/php/docs/reference/cloud-scheduler/1.10.5/V1.OAuthToken)\n- [1.9.4](/php/docs/reference/cloud-scheduler/1.9.4/V1.OAuthToken)\n- [1.8.3](/php/docs/reference/cloud-scheduler/1.8.3/V1.OAuthToken)\n- [1.7.1](/php/docs/reference/cloud-scheduler/1.7.1/V1.OAuthToken)\n- [1.6.8](/php/docs/reference/cloud-scheduler/1.6.8/V1.OAuthToken) \nReference documentation and code samples for the Cloud Scheduler V1 Client class OAuthToken.\n\nContains information needed for generating an\n[OAuth token](https://developers.google.com/identity/protocols/OAuth2).\n\nThis type of authorization should generally only be used when calling Google\nAPIs hosted on \\*.googleapis.com.\n\nGenerated from protobuf message `google.cloud.scheduler.v1.OAuthToken`\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 OAuth 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 OAuth 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### getScope\n\nOAuth scope to be used for generating OAuth access token.\n\nIf not specified, \"\u003chttps://www.googleapis.com/auth/cloud-platform\u003e\"\nwill be used.\n\n### setScope\n\nOAuth scope to be used for generating OAuth access token.\n\nIf not specified, \"\u003chttps://www.googleapis.com/auth/cloud-platform\u003e\"\nwill be used."]]