Skip to content

Commit ca5a836

Browse files
feat: expose the numeric id attribute as generated_id for the google_compute_network_endpoint_group (#13914)
Co-authored-by: Scott Suarez <ScottSuarez@google.com>
1 parent db88cf8 commit ca5a836

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mmv1/products/compute/NetworkEndpointGroup.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,9 @@ properties:
143143
description: |
144144
The default port used if the port number is not specified in the
145145
network endpoint.
146+
- name: 'generated_id'
147+
type: Integer
148+
api_name: 'id'
149+
output: true
150+
description: |
151+
The uniquely generated identifier for the resource. This identifier is defined by the server.

mmv1/third_party/terraform/services/compute/data_source_compute_network_endpoint_group_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ func testAccDataSourceComputeNetworkEndpointGroupCheck(data_source_name string,
6161
)
6262
}
6363
}
64+
65+
if v, ok := ds_attr["generated_id"]; !ok || v == "" {
66+
return fmt.Errorf("generated_id is not set")
67+
}
68+
6469
return nil
6570
}
6671
}

0 commit comments

Comments
 (0)