# Binary Authorization V1 API - Class Google::Cloud::BinaryAuthorization::V1::GetPolicyRequest (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Binary Authorization V1 API class Google::Cloud::BinaryAuthorization::V1::GetPolicyRequest.

Request message for \[BinauthzManagementService.GetPolicy\]\[\].

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Policy "Google::Cloud::BinaryAuthorization::V1::Policy (class)") to retrieve, in the format `projects/*/policy`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Policy "Google::Cloud::BinaryAuthorization::V1::Policy (class)") to retrieve, in the format `projects/*/policy`.
**Returns**

- (::String) --- Required. The resource name of the [policy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-binary_authorization-v1/latest/Google-Cloud-BinaryAuthorization-V1-Policy "Google::Cloud::BinaryAuthorization::V1::Policy (class)") to retrieve, in the format `projects/*/policy`.