1.3.0
This commit is contained in:
@@ -47,7 +47,10 @@ func MakeSchemaDataSourceVINSList() map[string]schema.Attribute {
|
||||
Optional: true,
|
||||
Description: "Page size",
|
||||
},
|
||||
|
||||
"status": schema.StringAttribute{
|
||||
Optional: true,
|
||||
Description: "Status",
|
||||
},
|
||||
// computed attributes
|
||||
"id": schema.StringAttribute{
|
||||
Computed: true,
|
||||
|
||||
@@ -3,6 +3,7 @@ package schemas
|
||||
import (
|
||||
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
|
||||
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
|
||||
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
|
||||
@@ -59,23 +60,31 @@ func MakeSchemaResourceVINS() map[string]schema.Attribute {
|
||||
|
||||
"enable": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Default: booldefault.StaticBool(true),
|
||||
Description: "flag to enable/disable vins",
|
||||
// default is true
|
||||
},
|
||||
"permanently": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Default: booldefault.StaticBool(true),
|
||||
Description: "flag to delete vins permanently",
|
||||
// default is false
|
||||
// default is true
|
||||
},
|
||||
"force": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Default: booldefault.StaticBool(true),
|
||||
Description: "flag to force delete of non-empty vins",
|
||||
// default is false
|
||||
// default is true
|
||||
},
|
||||
"restore": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Default: booldefault.StaticBool(true),
|
||||
Description: "flag to restore vins",
|
||||
// default is false
|
||||
// default is true
|
||||
},
|
||||
"vnfdev_restart": schema.BoolAttribute{
|
||||
Optional: true,
|
||||
|
||||
Reference in New Issue
Block a user