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

google_dns_managed_zone: add zone ID attribute #12301

Closed
wants to merge 1 commit into from
Closed

google_dns_managed_zone: add zone ID attribute #12301

wants to merge 1 commit into from

Conversation

seh
Copy link

@seh seh commented Aug 11, 2022

In the data source for DNS managed zones, include a new "managed_zone_id" attribute reporting the zone's ID, matching the corresponding google_dns_managed_zone resource's output attribute with the same name.

While we're here, revise the order in which we transcribe the fields from the fetched object to the data source's attributes to match the declaration order in the schema.

Fixes #7128.

In the data source for DNS managed zones, include a new
"managed_zone_id" attribute reporting the zone's ID, matching the
corresponding "google_dns_managed_zone" resource's output attribute
with the same name.

While we're here, revise the order in which we transcribe the fields
from the fetched object to the data source's attributes to match the
declaration order in the schema.
@github-actions
Copy link

** WARNING **: This repository is generated by https://github.com/GoogleCloudPlatform/magic-modules. Any changes made directly to this repository will likely be overwritten. If you have further questions, please feel free to ping your reviewer or, internal employees, reach out to one of the engineers. Thank you!

@github-actions github-actions bot requested a review from ScottSuarez August 11, 2022 14:47
@seh
Copy link
Author

seh commented Aug 11, 2022

Well, now I feel silly having posted this patch here, but it's not clear to me how one tells MagicModules that this "managedZoneId" field should be included in the generated Terraform data source too.

@ScottSuarez
Copy link
Collaborator

hi @seh

You can make the change here in the other repository. Just make sure to enhance whatever tests to ensure your change works !

@seh
Copy link
Author

seh commented Aug 12, 2022

You can make the change here in the other repository.

Oh, that looks much more like what I expected to have to change. I didn't think to look around in that mmv1/third_party directory.

Do you have any objection to the intention of the change? I assume that this proposed attribute's omission was unintentional.

@ScottSuarez
Copy link
Collaborator

ScottSuarez commented Aug 15, 2022

The change makes sense to me~ !
I think it's a good idea to sync up the data source with the resource.

For context this was likely added by a community contributor a long time ago. The datasource could have either drifted away from the resource as it evolved or the not been completely mirrored due to the contributor specifically fulfilling their own requirements (which is okay and expected).

@seh
Copy link
Author

seh commented Aug 15, 2022

Please see GoogleCloudPlatform/magic-modules#6406.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add DNS Managed Zone ID
2 participants