mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-08-25 12:55:41 +00:00
Format code
This commit is contained in:
parent
0a8bae6db7
commit
23101627dc
2
Makefile
2
Makefile
@ -25,7 +25,7 @@ example-plan:
|
|||||||
cd ./example && terraform plan
|
cd ./example && terraform plan
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
gofmt -w $(GOFMT_FILES)
|
gofmt -s -w $(GOFMT_FILES)
|
||||||
|
|
||||||
init:
|
init:
|
||||||
go get ./...
|
go get ./...
|
||||||
|
@ -26,13 +26,13 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentDatastores() *schema.Resource {
|
func dataSourceVirtualEnvironmentDatastores() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentDatastoresActive: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresActive: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether a datastore is active",
|
Description: "Whether a datastore is active",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeBool},
|
Elem: &schema.Schema{Type: schema.TypeBool},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresContentTypes: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresContentTypes: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The allowed content types",
|
Description: "The allowed content types",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -41,48 +41,48 @@ func dataSourceVirtualEnvironmentDatastores() *schema.Resource {
|
|||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresDatastoreIDs: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresDatastoreIDs: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The datastore id",
|
Description: "The datastore id",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresEnabled: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresEnabled: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether a datastore is enabled",
|
Description: "Whether a datastore is enabled",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeBool},
|
Elem: &schema.Schema{Type: schema.TypeBool},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresNodeName: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresShared: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresShared: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether a datastore is shared",
|
Description: "Whether a datastore is shared",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeBool},
|
Elem: &schema.Schema{Type: schema.TypeBool},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresSpaceAvailable: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresSpaceAvailable: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The available space in bytes",
|
Description: "The available space in bytes",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresSpaceTotal: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresSpaceTotal: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The total space in bytes",
|
Description: "The total space in bytes",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresSpaceUsed: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresSpaceUsed: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The used space in bytes",
|
Description: "The used space in bytes",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDatastoresTypes: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDatastoresTypes: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The storage type",
|
Description: "The storage type",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -19,17 +19,17 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentDNS() *schema.Resource {
|
func dataSourceVirtualEnvironmentDNS() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentDNSDomain: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDNSDomain: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The DNS search domain",
|
Description: "The DNS search domain",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDNSNodeName: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDNSNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentDNSServers: &schema.Schema{
|
mkDataSourceVirtualEnvironmentDNSServers: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The DNS servers",
|
Description: "The DNS servers",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -21,7 +21,7 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentGroup() *schema.Resource {
|
func dataSourceVirtualEnvironmentGroup() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentGroupACL: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupACL: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The access control list",
|
Description: "The access control list",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -45,17 +45,17 @@ func dataSourceVirtualEnvironmentGroup() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentGroupComment: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The group comment",
|
Description: "The group comment",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentGroupID: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The group id",
|
Description: "The group id",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentGroupMembers: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupMembers: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The group members",
|
Description: "The group members",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -16,13 +16,13 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentGroups() *schema.Resource {
|
func dataSourceVirtualEnvironmentGroups() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentGroupsComments: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupsComments: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The group comments",
|
Description: "The group comments",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentGroupsGroupIDs: &schema.Schema{
|
mkDataSourceVirtualEnvironmentGroupsGroupIDs: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The group ids",
|
Description: "The group ids",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -24,18 +24,18 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentHosts() *schema.Resource {
|
func dataSourceVirtualEnvironmentHosts() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentHostsAddresses: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsAddresses: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The addresses",
|
Description: "The addresses",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentHostsDigest: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsDigest: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The SHA1 digest",
|
Description: "The SHA1 digest",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentHostsEntries: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsEntries: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The host entries",
|
Description: "The host entries",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -46,7 +46,7 @@ func dataSourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
Description: "The address",
|
Description: "The address",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentHostsEntriesHostnames: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsEntriesHostnames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The hostnames",
|
Description: "The hostnames",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -55,7 +55,7 @@ func dataSourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentHostsHostnames: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsHostnames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The hostnames",
|
Description: "The hostnames",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -64,7 +64,7 @@ func dataSourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentHostsNodeName: &schema.Schema{
|
mkDataSourceVirtualEnvironmentHostsNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -25,55 +25,55 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentNodes() *schema.Resource {
|
func dataSourceVirtualEnvironmentNodes() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentNodesCPUCount: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesCPUCount: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The CPU count for each node",
|
Description: "The CPU count for each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesCPUUtilization: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesCPUUtilization: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The CPU utilization on each node",
|
Description: "The CPU utilization on each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeFloat},
|
Elem: &schema.Schema{Type: schema.TypeFloat},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesMemoryAvailable: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesMemoryAvailable: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The available memory in bytes on each node",
|
Description: "The available memory in bytes on each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesMemoryUsed: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesMemoryUsed: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The used memory in bytes on each node",
|
Description: "The used memory in bytes on each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeInt},
|
Elem: &schema.Schema{Type: schema.TypeInt},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesNames: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesNames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The node names",
|
Description: "The node names",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesOnline: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesOnline: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether a node is online",
|
Description: "Whether a node is online",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeBool},
|
Elem: &schema.Schema{Type: schema.TypeBool},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesSSLFingerprints: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesSSLFingerprints: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The SSL fingerprint for each node",
|
Description: "The SSL fingerprint for each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesSupportLevels: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesSupportLevels: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The support level for each node",
|
Description: "The support level for each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentNodesUptime: &schema.Schema{
|
mkDataSourceVirtualEnvironmentNodesUptime: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The uptime in seconds for each node",
|
Description: "The uptime in seconds for each node",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -22,12 +22,12 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentPool() *schema.Resource {
|
func dataSourceVirtualEnvironmentPool() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentPoolComment: &schema.Schema{
|
mkDataSourceVirtualEnvironmentPoolComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The pool comment",
|
Description: "The pool comment",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentPoolMembers: &schema.Schema{
|
mkDataSourceVirtualEnvironmentPoolMembers: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The pool members",
|
Description: "The pool members",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -61,7 +61,7 @@ func dataSourceVirtualEnvironmentPool() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentPoolPoolID: &schema.Schema{
|
mkDataSourceVirtualEnvironmentPoolPoolID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The pool id",
|
Description: "The pool id",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -15,7 +15,7 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentPools() *schema.Resource {
|
func dataSourceVirtualEnvironmentPools() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentPoolsPoolIDs: &schema.Schema{
|
mkDataSourceVirtualEnvironmentPoolsPoolIDs: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The pool ids",
|
Description: "The pool ids",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -16,12 +16,12 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentRole() *schema.Resource {
|
func dataSourceVirtualEnvironmentRole() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentRoleID: &schema.Schema{
|
mkDataSourceVirtualEnvironmentRoleID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The role id",
|
Description: "The role id",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentRolePrivileges: &schema.Schema{
|
mkDataSourceVirtualEnvironmentRolePrivileges: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The role privileges",
|
Description: "The role privileges",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -17,7 +17,7 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentRoles() *schema.Resource {
|
func dataSourceVirtualEnvironmentRoles() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentRolesPrivileges: &schema.Schema{
|
mkDataSourceVirtualEnvironmentRolesPrivileges: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The role privileges",
|
Description: "The role privileges",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -26,13 +26,13 @@ func dataSourceVirtualEnvironmentRoles() *schema.Resource {
|
|||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentRolesRoleIDs: &schema.Schema{
|
mkDataSourceVirtualEnvironmentRolesRoleIDs: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The role ids",
|
Description: "The role ids",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentRolesSpecial: &schema.Schema{
|
mkDataSourceVirtualEnvironmentRolesSpecial: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether the role is special (built-in)",
|
Description: "Whether the role is special (built-in)",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -29,7 +29,7 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentUser() *schema.Resource {
|
func dataSourceVirtualEnvironmentUser() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentUserACL: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserACL: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The access control list",
|
Description: "The access control list",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -53,48 +53,48 @@ func dataSourceVirtualEnvironmentUser() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserComment: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user comment",
|
Description: "The user comment",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserEmail: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserEmail: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's email address",
|
Description: "The user's email address",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserEnabled: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserEnabled: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Description: "Whether the user account is enabled",
|
Description: "Whether the user account is enabled",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserExpirationDate: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserExpirationDate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user account's expiration date",
|
Description: "The user account's expiration date",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserFirstName: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserFirstName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's first name",
|
Description: "The user's first name",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserGroups: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserGroups: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The user's groups",
|
Description: "The user's groups",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserKeys: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserKeys: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's keys",
|
Description: "The user's keys",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserLastName: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserLastName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's last name",
|
Description: "The user's last name",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUserUserID: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUserUserID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user id",
|
Description: "The user id",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -25,37 +25,37 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentUsers() *schema.Resource {
|
func dataSourceVirtualEnvironmentUsers() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentUsersComments: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersComments: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The user comments",
|
Description: "The user comments",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersEmails: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersEmails: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The users' email addresses",
|
Description: "The users' email addresses",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersEnabled: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersEnabled: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "Whether a user account is enabled",
|
Description: "Whether a user account is enabled",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeBool},
|
Elem: &schema.Schema{Type: schema.TypeBool},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersExpirationDates: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersExpirationDates: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The user accounts' expiration dates",
|
Description: "The user accounts' expiration dates",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersFirstNames: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersFirstNames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The users' first names",
|
Description: "The users' first names",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersGroups: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersGroups: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The users' groups",
|
Description: "The users' groups",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -64,19 +64,19 @@ func dataSourceVirtualEnvironmentUsers() *schema.Resource {
|
|||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersKeys: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersKeys: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The users' keys",
|
Description: "The users' keys",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersLastNames: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersLastNames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The users' last names",
|
Description: "The users' last names",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentUsersUserIDs: &schema.Schema{
|
mkDataSourceVirtualEnvironmentUsersUserIDs: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The user ids",
|
Description: "The user ids",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -18,25 +18,25 @@ const (
|
|||||||
func dataSourceVirtualEnvironmentVersion() *schema.Resource {
|
func dataSourceVirtualEnvironmentVersion() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkDataSourceVirtualEnvironmentVersionKeyboardLayout: &schema.Schema{
|
mkDataSourceVirtualEnvironmentVersionKeyboardLayout: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The keyboard layout",
|
Description: "The keyboard layout",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentVersionRelease: &schema.Schema{
|
mkDataSourceVirtualEnvironmentVersionRelease: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The release information",
|
Description: "The release information",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentVersionRepositoryID: &schema.Schema{
|
mkDataSourceVirtualEnvironmentVersionRepositoryID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The repository id",
|
Description: "The repository id",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkDataSourceVirtualEnvironmentVersionVersion: &schema.Schema{
|
mkDataSourceVirtualEnvironmentVersionVersion: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The version information",
|
Description: "The version information",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -57,7 +57,7 @@ func Provider() *schema.Provider {
|
|||||||
"proxmox_virtual_environment_vm": resourceVirtualEnvironmentVM(),
|
"proxmox_virtual_environment_vm": resourceVirtualEnvironmentVM(),
|
||||||
},
|
},
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkProviderVirtualEnvironment: &schema.Schema{
|
mkProviderVirtualEnvironment: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Elem: &schema.Resource{
|
Elem: &schema.Resource{
|
||||||
|
@ -36,76 +36,76 @@ const (
|
|||||||
func resourceVirtualEnvironmentCertificate() *schema.Resource {
|
func resourceVirtualEnvironmentCertificate() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentCertificateCertificate: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateCertificate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The PEM encoded certificate",
|
Description: "The PEM encoded certificate",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateCertificateChain: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateCertificateChain: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The PEM encoded certificate chain",
|
Description: "The PEM encoded certificate chain",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentCertificateCertificateChain,
|
Default: dvResourceVirtualEnvironmentCertificateCertificateChain,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateExpirationDate: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateExpirationDate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The expiration date",
|
Description: "The expiration date",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateFileName: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateFileName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file name",
|
Description: "The file name",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateIssuer: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateIssuer: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The issuer",
|
Description: "The issuer",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateOverwrite: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateOverwrite: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Description: "Whether to overwrite an existing certificate",
|
Description: "Whether to overwrite an existing certificate",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentCertificateOverwrite,
|
Default: dvResourceVirtualEnvironmentCertificateOverwrite,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificatePrivateKey: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificatePrivateKey: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The PEM encoded private key",
|
Description: "The PEM encoded private key",
|
||||||
Required: true,
|
Required: true,
|
||||||
Sensitive: true,
|
Sensitive: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificatePublicKeySize: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificatePublicKeySize: {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Description: "The public key size",
|
Description: "The public key size",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificatePublicKeyType: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificatePublicKeyType: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The public key type",
|
Description: "The public key type",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateSSLFingerprint: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateSSLFingerprint: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The SSL fingerprint",
|
Description: "The SSL fingerprint",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateStartDate: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateStartDate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The start date",
|
Description: "The start date",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateSubject: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateSubject: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The subject",
|
Description: "The subject",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentCertificateSubjectAlternativeNames: &schema.Schema{
|
mkResourceVirtualEnvironmentCertificateSubjectAlternativeNames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The subject alternative names",
|
Description: "The subject alternative names",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -102,7 +102,7 @@ const (
|
|||||||
func resourceVirtualEnvironmentContainer() *schema.Resource {
|
func resourceVirtualEnvironmentContainer() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentContainerClone: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerClone: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The cloning configuration",
|
Description: "The cloning configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -137,7 +137,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerConsole: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerConsole: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The console configuration",
|
Description: "The console configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -177,7 +177,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerCPU: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerCPU: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The CPU allocation",
|
Description: "The CPU allocation",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -224,7 +224,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentContainerDescription,
|
Default: dvResourceVirtualEnvironmentContainerDescription,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerDisk: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerDisk: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The disks",
|
Description: "The disks",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -250,7 +250,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerInitialization: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerInitialization: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The initialization configuration",
|
Description: "The initialization configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -398,7 +398,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerMemory: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerMemory: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The memory allocation",
|
Description: "The memory allocation",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -431,7 +431,7 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerNetworkInterface: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerNetworkInterface: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The network interfaces",
|
Description: "The network interfaces",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -484,13 +484,13 @@ func resourceVirtualEnvironmentContainer() *schema.Resource {
|
|||||||
MaxItems: maxResourceVirtualEnvironmentContainerNetworkInterfaces,
|
MaxItems: maxResourceVirtualEnvironmentContainerNetworkInterfaces,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentContainerOperatingSystem: &schema.Schema{
|
mkResourceVirtualEnvironmentContainerOperatingSystem: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The operating system configuration",
|
Description: "The operating system configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
@ -20,18 +20,18 @@ const (
|
|||||||
func resourceVirtualEnvironmentDNS() *schema.Resource {
|
func resourceVirtualEnvironmentDNS() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentDNSDomain: &schema.Schema{
|
mkResourceVirtualEnvironmentDNSDomain: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The DNS search domain",
|
Description: "The DNS search domain",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentDNSNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentDNSNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentDNSServers: &schema.Schema{
|
mkResourceVirtualEnvironmentDNSServers: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The DNS servers",
|
Description: "The DNS servers",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
@ -54,7 +54,7 @@ const (
|
|||||||
func resourceVirtualEnvironmentFile() *schema.Resource {
|
func resourceVirtualEnvironmentFile() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentFileContentType: &schema.Schema{
|
mkResourceVirtualEnvironmentFileContentType: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The content type",
|
Description: "The content type",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -62,42 +62,42 @@ func resourceVirtualEnvironmentFile() *schema.Resource {
|
|||||||
Default: dvResourceVirtualEnvironmentFileContentType,
|
Default: dvResourceVirtualEnvironmentFileContentType,
|
||||||
ValidateFunc: getContentTypeValidator(),
|
ValidateFunc: getContentTypeValidator(),
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileDatastoreID: &schema.Schema{
|
mkResourceVirtualEnvironmentFileDatastoreID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The datastore id",
|
Description: "The datastore id",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileFileModificationDate: &schema.Schema{
|
mkResourceVirtualEnvironmentFileFileModificationDate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file modification date",
|
Description: "The file modification date",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileFileName: &schema.Schema{
|
mkResourceVirtualEnvironmentFileFileName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file name",
|
Description: "The file name",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileFileSize: &schema.Schema{
|
mkResourceVirtualEnvironmentFileFileSize: {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Description: "The file size in bytes",
|
Description: "The file size in bytes",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileFileTag: &schema.Schema{
|
mkResourceVirtualEnvironmentFileFileTag: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file tag",
|
Description: "The file tag",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentFileNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceFile: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFile: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The source file",
|
Description: "The source file",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -107,34 +107,34 @@ func resourceVirtualEnvironmentFile() *schema.Resource {
|
|||||||
},
|
},
|
||||||
Elem: &schema.Resource{
|
Elem: &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentFileSourceFilePath: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFilePath: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "A path to a local file or a URL",
|
Description: "A path to a local file or a URL",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceFileChanged: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFileChanged: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Description: "Whether the source file has changed since the last run",
|
Description: "Whether the source file has changed since the last run",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Default: dvResourceVirtualEnvironmentFileSourceFileChanged,
|
Default: dvResourceVirtualEnvironmentFileSourceFileChanged,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceFileChecksum: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFileChecksum: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The SHA256 checksum of the source file",
|
Description: "The SHA256 checksum of the source file",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Default: dvResourceVirtualEnvironmentFileSourceFileChecksum,
|
Default: dvResourceVirtualEnvironmentFileSourceFileChecksum,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceFileFileName: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFileFileName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file name to use instead of the source file name",
|
Description: "The file name to use instead of the source file name",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Default: dvResourceVirtualEnvironmentFileSourceFileFileName,
|
Default: dvResourceVirtualEnvironmentFileSourceFileFileName,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceFileInsecure: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceFileInsecure: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Description: "Whether to skip the TLS verification step for HTTPS sources",
|
Description: "Whether to skip the TLS verification step for HTTPS sources",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -146,7 +146,7 @@ func resourceVirtualEnvironmentFile() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceRaw: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceRaw: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The raw source",
|
Description: "The raw source",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -156,19 +156,19 @@ func resourceVirtualEnvironmentFile() *schema.Resource {
|
|||||||
},
|
},
|
||||||
Elem: &schema.Resource{
|
Elem: &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentFileSourceRawData: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceRawData: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The raw data",
|
Description: "The raw data",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceRawFileName: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceRawFileName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The file name",
|
Description: "The file name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentFileSourceRawResize: &schema.Schema{
|
mkResourceVirtualEnvironmentFileSourceRawResize: {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Description: "The number of bytes to resize the file to",
|
Description: "The number of bytes to resize the file to",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
@ -26,7 +26,7 @@ const (
|
|||||||
func resourceVirtualEnvironmentGroup() *schema.Resource {
|
func resourceVirtualEnvironmentGroup() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentGroupACL: &schema.Schema{
|
mkResourceVirtualEnvironmentGroupACL: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The access control list",
|
Description: "The access control list",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -54,19 +54,19 @@ func resourceVirtualEnvironmentGroup() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentGroupComment: &schema.Schema{
|
mkResourceVirtualEnvironmentGroupComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The group comment",
|
Description: "The group comment",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentGroupComment,
|
Default: dvResourceVirtualEnvironmentGroupComment,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentGroupID: &schema.Schema{
|
mkResourceVirtualEnvironmentGroupID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The group id",
|
Description: "The group id",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentGroupMembers: &schema.Schema{
|
mkResourceVirtualEnvironmentGroupMembers: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The group members",
|
Description: "The group members",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -28,18 +28,18 @@ const (
|
|||||||
func resourceVirtualEnvironmentHosts() *schema.Resource {
|
func resourceVirtualEnvironmentHosts() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentHostsAddresses: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsAddresses: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The addresses",
|
Description: "The addresses",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsDigest: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsDigest: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The SHA1 digest",
|
Description: "The SHA1 digest",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsEntries: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsEntries: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The host entries",
|
Description: "The host entries",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -50,7 +50,7 @@ func resourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
Description: "The address",
|
Description: "The address",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsEntriesHostnames: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsEntriesHostnames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The hostnames",
|
Description: "The hostnames",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -59,7 +59,7 @@ func resourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsEntry: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsEntry: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The host entries",
|
Description: "The host entries",
|
||||||
Required: true,
|
Required: true,
|
||||||
@ -70,7 +70,7 @@ func resourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
Description: "The address",
|
Description: "The address",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsEntryHostnames: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsEntryHostnames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The hostnames",
|
Description: "The hostnames",
|
||||||
Required: true,
|
Required: true,
|
||||||
@ -81,7 +81,7 @@ func resourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
},
|
},
|
||||||
MinItems: 1,
|
MinItems: 1,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsHostnames: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsHostnames: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The hostnames",
|
Description: "The hostnames",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -90,7 +90,7 @@ func resourceVirtualEnvironmentHosts() *schema.Resource {
|
|||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentHostsNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentHostsNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -27,13 +27,13 @@ const (
|
|||||||
func resourceVirtualEnvironmentPool() *schema.Resource {
|
func resourceVirtualEnvironmentPool() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentPoolComment: &schema.Schema{
|
mkResourceVirtualEnvironmentPoolComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The pool comment",
|
Description: "The pool comment",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentPoolComment,
|
Default: dvResourceVirtualEnvironmentPoolComment,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentPoolMembers: &schema.Schema{
|
mkResourceVirtualEnvironmentPoolMembers: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The pool members",
|
Description: "The pool members",
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -67,7 +67,7 @@ func resourceVirtualEnvironmentPool() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentPoolPoolID: &schema.Schema{
|
mkResourceVirtualEnvironmentPoolPoolID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The pool id",
|
Description: "The pool id",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -19,13 +19,13 @@ const (
|
|||||||
func resourceVirtualEnvironmentRole() *schema.Resource {
|
func resourceVirtualEnvironmentRole() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentRolePrivileges: &schema.Schema{
|
mkResourceVirtualEnvironmentRolePrivileges: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The role privileges",
|
Description: "The role privileges",
|
||||||
Required: true,
|
Required: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentRoleRoleID: &schema.Schema{
|
mkResourceVirtualEnvironmentRoleRoleID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The role id",
|
Description: "The role id",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -40,7 +40,7 @@ const (
|
|||||||
func resourceVirtualEnvironmentUser() *schema.Resource {
|
func resourceVirtualEnvironmentUser() *schema.Resource {
|
||||||
return &schema.Resource{
|
return &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
mkResourceVirtualEnvironmentUserACL: &schema.Schema{
|
mkResourceVirtualEnvironmentUserACL: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The access control list",
|
Description: "The access control list",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -68,38 +68,38 @@ func resourceVirtualEnvironmentUser() *schema.Resource {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserComment: &schema.Schema{
|
mkResourceVirtualEnvironmentUserComment: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user comment",
|
Description: "The user comment",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserComment,
|
Default: dvResourceVirtualEnvironmentUserComment,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserEmail: &schema.Schema{
|
mkResourceVirtualEnvironmentUserEmail: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's email address",
|
Description: "The user's email address",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserEmail,
|
Default: dvResourceVirtualEnvironmentUserEmail,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserEnabled: &schema.Schema{
|
mkResourceVirtualEnvironmentUserEnabled: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Description: "Whether the user account is enabled",
|
Description: "Whether the user account is enabled",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserEnabled,
|
Default: dvResourceVirtualEnvironmentUserEnabled,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserExpirationDate: &schema.Schema{
|
mkResourceVirtualEnvironmentUserExpirationDate: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user account's expiration date",
|
Description: "The user account's expiration date",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: time.Unix(0, 0).UTC().Format(time.RFC3339),
|
Default: time.Unix(0, 0).UTC().Format(time.RFC3339),
|
||||||
ValidateFunc: validation.ValidateRFC3339TimeString,
|
ValidateFunc: validation.ValidateRFC3339TimeString,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserFirstName: &schema.Schema{
|
mkResourceVirtualEnvironmentUserFirstName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's first name",
|
Description: "The user's first name",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserFirstName,
|
Default: dvResourceVirtualEnvironmentUserFirstName,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserGroups: &schema.Schema{
|
mkResourceVirtualEnvironmentUserGroups: {
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Description: "The user's groups",
|
Description: "The user's groups",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -108,24 +108,24 @@ func resourceVirtualEnvironmentUser() *schema.Resource {
|
|||||||
},
|
},
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserKeys: &schema.Schema{
|
mkResourceVirtualEnvironmentUserKeys: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's keys",
|
Description: "The user's keys",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserKeys,
|
Default: dvResourceVirtualEnvironmentUserKeys,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserLastName: &schema.Schema{
|
mkResourceVirtualEnvironmentUserLastName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's last name",
|
Description: "The user's last name",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentUserLastName,
|
Default: dvResourceVirtualEnvironmentUserLastName,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserPassword: &schema.Schema{
|
mkResourceVirtualEnvironmentUserPassword: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user's password",
|
Description: "The user's password",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentUserUserID: &schema.Schema{
|
mkResourceVirtualEnvironmentUserUserID: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The user id",
|
Description: "The user id",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
@ -176,7 +176,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMACPI,
|
Default: dvResourceVirtualEnvironmentVMACPI,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMAgent: &schema.Schema{
|
mkResourceVirtualEnvironmentVMAgent: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The QEMU agent configuration",
|
Description: "The QEMU agent configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -198,7 +198,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMAgentEnabled,
|
Default: dvResourceVirtualEnvironmentVMAgentEnabled,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMAgentTimeout: &schema.Schema{
|
mkResourceVirtualEnvironmentVMAgentTimeout: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The maximum amount of time to wait for data from the QEMU agent to become available",
|
Description: "The maximum amount of time to wait for data from the QEMU agent to become available",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -223,7 +223,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMAudioDevice: &schema.Schema{
|
mkResourceVirtualEnvironmentVMAudioDevice: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The audio devices",
|
Description: "The audio devices",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -264,7 +264,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Default: dvResourceVirtualEnvironmentVMBIOS,
|
Default: dvResourceVirtualEnvironmentVMBIOS,
|
||||||
ValidateFunc: getBIOSValidator(),
|
ValidateFunc: getBIOSValidator(),
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMCDROM: &schema.Schema{
|
mkResourceVirtualEnvironmentVMCDROM: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The CDROM drive",
|
Description: "The CDROM drive",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -296,7 +296,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMClone: &schema.Schema{
|
mkResourceVirtualEnvironmentVMClone: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The cloning configuration",
|
Description: "The cloning configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -331,7 +331,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
MaxItems: 1,
|
MaxItems: 1,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMCPU: &schema.Schema{
|
mkResourceVirtualEnvironmentVMCPU: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The CPU allocation",
|
Description: "The CPU allocation",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -412,7 +412,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMDescription,
|
Default: dvResourceVirtualEnvironmentVMDescription,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMDisk: &schema.Schema{
|
mkResourceVirtualEnvironmentVMDisk: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The disk devices",
|
Description: "The disk devices",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -510,7 +510,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
MaxItems: 14,
|
MaxItems: 14,
|
||||||
MinItems: 0,
|
MinItems: 0,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMInitialization: &schema.Schema{
|
mkResourceVirtualEnvironmentVMInitialization: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The cloud-init configuration",
|
Description: "The cloud-init configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -701,7 +701,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMMemory: &schema.Schema{
|
mkResourceVirtualEnvironmentVMMemory: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The memory allocation",
|
Description: "The memory allocation",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -748,7 +748,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Optional: true,
|
Optional: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMName,
|
Default: dvResourceVirtualEnvironmentVMName,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMNetworkDevice: &schema.Schema{
|
mkResourceVirtualEnvironmentVMNetworkDevice: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The network devices",
|
Description: "The network devices",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -809,13 +809,13 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
Computed: true,
|
Computed: true,
|
||||||
Elem: &schema.Schema{Type: schema.TypeString},
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMNodeName: &schema.Schema{
|
mkResourceVirtualEnvironmentVMNodeName: {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The node name",
|
Description: "The node name",
|
||||||
Required: true,
|
Required: true,
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMOperatingSystem: &schema.Schema{
|
mkResourceVirtualEnvironmentVMOperatingSystem: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The operating system configuration",
|
Description: "The operating system configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -847,7 +847,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMPoolID,
|
Default: dvResourceVirtualEnvironmentVMPoolID,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMSerialDevice: &schema.Schema{
|
mkResourceVirtualEnvironmentVMSerialDevice: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The serial devices",
|
Description: "The serial devices",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
@ -894,7 +894,7 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
|||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
Default: dvResourceVirtualEnvironmentVMTemplate,
|
Default: dvResourceVirtualEnvironmentVMTemplate,
|
||||||
},
|
},
|
||||||
mkResourceVirtualEnvironmentVMVGA: &schema.Schema{
|
mkResourceVirtualEnvironmentVMVGA: {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Description: "The VGA configuration",
|
Description: "The VGA configuration",
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user