This commit is contained in:
2026-09-21 11:51:12 +03:00
parent 9cd93e4277
commit 2b229a84fb
240 changed files with 7735 additions and 3166 deletions

View File

@@ -420,7 +420,7 @@ func dataSourceRgSchemaMake() map[string]*schema.Schema {
Computed: true,
},
"cpu_allocation_ratio": {
Type: schema.TypeFloat,
Type: schema.TypeInt,
Computed: true,
},
"sdn_access_group_id": {

View File

@@ -97,6 +97,8 @@ func DataSourceRgAudits() *schema.Resource {
return &schema.Resource{
SchemaVersion: 1,
DeprecationMessage: "This data source is deprecated and will be removed in version 4.14.0; use decort_audit_list instead.",
ReadContext: dataSourceRgAuditsRead,
Timeouts: &schema.ResourceTimeout{

View File

@@ -251,7 +251,7 @@ func dataSourceRgListSchemaMake() map[string]*schema.Schema {
Computed: true,
},
"cpu_allocation_ratio": {
Type: schema.TypeFloat,
Type: schema.TypeInt,
Computed: true,
},
"uniq_pools": {

View File

@@ -240,7 +240,7 @@ func dataSourceRgListDeletedSchemaMake() map[string]*schema.Schema {
Computed: true,
},
"cpu_allocation_ratio": {
Type: schema.TypeFloat,
Type: schema.TypeInt,
Computed: true,
},
"uniq_pools": {

View File

@@ -147,6 +147,10 @@ func resourceResgroupCreate(ctx context.Context, d *schema.ResourceData, m inter
req.IPCIDR = ipcidr.(string)
}
if enableDefaultGateway, ok := d.GetOkExists("enable_default_gateway"); ok {
req.EnableDefaultGateway = enableDefaultGateway.(bool)
}
if description, ok := d.GetOk("description"); ok {
req.Description = description.(string)
}
@@ -597,7 +601,10 @@ func ResourceRgSchemaMake() map[string]*schema.Schema {
Required: true,
Description: "Name of this resource group. Names are case sensitive and unique within the context of a account.",
},
"enable_default_gateway": {
Type: schema.TypeBool,
Optional: true,
},
"def_net_type": {
Type: schema.TypeString,
Optional: true,
@@ -892,7 +899,7 @@ func ResourceRgSchemaMake() map[string]*schema.Schema {
Computed: true,
},
"cpu_allocation_ratio": {
Type: schema.TypeFloat,
Type: schema.TypeInt,
Computed: true,
},
"storage_policy_ids": {