feat: support JSON file input for API Hub deployment create/update (#680, #698)#722
Open
saiflayouni wants to merge 1 commit into
Open
feat: support JSON file input for API Hub deployment create/update (#680, #698)#722saiflayouni wants to merge 1 commit into
saiflayouni wants to merge 1 commit into
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
…pigee#680, apigee#698) - Add `CreateDeploymentFromFile` and `UpdateDeploymentFromFile` to the hub client to POST/PATCH raw JSON, which allows any attribute supported by the API - Add `--file`/`-f` flag to `apigeecli apihub deployments create` and `update` - When `--file` is provided the individual field flags are ignored, enabling users to pass custom attributes that have no dedicated flags
saiflayouni
force-pushed
the
fix/apihub-deployment-from-file
branch
from
July 1, 2026 14:41
c191f87 to
3494ae8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--file/-fflag to bothapigeecli apihub deployments createandupdate--fileis set, the command reads raw JSON from the file and POSTs/PATCHes it directly, bypassing individual field flagshub.CreateDeploymentFromFileandhub.UpdateDeploymentFromFileto the hub client packageTest plan
apigeecli apihub deployments create --file deployment.jsoncreates the deployment using the file bodyapigeecli apihub deployments update --id <id> --file deployment.jsonpatches using the file body--fileis not setCloses #680, #698
🤖 Generated with Claude Code