Skip to content

Commit

Permalink
Add server-side identifier to Forwarding_Rule (GoogleCloudPlatform#11446
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ScottSuarez authored Aug 14, 2024
1 parent 8400c36 commit dd70d1c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mmv1/products/compute/ForwardingRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,12 @@ properties:
This can only be set to true for load balancers that have their
`loadBalancingScheme` set to `INTERNAL`.
- !ruby/object:Api::Type::Integer
name: 'forwardingRuleId'
description: |
The unique identifier number for the resource. This identifier is defined by the server.
api_name: id
output: true
- !ruby/object:Api::Type::String
name: 'pscConnectionId'
description: 'The PSC connection id of the PSC Forwarding Rule.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ func TestAccComputeForwardingRule_forwardingRuleIpAddressIpv6(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccComputeForwardingRule_forwardingRuleIpAddressIpv6(context),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet(
"google_compute_forwarding_rule.external", "forwarding_rule_id"),
),
},
{
ResourceName: "google_compute_forwarding_rule.external",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ func TestAccComputeForwardingRule_forwardingRuleIpAddressIpv6(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccComputeForwardingRule_forwardingRuleIpAddressIpv6(context),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet(
"google_compute_forwarding_rule.external", "forwarding_rule_id"),
),
},
{
ResourceName: "google_compute_forwarding_rule.external",
Expand Down

0 comments on commit dd70d1c

Please sign in to comment.