Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions mmv1/products/compute/TargetTcpProxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,16 @@ samples:
backend_service_name: backend-service
health_check_name: health-check
target_tcp_proxy_name: test-proxy
- name: target_tcp_proxy_basic_beta
primary_resource_id: default
min_version: beta
steps:
- name: target_tcp_proxy_basic_beta
min_version: beta
resource_id_vars:
backend_service_name: backend-service
health_check_name: health-check
target_tcp_proxy_name: test-proxy
- name: target_tcp_proxy_backendless
min_version: beta
primary_resource_id: default
steps:
- name: target_tcp_proxy_backendless
min_version: beta
resource_id_vars:
target_tcp_proxy_name: test-proxy
- name: target_tcp_proxy_tls_route
min_version: beta
primary_resource_id: default
steps:
- name: target_tcp_proxy_tls_route
min_version: beta
resource_id_vars:
backend_service_name: backend-service
health_check_name: health-check
Expand Down Expand Up @@ -112,7 +98,7 @@ properties:
type: ResourceRef
description: |
A reference to the BackendService resource. This field is optional when
the loadBalancingScheme (available in beta) is set to INTERNAL_MANAGED.
the loadBalancingScheme is set to INTERNAL_MANAGED.
update_verb: POST
update_url: projects/{{project}}/global/targetTcpProxies/{{name}}/setBackendService
at_least_one_of:
Expand All @@ -133,7 +119,6 @@ properties:
Specifies the load balancer type. A target TCP proxy created for one type
of load balancer cannot be used with another. For more information, refer
to [Summary of types of Google Cloud load balancers](https://docs.cloud.google.com/load-balancing/docs/load-balancing-overview#summary-gclb).
min_version: beta
at_least_one_of:
- backend_service
- load_balancing_scheme
Expand Down
2 changes: 0 additions & 2 deletions mmv1/products/networkservices/TlsRoute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ samples:
backend_service_name: my-backend-service
health_check_name: backend-service-health-check
- name: network_services_tls_route_target_tcp_proxy_basic
min_version: beta
primary_resource_id: default
steps:
- name: network_services_tls_route_target_tcp_proxy_basic
min_version: beta
resource_id_vars:
resource_name: my-tls-route
target_tcp_proxy_name: my-target-tcp-proxy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
resource "google_compute_target_tcp_proxy" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "target_tcp_proxy_name"}}"
load_balancing_scheme = "INTERNAL_MANAGED"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
resource "google_compute_target_tcp_proxy" "{{$.PrimaryResourceId}}" {
name = "{{index $.ResourceIdVars "target_tcp_proxy_name"}}"
backend_service = google_compute_backend_service.default.id
name = "{{index $.ResourceIdVars "target_tcp_proxy_name"}}"
load_balancing_scheme = "EXTERNAL_MANAGED"
backend_service = google_compute_backend_service.default.id
}

resource "google_compute_backend_service" "default" {
name = "{{index $.ResourceIdVars "backend_service_name"}}"
protocol = "TCP"
timeout_sec = 10
name = "{{index $.ResourceIdVars "backend_service_name"}}"
load_balancing_scheme = "EXTERNAL_MANAGED"
protocol = "TCP"
timeout_sec = 10

health_checks = [google_compute_health_check.default.id]
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
resource "google_compute_target_tcp_proxy" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "target_tcp_proxy_name"}}"
load_balancing_scheme = "INTERNAL_MANAGED"
}

resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "backend_service_name"}}"
load_balancing_scheme = "INTERNAL_MANAGED"
protocol = "TCP"
health_checks = [google_compute_health_check.{{$.PrimaryResourceId}}.id]
}

resource "google_compute_health_check" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "health_check_name"}}"

https_health_check {
Expand All @@ -22,7 +19,6 @@ resource "google_compute_health_check" "{{$.PrimaryResourceId}}" {
}

resource "google_network_services_tls_route" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "tls_route_name"}}"

target_proxies = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
resource "google_compute_backend_service" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "backend_service_name"}}"
load_balancing_scheme = "INTERNAL_MANAGED"
protocol = "TCP"
health_checks = [google_compute_health_check.{{$.PrimaryResourceId}}.id]
}

resource "google_compute_health_check" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "health_check_name"}}"

https_health_check {
Expand All @@ -16,13 +14,11 @@ resource "google_compute_health_check" "{{$.PrimaryResourceId}}" {
}

resource "google_compute_target_tcp_proxy" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "target_tcp_proxy_name"}}"
load_balancing_scheme = "INTERNAL_MANAGED"
}

resource "google_network_services_tls_route" "{{$.PrimaryResourceId}}" {
provider = google-beta
name = "{{index $.ResourceIdVars "resource_name"}}"

target_proxies = [
Expand Down