Reference documentation and code samples for the Google Cloud Run V2 Client class WorkloadIdentityConfig.
Workload identity settings.
Generated from protobuf message google.cloud.run.v2.WorkloadIdentityConfig
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ identity |
string
Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates. |
↳ identity_type |
int
Optional. The type of identity to use. |
↳ identity_certificate_enabled |
bool
Optional. Controls whether an instance receives a MWLID certificate. Corresponds to the intention of the original --[no-]identity-certificate flag. |
getIdentity
Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
| Returns | |
|---|---|
| Type | Description |
string |
|
setIdentity
Optional. The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIdentityType
Optional. The type of identity to use.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type IdentityType. |
setIdentityType
Optional. The type of identity to use.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type IdentityType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIdentityCertificateEnabled
Optional. Controls whether an instance receives a MWLID certificate.
Corresponds to the intention of the original --[no-]identity-certificate flag.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasIdentityCertificateEnabled
clearIdentityCertificateEnabled
setIdentityCertificateEnabled
Optional. Controls whether an instance receives a MWLID certificate.
Corresponds to the intention of the original --[no-]identity-certificate flag.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|