Skip to content

Commit

Permalink
Add fields to InterconnectAttachment to allow for PARTNER interconnec…
Browse files Browse the repository at this point in the history
…ts (#1323)

Merged PR #1323.
  • Loading branch information
cblecker authored and modular-magician committed Feb 2, 2019
1 parent 7dd4d8c commit 0ed1edd
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
50 changes: 47 additions & 3 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2429,13 +2429,36 @@ objects:
- !ruby/object:Api::Type::String
name: 'interconnect'
description: |
URL of the underlying Interconnect object that this attachment's traffic will
traverse through.
required: true
URL of the underlying Interconnect object that this attachment's
traffic will traverse through. Required if type is DEDICATED, must not
be set if type is PARTNER.
- !ruby/object:Api::Type::String
name: 'description'
description: |
An optional description of this resource.
- !ruby/object:Api::Type::String
name: 'edgeAvailabilityDomain'
description: |
Desired availability domain for the attachment. Only available for type
PARTNER, at creation time. For improved reliability, customers should
configure a pair of attachments with one per availability domain. The
selected availability domain will be provided to the Partner via the
pairing key so that the provisioned circuit will lie in the specified
domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
- !ruby/object:Api::Type::String
name: 'pairingKey'
description: |
[Output only for type PARTNER. Not present for DEDICATED]. The opaque
identifier of an PARTNER attachment used to initiate provisioning with
a selected partner. Of the form "XXXXX/region/domain"
output: true
- !ruby/object:Api::Type::String
name: 'partnerAsn'
description: |
[Output only for type PARTNER. Not present for DEDICATED]. Optional
BGP ASN for the router that should be supplied by a layer 3 Partner if
they configured BGP on behalf of the customer.
output: true
- !ruby/object:Api::Type::NestedObject
name: 'privateInterconnectInfo'
description: |
Expand All @@ -2449,6 +2472,27 @@ objects:
802.1q encapsulation tag to be used for traffic between
Google and the customer, going to and from this network and region.
output: true
- !ruby/object:Api::Type::Enum
name: 'type'
description: |
The type of InterconnectAttachment you wish to create. Defaults to
DEDICATED.
values:
- :DEDICATED
- :PARTNER
- :PARTNER_PROVIDER
- !ruby/object:Api::Type::Enum
name: 'state'
description: |
[Output Only] The current state of this attachment's functionality.
values:
- :ACTIVE
- :DEFUNCT
- :PARTNER_REQUEST_RECEIVED
- :PENDING_CUSTOMER
- :PENDING_PARTNER
- :STATE_UNSPECIFIED
output: true
- !ruby/object:Api::Type::String
name: 'googleReferenceId'
description: |
Expand Down
16 changes: 9 additions & 7 deletions products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,20 @@ overrides: !ruby/object:Overrides::ResourceOverrides
properties:
id: !ruby/object:Overrides::Terraform::PropertyOverride
exclude: true
allowed: !ruby/object:Overrides::Terraform::PropertyOverride
allowed: !ruby/object:Overrides::Terraform::PropertyOverride
name: 'allow'
is_set: true
set_hash_func: 'resourceComputeFirewallRuleHash'
allowed.ip_protocol: !ruby/object:Overrides::Terraform::PropertyOverride
name: 'protocol'
denied: !ruby/object:Overrides::Terraform::PropertyOverride
denied: !ruby/object:Overrides::Terraform::PropertyOverride
name: 'deny'
is_set: true
set_hash_func: 'resourceComputeFirewallRuleHash'
denied.ip_protocol: !ruby/object:Overrides::Terraform::PropertyOverride
name: 'protocol'
destinationRanges: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
is_set: true
default_from_api: true
direction: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
Expand All @@ -265,14 +265,14 @@ overrides: !ruby/object:Overrides::ResourceOverrides
validation: !ruby/object:Provider::Terraform::Validation
function: 'validation.IntBetween(0, 65535)'
sourceRanges: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
is_set: true
default_from_api: true
sourceTags: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
is_set: true
sourceServiceAccounts: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
is_set: true
targetServiceAccounts: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
is_set: true
targetTags: !ruby/object:Overrides::Terraform::PropertyOverride
is_set: true
ForwardingRule: !ruby/object:Overrides::Terraform::ResourceOverride
Expand Down Expand Up @@ -498,6 +498,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
diff_suppress_func: 'compareSelfLinkOrResourceName'
interconnect: !ruby/object:Overrides::Terraform::PropertyOverride
diff_suppress_func: 'compareSelfLinkOrResourceName'
type: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "interconnect_attachment_basic"
Expand Down

0 comments on commit 0ed1edd

Please sign in to comment.