Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0437444
create extension, update examples, remove import/export commands
arpishahmsft Oct 27, 2023
f9b1893
import export spec inline and remove version from examples
arpishahmsft Nov 7, 2023
8d872cd
import export spec - remove redundant az
arpishahmsft Nov 7, 2023
599a6be
auto lro poller and check import spec size for inlne option via comma…
arpishahmsft Nov 7, 2023
0544d1f
import export spec using a json file, link to json and commandline
arpishahmsft Nov 8, 2023
2ef6c9e
import json with any encdoing, auto indent json on export
arpishahmsft Nov 10, 2023
6569552
quick add working, not apim import
arpishahmsft Nov 14, 2023
b109ecc
quick add - fix envId bug
arpishahmsft Nov 15, 2023
4401bda
export metadata schema to a file customized
arpishahmsft Nov 20, 2023
4d8c5da
exmples export schema and create env
arpishahmsft Nov 20, 2023
41d4ccc
move quick add in api and remove redundant exmaple unicode
arpishahmsft Nov 20, 2023
9a6d0dd
add tests
arpishahmsft Nov 22, 2023
dd5ee3e
update metadata schema and additional tests
arpishahmsft Nov 23, 2023
b68051e
Merge branch 'Azure:main' into feature-arpishah/25282500-Extension
arpishahmsft Nov 23, 2023
8437ff0
improve code style
arpishahmsft Nov 24, 2023
e9765af
Merge branch 'feature-arpishah/25282500-Extension' of https://github.…
arpishahmsft Nov 24, 2023
ace20d6
fix local linting issues
arpishahmsft Nov 27, 2023
adba54c
remove default from update
arpishahmsft Nov 27, 2023
3e684ec
style flake corrections
arpishahmsft Nov 28, 2023
83fae12
remove default ws value from workspace update
arpishahmsft Nov 28, 2023
0f77828
Added help for api register command
arpishahmsft Nov 28, 2023
22e8b3f
Add APIC Seevice name in global fille
arpishahmsft Nov 28, 2023
a1c1e99
fx flake style error
arpishahmsft Nov 28, 2023
5e13cd3
add readme for extension
arpishahmsft Nov 28, 2023
e6af95f
update title of readme
arpishahmsft Nov 28, 2023
acec155
one more linter error
arpishahmsft Nov 28, 2023
ca2baa3
updated log line and tests
arpishahmsft Nov 29, 2023
ea8db47
change print statement to logger
arpishahmsft Nov 29, 2023
0ceb053
use logger warning
arpishahmsft Nov 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

/src/subscription/ @wilcobmsft

/src/apic-extension/ @arpishahmsft

/src/alias/ @Juliehzl

/src/managementpartner/ @jeffrey-ace
Expand Down
8 changes: 8 additions & 0 deletions src/apic-extension/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

Release History
===============

1.0.0b1
++++++
* Initial release.
5 changes: 5 additions & 0 deletions src/apic-extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Azure CLI ApicExtension Extension #
This is an extension to Azure CLI to manage ApicExtension resources.

## How to use ##
Comment thread
arpishahmsft marked this conversation as resolved.
Outdated
Please add commands usage here.
42 changes: 42 additions & 0 deletions src/apic-extension/azext_apic_extension/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_apic_extension._help import helps # pylint: disable=unused-import


class ApicExtensionCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_apic_extension.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_apic_extension.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_apic_extension._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = ApicExtensionCommandsLoader
11 changes: 11 additions & 0 deletions src/apic-extension/azext_apic_extension/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=line-too-long
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import
39 changes: 39 additions & 0 deletions src/apic-extension/azext_apic_extension/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=too-many-lines
# pylint: disable=too-many-statements


def load_arguments(self, _): # pylint: disable=unused-argument

with self.argument_context("apic api register") as c:
c.argument(
"api_location",
options_list=['--api-location', '-l'],
help="Specification file",
required=True,
)
c.argument(
"resource_group",
options_list=['--resource-group', '-g'],
help="Resource group name",
required=True,
)
c.argument(
"service_name",
options_list=['--service', '-s'],
help="Service name",
required=True,
)
c.argument(
"environment_name",
options_list=['--environment-name', '-e'],
help="Environemnt name",
required=False,
)

6 changes: 6 additions & 0 deletions src/apic-extension/azext_apic_extension/aaz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"apic",
)
class __CMDGroup(AAZCommandGroup):
"""API Center
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"apic api",
)
class __CMDGroup(AAZCommandGroup):
"""API
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._head import *
from ._list import *
from ._show import *
from ._update import *
Loading