Google Cloud Ces V1 Client - Class ServiceAccountAuthConfig (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class ServiceAccountAuthConfig.

Configurations for authentication using a custom service account.

Generated from protobuf message google.cloud.ces.v1.ServiceAccountAuthConfig

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_account string

Required. The email address of the service account used for authentication. CES uses this service account to exchange an access token and the access token is then sent in the Authorization header of the request. The service account must have the roles/iam.serviceAccountTokenCreator role granted to the CES service agent service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.

↳ scopes array

Optional. The OAuth scopes to grant. If not specified, the default scope https://www.googleapis.com/auth/cloud-platform is used.

getServiceAccount

Required. The email address of the service account used for authentication.

CES uses this service account to exchange an access token and the access token is then sent in the Authorization header of the request. The service account must have the roles/iam.serviceAccountTokenCreator role granted to the CES service agent service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.

Returns
Type Description
string

setServiceAccount

Required. The email address of the service account used for authentication.

CES uses this service account to exchange an access token and the access token is then sent in the Authorization header of the request. The service account must have the roles/iam.serviceAccountTokenCreator role granted to the CES service agent service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.

Parameter
Name Description
var string
Returns
Type Description
$this

getScopes

Optional. The OAuth scopes to grant. If not specified, the default scope https://www.googleapis.com/auth/cloud-platform is used.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setScopes

Optional. The OAuth scopes to grant. If not specified, the default scope https://www.googleapis.com/auth/cloud-platform is used.

Parameter
Name Description
var string[]
Returns
Type Description
$this