Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: attribute names for google_cloud_ids_endpoint #12957

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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