fix: refactor postgres genereated files #15
2 changed files with 18 additions and 6 deletions
|
|
@ -20,6 +20,12 @@ import (
|
||||||
func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
|
func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
|
||||||
return schema.Schema{
|
return schema.Schema{
|
||||||
Attributes: map[string]schema.Attribute{
|
Attributes: map[string]schema.Attribute{
|
||||||
|
"acl": schema.ListAttribute{
|
||||||
|
ElementType: types.StringType,
|
||||||
|
Computed: true,
|
||||||
|
Description: "List of IPV4 cidr.",
|
||||||
|
MarkdownDescription: "List of IPV4 cidr.",
|
||||||
|
},
|
||||||
"backup_schedule": schema.StringAttribute{
|
"backup_schedule": schema.StringAttribute{
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
|
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
|
||||||
|
|
@ -74,8 +80,8 @@ func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
||||||
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
||||||
},
|
},
|
||||||
"flavor_id": schema.StringAttribute{
|
"flavor_id": schema.StringAttribute{
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
|
@ -193,6 +199,7 @@ func InstanceDataSourceSchema(ctx context.Context) schema.Schema {
|
||||||
}
|
}
|
||||||
|
|
||||||
type InstanceModel struct {
|
type InstanceModel struct {
|
||||||
|
Acl types.List `tfsdk:"acl"`
|
||||||
BackupSchedule types.String `tfsdk:"backup_schedule"`
|
BackupSchedule types.String `tfsdk:"backup_schedule"`
|
||||||
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
|
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
|
||||||
Encryption EncryptionValue `tfsdk:"encryption"`
|
Encryption EncryptionValue `tfsdk:"encryption"`
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,12 @@ import (
|
||||||
func InstanceResourceSchema(ctx context.Context) schema.Schema {
|
func InstanceResourceSchema(ctx context.Context) schema.Schema {
|
||||||
return schema.Schema{
|
return schema.Schema{
|
||||||
Attributes: map[string]schema.Attribute{
|
Attributes: map[string]schema.Attribute{
|
||||||
|
"acl": schema.ListAttribute{
|
||||||
|
ElementType: types.StringType,
|
||||||
|
Computed: true,
|
||||||
|
Description: "List of IPV4 cidr.",
|
||||||
|
MarkdownDescription: "List of IPV4 cidr.",
|
||||||
|
},
|
||||||
"backup_schedule": schema.StringAttribute{
|
"backup_schedule": schema.StringAttribute{
|
||||||
Required: true,
|
Required: true,
|
||||||
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
|
Description: "The schedule for on what time and how often the database backup will be created. The schedule is written as a cron schedule.",
|
||||||
|
|
@ -77,8 +83,8 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
|
||||||
},
|
},
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
Description: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
||||||
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
MarkdownDescription: "The configuration for instance's volume and backup storage encryption.\n\n⚠\ufe1d **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected.\n",
|
||||||
},
|
},
|
||||||
"flavor_id": schema.StringAttribute{
|
"flavor_id": schema.StringAttribute{
|
||||||
Required: true,
|
Required: true,
|
||||||
|
|
@ -128,11 +134,9 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
|
||||||
MarkdownDescription: "List of IPV4 cidr.",
|
MarkdownDescription: "List of IPV4 cidr.",
|
||||||
},
|
},
|
||||||
"instance_address": schema.StringAttribute{
|
"instance_address": schema.StringAttribute{
|
||||||
Optional: true,
|
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
"router_address": schema.StringAttribute{
|
"router_address": schema.StringAttribute{
|
||||||
Optional: true,
|
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -215,6 +219,7 @@ func InstanceResourceSchema(ctx context.Context) schema.Schema {
|
||||||
}
|
}
|
||||||
|
|
||||||
type InstanceModel struct {
|
type InstanceModel struct {
|
||||||
|
Acl types.List `tfsdk:"acl"`
|
||||||
BackupSchedule types.String `tfsdk:"backup_schedule"`
|
BackupSchedule types.String `tfsdk:"backup_schedule"`
|
||||||
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
|
ConnectionInfo ConnectionInfoValue `tfsdk:"connection_info"`
|
||||||
Encryption EncryptionValue `tfsdk:"encryption"`
|
Encryption EncryptionValue `tfsdk:"encryption"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue