# Cloud Run V2 API - Class Google::Cloud::Run::V2::BinaryAuthorization (v0.29.0)

0.29.0 (latest) 0.28.1 0.27.0 0.26.0 0.25.0 0.24.1 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.1 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::BinaryAuthorization.

Settings for Binary Authorization feature.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #breakglass_justification

    def breakglass_justification() -> ::String

**Returns**

- (::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

### #breakglass_justification=

    def breakglass_justification=(value) -> ::String

**Parameter**

- **value** (::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
**Returns**

- (::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

### #policy

    def policy() -> ::String

**Returns**

- (::String) --- Optional. The path to a binary authorization policy. Format: `projects/{project}/platforms/cloudRun/{policy-name}`


  Note: The following fields are mutually exclusive: `policy`, `use_default`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #policy=

    def policy=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The path to a binary authorization policy. Format: `projects/{project}/platforms/cloudRun/{policy-name}`


  Note: The following fields are mutually exclusive: `policy`, `use_default`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Optional. The path to a binary authorization policy. Format: `projects/{project}/platforms/cloudRun/{policy-name}`


  Note: The following fields are mutually exclusive: `policy`, `use_default`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #use_default

    def use_default() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

  Note: The following fields are mutually exclusive: `use_default`, `policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #use_default=

    def use_default=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.


  Note: The following fields are mutually exclusive: `use_default`, `policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- Optional. If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.

  Note: The following fields are mutually exclusive: `use_default`, `policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.