@@ -41,13 +41,15 @@ func TestConvertToProviderSpec(t *testing.T) {
41
41
TFModelName : "BoolDefaultAttr" ,
42
42
ComputedOptionalRequired : codespec .ComputedOptional ,
43
43
Bool : & codespec.BoolAttribute {Default : conversion .Pointer (false )},
44
+ ReqBodyUsage : codespec .AllRequestBodies ,
44
45
},
45
46
{
46
47
TFSchemaName : "count" ,
47
48
TFModelName : "Count" ,
48
49
ComputedOptionalRequired : codespec .Optional ,
49
50
Int64 : & codespec.Int64Attribute {},
50
51
Description : conversion .StringPtr (testFieldDesc ),
52
+ ReqBodyUsage : codespec .AllRequestBodies ,
51
53
},
52
54
{
53
55
TFSchemaName : "create_date" ,
@@ -71,6 +73,7 @@ func TestConvertToProviderSpec(t *testing.T) {
71
73
TFModelName : "NumDoubleDefaultAttr" ,
72
74
Float64 : & codespec.Float64Attribute {Default : conversion .Pointer (2.0 )},
73
75
ComputedOptionalRequired : codespec .ComputedOptional ,
76
+ ReqBodyUsage : codespec .AllRequestBodies ,
74
77
},
75
78
{
76
79
TFSchemaName : "str_computed_attr" ,
@@ -86,20 +89,23 @@ func TestConvertToProviderSpec(t *testing.T) {
86
89
ComputedOptionalRequired : codespec .Required ,
87
90
String : & codespec.StringAttribute {},
88
91
Description : conversion .StringPtr (testFieldDesc ),
92
+ ReqBodyUsage : codespec .AllRequestBodies ,
89
93
},
90
94
{
91
95
TFSchemaName : "str_req_attr2" ,
92
96
TFModelName : "StrReqAttr2" ,
93
97
ComputedOptionalRequired : codespec .Required ,
94
98
String : & codespec.StringAttribute {},
95
99
Description : conversion .StringPtr (testFieldDesc ),
100
+ ReqBodyUsage : codespec .AllRequestBodies ,
96
101
},
97
102
{
98
103
TFSchemaName : "str_req_attr3" ,
99
104
TFModelName : "StrReqAttr3" ,
100
105
String : & codespec.StringAttribute {},
101
106
ComputedOptionalRequired : codespec .Required ,
102
107
Description : conversion .StringPtr (testFieldDesc ),
108
+ ReqBodyUsage : codespec .AllRequestBodies ,
103
109
},
104
110
},
105
111
},
@@ -146,6 +152,7 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
146
152
ComputedOptionalRequired : codespec .Optional ,
147
153
String : & codespec.StringAttribute {},
148
154
Description : conversion .StringPtr ("Always in updates" ),
155
+ ReqBodyUsage : codespec .AllRequestBodies ,
149
156
},
150
157
{
151
158
TFSchemaName : "cluster_name" ,
@@ -188,6 +195,7 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
188
195
ComputedOptionalRequired : codespec .Required ,
189
196
Int64 : & codespec.Int64Attribute {},
190
197
Description : conversion .StringPtr (testFieldDesc ),
198
+ ReqBodyUsage : codespec .AllRequestBodies ,
191
199
},
192
200
{
193
201
TFSchemaName : "list_primitive_string_attr" ,
@@ -196,7 +204,8 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
196
204
List : & codespec.ListAttribute {
197
205
ElementType : codespec .String ,
198
206
},
199
- Description : conversion .StringPtr (testFieldDesc ),
207
+ Description : conversion .StringPtr (testFieldDesc ),
208
+ ReqBodyUsage : codespec .AllRequestBodies ,
200
209
},
201
210
{
202
211
TFSchemaName : "list_primitive_string_computed_attr" ,
@@ -211,7 +220,8 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
211
220
},
212
221
},
213
222
},
214
- Description : conversion .StringPtr (testFieldDesc ),
223
+ Description : conversion .StringPtr (testFieldDesc ),
224
+ ReqBodyUsage : codespec .AllRequestBodies ,
215
225
},
216
226
{
217
227
TFSchemaName : "nested_map_object_attr" ,
@@ -269,6 +279,7 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
269
279
ComputedOptionalRequired : codespec .Optional ,
270
280
String : & codespec.StringAttribute {},
271
281
Description : conversion .StringPtr ("Optional string" ),
282
+ ReqBodyUsage : codespec .AllRequestBodies ,
272
283
},
273
284
{
274
285
TFSchemaName : "set_primitive_string_attr" ,
@@ -277,8 +288,8 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
277
288
Set : & codespec.SetAttribute {
278
289
ElementType : codespec .String ,
279
290
},
280
- ReqBodyUsage : codespec .OmitAlways ,
281
291
Description : conversion .StringPtr (testFieldDesc ),
292
+ ReqBodyUsage : codespec .OmitAlways ,
282
293
},
283
294
{
284
295
TFSchemaName : "single_nested_attr" ,
@@ -306,8 +317,8 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
306
317
},
307
318
},
308
319
},
309
- ReqBodyUsage : codespec .OmitAlways ,
310
320
Description : conversion .StringPtr (testFieldDesc ),
321
+ ReqBodyUsage : codespec .OmitAlways ,
311
322
},
312
323
{
313
324
TFSchemaName : "single_nested_attr_with_nested_maps" ,
@@ -337,8 +348,8 @@ func TestConvertToProviderSpec_nested(t *testing.T) {
337
348
},
338
349
},
339
350
},
340
- ReqBodyUsage : codespec .OmitAlways ,
341
351
Description : conversion .StringPtr (testFieldDesc ),
352
+ ReqBodyUsage : codespec .OmitAlways ,
342
353
},
343
354
},
344
355
},
@@ -409,6 +420,7 @@ func TestConvertToProviderSpec_nested_schemaOverrides(t *testing.T) {
409
420
ComputedOptionalRequired : codespec .Required ,
410
421
Int64 : & codespec.Int64Attribute {},
411
422
Description : conversion .StringPtr ("Overridden inner_num_attr_alias description" ),
423
+ ReqBodyUsage : codespec .AllRequestBodies ,
412
424
},
413
425
{
414
426
TFSchemaName : "list_primitive_string_computed_attr" ,
@@ -423,14 +435,16 @@ func TestConvertToProviderSpec_nested_schemaOverrides(t *testing.T) {
423
435
},
424
436
},
425
437
},
426
- Description : conversion .StringPtr (testFieldDesc ),
438
+ Description : conversion .StringPtr (testFieldDesc ),
439
+ ReqBodyUsage : codespec .AllRequestBodies ,
427
440
},
428
441
{
429
442
TFSchemaName : "optional_string_attr" ,
430
443
TFModelName : "OptionalStringAttr" ,
431
444
ComputedOptionalRequired : codespec .ComputedOptional ,
432
445
String : & codespec.StringAttribute {},
433
446
Description : conversion .StringPtr ("Optional string that has config override to optional/computed" ),
447
+ ReqBodyUsage : codespec .AllRequestBodies ,
434
448
},
435
449
{
436
450
TFSchemaName : "outer_object" ,
@@ -535,6 +549,7 @@ func TestConvertToProviderSpec_pathParamPresentInPostRequest(t *testing.T) {
535
549
ComputedOptionalRequired : codespec .Optional ,
536
550
String : & codespec.StringAttribute {},
537
551
Description : conversion .StringPtr (testFieldDesc ),
552
+ ReqBodyUsage : codespec .AllRequestBodies ,
538
553
},
539
554
},
540
555
},
@@ -581,6 +596,7 @@ func TestConvertToProviderSpec_singletonResourceNoDeleteOperation(t *testing.T)
581
596
TFModelName : "Flag" ,
582
597
ComputedOptionalRequired : codespec .Optional ,
583
598
Bool : & codespec.BoolAttribute {},
599
+ ReqBodyUsage : codespec .AllRequestBodies ,
584
600
},
585
601
{
586
602
TFSchemaName : "group_id" ,
0 commit comments