# Access Context Manager V1 API - Class Google::Identity::AccessContextManager::V1::UpdateAccessPolicyRequest (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::UpdateAccessPolicyRequest.

A request to update an `AccessPolicy`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #policy

    def policy() -> ::Google::Identity::AccessContextManager::V1::AccessPolicy

**Returns**

- ([::Google::Identity::AccessContextManager::V1::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-V1-AccessPolicy)) --- Required. The updated AccessPolicy.

### #policy=

    def policy=(value) -> ::Google::Identity::AccessContextManager::V1::AccessPolicy

**Parameter**

- **value** ([::Google::Identity::AccessContextManager::V1::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-V1-AccessPolicy)) --- Required. The updated AccessPolicy.
**Returns**

- ([::Google::Identity::AccessContextManager::V1::AccessPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-V1-AccessPolicy)) --- Required. The updated AccessPolicy.

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Protobuf-FieldMask)) --- Required. Mask to control which fields get updated. Must be non-empty.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Protobuf-FieldMask)) --- Required. Mask to control which fields get updated. Must be non-empty.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Protobuf-FieldMask)) --- Required. Mask to control which fields get updated. Must be non-empty.