Skip to content

Commit 7f9035b

Browse files
build: apic-extension 1.2.0b1 release (Azure#8411)
* build: add cicd pipeline (#7) * build: move update version logic to workflow (#8) * build: Run CI on multiple python version (Azure#38) * build: Run CI in Python 3.8-3.11 * build: remove pull request event for CI to avoid duplicate runs * feat: enable openapi spec from url in api register (Azure#74) * feat: enable openapi spec from url in api register * refactor: set spec definition as link format when link provided * fix: fix style * test: add error handling case for testing invalid spec url * fix: fix test case * fix: use 404 response url * test: update case * test: update test case * refactor: update error logic * test: update test case to setup live test pipeline (Azure#76) * test: update test case to setup live test pipeline (Azure#75) * test: update test case * update * . * . * . * . * . * . * . * . * . * . * . * test: update test case * refactor: enable both identity * fix: bad if else * fix: fix bad parameter * refactor: add example (Azure#77) * refactor: add example * fix: update params * fix: bad api id * refactor: add @filename.json examples (Azure#78) * refactor: add example * fix: update params * fix: bad api id * refactor: add @filename.json examples * refactor: update * refactor: add error handling (Azure#79) * refactor: add error handling * refactor: catch internal error * fix: revert the change * feat: support APIM/APIC sync (Azure#80) * feat: add APIM/APIC sync commands * feat: rename apim to azure-api-management * style: fix code style * fix: sync property names with new API spec * Revert "fix: sync property names with new API spec" This reverts commit 04da67e. --------- Co-authored-by: frankqianms <[email protected]> * feat: resolve feedback and fix examples (Azure#82) * feat: resolve feedback and fix examples * style: fix code style * feat: amazon api gateway sync (Azure#81) * feat: add APIM/APIC sync commands * feat: rename apim to azure-api-management * style: fix code style * fix: sync property names with new API spec * feat: add aws api gateway sync command * Revert "fix: sync property names with new API spec" This reverts commit 04da67e. * refactor: add amazonApiGatewaySource * refactor: refactoring apim sync and amazon sync * refactor: refactor cmd structure to make apim and aws sync seperated * fix: remove log print * chore: generate new cmds * refactor: update version and remove import * feat: add `apic integration create amazon-api-gateway` * fix: style * fix: change query param api-version * revert changes in _delete.py * fix: some neede fixs * fix: add the help sentence * refactor: make params clear * refactor: handle msi-resource-id * refacor: revert flatten of apim resource * fix: use 06-01-preiew currently * fix: style * refactor: arg groups * fix: bad short param name * chore: re-generate * fix: old resource_id name * chore: arg group * chore: naming * fix: fix according to comments * chore: update * fix: style --------- Co-authored-by: Chaoyi Yuan <[email protected]> * feat: add import amazon-api-gateway cmd (Azure#83) * feat: add import amazon-api-gateway cmd * feat: change arg group and update parameter name --------- Co-authored-by: Chaoyi Yuan <[email protected]> * fix: use older version API (Azure#84) * feat: rename command and param names (Azure#85) * feat: rename command and param names * doc: update comments * doc: update sample * test: add test case for sync cmd `apic integration create apim` and `apic integration create aws` (Azure#86) * test: add test case for apim sync * refactor: refactor for apim preparer * refactor: refactoring case and utils, optimize checkers * chore: remove print and add explaination * refactor: rename file * fix: try to fix error determing the version * revert: Remove specific azure-cli and azure-core installations * test: add aws sync testcase (Azure#87) * test: add test case for aws sync command * fix: remove key value * fix: remove pip install * chore: renaming constants * refactor: update the utils and test case * refactor: updated * fix: workaround for urllib3 package (Azure#88) * Revert "fix: workaround for urllib3 package (Azure#88)" (Azure#90) This reverts commit 1d508f4. * build: 1.2.0 beta 1 release * build: remove CI and CD files * doc: improve history * fix: set extention version to be preview * refactor: integration examples and bad example for `apic update` (Azure#91) * refactor: integration examples * fix: apic update example * chore: update log * test: add import-aws case and modify region --------- Co-authored-by: Chaoyi Yuan <[email protected]> Co-authored-by: Chaoyi Yuan <[email protected]>
1 parent a7eed35 commit 7f9035b

39 files changed

+4906
-4154
lines changed

src/apic-extension/HISTORY.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
33
Release History
44
===============
55

6+
1.2.0b1
7+
++++++++++++++++++
8+
9+
**New Features:**
10+
11+
* Added new command ``az apic integration create`` to manage integrations in Azure API Center.
12+
* Added ``az apic integration create apim`` to manage Azure API Management integrations as an API source.
13+
* Added ``az apic integration create aws`` to manage Amazon API Gateway as an API source.
14+
* Added new command ``az apic import aws`` to import an API from an Amazon API Gateway instance.
15+
* Added url option for ``--api-location`` parameter in ``az apic api register`` command.
16+
17+
**Updates:**
18+
19+
* Added examples for using ``@filename`` syntax in several commands' help documentations.
20+
* Improved error messages for the ``az apic api register`` command.
21+
22+
**Fixes:**
23+
24+
* Corrected the example for ``az apic update`` command.
25+
* Fixed an expired link in ``az apic api definition import-specification`` command's help documentation.
26+
627
1.1.0
728
++++++++++++++++++
829

src/apic-extension/azext_apic_extension/_help.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@
3131
text: |
3232
az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.json" --environment-id public
3333
az apic api register -g api-center-test -n contosoeuap --api-location "examples/cli-examples/spec-examples/openai.yml" --environment-id public
34+
- name: Register api by providing spec url.
35+
text: |
36+
az apic api register -g api-center-test -n contosoeuap --api-location "https://petstore.swagger.io/v2/swagger.json" --environment-id public
37+
az apic api register -g api-center-test -n contosoeuap --api-location "https://petstore.swagger.io/v2/swagger.yaml" --environment-id public
3438
"""

src/apic-extension/azext_apic_extension/aaz/latest/apic/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .__cmd_group import *
1212
from ._create import *
1313
from ._delete import *
14+
from ._import import *
1415
from ._import_from_apim import *
1516
from ._list import *
1617
from ._show import *

0 commit comments

Comments
 (0)