@@ -29,22 +29,24 @@ func DataflowInvokeRunResource() *schema.Resource {
2929 Delete : deleteDataflowInvokeRun ,
3030 Schema : map [string ]* schema.Schema {
3131 // Required
32- "application_id " : {
32+ "compartment_id " : {
3333 Type : schema .TypeString ,
3434 Required : true ,
35- ForceNew : true ,
3635 },
37- "compartment_id" : {
36+
37+ // Optional
38+ "application_id" : {
3839 Type : schema .TypeString ,
39- Required : true ,
40+ Optional : true ,
41+ Computed : true ,
42+ ForceNew : true ,
4043 },
41- "display_name " : {
44+ "archive_uri " : {
4245 Type : schema .TypeString ,
43- Required : true ,
46+ Optional : true ,
47+ Computed : true ,
4448 ForceNew : true ,
4549 },
46-
47- // Optional
4850 "arguments" : {
4951 Type : schema .TypeList ,
5052 Optional : true ,
@@ -68,12 +70,24 @@ func DataflowInvokeRunResource() *schema.Resource {
6870 DiffSuppressFunc : definedTagsDiffSuppressFunction ,
6971 Elem : schema .TypeString ,
7072 },
73+ "display_name" : {
74+ Type : schema .TypeString ,
75+ Optional : true ,
76+ Computed : true ,
77+ ForceNew : true ,
78+ },
7179 "driver_shape" : {
7280 Type : schema .TypeString ,
7381 Optional : true ,
7482 Computed : true ,
7583 ForceNew : true ,
7684 },
85+ "execute" : {
86+ Type : schema .TypeString ,
87+ Optional : true ,
88+ Computed : true ,
89+ ForceNew : true ,
90+ },
7791 "executor_shape" : {
7892 Type : schema .TypeString ,
7993 Optional : true ,
@@ -123,6 +137,12 @@ func DataflowInvokeRunResource() *schema.Resource {
123137 },
124138 },
125139 },
140+ "spark_version" : {
141+ Type : schema .TypeString ,
142+ Optional : true ,
143+ Computed : true ,
144+ ForceNew : true ,
145+ },
126146 "warehouse_bucket_uri" : {
127147 Type : schema .TypeString ,
128148 Optional : true ,
@@ -137,10 +157,6 @@ func DataflowInvokeRunResource() *schema.Resource {
137157 },
138158
139159 // Computed
140- "archive_uri" : {
141- Type : schema .TypeString ,
142- Computed : true ,
143- },
144160 "class_name" : {
145161 Type : schema .TypeString ,
146162 Computed : true ,
@@ -207,10 +223,6 @@ func DataflowInvokeRunResource() *schema.Resource {
207223 Type : schema .TypeString ,
208224 Computed : true ,
209225 },
210- "spark_version" : {
211- Type : schema .TypeString ,
212- Computed : true ,
213- },
214226 "state" : {
215227 Type : schema .TypeString ,
216228 Computed : true ,
@@ -332,6 +344,11 @@ func (s *DataflowInvokeRunResourceCrud) Create() error {
332344 request .ApplicationId = & tmp
333345 }
334346
347+ if archiveUri , ok := s .D .GetOkExists ("archive_uri" ); ok {
348+ tmp := archiveUri .(string )
349+ request .ArchiveUri = & tmp
350+ }
351+
335352 if arguments , ok := s .D .GetOkExists ("arguments" ); ok {
336353 interfaces := arguments .([]interface {})
337354 tmp := make ([]string , len (interfaces ))
@@ -372,6 +389,11 @@ func (s *DataflowInvokeRunResourceCrud) Create() error {
372389 request .DriverShape = & tmp
373390 }
374391
392+ if execute , ok := s .D .GetOkExists ("execute" ); ok {
393+ tmp := execute .(string )
394+ request .Execute = & tmp
395+ }
396+
375397 if executorShape , ok := s .D .GetOkExists ("executor_shape" ); ok {
376398 tmp := executorShape .(string )
377399 request .ExecutorShape = & tmp
@@ -408,6 +430,11 @@ func (s *DataflowInvokeRunResourceCrud) Create() error {
408430 }
409431 }
410432
433+ if sparkVersion , ok := s .D .GetOkExists ("spark_version" ); ok {
434+ tmp := sparkVersion .(string )
435+ request .SparkVersion = & tmp
436+ }
437+
411438 if warehouseBucketUri , ok := s .D .GetOkExists ("warehouse_bucket_uri" ); ok {
412439 tmp := warehouseBucketUri .(string )
413440 request .WarehouseBucketUri = & tmp
@@ -547,6 +574,10 @@ func (s *DataflowInvokeRunResourceCrud) SetData() error {
547574 s .D .Set ("driver_shape" , * s .Res .DriverShape )
548575 }
549576
577+ if s .Res .Execute != nil {
578+ s .D .Set ("execute" , * s .Res .Execute )
579+ }
580+
550581 if s .Res .ExecutorShape != nil {
551582 s .D .Set ("executor_shape" , * s .Res .ExecutorShape )
552583 }
0 commit comments