diff --git a/services/resources/mgmt/2015-01-01/locks/models.go b/services/resources/mgmt/2015-01-01/locks/models.go index 4077ca252981..a04f1968e1a7 100644 --- a/services/resources/mgmt/2015-01-01/locks/models.go +++ b/services/resources/mgmt/2015-01-01/locks/models.go @@ -36,6 +36,11 @@ const ( ReadOnly LockLevel = "ReadOnly" ) +// PossibleLockLevelValues returns an array of possible values for the LockLevel const type. +func PossibleLockLevelValues() [3]LockLevel { + return [3]LockLevel{CanNotDelete, NotSpecified, ReadOnly} +} + // ManagementLockListResult list of management locks. type ManagementLockListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2015-10-01-preview/policy/models.go b/services/resources/mgmt/2015-10-01-preview/policy/models.go index 408bb88bcd68..bc4b43288ac5 100644 --- a/services/resources/mgmt/2015-10-01-preview/policy/models.go +++ b/services/resources/mgmt/2015-10-01-preview/policy/models.go @@ -36,6 +36,11 @@ const ( NotSpecified Type = "NotSpecified" ) +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() [3]Type { + return [3]Type{BuiltIn, Custom, NotSpecified} +} + // Assignment the policy assignment. type Assignment struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2015-11-01/resources/models.go b/services/resources/mgmt/2015-11-01/resources/models.go index 3fbe80312200..704fae862224 100644 --- a/services/resources/mgmt/2015-11-01/resources/models.go +++ b/services/resources/mgmt/2015-11-01/resources/models.go @@ -36,6 +36,11 @@ const ( Incremental DeploymentMode = "Incremental" ) +// PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type. +func PossibleDeploymentModeValues() [2]DeploymentMode { + return [2]DeploymentMode{Complete, Incremental} +} + // BasicDependency deployment dependency information. type BasicDependency struct { // ID - Gets or sets the ID of the dependency. diff --git a/services/resources/mgmt/2016-02-01/resources/models.go b/services/resources/mgmt/2016-02-01/resources/models.go index daed1ddbae40..ad80f29a00b3 100644 --- a/services/resources/mgmt/2016-02-01/resources/models.go +++ b/services/resources/mgmt/2016-02-01/resources/models.go @@ -36,6 +36,11 @@ const ( Incremental DeploymentMode = "Incremental" ) +// PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type. +func PossibleDeploymentModeValues() [2]DeploymentMode { + return [2]DeploymentMode{Complete, Incremental} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -44,6 +49,11 @@ const ( SystemAssigned ResourceIdentityType = "SystemAssigned" ) +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() [1]ResourceIdentityType { + return [1]ResourceIdentityType{SystemAssigned} +} + // AliasPathType ... type AliasPathType struct { // Path - The path of an alias. diff --git a/services/resources/mgmt/2016-04-01/policy/models.go b/services/resources/mgmt/2016-04-01/policy/models.go index 408bb88bcd68..bc4b43288ac5 100644 --- a/services/resources/mgmt/2016-04-01/policy/models.go +++ b/services/resources/mgmt/2016-04-01/policy/models.go @@ -36,6 +36,11 @@ const ( NotSpecified Type = "NotSpecified" ) +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() [3]Type { + return [3]Type{BuiltIn, Custom, NotSpecified} +} + // Assignment the policy assignment. type Assignment struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-06-01/subscriptions/models.go b/services/resources/mgmt/2016-06-01/subscriptions/models.go index d859119740c0..2fbcc04f08d9 100644 --- a/services/resources/mgmt/2016-06-01/subscriptions/models.go +++ b/services/resources/mgmt/2016-06-01/subscriptions/models.go @@ -35,6 +35,11 @@ const ( On SpendingLimit = "On" ) +// PossibleSpendingLimitValues returns an array of possible values for the SpendingLimit const type. +func PossibleSpendingLimitValues() [3]SpendingLimit { + return [3]SpendingLimit{CurrentPeriodOff, Off, On} +} + // State enumerates the values for state. type State string @@ -51,6 +56,11 @@ const ( Warned State = "Warned" ) +// PossibleStateValues returns an array of possible values for the State const type. +func PossibleStateValues() [5]State { + return [5]State{Deleted, Disabled, Enabled, PastDue, Warned} +} + // ListResult subscription list operation response. type ListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-07-01/resources/models.go b/services/resources/mgmt/2016-07-01/resources/models.go index ee83a6634c48..583c20b31ef3 100644 --- a/services/resources/mgmt/2016-07-01/resources/models.go +++ b/services/resources/mgmt/2016-07-01/resources/models.go @@ -36,6 +36,11 @@ const ( Incremental DeploymentMode = "Incremental" ) +// PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type. +func PossibleDeploymentModeValues() [2]DeploymentMode { + return [2]DeploymentMode{Complete, Incremental} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -44,6 +49,11 @@ const ( SystemAssigned ResourceIdentityType = "SystemAssigned" ) +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() [1]ResourceIdentityType { + return [1]ResourceIdentityType{SystemAssigned} +} + // AliasPathType the type of the paths for alias. type AliasPathType struct { // Path - The path of an alias. diff --git a/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go b/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go index e35249ba8634..affd88433c24 100644 --- a/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go +++ b/services/resources/mgmt/2016-09-01-preview/managedapplications/models.go @@ -35,6 +35,11 @@ const ( Template ApplianceArtifactType = "Template" ) +// PossibleApplianceArtifactTypeValues returns an array of possible values for the ApplianceArtifactType const type. +func PossibleApplianceArtifactTypeValues() [2]ApplianceArtifactType { + return [2]ApplianceArtifactType{Custom, Template} +} + // ApplianceLockLevel enumerates the values for appliance lock level. type ApplianceLockLevel string @@ -47,6 +52,11 @@ const ( ReadOnly ApplianceLockLevel = "ReadOnly" ) +// PossibleApplianceLockLevelValues returns an array of possible values for the ApplianceLockLevel const type. +func PossibleApplianceLockLevelValues() [3]ApplianceLockLevel { + return [3]ApplianceLockLevel{CanNotDelete, None, ReadOnly} +} + // ProvisioningState enumerates the values for provisioning state. type ProvisioningState string @@ -75,6 +85,11 @@ const ( Updating ProvisioningState = "Updating" ) +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() [11]ProvisioningState { + return [11]ProvisioningState{Accepted, Canceled, Created, Creating, Deleted, Deleting, Failed, Ready, Running, Succeeded, Updating} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -83,6 +98,11 @@ const ( SystemAssigned ResourceIdentityType = "SystemAssigned" ) +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() [1]ResourceIdentityType { + return [1]ResourceIdentityType{SystemAssigned} +} + // Appliance information about appliance. type Appliance struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-09-01/links/models.go b/services/resources/mgmt/2016-09-01/links/models.go index 03153506332d..c1700eaebade 100644 --- a/services/resources/mgmt/2016-09-01/links/models.go +++ b/services/resources/mgmt/2016-09-01/links/models.go @@ -31,6 +31,11 @@ const ( AtScope Filter = "atScope()" ) +// PossibleFilterValues returns an array of possible values for the Filter const type. +func PossibleFilterValues() [1]Filter { + return [1]Filter{AtScope} +} + // ResourceLink the resource link. type ResourceLink struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-09-01/locks/models.go b/services/resources/mgmt/2016-09-01/locks/models.go index d39382a2d611..86fc25f0a298 100644 --- a/services/resources/mgmt/2016-09-01/locks/models.go +++ b/services/resources/mgmt/2016-09-01/locks/models.go @@ -36,6 +36,11 @@ const ( ReadOnly LockLevel = "ReadOnly" ) +// PossibleLockLevelValues returns an array of possible values for the LockLevel const type. +func PossibleLockLevelValues() [3]LockLevel { + return [3]LockLevel{CanNotDelete, NotSpecified, ReadOnly} +} + // ManagementLockListResult the list of locks. type ManagementLockListResult struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2016-09-01/resources/models.go b/services/resources/mgmt/2016-09-01/resources/models.go index 23d23fb70338..f17b5b2d4e32 100644 --- a/services/resources/mgmt/2016-09-01/resources/models.go +++ b/services/resources/mgmt/2016-09-01/resources/models.go @@ -36,6 +36,11 @@ const ( Incremental DeploymentMode = "Incremental" ) +// PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type. +func PossibleDeploymentModeValues() [2]DeploymentMode { + return [2]DeploymentMode{Complete, Incremental} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -44,6 +49,11 @@ const ( SystemAssigned ResourceIdentityType = "SystemAssigned" ) +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() [1]ResourceIdentityType { + return [1]ResourceIdentityType{SystemAssigned} +} + // AliasPathType the type of the paths for alias. type AliasPathType struct { // Path - The path of an alias. diff --git a/services/resources/mgmt/2016-12-01/policy/models.go b/services/resources/mgmt/2016-12-01/policy/models.go index 9084b0ba1162..1dcadbf68057 100644 --- a/services/resources/mgmt/2016-12-01/policy/models.go +++ b/services/resources/mgmt/2016-12-01/policy/models.go @@ -36,6 +36,11 @@ const ( NotSpecified Mode = "NotSpecified" ) +// PossibleModeValues returns an array of possible values for the Mode const type. +func PossibleModeValues() [3]Mode { + return [3]Mode{All, Indexed, NotSpecified} +} + // Type enumerates the values for type. type Type string @@ -48,6 +53,11 @@ const ( TypeNotSpecified Type = "NotSpecified" ) +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() [3]Type { + return [3]Type{TypeBuiltIn, TypeCustom, TypeNotSpecified} +} + // Assignment the policy assignment. type Assignment struct { autorest.Response `json:"-"` diff --git a/services/resources/mgmt/2017-05-10/resources/models.go b/services/resources/mgmt/2017-05-10/resources/models.go index 0963e1559e3b..c792d4748bf5 100644 --- a/services/resources/mgmt/2017-05-10/resources/models.go +++ b/services/resources/mgmt/2017-05-10/resources/models.go @@ -36,6 +36,11 @@ const ( Incremental DeploymentMode = "Incremental" ) +// PossibleDeploymentModeValues returns an array of possible values for the DeploymentMode const type. +func PossibleDeploymentModeValues() [2]DeploymentMode { + return [2]DeploymentMode{Complete, Incremental} +} + // ResourceIdentityType enumerates the values for resource identity type. type ResourceIdentityType string @@ -44,6 +49,11 @@ const ( SystemAssigned ResourceIdentityType = "SystemAssigned" ) +// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. +func PossibleResourceIdentityTypeValues() [1]ResourceIdentityType { + return [1]ResourceIdentityType{SystemAssigned} +} + // AliasPathType the type of the paths for alias. type AliasPathType struct { // Path - The path of an alias. diff --git a/services/resources/mgmt/2017-06-01-preview/policy/models.go b/services/resources/mgmt/2017-06-01-preview/policy/models.go index 05ea162b5c70..4fcfee233efa 100644 --- a/services/resources/mgmt/2017-06-01-preview/policy/models.go +++ b/services/resources/mgmt/2017-06-01-preview/policy/models.go @@ -36,6 +36,11 @@ const ( NotSpecified Mode = "NotSpecified" ) +// PossibleModeValues returns an array of possible values for the Mode const type. +func PossibleModeValues() [3]Mode { + return [3]Mode{All, Indexed, NotSpecified} +} + // Type enumerates the values for type. type Type string @@ -48,6 +53,11 @@ const ( TypeNotSpecified Type = "NotSpecified" ) +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() [3]Type { + return [3]Type{TypeBuiltIn, TypeCustom, TypeNotSpecified} +} + // Assignment the policy assignment. type Assignment struct { autorest.Response `json:"-"`