# NetApp V1 API - Class Google::Cloud::NetApp::V1::CacheParameters (v2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.2 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::CacheParameters.

Cache Parameters for the volume.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cache_config

    def cache_config() -> ::Google::Cloud::NetApp::V1::CacheConfig

**Returns**

- ([::Google::Cloud::NetApp::V1::CacheConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-CacheConfig)) --- Optional. Configuration of the cache volume.

### #cache_config=

    def cache_config=(value) -> ::Google::Cloud::NetApp::V1::CacheConfig

**Parameter**

- **value** ([::Google::Cloud::NetApp::V1::CacheConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-CacheConfig)) --- Optional. Configuration of the cache volume.
**Returns**

- ([::Google::Cloud::NetApp::V1::CacheConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-CacheConfig)) --- Optional. Configuration of the cache volume.

### #cache_state

    def cache_state() -> ::Google::Cloud::NetApp::V1::CacheParameters::CacheState

**Returns**

- ([::Google::Cloud::NetApp::V1::CacheParameters::CacheState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-CacheParameters-CacheState)) --- Output only. State of the cache volume indicating the peering status.

### #command

    def command() -> ::String

**Returns**

- (::String) --- Output only. Copy-paste-able commands to be used on user's ONTAP to accept peering requests.

### #enable_global_file_lock

    def enable_global_file_lock() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Indicates whether the cache volume has global file lock enabled.

### #enable_global_file_lock=

    def enable_global_file_lock=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Indicates whether the cache volume has global file lock enabled.
**Returns**

- (::Boolean) --- Optional. Indicates whether the cache volume has global file lock enabled.

### #passphrase

    def passphrase() -> ::String

**Returns**

- (::String) --- Output only. Temporary passphrase generated to accept cluster peering command.

### #peer_cluster_name

    def peer_cluster_name() -> ::String

**Returns**

- (::String) --- Required. Name of the origin volume's ONTAP cluster.

### #peer_cluster_name=

    def peer_cluster_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the origin volume's ONTAP cluster.
**Returns**

- (::String) --- Required. Name of the origin volume's ONTAP cluster.

### #peer_ip_addresses

    def peer_ip_addresses() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. List of IC LIF addresses of the origin volume's ONTAP cluster.

### #peer_ip_addresses=

    def peer_ip_addresses=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. List of IC LIF addresses of the origin volume's ONTAP cluster.
**Returns**

- (::Array\<::String\>) --- Required. List of IC LIF addresses of the origin volume's ONTAP cluster.

### #peer_svm_name

    def peer_svm_name() -> ::String

**Returns**

- (::String) --- Required. Name of the origin volume's SVM.

### #peer_svm_name=

    def peer_svm_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the origin volume's SVM.
**Returns**

- (::String) --- Required. Name of the origin volume's SVM.

### #peer_volume_name

    def peer_volume_name() -> ::String

**Returns**

- (::String) --- Required. Name of the origin volume for the cache volume.

### #peer_volume_name=

    def peer_volume_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the origin volume for the cache volume.
**Returns**

- (::String) --- Required. Name of the origin volume for the cache volume.

### #peering_command_expiry_time

    def peering_command_expiry_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Expiration time for the peering command to be executed on user's ONTAP.

### #peering_command_expiry_time=

    def peering_command_expiry_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Expiration time for the peering command to be executed on user's ONTAP.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Optional. Expiration time for the peering command to be executed on user's ONTAP.

### #state_details

    def state_details() -> ::String

**Returns**

- (::String) --- Output only. Detailed description of the current cache state.