@@ -79,6 +79,14 @@ to the BackendService.`,
7979 ForceNew : true ,
8080 Description : `An optional description of this resource.` ,
8181 },
82+ "proxy_bind" : {
83+ Type : schema .TypeBool ,
84+ Computed : true ,
85+ Optional : true ,
86+ ForceNew : true ,
87+ Description : `This field only applies when the forwarding rule that references
88+ this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.` ,
89+ },
8290 "quic_override" : {
8391 Type : schema .TypeString ,
8492 Optional : true ,
@@ -167,6 +175,12 @@ func resourceComputeTargetHttpsProxyCreate(d *schema.ResourceData, meta interfac
167175 } else if v , ok := d .GetOkExists ("url_map" ); ! isEmptyValue (reflect .ValueOf (urlMapProp )) && (ok || ! reflect .DeepEqual (v , urlMapProp )) {
168176 obj ["urlMap" ] = urlMapProp
169177 }
178+ proxyBindProp , err := expandComputeTargetHttpsProxyProxyBind (d .Get ("proxy_bind" ), d , config )
179+ if err != nil {
180+ return err
181+ } else if v , ok := d .GetOkExists ("proxy_bind" ); ! isEmptyValue (reflect .ValueOf (proxyBindProp )) && (ok || ! reflect .DeepEqual (v , proxyBindProp )) {
182+ obj ["proxyBind" ] = proxyBindProp
183+ }
170184
171185 url , err := replaceVars (d , config , "{{ComputeBasePath}}projects/{{project}}/global/targetHttpsProxies" )
172186 if err != nil {
@@ -272,6 +286,9 @@ func resourceComputeTargetHttpsProxyRead(d *schema.ResourceData, meta interface{
272286 if err := d .Set ("url_map" , flattenComputeTargetHttpsProxyUrlMap (res ["urlMap" ], d , config )); err != nil {
273287 return fmt .Errorf ("Error reading TargetHttpsProxy: %s" , err )
274288 }
289+ if err := d .Set ("proxy_bind" , flattenComputeTargetHttpsProxyProxyBind (res ["proxyBind" ], d , config )); err != nil {
290+ return fmt .Errorf ("Error reading TargetHttpsProxy: %s" , err )
291+ }
275292 if err := d .Set ("self_link" , ConvertSelfLinkToV1 (res ["selfLink" ].(string ))); err != nil {
276293 return fmt .Errorf ("Error reading TargetHttpsProxy: %s" , err )
277294 }
@@ -561,6 +578,10 @@ func flattenComputeTargetHttpsProxyUrlMap(v interface{}, d *schema.ResourceData,
561578 return ConvertSelfLinkToV1 (v .(string ))
562579}
563580
581+ func flattenComputeTargetHttpsProxyProxyBind (v interface {}, d * schema.ResourceData , config * Config ) interface {} {
582+ return v
583+ }
584+
564585func expandComputeTargetHttpsProxyDescription (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
565586 return v , nil
566587}
@@ -604,3 +625,7 @@ func expandComputeTargetHttpsProxyUrlMap(v interface{}, d TerraformResourceData,
604625 }
605626 return f .RelativeLink (), nil
606627}
628+
629+ func expandComputeTargetHttpsProxyProxyBind (v interface {}, d TerraformResourceData , config * Config ) (interface {}, error ) {
630+ return v , nil
631+ }
0 commit comments