/
model_volume_snaplock_retention.go
19 lines (17 loc) · 3.88 KB
/
model_volume_snaplock_retention.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* 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 VolumeSnaplockRetention struct {
// Specifies the default retention period that is applied to files while committing them to the WORM state without an associated retention period. The retention value represents a duration and must be specified in the ISO-8601 duration format. The retention period can be in years, months, days, hours, and minutes. A duration specified for years, months, and days is represented in the ISO-8601 format as \"P<num>Y\", \"P<num>M\", \"P<num>D\" respectively, for example \"P10Y\" represents a duration of 10 years. A duration in hours and minutes is represented by \"PT<num>H\" and \"PT<num>M\" respectively. The retention string must contain only a single time element that is, either years, months, days, hours, or minutes. A duration which combines different periods is not supported, for example \"P1Y10M\" is not supported. Apart from the duration specified in the ISO-8601 format, the duration field also accepts the string \"infinite\" to set an infinite retention period.
Default_ string `json:"default,omitempty"`
// Specifies the maximum allowed retention period for files committed to the WORM state on the volume. The retention value represents a duration and must be specified in the ISO-8601 duration format. The retention period can be in years, months, days, hours, and minutes. A duration specified for years, months, and days is represented in the ISO-8601 format as \"P<num>Y\", \"P<num>M\", \"P<num>D\" respectively, for example \"P10Y\" represents a duration of 10 years. A duration in hours and minutes is represented by \"PT<num>H\" and \"PT<num>M\" respectively. The retention string must contain only a single time element that is, either years, months, days, hours, or minutes. A duration which combines different periods is not supported, for example \"P1Y10M\" is not supported. Apart from the duration specified in the ISO-8601 format, the duration field also accepts the string \"infinite\" to set an infinite retention period.
Maximum string `json:"maximum,omitempty"`
// Specifies the minimum allowed retention period for files committed to the WORM state on the volume. The retention value represents a duration and must be specified in the ISO-8601 duration format. The retention period can be in years, months, days, hours, and minutes. A duration specified for years, month,s and days is represented in the ISO-8601 format as \"P<num>Y\", \"P<num>M\", \"P<num>D\" respectively, for example \"P10Y\" represents a duration of 10 years. A duration in hours and minutes is represented by \"PT<num>H\" and \"PT<num>M\" respectively. The retention string must contain only a single time element that is, either years, months, days, hours, or minutes. A duration which combines different periods is not supported, for example \"P1Y10M\" is not supported. Apart from the duration specified in the ISO-8601 format, the duration field also accepts the string \"infinite\" to set an infinite retention period.
Minimum string `json:"minimum,omitempty"`
}