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

Add support for Access Context Manager product, AccessPolicy resource #96

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

modular-magician
Copy link
Collaborator

log.Printf("[DEBUG] Updating AccessPolicy %q: %#v", d.Id(), obj)
updateMask := []string{}

if d.HasChange("parent") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments at https://cloud.google.com/access-context-manager/docs/reference/rest/v1beta/accessPolicies make me think that parent can't be changed. Have you tried, by any chance?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's can't! It's input in MM, so it's ForceNew in the schema. This is an existing issue; see Filestore Instance networks as well.

I tried changing this by filtering input fields, and it's a little more nuanced than I'd hoped; afaik (based on testing like... 3 resources) it works as intended for resources that use PATCH, but it breaks some resources that use PUT. In the scope of this PR, I'd like to cite prior art since this won't have any effect on users, and I'll work out a separate PR to clean up the fields we send on Update as a followup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants