diff --git a/services/netapp/mgmt/2020-02-01/netapp/enums.go b/services/netapp/mgmt/2020-02-01/netapp/enums.go index c52459778446..0d388c1b1b31 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/enums.go +++ b/services/netapp/mgmt/2020-02-01/netapp/enums.go @@ -83,6 +83,40 @@ func PossibleMirrorStateValues() []MirrorState { return []MirrorState{Broken, Mirrored, Uninitialized} } +// PatchServiceLevel enumerates the values for patch service level. +type PatchServiceLevel string + +const ( + // Premium Premium service level + Premium PatchServiceLevel = "Premium" + // Standard Standard service level + Standard PatchServiceLevel = "Standard" + // Ultra Ultra service level + Ultra PatchServiceLevel = "Ultra" +) + +// PossiblePatchServiceLevelValues returns an array of possible values for the PatchServiceLevel const type. +func PossiblePatchServiceLevelValues() []PatchServiceLevel { + return []PatchServiceLevel{Premium, Standard, Ultra} +} + +// PoolServiceLevel enumerates the values for pool service level. +type PoolServiceLevel string + +const ( + // PoolServiceLevelPremium Premium service level + PoolServiceLevelPremium PoolServiceLevel = "Premium" + // PoolServiceLevelStandard Standard service level + PoolServiceLevelStandard PoolServiceLevel = "Standard" + // PoolServiceLevelUltra Ultra service level + PoolServiceLevelUltra PoolServiceLevel = "Ultra" +) + +// PossiblePoolServiceLevelValues returns an array of possible values for the PoolServiceLevel const type. +func PossiblePoolServiceLevelValues() []PoolServiceLevel { + return []PoolServiceLevel{PoolServiceLevelPremium, PoolServiceLevelStandard, PoolServiceLevelUltra} +} + // RelationshipStatus enumerates the values for relationship status. type RelationshipStatus string @@ -108,30 +142,43 @@ const ( Daily ReplicationSchedule = "daily" // Hourly ... Hourly ReplicationSchedule = "hourly" - // Monthly ... - Monthly ReplicationSchedule = "monthly" - // Weekly ... - Weekly ReplicationSchedule = "weekly" ) // PossibleReplicationScheduleValues returns an array of possible values for the ReplicationSchedule const type. func PossibleReplicationScheduleValues() []ReplicationSchedule { - return []ReplicationSchedule{OneZerominutely, Daily, Hourly, Monthly, Weekly} + return []ReplicationSchedule{OneZerominutely, Daily, Hourly} } // ServiceLevel enumerates the values for service level. type ServiceLevel string const ( - // Premium Premium service level - Premium ServiceLevel = "Premium" - // Standard Standard service level - Standard ServiceLevel = "Standard" - // Ultra Ultra service level - Ultra ServiceLevel = "Ultra" + // ServiceLevelPremium Premium service level + ServiceLevelPremium ServiceLevel = "Premium" + // ServiceLevelStandard Standard service level + ServiceLevelStandard ServiceLevel = "Standard" + // ServiceLevelUltra Ultra service level + ServiceLevelUltra ServiceLevel = "Ultra" ) // PossibleServiceLevelValues returns an array of possible values for the ServiceLevel const type. func PossibleServiceLevelValues() []ServiceLevel { - return []ServiceLevel{Premium, Standard, Ultra} + return []ServiceLevel{ServiceLevelPremium, ServiceLevelStandard, ServiceLevelUltra} +} + +// VolumeServiceLevel enumerates the values for volume service level. +type VolumeServiceLevel string + +const ( + // VolumeServiceLevelPremium Premium service level + VolumeServiceLevelPremium VolumeServiceLevel = "Premium" + // VolumeServiceLevelStandard Standard service level + VolumeServiceLevelStandard VolumeServiceLevel = "Standard" + // VolumeServiceLevelUltra Ultra service level + VolumeServiceLevelUltra VolumeServiceLevel = "Ultra" +) + +// PossibleVolumeServiceLevelValues returns an array of possible values for the VolumeServiceLevel const type. +func PossibleVolumeServiceLevelValues() []VolumeServiceLevel { + return []VolumeServiceLevel{VolumeServiceLevelPremium, VolumeServiceLevelStandard, VolumeServiceLevelUltra} } diff --git a/services/netapp/mgmt/2020-02-01/netapp/models.go b/services/netapp/mgmt/2020-02-01/netapp/models.go index bda0a1229595..1f986f600594 100644 --- a/services/netapp/mgmt/2020-02-01/netapp/models.go +++ b/services/netapp/mgmt/2020-02-01/netapp/models.go @@ -880,7 +880,7 @@ type PoolPatchProperties struct { // Size - Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104). Size *int64 `json:"size,omitempty"` // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra' - ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"` + ServiceLevel PatchServiceLevel `json:"serviceLevel,omitempty"` } // PoolProperties pool properties @@ -889,8 +889,8 @@ type PoolProperties struct { PoolID *string `json:"poolId,omitempty"` // Size - Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104). Size *int64 `json:"size,omitempty"` - // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra' - ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"` + // ServiceLevel - The service level of the file system. Possible values include: 'PoolServiceLevelStandard', 'PoolServiceLevelPremium', 'PoolServiceLevelUltra' + ServiceLevel PoolServiceLevel `json:"serviceLevel,omitempty"` // ProvisioningState - READ-ONLY; Azure lifecycle management ProvisioningState *string `json:"provisioningState,omitempty"` } @@ -992,7 +992,7 @@ type ReplicationObject struct { ReplicationID *string `json:"replicationId,omitempty"` // EndpointType - Indicates whether the local volume is the source or destination for the Volume Replication. Possible values include: 'Src', 'Dst' EndpointType EndpointType `json:"endpointType,omitempty"` - // ReplicationSchedule - Schedule. Possible values include: '10minutely', 'Hourly', 'Daily', 'Weekly', 'Monthly' + // ReplicationSchedule - Schedule. Possible values include: '10minutely', 'Hourly', 'Daily' ReplicationSchedule ReplicationSchedule `json:"replicationSchedule,omitempty"` // RemoteVolumeResourceID - The resource ID of the remote volume. RemoteVolumeResourceID *string `json:"remoteVolumeResourceId,omitempty"` @@ -1434,7 +1434,7 @@ func (vp *VolumePatch) UnmarshalJSON(body []byte) error { // VolumePatchProperties patchable volume properties type VolumePatchProperties struct { - // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra' + // ServiceLevel - The service level of the file system. Possible values include: 'ServiceLevelStandard', 'ServiceLevelPremium', 'ServiceLevelUltra' ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"` // UsageThreshold - Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. UsageThreshold *int64 `json:"usageThreshold,omitempty"` @@ -1454,8 +1454,8 @@ type VolumeProperties struct { FileSystemID *string `json:"fileSystemId,omitempty"` // CreationToken - A unique file path for the volume. Used when creating mount targets CreationToken *string `json:"creationToken,omitempty"` - // ServiceLevel - The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra' - ServiceLevel ServiceLevel `json:"serviceLevel,omitempty"` + // ServiceLevel - The service level of the file system. Possible values include: 'VolumeServiceLevelStandard', 'VolumeServiceLevelPremium', 'VolumeServiceLevelUltra' + ServiceLevel VolumeServiceLevel `json:"serviceLevel,omitempty"` // UsageThreshold - Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB. Specified in bytes. UsageThreshold *int64 `json:"usageThreshold,omitempty"` // ExportPolicy - Set of export policy rules