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 ApigeeOrganization update response type. #20854

Conversation

modular-magician
Copy link
Collaborator

Fixes #15947.

This PR fixes the ApigeeOrganization update response type according to the public documentation.

The issue is related to the fact that after requesting the update to ApigeeOrganization here, the provider expects that the response will contain the Operation details to then wait for the Operation to complete here. Unlike Organization create request, which returns Operation, the update response is an Organization instance according to the public docs, meaning that the ApigeeOperationWaitTime tries to process the Organization as Operation.

The Operation has a name key that is used to track its progress. However, the Organization also has a name key, that contains the name of the Organization. That's why the users see a weird apigee.googleapis.com/v1/<org-name>?alt=json GET request in a linked GitHub issue. In that case, the ApigeeOperationWaitTime interprets <org-name> as the operation name.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

apigee: fixed error 404 for `organization` update requests.

Derived from GoogleCloudPlatform/magic-modules#12413

[upstream:c13527da2aa99b71b95202d8d5ac72fafa0aea5c]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician requested a review from a team as a code owner January 8, 2025 19:28
@modular-magician modular-magician merged commit 3202217 into hashicorp:main Jan 8, 2025
4 checks passed
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.

Error updating apigee organization
1 participant