Google Cloud Eventarc V1 Client - Class AuthenticationConfig (2.1.0)

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 Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OidcToken

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

↳ oauth_token Google\Cloud\Eventarc\V1\Pipeline\Destination\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
Google\Cloud\Eventarc\V1\Pipeline\Destination\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 Google\Cloud\Eventarc\V1\Pipeline\Destination\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
Google\Cloud\Eventarc\V1\Pipeline\Destination\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 Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OAuthToken
Returns
Type Description
$this

getAuthenticationMethodDescriptor

Returns
Type Description
string