Skip to content

Commit

Permalink
Add ResourceRefs for Compute Route.
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored and modular-magician committed Jan 4, 2019
1 parent 17c8cc7 commit 0a7b863
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2943,9 +2943,9 @@ objects:
description: 'A list of instance tags to which this route applies.'
item_type: Api::Type::String
input: true
# TODO(nelsonjr): Make this a ResourceRef when Gateway is submitted.
- !ruby/object:Api::Type::String
name: 'nextHopGateway'
input: true
description: |
URL to a gateway that should handle matching packets.
Expand All @@ -2956,10 +2956,11 @@ objects:
global/gateways/default-internet-gateway
* projects/project/global/gateways/default-internet-gateway
* global/gateways/default-internet-gateway
input: true
# TODO(nelsonjr): Make this a ResourceRef when Instance is submitted.
- !ruby/object:Api::Type::String
- !ruby/object:Api::Type::ResourceRef
name: 'nextHopInstance'
resource: 'Instance'
imports: 'selfLink'
input: true
description: |
URL to an instance that should handle matching packets.
You can specify this as a full or partial URL. For example:
Expand All @@ -2968,7 +2969,6 @@ objects:
instances/instance
* projects/project/zones/zone/instances/instance
* zones/zone/instances/instance
input: true
- !ruby/object:Api::Type::String
name: 'nextHopIp'
description: |
Expand All @@ -2978,9 +2978,9 @@ objects:
name: 'nextHopVpnTunnel'
resource: 'VpnTunnel'
imports: 'selfLink'
input: true
description: |
URL to a VpnTunnel that should handle matching packets.
input: true
- !ruby/object:Api::Type::String
name: 'nextHopNetwork'
output: true
Expand Down
3 changes: 0 additions & 3 deletions products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,6 @@ overrides: !ruby/object:Provider::Overrides::ResourceOverrides
* `global/gateways/default-internet-gateway`
* The string `default-internet-gateway`.
nextHopInstance: !ruby/object:Provider::Overrides::Terraform::PropertyOverride
diff_suppress_func: 'compareSelfLinkOrResourceName'
custom_expand: templates/terraform/custom_expand/route_instance.erb
# Description here is overridden because puppet won't compile if you ask
# it to include docs greater than 80 characters.
description: |+
Expand All @@ -552,7 +550,6 @@ overrides: !ruby/object:Provider::Overrides::ResourceOverrides
* `projects/project/zones/zone/instances/instance`
* `zones/zone/instances/instance`
* Just the instance name, with the zone in `next_hop_instance_zone`.
tags: !ruby/object:Provider::Overrides::Terraform::PropertyOverride
custom_expand: templates/terraform/custom_expand/set_to_list.erb
is_set: true
Expand Down

0 comments on commit 0a7b863

Please sign in to comment.