Skip to content

Commit

Permalink
fix: attribute names for google_cloud_ids_endpoint (#6712) (#12957)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Nov 7, 2022
1 parent e1c6c87 commit 3d8ad9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/6712.txt
@@ -0,0 +1,3 @@
```release-note:bug
cloudids: fix `endpoint_forwarding_rule` and `endpoint_ip` attributes for `google_cloud_ids_endpoint`
```
14 changes: 7 additions & 7 deletions google/resource_cloud_ids_endpoint.go
Expand Up @@ -75,15 +75,15 @@ func resourceCloudIdsEndpoint() *schema.Resource {
Computed: true,
Description: `Creation timestamp in RFC 3339 text format.`,
},
"endpoint": {
"endpoint_forwarding_rule": {
Type: schema.TypeString,
Computed: true,
Description: `Internal IP address of the endpoint's network entry point.`,
Description: `URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.`,
},
"endpoint_forwarding_rule": {
"endpoint_ip": {
Type: schema.TypeString,
Computed: true,
Description: `URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.`,
Description: `Internal IP address of the endpoint's network entry point.`,
},
"update_time": {
Type: schema.TypeString,
Expand Down Expand Up @@ -243,10 +243,10 @@ func resourceCloudIdsEndpointRead(d *schema.ResourceData, meta interface{}) erro
if err := d.Set("description", flattenCloudIdsEndpointDescription(res["description"], d, config)); err != nil {
return fmt.Errorf("Error reading Endpoint: %s", err)
}
if err := d.Set("endpoint_forwarding_rule", flattenCloudIdsEndpointEndpointForwardingRule(res["endpoint_forwarding_rule"], d, config)); err != nil {
if err := d.Set("endpoint_forwarding_rule", flattenCloudIdsEndpointEndpointForwardingRule(res["endpointForwardingRule"], d, config)); err != nil {
return fmt.Errorf("Error reading Endpoint: %s", err)
}
if err := d.Set("endpoint", flattenCloudIdsEndpointEndpoint(res["endpoint"], d, config)); err != nil {
if err := d.Set("endpoint_ip", flattenCloudIdsEndpointEndpointIp(res["endpointIp"], d, config)); err != nil {
return fmt.Errorf("Error reading Endpoint: %s", err)
}
if err := d.Set("severity", flattenCloudIdsEndpointSeverity(res["severity"], d, config)); err != nil {
Expand Down Expand Up @@ -348,7 +348,7 @@ func flattenCloudIdsEndpointEndpointForwardingRule(v interface{}, d *schema.Reso
return v
}

func flattenCloudIdsEndpointEndpoint(v interface{}, d *schema.ResourceData, config *Config) interface{} {
func flattenCloudIdsEndpointEndpointIp(v interface{}, d *schema.ResourceData, config *Config) interface{} {
return v
}

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cloud_ids_endpoint.html.markdown
Expand Up @@ -105,7 +105,7 @@ In addition to the arguments listed above, the following computed attributes are
* `endpoint_forwarding_rule` -
URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.

* `endpoint` -
* `endpoint_ip` -
Internal IP address of the endpoint's network entry point.


Expand Down

0 comments on commit 3d8ad9e

Please sign in to comment.