/
model_volume_encryption.go
24 lines (22 loc) · 2.2 KB
/
model_volume_encryption.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
* ONTAP REST API
*
* ONTAP 9.6 adds support for an expansive RESTful API. The documentation below provides information about the types of API calls available to you, as well as details about using each API endpoint. You can learn more about the ONTAP REST API and ONTAP in the ONTAP 9 Documentation Center: http://docs.netapp.com/ontap-9/topic/com.netapp.doc.dot-rest-api/home.html. NetApp welcomes your comments and suggestions about the ONTAP REST API and the documentation for its use.</br> **Using the ONTAP 9.6 REST API online documentation** Each API method includes usage examples, as well as a model that displays all the required and optional properties supported by the method. Click the _Model_ link, available with each API method, to see all the required and optional properties supported by each method.
*
* API version: v1
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package swagger
type VolumeEncryption struct {
// Encrypts an unencrypted volume. When set to 'true', a new key is generated and used to encrypt the given volume. The underlying SVM must be configured with the key manager.
Enabled bool `json:"enabled,omitempty"`
// The key ID used for creating encrypted volume. A new key-id is generated for creating an encrypted volume. This key-id is associated with the generated key.
KeyId string `json:"key_id,omitempty"`
// If set to 'true', re-encrypts the volume with a new key. Valid in PATCH.
Rekey bool `json:"rekey,omitempty"`
// Volume encryption state.<br>encrypted ‐ The volume is completely encrypted.<br>encrypting ‐ Encryption operation is in progress.<br>partial ‐ Some constituents are encrypted and some are not. Applicable only for FlexGroup volume.<br>rekeying. Encryption of volume with a new key is in progress.<br>unencrypted ‐ The volume is a plain-text one.
State string `json:"state,omitempty"`
Status *VolumeEncryptionStatus `json:"status,omitempty"`
// Volume encryption type.<br>none ‐ The volume is a plain-text one.<br>volume ‐ The volume is encrypted with volume key (NVE volume).<br>aggregate ‐ The volume is encrypted with aggregate key (NAE volume).
Type_ string `json:"type,omitempty"`
}