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

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
↳ 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

hasGoogleServiceAccountConfig

setGoogleServiceAccountConfig

Google Service Account.

Parameter
Name
Description
Returns
Type
Description
$this

getUserPasswordConfig

User Password.

Returns
Type
Description

hasUserPasswordConfig

setUserPasswordConfig

User Password.

Parameter
Name
Description
Returns
Type
Description
$this

getApiKeyConfig

Api Key Config.

Returns
Type
Description

hasApiKeyConfig

setApiKeyConfig

Api Key Config.

Parameter
Name
Description
Returns
Type
Description
$this

getOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

Returns
Type
Description

hasOauth2ClientCredentialsConfig

setOauth2ClientCredentialsConfig

Oauth2.0 Client Credentials.

Parameter
Name
Description
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
Create a Mobile Website
View Site in Mobile | Classic
Share by: