# NetApp V1 API - Class Google::Cloud::NetApp::V1::KmsConfig (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::KmsConfig.

KmsConfig is the customer-managed encryption key(CMEK) configuration.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Create time of the KmsConfig.

### #crypto_key_name

    def crypto_key_name() -> ::String

**Returns**

- (::String) --- Required. Customer-managed crypto key resource full name. Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`

### #crypto_key_name=

    def crypto_key_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Customer-managed crypto key resource full name. Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
**Returns**

- (::String) --- Required. Customer-managed crypto key resource full name. Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`

### #description

    def description() -> ::String

**Returns**

- (::String) --- Description of the KmsConfig.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Description of the KmsConfig.
**Returns**

- (::String) --- Description of the KmsConfig.

### #instructions

    def instructions() -> ::String

**Returns**

- (::String) --- Output only. Instructions to provide the access to the customer provided encryption key.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Name of the KmsConfig. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Name of the KmsConfig. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
**Returns**

- (::String) --- Identifier. Name of the KmsConfig. Format: `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`

### #service_account

    def service_account() -> ::String

**Returns**

- (::String) --- Output only. The Service account which will have access to the customer provided encryption key.

### #state

    def state() -> ::Google::Cloud::NetApp::V1::KmsConfig::State

**Returns**

- ([::Google::Cloud::NetApp::V1::KmsConfig::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-netapp-v1/latest/Google-Cloud-NetApp-V1-KmsConfig-State)) --- Output only. State of the KmsConfig.

### #state_details

    def state_details() -> ::String

**Returns**

- (::String) --- Output only. State details of the KmsConfig.