Google Cloud Eventarc V1 Client - Class AuthenticationConfig (2.1.3)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class AuthenticationConfig.

Represents a config used to authenticate message requests.

Generated from protobuf message google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig

Namespace

Google \ Cloud \ Eventarc \ V1 \ Pipeline \ Destination

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ google_oidc AuthenticationConfig\OidcToken

Optional. This authenticate method will apply Google OIDC tokens signed by a GCP service account to the requests.

↳ oauth_token AuthenticationConfig\OAuthToken

Optional. If specified, an OAuth token will be generated and attached as an Authorization header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

getGoogleOidc

Optional. This authenticate method will apply Google OIDC tokens signed by a GCP service account to the requests.

Returns
Type Description
AuthenticationConfig\OidcToken|null

hasGoogleOidc

setGoogleOidc

Optional. This authenticate method will apply Google OIDC tokens signed by a GCP service account to the requests.

Parameter
Name Description
var AuthenticationConfig\OidcToken
Returns
Type Description
$this

getOauthToken

Optional. If specified, an OAuth token will be generated and attached as an Authorization header in the HTTP request.

This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

Returns
Type Description
AuthenticationConfig\OAuthToken|null

hasOauthToken

setOauthToken

Optional. If specified, an OAuth token will be generated and attached as an Authorization header in the HTTP request.

This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.

Parameter
Name Description
var AuthenticationConfig\OAuthToken
Returns
Type Description
$this

getAuthenticationMethodDescriptor

Returns
Type Description
string