4.11.0
This commit is contained in:
@@ -36,291 +36,6 @@ import (
|
||||
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
|
||||
)
|
||||
|
||||
func dataSourceImageListStacksSchemaMake() map[string]*schema.Schema {
|
||||
return map[string]*schema.Schema{
|
||||
"image_id": {
|
||||
Type: schema.TypeInt,
|
||||
Required: true,
|
||||
Description: "image id",
|
||||
},
|
||||
"sort_by": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "sort by one of supported fields, format +|-(field)",
|
||||
},
|
||||
"page": {
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
Description: "page number",
|
||||
},
|
||||
"size": {
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
Description: "page size",
|
||||
},
|
||||
"name": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "find by name",
|
||||
},
|
||||
"status": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "find by status",
|
||||
},
|
||||
"type_image": {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
Description: "find by type",
|
||||
},
|
||||
"items": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"ckey": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"api_url": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"api_key": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"app_id": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"cpu_allocation_ratio": {
|
||||
Type: schema.TypeFloat,
|
||||
Computed: true,
|
||||
},
|
||||
"desc": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"descr": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"drivers": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Elem: &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
},
|
||||
},
|
||||
"eco": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"error": {
|
||||
Type: schema.TypeInt,
|
||||
Computed: true,
|
||||
},
|
||||
"gid": {
|
||||
Type: schema.TypeInt,
|
||||
Computed: true,
|
||||
},
|
||||
"guid": {
|
||||
Type: schema.TypeInt,
|
||||
Computed: true,
|
||||
},
|
||||
"id": {
|
||||
Type: schema.TypeInt,
|
||||
Computed: true,
|
||||
},
|
||||
"images": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Elem: &schema.Schema{
|
||||
Type: schema.TypeInt,
|
||||
},
|
||||
},
|
||||
"login": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"mem_allocation_ratio": {
|
||||
Type: schema.TypeFloat,
|
||||
Computed: true,
|
||||
},
|
||||
"name": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"packages": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"libvirt_bin": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "libvirt_bin",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"libvirt_daemon": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "libvirt_daemon",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"lvm2_lockd": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "lvm2_lockd",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"openvswitch_common": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "openvswitch_common",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"openvswitch_switch": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "openvswitch_switch",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"qemu_system_x86": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "qemu_system_x86",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"sanlock": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
Description: "sanlock",
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"installed_size": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "installed_size",
|
||||
},
|
||||
"ver": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
Description: "ver",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"passwd": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"reference_id": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"status": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"type": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
Description: "items of stacks list",
|
||||
},
|
||||
"entry_count": {
|
||||
Type: schema.TypeInt,
|
||||
Computed: true,
|
||||
Description: "entry count",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func dataSourceImageListSchemaMake() map[string]*schema.Schema {
|
||||
rets := map[string]*schema.Schema{
|
||||
"sep_id": {
|
||||
@@ -1017,10 +732,6 @@ func resourceCDROMImageSchemaMake() map[string]*schema.Schema {
|
||||
Computed: true,
|
||||
Description: "unc path",
|
||||
},
|
||||
"ckey": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"acl": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
@@ -1531,10 +1242,6 @@ func resourceVirtualImageSchemaMake() map[string]*schema.Schema {
|
||||
Computed: true,
|
||||
Description: "unc path",
|
||||
},
|
||||
"ckey": {
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
"acl": {
|
||||
Type: schema.TypeList,
|
||||
Computed: true,
|
||||
|
||||
Reference in New Issue
Block a user