Google Cloud Api Hub V1 Client - Class AuthConfig (0.3.0)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class AuthConfig.

AuthConfig represents the authentication information.

Generated from protobuf message google.cloud.apihub.v1.AuthConfig

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ google_service_account_config GoogleServiceAccountConfig

Google Service Account.

↳ user_password_config AuthConfig\UserPasswordConfig

User Password.

↳ api_key_config AuthConfig\ApiKeyConfig

Api Key Config.

↳ oauth2_client_credentials_config AuthConfig\Oauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

↳ auth_type int

Required. The authentication type.

getGoogleServiceAccountConfig

Google Service Account.

Returns
Type Description
GoogleServiceAccountConfig|null

hasGoogleServiceAccountConfig

setGoogleServiceAccountConfig

Google Service Account.

Parameter
Name Description
var GoogleServiceAccountConfig
Returns
Type Description
$this

getUserPasswordConfig

User Password.

Returns
Type Description
AuthConfig\UserPasswordConfig|null

hasUserPasswordConfig

setUserPasswordConfig

User Password.

Parameter
Name Description
var AuthConfig\UserPasswordConfig
Returns
Type Description
$this

getApiKeyConfig

Api Key Config.

Returns
Type Description
AuthConfig\ApiKeyConfig|null

hasApiKeyConfig

setApiKeyConfig

Api Key Config.

Parameter
Name Description
var AuthConfig\ApiKeyConfig
Returns
Type Description
$this

getOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

Returns
Type Description
AuthConfig\Oauth2ClientCredentialsConfig|null

hasOauth2ClientCredentialsConfig

setOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

Parameter
Name Description
var AuthConfig\Oauth2ClientCredentialsConfig
Returns
Type Description
$this

getAuthType

Required. The authentication type.

Returns
Type Description
int Enum of type AuthType.

setAuthType

Required. The authentication type.

Parameter
Name Description
var int

Enum of type AuthType.

Returns
Type Description
$this

getConfig

Returns
Type Description
string