Skip to content

Commit

Permalink
add vpntunnel resourcerefs
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow authored and modular-magician committed Jan 4, 2019
1 parent d589508 commit e9441b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 12 additions & 7 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2974,9 +2974,10 @@ objects:
description: |
Network IP address of an instance that should handle matching packets.
input: true
# TODO(nelsonjr): Make this a ResourceRef when VpnTunnel is submitted.
- !ruby/object:Api::Type::String
- !ruby/object:Api::Type::ResourceRef
name: 'nextHopVpnTunnel'
resource: 'VpnTunnel'
imports: 'selfLink'
description: |
URL to a VpnTunnel that should handle matching packets.
input: true
Expand Down Expand Up @@ -4086,21 +4087,25 @@ objects:
- !ruby/object:Api::Type::Array
name: 'tunnels'
description: |
A list of references to VpnTunnel resources associated to this VPN gateway.
# TODO(nelsonjr): Make this a ResourceRef when VpnTunnel is submitted.
item_type: Api::Type::String
A list of references to VpnTunnel resources associated with this VPN gateway.
item_type: !ruby/object:Api::Type::ResourceRef
name: 'tunnel'
resource: 'VpnTunnel'
imports: 'selfLink'
description: |
A VpnTunnel resource associated with this VPN gateway.
output: true
- !ruby/object:Api::Type::Array
name: 'forwardingRules'
description: |
A list of references to the ForwardingRule resources associated to this VPN
A list of references to the ForwardingRule resources associated with this VPN
gateway.
item_type: !ruby/object:Api::Type::ResourceRef
name: 'forwardingRule'
resource: 'ForwardingRule'
imports: 'selfLink'
description: |
A ForwardingRule resource associated to this VPN gateway.
A ForwardingRule resource associated with this VPN gateway.
output: true
# status is not useful for state convergence
- !ruby/object:Api::Resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func testAccComputeVpnTunnel_basic() string {
return fmt.Sprintf(`
resource "google_compute_network" "foobar" {
name = "tunnel-test-%s"
auto_create_subnetworks = false
}
resource "google_compute_subnetwork" "foobar" {
name = "tunnel-test-subnetwork-%s"
Expand Down Expand Up @@ -161,6 +162,7 @@ func testAccComputeVpnTunnel_regionFromGateway(region string) string {
return fmt.Sprintf(`
resource "google_compute_network" "foobar" {
name = "tunnel-test-%s"
auto_create_subnetworks = false
}
resource "google_compute_subnetwork" "foobar" {
name = "tunnel-test-subnetwork-%s"
Expand Down Expand Up @@ -219,6 +221,7 @@ func testAccComputeVpnTunnelRouter(router string) string {
return fmt.Sprintf(`
resource "google_compute_network" "foobar" {
name = "tunnel-test-%s"
auto_create_subnetworks = false
}
resource "google_compute_subnetwork" "foobar" {
name = "tunnel-test-subnetwork-%s"
Expand Down

0 comments on commit e9441b8

Please sign in to comment.