Reference documentation and code samples for the Google Cloud Run V2 Client class BinaryAuthorization.
Settings for Binary Authorization feature.
Generated from protobuf message google.cloud.run.v2.BinaryAuthorization
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ use_default |
bool
Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. |
↳ policy |
string
Optional. The path to a binary authorization policy. Format: |
↳ breakglass_justification |
string
Optional. If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass |
getUseDefault
Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
| Returns | |
|---|---|
| Type | Description |
bool |
|
hasUseDefault
setUseDefault
Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPolicy
Optional. The path to a binary authorization policy.
Format: projects/{project}/platforms/cloudRun/{policy-name}
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPolicy
setPolicy
Optional. The path to a binary authorization policy.
Format: projects/{project}/platforms/cloudRun/{policy-name}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBreakglassJustification
Optional. If present, indicates to use Breakglass using this justification.
If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
| Returns | |
|---|---|
| Type | Description |
string |
|
setBreakglassJustification
Optional. If present, indicates to use Breakglass using this justification.
If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBinauthzMethod
| Returns | |
|---|---|
| Type | Description |
string |
|