diff --git a/services/keyvault/mgmt/2015-06-01/keyvault/models.go b/services/keyvault/mgmt/2015-06-01/keyvault/models.go index 74d928913b6c..6b7461d745c2 100644 --- a/services/keyvault/mgmt/2015-06-01/keyvault/models.go +++ b/services/keyvault/mgmt/2015-06-01/keyvault/models.go @@ -61,6 +61,11 @@ const ( Update CertificatePermissions = "update" ) +// PossibleCertificatePermissionsValues returns an array of possible values for the CertificatePermissions const type. +func PossibleCertificatePermissionsValues() [15]CertificatePermissions { + return [15]CertificatePermissions{All, Create, Delete, Deleteissuers, Get, Getissuers, Import, List, Listissuers, Managecontacts, Manageissuers, Purge, Recover, Setissuers, Update} +} + // KeyPermissions enumerates the values for key permissions. type KeyPermissions string @@ -101,6 +106,11 @@ const ( KeyPermissionsWrapKey KeyPermissions = "wrapKey" ) +// PossibleKeyPermissionsValues returns an array of possible values for the KeyPermissions const type. +func PossibleKeyPermissionsValues() [17]KeyPermissions { + return [17]KeyPermissions{KeyPermissionsAll, KeyPermissionsBackup, KeyPermissionsCreate, KeyPermissionsDecrypt, KeyPermissionsDelete, KeyPermissionsEncrypt, KeyPermissionsGet, KeyPermissionsImport, KeyPermissionsList, KeyPermissionsPurge, KeyPermissionsRecover, KeyPermissionsRestore, KeyPermissionsSign, KeyPermissionsUnwrapKey, KeyPermissionsUpdate, KeyPermissionsVerify, KeyPermissionsWrapKey} +} + // SecretPermissions enumerates the values for secret permissions. type SecretPermissions string @@ -125,6 +135,11 @@ const ( SecretPermissionsSet SecretPermissions = "set" ) +// PossibleSecretPermissionsValues returns an array of possible values for the SecretPermissions const type. +func PossibleSecretPermissionsValues() [9]SecretPermissions { + return [9]SecretPermissions{SecretPermissionsAll, SecretPermissionsBackup, SecretPermissionsDelete, SecretPermissionsGet, SecretPermissionsList, SecretPermissionsPurge, SecretPermissionsRecover, SecretPermissionsRestore, SecretPermissionsSet} +} + // SkuName enumerates the values for sku name. type SkuName string @@ -135,6 +150,11 @@ const ( Standard SkuName = "standard" ) +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() [2]SkuName { + return [2]SkuName{Premium, Standard} +} + // AccessPolicyEntry an identity that have access to the key vault. All identities in the array must use the same // tenant ID as the key vault's tenant ID. type AccessPolicyEntry struct { diff --git a/services/keyvault/mgmt/2016-10-01/keyvault/models.go b/services/keyvault/mgmt/2016-10-01/keyvault/models.go index 66d7368907e0..7c825199a99e 100644 --- a/services/keyvault/mgmt/2016-10-01/keyvault/models.go +++ b/services/keyvault/mgmt/2016-10-01/keyvault/models.go @@ -39,6 +39,11 @@ const ( Replace AccessPolicyUpdateKind = "replace" ) +// PossibleAccessPolicyUpdateKindValues returns an array of possible values for the AccessPolicyUpdateKind const type. +func PossibleAccessPolicyUpdateKindValues() [3]AccessPolicyUpdateKind { + return [3]AccessPolicyUpdateKind{Add, Remove, Replace} +} + // CertificatePermissions enumerates the values for certificate permissions. type CertificatePermissions string @@ -73,6 +78,11 @@ const ( Update CertificatePermissions = "update" ) +// PossibleCertificatePermissionsValues returns an array of possible values for the CertificatePermissions const type. +func PossibleCertificatePermissionsValues() [14]CertificatePermissions { + return [14]CertificatePermissions{Create, Delete, Deleteissuers, Get, Getissuers, Import, List, Listissuers, Managecontacts, Manageissuers, Purge, Recover, Setissuers, Update} +} + // CreateMode enumerates the values for create mode. type CreateMode string @@ -83,6 +93,11 @@ const ( CreateModeRecover CreateMode = "recover" ) +// PossibleCreateModeValues returns an array of possible values for the CreateMode const type. +func PossibleCreateModeValues() [2]CreateMode { + return [2]CreateMode{CreateModeDefault, CreateModeRecover} +} + // KeyPermissions enumerates the values for key permissions. type KeyPermissions string @@ -121,6 +136,11 @@ const ( KeyPermissionsWrapKey KeyPermissions = "wrapKey" ) +// PossibleKeyPermissionsValues returns an array of possible values for the KeyPermissions const type. +func PossibleKeyPermissionsValues() [16]KeyPermissions { + return [16]KeyPermissions{KeyPermissionsBackup, KeyPermissionsCreate, KeyPermissionsDecrypt, KeyPermissionsDelete, KeyPermissionsEncrypt, KeyPermissionsGet, KeyPermissionsImport, KeyPermissionsList, KeyPermissionsPurge, KeyPermissionsRecover, KeyPermissionsRestore, KeyPermissionsSign, KeyPermissionsUnwrapKey, KeyPermissionsUpdate, KeyPermissionsVerify, KeyPermissionsWrapKey} +} + // Reason enumerates the values for reason. type Reason string @@ -131,6 +151,11 @@ const ( AlreadyExists Reason = "AlreadyExists" ) +// PossibleReasonValues returns an array of possible values for the Reason const type. +func PossibleReasonValues() [2]Reason { + return [2]Reason{AccountNameInvalid, AlreadyExists} +} + // SecretPermissions enumerates the values for secret permissions. type SecretPermissions string @@ -153,6 +178,11 @@ const ( SecretPermissionsSet SecretPermissions = "set" ) +// PossibleSecretPermissionsValues returns an array of possible values for the SecretPermissions const type. +func PossibleSecretPermissionsValues() [8]SecretPermissions { + return [8]SecretPermissions{SecretPermissionsBackup, SecretPermissionsDelete, SecretPermissionsGet, SecretPermissionsList, SecretPermissionsPurge, SecretPermissionsRecover, SecretPermissionsRestore, SecretPermissionsSet} +} + // SkuName enumerates the values for sku name. type SkuName string @@ -163,6 +193,11 @@ const ( Standard SkuName = "standard" ) +// PossibleSkuNameValues returns an array of possible values for the SkuName const type. +func PossibleSkuNameValues() [2]SkuName { + return [2]SkuName{Premium, Standard} +} + // StoragePermissions enumerates the values for storage permissions. type StoragePermissions string @@ -197,6 +232,11 @@ const ( StoragePermissionsUpdate StoragePermissions = "update" ) +// PossibleStoragePermissionsValues returns an array of possible values for the StoragePermissions const type. +func PossibleStoragePermissionsValues() [14]StoragePermissions { + return [14]StoragePermissions{StoragePermissionsBackup, StoragePermissionsDelete, StoragePermissionsDeletesas, StoragePermissionsGet, StoragePermissionsGetsas, StoragePermissionsList, StoragePermissionsListsas, StoragePermissionsPurge, StoragePermissionsRecover, StoragePermissionsRegeneratekey, StoragePermissionsRestore, StoragePermissionsSet, StoragePermissionsSetsas, StoragePermissionsUpdate} +} + // AccessPolicyEntry an identity that have access to the key vault. All identities in the array must use the same // tenant ID as the key vault's tenant ID. type AccessPolicyEntry struct {