@@ -94,6 +94,40 @@ func ResourceTencentCloudCfwVpcPolicy() *schema.Resource {
9494 Computed : true ,
9595 Description : "Firewall name." ,
9696 },
97+ "beta_list" : {
98+ Type : schema .TypeList ,
99+ Computed : true ,
100+ Description : "Beta mission details. Note: This field may return null, indicating that no valid value can be obtained." ,
101+ Elem : & schema.Resource {
102+ Schema : map [string ]* schema.Schema {
103+ "task_id" : {
104+ Type : schema .TypeInt ,
105+ Optional : true ,
106+ Description : "Task id. Note: This field may return null, indicating that no valid value can be obtained." ,
107+ },
108+ "task_name" : {
109+ Type : schema .TypeString ,
110+ Optional : true ,
111+ Description : "Mission name. Note: This field may return null, indicating that no valid value can be obtained." ,
112+ },
113+ "last_time" : {
114+ Type : schema .TypeString ,
115+ Optional : true ,
116+ Description : "Last execution time. Note: This field may return null, indicating that no valid value can be obtained." ,
117+ },
118+ },
119+ },
120+ },
121+ "param_template_id" : {
122+ Type : schema .TypeString ,
123+ Computed : true ,
124+ Description : "Parameter template id. Note: This field may return null, indicating that no valid value can be obtained." ,
125+ },
126+ "param_template_name" : {
127+ Type : schema .TypeString ,
128+ Computed : true ,
129+ Description : "Parameter template Name. Note: This field may return null, indicating that no valid value can be obtained." ,
130+ },
97131 },
98132 }
99133}
@@ -257,6 +291,37 @@ func resourceTencentCloudCfwVpcPolicyRead(d *schema.ResourceData, meta interface
257291 _ = d .Set ("fw_group_name" , vpcPolicy .FwGroupName )
258292 }
259293
294+ if vpcPolicy .BetaList != nil {
295+ betaListList := []interface {}{}
296+ for _ , betaList := range vpcPolicy .BetaList {
297+ betaListMap := map [string ]interface {}{}
298+
299+ if betaList .TaskId != nil {
300+ betaListMap ["task_id" ] = betaList .TaskId
301+ }
302+
303+ if betaList .TaskName != nil {
304+ betaListMap ["task_name" ] = betaList .TaskName
305+ }
306+
307+ if betaList .LastTime != nil {
308+ betaListMap ["last_time" ] = betaList .LastTime
309+ }
310+
311+ betaListList = append (betaListList , betaListMap )
312+ }
313+
314+ _ = d .Set ("beta_list" , betaListList )
315+ }
316+
317+ if vpcPolicy .ParamTemplateId != nil {
318+ _ = d .Set ("param_template_id" , vpcPolicy .ParamTemplateId )
319+ }
320+
321+ if vpcPolicy .ParamTemplateName != nil {
322+ _ = d .Set ("param_template_name" , vpcPolicy .ParamTemplateName )
323+ }
324+
260325 return nil
261326}
262327
0 commit comments