Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Oauth2ClientCredentialsConfig.
Parameters to support Oauth 2.0 client credentials grant authentication.
See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
Generated from protobuf message google.cloud.apihub.v1.AuthConfig.Oauth2ClientCredentialsConfig
Namespace
Google \ Cloud \ ApiHub \ V1 \ AuthConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ client_id |
string
Required. The client identifier. |
↳ client_secret |
Google\Cloud\ApiHub\V1\Secret
Required. Secret version reference containing the client secret. The |
getClientId
Required. The client identifier.
| Returns | |
|---|---|
| Type | Description |
string |
|
setClientId
Required. The client identifier.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getClientSecret
Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\ApiHub\V1\Secret|null |
|
hasClientSecret
clearClientSecret
setClientSecret
Required. Secret version reference containing the client secret.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\ApiHub\V1\Secret
|
| Returns | |
|---|---|
| Type | Description |
$this |
|