@@ -49,7 +49,7 @@ func ResourceNetappStoragePool() *schema.Resource {
4949 Timeouts : & schema.ResourceTimeout {
5050 Create : schema .DefaultTimeout (45 * time .Minute ),
5151 Update : schema .DefaultTimeout (20 * time .Minute ),
52- Delete : schema .DefaultTimeout (45 * time .Minute ),
52+ Delete : schema .DefaultTimeout (20 * time .Minute ),
5353 },
5454
5555 CustomizeDiff : customdiff .All (
@@ -103,7 +103,6 @@ Auto-tiering can be enabled after storage pool creation but it can't be disabled
103103 },
104104 "custom_performance_enabled" : {
105105 Type : schema .TypeBool ,
106- Computed : true ,
107106 Optional : true ,
108107 ForceNew : true ,
109108 Description : `Optional. True if using Independent Scaling of capacity and performance (Hyperdisk). Default is false.` ,
@@ -175,16 +174,6 @@ Possible values are: AUTO, MANUAL. Possible values: ["QOS_TYPE_UNSPECIFIED", "AU
175174 Optional : true ,
176175 Description : `Optional. Custom Performance Total Throughput of the pool (in MiB/s).` ,
177176 },
178- "type" : {
179- Type : schema .TypeString ,
180- Computed : true ,
181- Optional : true ,
182- ForceNew : true ,
183- ValidateFunc : verify .ValidateEnum ([]string {"STORAGE_POOL_TYPE_UNSPECIFIED" , "FILE" , "UNIFIED" , "" }),
184- Description : `Type of the storage pool.
185- This field is used to control whether the pool supports FILE based volumes only or UNIFIED (both FILE and BLOCK) volumes.
186- If not specified during creation, it defaults to FILE. Possible values: ["STORAGE_POOL_TYPE_UNSPECIFIED", "FILE", "UNIFIED"]` ,
187- },
188177 "zone" : {
189178 Type : schema .TypeString ,
190179 Computed : true ,
@@ -351,12 +340,6 @@ func resourceNetappStoragePoolCreate(d *schema.ResourceData, meta interface{}) e
351340 } else if v , ok := d .GetOkExists ("qos_type" ); ! tpgresource .IsEmptyValue (reflect .ValueOf (qosTypeProp )) && (ok || ! reflect .DeepEqual (v , qosTypeProp )) {
352341 obj ["qosType" ] = qosTypeProp
353342 }
354- typeProp , err := expandNetappStoragePoolType (d .Get ("type" ), d , config )
355- if err != nil {
356- return err
357- } else if v , ok := d .GetOkExists ("type" ); ! tpgresource .IsEmptyValue (reflect .ValueOf (typeProp )) && (ok || ! reflect .DeepEqual (v , typeProp )) {
358- obj ["type" ] = typeProp
359- }
360343 effectiveLabelsProp , err := expandNetappStoragePoolEffectiveLabels (d .Get ("effective_labels" ), d , config )
361344 if err != nil {
362345 return err
@@ -528,9 +511,6 @@ func resourceNetappStoragePoolRead(d *schema.ResourceData, meta interface{}) err
528511 if err := d .Set ("hot_tier_size_used_gib" , flattenNetappStoragePoolHotTierSizeUsedGib (res ["hotTierSizeUsedGib" ], d , config )); err != nil {
529512 return fmt .Errorf ("Error reading StoragePool: %s" , err )
530513 }
531- if err := d .Set ("type" , flattenNetappStoragePoolType (res ["type" ], d , config )); err != nil {
532- return fmt .Errorf ("Error reading StoragePool: %s" , err )
533- }
534514 if err := d .Set ("terraform_labels" , flattenNetappStoragePoolTerraformLabels (res ["labels" ], d , config )); err != nil {
535515 return fmt .Errorf ("Error reading StoragePool: %s" , err )
536516 }
@@ -982,10 +962,6 @@ func flattenNetappStoragePoolHotTierSizeUsedGib(v interface{}, d *schema.Resourc
982962 return v
983963}
984964
985- func flattenNetappStoragePoolType (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
986- return v
987- }
988-
989965func flattenNetappStoragePoolTerraformLabels (v interface {}, d * schema.ResourceData , config * transport_tpg.Config ) interface {} {
990966 if v == nil {
991967 return v
@@ -1069,10 +1045,6 @@ func expandNetappStoragePoolQosType(v interface{}, d tpgresource.TerraformResour
10691045 return v , nil
10701046}
10711047
1072- func expandNetappStoragePoolType (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (interface {}, error ) {
1073- return v , nil
1074- }
1075-
10761048func expandNetappStoragePoolEffectiveLabels (v interface {}, d tpgresource.TerraformResourceData , config * transport_tpg.Config ) (map [string ]string , error ) {
10771049 if v == nil {
10781050 return map [string ]string {}, nil
0 commit comments