@@ -47,6 +47,21 @@ examples:
4747 target_tcp_proxy_name : ' test-proxy'
4848 backend_service_name : ' backend-service'
4949 health_check_name : ' health-check'
50+ - name : ' target_tcp_proxy_basic_beta'
51+ min_version : beta
52+ primary_resource_id : ' default'
53+ vars :
54+ target_tcp_proxy_name : ' test-proxy'
55+ backend_service_name : ' backend-service'
56+ health_check_name : ' health-check'
57+ - name : target_tcp_proxy_backendless
58+ min_version : beta
59+ primary_resource_id : default
60+ vars :
61+ target_tcp_proxy_name : test-proxy
62+ backend_service_name : ' backend-service'
63+ health_check_name : ' health-check'
64+ tls_route_name : ' tls-route-check'
5065parameters :
5166properties :
5267 - name : ' creationTimestamp'
@@ -88,9 +103,12 @@ properties:
88103 - name : ' backendService'
89104 type : ResourceRef
90105 description : |
91- A reference to the BackendService resource.
106+ A reference to the BackendService resource. This field is optional when
107+ the loadBalancingScheme (available in beta) is set to INTERNAL_MANAGED.
108+ at_least_one_of :
109+ - ' backend_service'
110+ - ' load_balancing_scheme'
92111 api_name : service
93- required : true
94112 update_url : ' projects/{{project}}/global/targetTcpProxies/{{name}}/setBackendService'
95113 update_verb : ' POST'
96114 custom_expand : ' templates/terraform/custom_expand/resourceref_with_validation.go.tmpl'
@@ -102,3 +120,17 @@ properties:
102120 This field only applies when the forwarding rule that references
103121 this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
104122 default_from_api : true
123+ - name : loadBalancingScheme
124+ min_version : beta
125+ type : Enum
126+ description : |
127+ Specifies the load balancer type. A target TCP proxy created for one type
128+ of load balancer cannot be used with another. For more information, refer
129+ to [Summary of types of Google Cloud load balancers](https://docs.cloud.google.com/load-balancing/docs/load-balancing-overview#summary-gclb).
130+ at_least_one_of :
131+ - ' backend_service'
132+ - ' load_balancing_scheme'
133+ enum_values :
134+ - ' EXTERNAL'
135+ - ' EXTERNAL_MANAGED'
136+ - ' INTERNAL_MANAGED'
0 commit comments