Skip to content

Commit

Permalink
Secure Web Proxy fields gatewaySecurityPolicy and certificateUrls sup…
Browse files Browse the repository at this point in the history
…ports updates. (GoogleCloudPlatform#10549)
  • Loading branch information
Samir-Cit authored and pengq-google committed May 21, 2024
1 parent f950024 commit bd9c0d1
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 219 deletions.
3 changes: 1 addition & 2 deletions mmv1/products/networkservices/Gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ virtual_fields:
If there is no other gateway of type 'SECURE_WEB_GATEWAY' remaining for that region and network it will be deleted.
custom_code: !ruby/object:Provider::Terraform::CustomCode
post_delete: 'templates/terraform/post_delete/network_services_gateway.go.erb'
pre_update: 'templates/terraform/pre_update/network_services_gateway.erb'
constants: 'templates/terraform/constants/network_services_gateway.go.erb'
parameters:
- !ruby/object:Api::Type::String
Expand Down Expand Up @@ -192,14 +193,12 @@ properties:
Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.
- !ruby/object:Api::Type::String
name: 'gatewaySecurityPolicy'
immutable: true
description: |
A fully-qualified GatewaySecurityPolicy URL reference. Defines how a server should apply security policy to inbound (VM to Proxy) initiated connections.
For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.
This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.
- !ruby/object:Api::Type::Array
name: 'certificateUrls'
immutable: true
description: |
A fully-qualified Certificates URL reference. The proxy presents a Certificate (selected based on SNI) when establishing a TLS connection.
This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if d.Get("type") == "SECURE_WEB_GATEWAY" {
obj["name"] = d.Get("name")
obj["type"] = d.Get("type")
}
Loading

0 comments on commit bd9c0d1

Please sign in to comment.