-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: Enable API Hub #485
feat: Enable API Hub #485
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: Non enum attribute appears to need the --allowed-values
gorun --org=$ORG --region=us-central1 apihub attributes create \
--id=apigeecli-string \
--display-name="Apigee CLI Simple" \
--description="Example simple attribute" \
--data-type=STRING \
--scope=DEPLOYMENT
Error: open : no such file or directory
exit status 1
Adding --allowed-values=enum_values.txt gets it to work
Creating attribute with immutable fails, if removed works.
File for enums
|
gorun --org=$ORG --region=us-central1 apihub apis update --id=apigeecli-api-v1 --file=apigeecli-api-v1.json
Update requires displayName and owner. Update does not update apiStyle
|
create and update use --id |
Help for apihub apis versions create shows: Should be Path to a file containing the API version definition |
Got past apis, versions and looking at specs. gorun --org=$ORG --region=us-central1 apihub apis versions specs get --api-id=apigeecli-api-v1 --version=v1_0 --spec-id=apigeecli-api-v1-spec-id --contents |
Incorrect help for create and delete
|
The UI may be forcing the user to select an API Version, however, the API does not. Deployments are set on the API Version and the other way around. I think the UI is orchestrating two API calls. 1) Create a deployment 2) Update the API Version with the Deployment that was created. Here is a command to create a deployment:
For automation, I would use
and use that variable in subsequent commands. |
Hmmm, yes, when I use the API to create a deployment and I give it a version, it doesn't use it. |
I see deployments update was added. Added that and tested, update command uses --name it should use --id like get and delete does. |
Pushed changes for deployments update and externalapis |
This works for apihub apis versions create --id=v1_0_0_0 --api-id=apigeecli-api-v1 --file=apihub/apigee-cli-v1-version.json
Update uses --id, but get and delete use --version, should be --id for all
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.