@@ -19,6 +19,7 @@ import (
19
19
"github.com/hashicorp/terraform-plugin-framework/resource"
20
20
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
21
21
"github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier"
22
+ "github.com/hashicorp/terraform-plugin-framework/resource/schema/float32planmodifier"
22
23
"github.com/hashicorp/terraform-plugin-framework/resource/schema/float64planmodifier"
23
24
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int32planmodifier"
24
25
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
@@ -83,7 +84,10 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
83
84
Description : "Exadata infrastructure id. Changing this will force terraform to create new resource." ,
84
85
},
85
86
"autonomous_data_storage_percentage" : schema.Float32Attribute {
86
- Computed : true ,
87
+ Computed : true ,
88
+ PlanModifiers : []planmodifier.Float32 {
89
+ float32planmodifier .UseStateForUnknown (),
90
+ },
87
91
Description : "The progress of the current operation on the Autonomous VM cluster, as a percentage." ,
88
92
},
89
93
"autonomous_data_storage_size_in_tbs" : schema.Float64Attribute {
@@ -94,24 +98,39 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
94
98
Description : "The data storage size allocated for Autonomous Databases in the Autonomous VM cluster, in TB. Changing this will force terraform to create new resource." ,
95
99
},
96
100
"available_autonomous_data_storage_size_in_tbs" : schema.Float64Attribute {
97
- Computed : true ,
101
+ Computed : true ,
102
+ PlanModifiers : []planmodifier.Float64 {
103
+ float64planmodifier .UseStateForUnknown (),
104
+ },
98
105
Description : "The available data storage space for Autonomous Databases in the Autonomous VM cluster, in TB." ,
99
106
},
100
107
"available_container_databases" : schema.Int32Attribute {
101
- Computed : true ,
108
+ Computed : true ,
109
+ PlanModifiers : []planmodifier.Int32 {
110
+ int32planmodifier .UseStateForUnknown (),
111
+ },
102
112
Description : "The number of Autonomous CDBs that you can create with the currently available storage." ,
103
113
},
104
114
"available_cpus" : schema.Float32Attribute {
105
- Computed : true ,
115
+ Computed : true ,
116
+ PlanModifiers : []planmodifier.Float32 {
117
+ float32planmodifier .UseStateForUnknown (),
118
+ },
106
119
Description : "The number of CPU cores available for allocation to Autonomous Databases" ,
107
120
},
108
121
"compute_model" : schema.StringAttribute {
109
- CustomType : computeModel ,
110
- Computed : true ,
122
+ CustomType : computeModel ,
123
+ Computed : true ,
124
+ PlanModifiers : []planmodifier.String {
125
+ stringplanmodifier .UseStateForUnknown (),
126
+ },
111
127
Description : "The compute model of the Autonomous VM cluster: ECPU or OCPU." ,
112
128
},
113
129
"cpu_core_count" : schema.Int32Attribute {
114
- Computed : true ,
130
+ Computed : true ,
131
+ PlanModifiers : []planmodifier.Int32 {
132
+ int32planmodifier .UseStateForUnknown (),
133
+ },
115
134
Description : "The total number of CPU cores in the Autonomous VM cluster." ,
116
135
},
117
136
"cpu_core_count_per_node" : schema.Int32Attribute {
@@ -122,24 +141,39 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
122
141
Description : "The number of CPU cores enabled per node in the Autonomous VM cluster." ,
123
142
},
124
143
"cpu_percentage" : schema.Float32Attribute {
125
- Computed : true ,
144
+ Computed : true ,
145
+ PlanModifiers : []planmodifier.Float32 {
146
+ float32planmodifier .UseStateForUnknown (),
147
+ },
126
148
Description : "The percentage of total CPU cores currently in use in the Autonomous VM cluster." ,
127
149
},
128
150
names .AttrCreatedAt : schema.StringAttribute {
129
- Computed : true ,
151
+ Computed : true ,
152
+ PlanModifiers : []planmodifier.String {
153
+ stringplanmodifier .UseStateForUnknown (),
154
+ },
130
155
CustomType : timetypes.RFC3339Type {},
131
156
Description : "The date and time when the Autonomous VM cluster was created." ,
132
157
},
133
158
"data_storage_size_in_gbs" : schema.Float64Attribute {
134
- Computed : true ,
159
+ Computed : true ,
160
+ PlanModifiers : []planmodifier.Float64 {
161
+ float64planmodifier .UseStateForUnknown (),
162
+ },
135
163
Description : "The total data storage allocated to the Autonomous VM cluster, in GB." ,
136
164
},
137
165
"data_storage_size_in_tbs" : schema.Float64Attribute {
138
- Computed : true ,
166
+ Computed : true ,
167
+ PlanModifiers : []planmodifier.Float64 {
168
+ float64planmodifier .UseStateForUnknown (),
169
+ },
139
170
Description : "The total data storage allocated to the Autonomous VM cluster, in TB." ,
140
171
},
141
172
"odb_node_storage_size_in_gbs" : schema.Int32Attribute {
142
- Computed : true ,
173
+ Computed : true ,
174
+ PlanModifiers : []planmodifier.Int32 {
175
+ int32planmodifier .UseStateForUnknown (),
176
+ },
143
177
Description : " The local node storage allocated to the Autonomous VM cluster, in gigabytes (GB)" ,
144
178
},
145
179
"db_servers" : schema.SetAttribute {
@@ -167,11 +201,17 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
167
201
Description : "The display name of the Autonomous VM cluster. Changing this will force terraform to create new resource." ,
168
202
},
169
203
names .AttrDomain : schema.StringAttribute {
170
- Computed : true ,
204
+ Computed : true ,
205
+ PlanModifiers : []planmodifier.String {
206
+ stringplanmodifier .UseStateForUnknown (),
207
+ },
171
208
Description : "The domain name of the Autonomous VM cluster." ,
172
209
},
173
210
"exadata_storage_in_tbs_lowest_scaled_value" : schema.Float64Attribute {
174
- Computed : true ,
211
+ Computed : true ,
212
+ PlanModifiers : []planmodifier.Float64 {
213
+ float64planmodifier .UseStateForUnknown (),
214
+ },
175
215
Description : "The minimum value to which you can scale down the Exadata storage, in TB." ,
176
216
},
177
217
"hostname" : schema.StringAttribute {
@@ -201,7 +241,10 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
201
241
Description : "The license model for the Autonomous VM cluster. Valid values are LICENSE_INCLUDED or BRING_YOUR_OWN_LICENSE . Changing this will force terraform to create new resource." ,
202
242
},
203
243
"max_acds_lowest_scaled_value" : schema.Int32Attribute {
204
- Computed : true ,
244
+ Computed : true ,
245
+ PlanModifiers : []planmodifier.Int32 {
246
+ int32planmodifier .UseStateForUnknown (),
247
+ },
205
248
Description : "The minimum value to which you can scale down the maximum number of Autonomous CDBs." ,
206
249
},
207
250
"memory_per_oracle_compute_unit_in_gbs" : schema.Int32Attribute {
@@ -212,27 +255,45 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
212
255
Description : "The amount of memory allocated per Oracle Compute Unit, in GB. Changing this will force terraform to create new resource." ,
213
256
},
214
257
"memory_size_in_gbs" : schema.Int32Attribute {
215
- Computed : true ,
258
+ Computed : true ,
259
+ PlanModifiers : []planmodifier.Int32 {
260
+ int32planmodifier .UseStateForUnknown (),
261
+ },
216
262
Description : "The total amount of memory allocated to the Autonomous VM cluster, in gigabytes(GB)." ,
217
263
},
218
264
"node_count" : schema.Int32Attribute {
219
- Computed : true ,
265
+ Computed : true ,
266
+ PlanModifiers : []planmodifier.Int32 {
267
+ int32planmodifier .UseStateForUnknown (),
268
+ },
220
269
Description : "The number of database server nodes in the Autonomous VM cluster." ,
221
270
},
222
271
"non_provisionable_autonomous_container_databases" : schema.Int32Attribute {
223
- Computed : true ,
272
+ Computed : true ,
273
+ PlanModifiers : []planmodifier.Int32 {
274
+ int32planmodifier .UseStateForUnknown (),
275
+ },
224
276
Description : "The number of Autonomous CDBs that can't be provisioned because of resource constraints." ,
225
277
},
226
278
"oci_resource_anchor_name" : schema.StringAttribute {
227
- Computed : true ,
279
+ Computed : true ,
280
+ PlanModifiers : []planmodifier.String {
281
+ stringplanmodifier .UseStateForUnknown (),
282
+ },
228
283
Description : "The name of the OCI resource anchor associated with this Autonomous VM cluster." ,
229
284
},
230
285
"oci_url" : schema.StringAttribute {
231
- Computed : true ,
286
+ Computed : true ,
287
+ PlanModifiers : []planmodifier.String {
288
+ stringplanmodifier .UseStateForUnknown (),
289
+ },
232
290
Description : "The URL for accessing the OCI console page for this Autonomous VM cluster." ,
233
291
},
234
292
"ocid" : schema.StringAttribute {
235
- Computed : true ,
293
+ Computed : true ,
294
+ PlanModifiers : []planmodifier.String {
295
+ stringplanmodifier .UseStateForUnknown (),
296
+ },
236
297
Description : "The Oracle Cloud Identifier (OCID) of the Autonomous VM cluster." ,
237
298
},
238
299
"odb_network_id" : schema.StringAttribute {
@@ -243,27 +304,45 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
243
304
Description : "The unique identifier of the ODB network associated with this Autonomous VM Cluster. Changing this will force terraform to create new resource." ,
244
305
},
245
306
"percent_progress" : schema.Float32Attribute {
246
- Computed : true ,
307
+ Computed : true ,
308
+ PlanModifiers : []planmodifier.Float32 {
309
+ float32planmodifier .UseStateForUnknown (),
310
+ },
247
311
Description : `The progress of the current operation on the Autonomous VM cluster, as a percentage.` ,
248
312
},
249
313
"provisionable_autonomous_container_databases" : schema.Int32Attribute {
250
- Computed : true ,
314
+ Computed : true ,
315
+ PlanModifiers : []planmodifier.Int32 {
316
+ int32planmodifier .UseStateForUnknown (),
317
+ },
251
318
Description : "The number of Autonomous CDBs that can be provisioned in the Autonomous VM cluster." ,
252
319
},
253
320
"provisioned_autonomous_container_databases" : schema.Int32Attribute {
254
- Computed : true ,
321
+ Computed : true ,
322
+ PlanModifiers : []planmodifier.Int32 {
323
+ int32planmodifier .UseStateForUnknown (),
324
+ },
255
325
Description : "The number of Autonomous CDBs currently provisioned in the Autonomous VM cluster." ,
256
326
},
257
327
"provisioned_cpus" : schema.Float32Attribute {
258
- Computed : true ,
328
+ Computed : true ,
329
+ PlanModifiers : []planmodifier.Float32 {
330
+ float32planmodifier .UseStateForUnknown (),
331
+ },
259
332
Description : "The number of CPUs provisioned in the Autonomous VM cluster." ,
260
333
},
261
334
"reclaimable_cpus" : schema.Float32Attribute {
262
- Computed : true ,
335
+ Computed : true ,
336
+ PlanModifiers : []planmodifier.Float32 {
337
+ float32planmodifier .UseStateForUnknown (),
338
+ },
263
339
Description : "The number of CPU cores that can be reclaimed from terminated or scaled-down Autonomous Databases." ,
264
340
},
265
341
"reserved_cpus" : schema.Float32Attribute {
266
- Computed : true ,
342
+ Computed : true ,
343
+ PlanModifiers : []planmodifier.Float32 {
344
+ float32planmodifier .UseStateForUnknown (),
345
+ },
267
346
Description : "The number of CPU cores reserved for system operations and redundancy." ,
268
347
},
269
348
"scan_listener_port_non_tls" : schema.Int32Attribute {
@@ -281,16 +360,25 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
281
360
Description : "The SCAN listener port for TLS (TCP) protocol. The default is 2484. Changing this will force terraform to create new resource." ,
282
361
},
283
362
"shape" : schema.StringAttribute {
284
- Computed : true ,
363
+ Computed : true ,
364
+ PlanModifiers : []planmodifier.String {
365
+ stringplanmodifier .UseStateForUnknown (),
366
+ },
285
367
Description : "The shape of the Exadata infrastructure for the Autonomous VM cluster." ,
286
368
},
287
369
names .AttrStatus : schema.StringAttribute {
288
- CustomType : status ,
289
- Computed : true ,
370
+ CustomType : status ,
371
+ Computed : true ,
372
+ PlanModifiers : []planmodifier.String {
373
+ stringplanmodifier .UseStateForUnknown (),
374
+ },
290
375
Description : "The status of the Autonomous VM cluster. Possible values include CREATING, AVAILABLE , UPDATING , DELETING , DELETED , FAILED " ,
291
376
},
292
377
names .AttrStatusReason : schema.StringAttribute {
293
- Computed : true ,
378
+ Computed : true ,
379
+ PlanModifiers : []planmodifier.String {
380
+ stringplanmodifier .UseStateForUnknown (),
381
+ },
294
382
Description : "Additional information about the current status of the Autonomous VM cluster." ,
295
383
},
296
384
"time_zone" : schema.StringAttribute {
@@ -310,11 +398,17 @@ func (r *resourceCloudAutonomousVmCluster) Schema(ctx context.Context, req resou
310
398
Description : "The total number of Autonomous Container Databases that can be created with the allocated local storage. Changing this will force terraform to create new resource." ,
311
399
},
312
400
"time_ords_certificate_expires" : schema.StringAttribute {
313
- Computed : true ,
401
+ Computed : true ,
402
+ PlanModifiers : []planmodifier.String {
403
+ stringplanmodifier .UseStateForUnknown (),
404
+ },
314
405
CustomType : timetypes.RFC3339Type {},
315
406
},
316
407
"time_database_ssl_certificate_expires" : schema.StringAttribute {
317
- Computed : true ,
408
+ Computed : true ,
409
+ PlanModifiers : []planmodifier.String {
410
+ stringplanmodifier .UseStateForUnknown (),
411
+ },
318
412
CustomType : timetypes.RFC3339Type {},
319
413
Description : "The expiration date and time of the database SSL certificate." ,
320
414
},
0 commit comments