diff --git a/profiles/latest/storage/mgmt/storage/models.go b/profiles/latest/storage/mgmt/storage/models.go index c1a82e06f0b3..bbf42931a8c1 100644 --- a/profiles/latest/storage/mgmt/storage/models.go +++ b/profiles/latest/storage/mgmt/storage/models.go @@ -89,6 +89,13 @@ const ( DirectoryServiceOptionsNone DirectoryServiceOptions = original.DirectoryServiceOptionsNone ) +type EnabledProtocols = original.EnabledProtocols + +const ( + NFS EnabledProtocols = original.NFS + SMB EnabledProtocols = original.SMB +) + type GeoReplicationStatus = original.GeoReplicationStatus const ( @@ -240,6 +247,14 @@ const ( QuotaID ReasonCode = original.QuotaID ) +type RootSquashType = original.RootSquashType + +const ( + AllSquash RootSquashType = original.AllSquash + NoRootSquash RootSquashType = original.NoRootSquash + RootSquash RootSquashType = original.RootSquash +) + type RoutingChoice = original.RoutingChoice const ( @@ -548,6 +563,9 @@ func PossibleDefaultActionValues() []DefaultAction { func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions { return original.PossibleDirectoryServiceOptionsValues() } +func PossibleEnabledProtocolsValues() []EnabledProtocols { + return original.PossibleEnabledProtocolsValues() +} func PossibleGeoReplicationStatusValues() []GeoReplicationStatus { return original.PossibleGeoReplicationStatusValues() } @@ -605,6 +623,9 @@ func PossibleReasonCodeValues() []ReasonCode { func PossibleReasonValues() []Reason { return original.PossibleReasonValues() } +func PossibleRootSquashTypeValues() []RootSquashType { + return original.PossibleRootSquashTypeValues() +} func PossibleRoutingChoiceValues() []RoutingChoice { return original.PossibleRoutingChoiceValues() } diff --git a/profiles/preview/storage/mgmt/storage/models.go b/profiles/preview/storage/mgmt/storage/models.go index 87c8946db909..bb07b697eb92 100644 --- a/profiles/preview/storage/mgmt/storage/models.go +++ b/profiles/preview/storage/mgmt/storage/models.go @@ -89,6 +89,13 @@ const ( DirectoryServiceOptionsNone DirectoryServiceOptions = original.DirectoryServiceOptionsNone ) +type EnabledProtocols = original.EnabledProtocols + +const ( + NFS EnabledProtocols = original.NFS + SMB EnabledProtocols = original.SMB +) + type GeoReplicationStatus = original.GeoReplicationStatus const ( @@ -240,6 +247,14 @@ const ( QuotaID ReasonCode = original.QuotaID ) +type RootSquashType = original.RootSquashType + +const ( + AllSquash RootSquashType = original.AllSquash + NoRootSquash RootSquashType = original.NoRootSquash + RootSquash RootSquashType = original.RootSquash +) + type RoutingChoice = original.RoutingChoice const ( @@ -548,6 +563,9 @@ func PossibleDefaultActionValues() []DefaultAction { func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions { return original.PossibleDirectoryServiceOptionsValues() } +func PossibleEnabledProtocolsValues() []EnabledProtocols { + return original.PossibleEnabledProtocolsValues() +} func PossibleGeoReplicationStatusValues() []GeoReplicationStatus { return original.PossibleGeoReplicationStatusValues() } @@ -605,6 +623,9 @@ func PossibleReasonCodeValues() []ReasonCode { func PossibleReasonValues() []Reason { return original.PossibleReasonValues() } +func PossibleRootSquashTypeValues() []RootSquashType { + return original.PossibleRootSquashTypeValues() +} func PossibleRoutingChoiceValues() []RoutingChoice { return original.PossibleRoutingChoiceValues() } diff --git a/services/storage/mgmt/2019-06-01/storage/models.go b/services/storage/mgmt/2019-06-01/storage/models.go index 61ccf9937f7f..7a9384311ca1 100644 --- a/services/storage/mgmt/2019-06-01/storage/models.go +++ b/services/storage/mgmt/2019-06-01/storage/models.go @@ -159,6 +159,21 @@ func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions { return []DirectoryServiceOptions{DirectoryServiceOptionsAADDS, DirectoryServiceOptionsAD, DirectoryServiceOptionsNone} } +// EnabledProtocols enumerates the values for enabled protocols. +type EnabledProtocols string + +const ( + // NFS ... + NFS EnabledProtocols = "NFS" + // SMB ... + SMB EnabledProtocols = "SMB" +) + +// PossibleEnabledProtocolsValues returns an array of possible values for the EnabledProtocols const type. +func PossibleEnabledProtocolsValues() []EnabledProtocols { + return []EnabledProtocols{NFS, SMB} +} + // GeoReplicationStatus enumerates the values for geo replication status. type GeoReplicationStatus string @@ -481,6 +496,23 @@ func PossibleReasonCodeValues() []ReasonCode { return []ReasonCode{NotAvailableForSubscription, QuotaID} } +// RootSquashType enumerates the values for root squash type. +type RootSquashType string + +const ( + // AllSquash ... + AllSquash RootSquashType = "AllSquash" + // NoRootSquash ... + NoRootSquash RootSquashType = "NoRootSquash" + // RootSquash ... + RootSquash RootSquashType = "RootSquash" +) + +// PossibleRootSquashTypeValues returns an array of possible values for the RootSquashType const type. +func PossibleRootSquashTypeValues() []RootSquashType { + return []RootSquashType{AllSquash, NoRootSquash, RootSquash} +} + // RoutingChoice enumerates the values for routing choice. type RoutingChoice string @@ -2178,6 +2210,10 @@ type FileShareProperties struct { Metadata map[string]*string `json:"metadata"` // ShareQuota - The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 100000. ShareQuota *int32 `json:"shareQuota,omitempty"` + // EnabledProtocols - Immutable property for file shares protocol. Possible values include: 'SMB', 'NFS' + EnabledProtocols EnabledProtocols `json:"enabledProtocols,omitempty"` + // RootSquash - Reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' + RootSquash RootSquashType `json:"rootSquash,omitempty"` } // MarshalJSON is the custom marshaler for FileShareProperties. @@ -2189,6 +2225,12 @@ func (fsp FileShareProperties) MarshalJSON() ([]byte, error) { if fsp.ShareQuota != nil { objectMap["shareQuota"] = fsp.ShareQuota } + if fsp.EnabledProtocols != "" { + objectMap["enabledProtocols"] = fsp.EnabledProtocols + } + if fsp.RootSquash != "" { + objectMap["rootSquash"] = fsp.RootSquash + } return json.Marshal(objectMap) }