Skip to content

Conversation

@slevenick
Copy link
Contributor

Depends on PATCH as create and excluding delete, hardcodes updateMask=* into the create URL which matches AIP-134

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@slevenick slevenick requested a review from c2thorn January 2, 2026 19:40
Copy link
Member

@c2thorn c2thorn left a comment

Choose a reason for hiding this comment

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

looks good overall, asked some questions but nothing that should be blocking

did you have a resource you were testing this against, or at least have a generated example yaml

resource := buildResource(filePath, name, resource, doc)
if resource.update == nil {
continue
}
Copy link
Member

Choose a reason for hiding this comment

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

so at this point we are following part 1 of https://googlecloudplatform.github.io/magic-modules/best-practices/common-resource-patterns/

I assume an acquire-on-create template would be possible for singletons, but this primary issue is actually detecting singletons with create endpoints in the first place? Would this be a possible extension later?

resource.Async.Actions = append(resource.Async.Actions, "update")
}

resource.ExcludeDelete = true
Copy link
Member

Choose a reason for hiding this comment

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

this is an important singleton-specific inclusion, would it be worth having a comment in the generated yaml pointing to it, or at least any meta indicator of a singleton resource in the generated file at all? We could even slap something into ye olde resource object?

Copy link
Member

Choose a reason for hiding this comment

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

I suppose somehow we want to indicate to the implementer that we have identified their resource as a singleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants