@@ -50,6 +50,36 @@ func dataSourceLoadBalanceHttp2Profile() *schema.Resource {
5050 Type : schema .TypeString ,
5151 Computed : true ,
5252 },
53+ "backend_http2" : & schema.Schema {
54+ Type : schema .TypeString ,
55+ Computed : true ,
56+ Optional : true ,
57+ },
58+ "backend_max_receive_window" : & schema.Schema {
59+ Type : schema .TypeString ,
60+ Computed : true ,
61+ Optional : true ,
62+ },
63+ "backend_concurrent_stream" : & schema.Schema {
64+ Type : schema .TypeString ,
65+ Computed : true ,
66+ Optional : true ,
67+ },
68+ "backend_proto_mode_https" : & schema.Schema {
69+ Type : schema .TypeString ,
70+ Computed : true ,
71+ Optional : true ,
72+ },
73+ "backend_proto_mode_http" : & schema.Schema {
74+ Type : schema .TypeString ,
75+ Computed : true ,
76+ Optional : true ,
77+ },
78+ "backend_multiplex_mode" : & schema.Schema {
79+ Type : schema .TypeString ,
80+ Computed : true ,
81+ Optional : true ,
82+ },
5383 "vdom" : & schema.Schema {
5484 Type : schema .TypeString ,
5585 Optional : true ,
@@ -134,6 +164,30 @@ func dataSourceFlattenLoadBalanceHttp2ProfileMaxHeaderListSize(v interface{}, d
134164 return v
135165}
136166
167+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendHttp2 (v interface {}, d * schema.ResourceData , pre string ) interface {} {
168+ return v
169+ }
170+
171+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendMaxReceiveWindow (v interface {}, d * schema.ResourceData , pre string ) interface {} {
172+ return v
173+ }
174+
175+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendConcurrentStream (v interface {}, d * schema.ResourceData , pre string ) interface {} {
176+ return v
177+ }
178+
179+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendProtoModeHttps (v interface {}, d * schema.ResourceData , pre string ) interface {} {
180+ return v
181+ }
182+
183+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendProtoModeHttp (v interface {}, d * schema.ResourceData , pre string ) interface {} {
184+ return v
185+ }
186+
187+ func dataSourceFlattenLoadBalanceHttp2ProfileBackendMultiplexMode (v interface {}, d * schema.ResourceData , pre string ) interface {} {
188+ return v
189+ }
190+
137191func dataSourceRefreshObjectLoadBalanceHttp2Profile (d * schema.ResourceData , o map [string ]interface {}) error {
138192 var err error
139193
@@ -191,5 +245,41 @@ func dataSourceRefreshObjectLoadBalanceHttp2Profile(d *schema.ResourceData, o ma
191245 }
192246 }
193247
248+ if err = d .Set ("backend_http2" , dataSourceFlattenLoadBalanceHttp2ProfileBackendHttp2 (o ["backend_http2" ], d , "backend_http2" )); err != nil {
249+ if ! fortiAPIPatch (o ["backend_http2" ]) {
250+ return fmt .Errorf ("Error reading backend_http2: %v" , err )
251+ }
252+ }
253+
254+ if err = d .Set ("backend_max_receive_window" , dataSourceFlattenLoadBalanceHttp2ProfileBackendMaxReceiveWindow (o ["backend_max_receive_window" ], d , "backend_max_receive_window" )); err != nil {
255+ if ! fortiAPIPatch (o ["backend_max_receive_window" ]) {
256+ return fmt .Errorf ("Error reading backend_max_receive_window: %v" , err )
257+ }
258+ }
259+
260+ if err = d .Set ("backend_concurrent_stream" , dataSourceFlattenLoadBalanceHttp2ProfileBackendConcurrentStream (o ["backend_concurrent_stream" ], d , "backend_concurrent_stream" )); err != nil {
261+ if ! fortiAPIPatch (o ["backend_concurrent_stream" ]) {
262+ return fmt .Errorf ("Error reading backend_concurrent_stream: %v" , err )
263+ }
264+ }
265+
266+ if err = d .Set ("backend_proto_mode_https" , dataSourceFlattenLoadBalanceHttp2ProfileBackendProtoModeHttps (o ["backend_proto_mode_https" ], d , "backend_proto_mode_https" )); err != nil {
267+ if ! fortiAPIPatch (o ["backend_proto_mode_https" ]) {
268+ return fmt .Errorf ("Error reading backend_proto_mode_https: %v" , err )
269+ }
270+ }
271+
272+ if err = d .Set ("backend_proto_mode_http" , dataSourceFlattenLoadBalanceHttp2ProfileBackendProtoModeHttp (o ["backend_proto_mode_http" ], d , "backend_proto_mode_http" )); err != nil {
273+ if ! fortiAPIPatch (o ["backend_proto_mode_http" ]) {
274+ return fmt .Errorf ("Error reading backend_proto_mode_http: %v" , err )
275+ }
276+ }
277+
278+ if err = d .Set ("backend_multiplex_mode" , dataSourceFlattenLoadBalanceHttp2ProfileBackendMultiplexMode (o ["backend_multiplex_mode" ], d , "backend_multiplex_mode" )); err != nil {
279+ if ! fortiAPIPatch (o ["backend_multiplex_mode" ]) {
280+ return fmt .Errorf ("Error reading backend_multiplex_mode: %v" , err )
281+ }
282+ }
283+
194284 return nil
195285}
0 commit comments