Skip to content

Commit

Permalink
Reenable peering conns
Browse files Browse the repository at this point in the history
  • Loading branch information
Khyme committed Jan 24, 2024
1 parent 80b812e commit aabef48
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 161 deletions.
25 changes: 25 additions & 0 deletions docs/resources/vpcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,32 @@ description: |-
- `created` (String)
- `error_message` (String)
- `id` (Number) The ID of this resource.
- `peering_connections` (Attributes List) (see [below for nested schema](#nestedatt--peering_connections))
- `project_id` (String)
- `provisioned_id` (String)
- `status` (String)
- `updated` (String)

<a id="nestedatt--peering_connections"></a>
### Nested Schema for `peering_connections`

Optional:

- `peer_vpc` (Object) (see [below for nested schema](#nestedatt--peering_connections--peer_vpc))

Read-Only:

- `error_message` (String)
- `id` (Number)
- `status` (String)
- `vpc_id` (String)

<a id="nestedatt--peering_connections--peer_vpc"></a>
### Nested Schema for `peering_connections.peer_vpc`

Read-Only:

- `account_id` (String)
- `cidr` (String)
- `id` (String)
- `region_code` (String)
12 changes: 12 additions & 0 deletions internal/client/queries/create_vpc.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ mutation CreateVPC($projectId: ID!, $name: String!, $cidr: String!, $regionCode:
name
created
updated
peeringConnections {
id
vpcId
peerVpc {
id
accountId
regionCode
cidr
}
errorMessage
status
}
errorMessage
status
regionCode
Expand Down
23 changes: 12 additions & 11 deletions internal/client/queries/vpc_by_id.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
name
created
updated
# peeringConnections {
# vpcId
# peerVpc {
# id
# accountId
# regionCode
# cidr
# }
# errorMessage
# status
# }
peeringConnections {
id
vpcId
peerVpc {
id
accountId
regionCode
cidr
}
errorMessage
status
}
errorMessage
status
regionCode
Expand Down
23 changes: 12 additions & 11 deletions internal/client/queries/vpc_by_name.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ query GetVPCByName($projectId: ID!, $name: String!) {
name
created
updated
# peeringConnections {
# vpcId
# peerVpc {
# id
# accountId
# regionCode
# cidr
# }
# errorMessage
# status
# }
peeringConnections {
id
vpcId
peerVpc {
id
accountId
regionCode
cidr
}
errorMessage
status
}
errorMessage
status
regionCode
Expand Down
1 change: 1 addition & 0 deletions internal/client/queries/vpcs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
created
updated
peeringConnections {
id
vpcId
peerVpc {
id
Expand Down
Loading

0 comments on commit aabef48

Please sign in to comment.