From 617327c2f9c74df155c081f3ee9003d290c169ce Mon Sep 17 00:00:00 2001 From: huiquanjiang Date: Thu, 4 Jul 2024 11:33:05 +0800 Subject: [PATCH] auto generated files --- src/acat/HISTORY.rst | 8 ++++ src/acat/README.md | 5 +++ src/acat/azext_acat/__init__.py | 42 +++++++++++++++++++++ src/acat/azext_acat/_help.py | 11 ++++++ src/acat/azext_acat/_params.py | 13 +++++++ src/acat/azext_acat/azext_metadata.json | 4 ++ src/acat/azext_acat/commands.py | 15 ++++++++ src/acat/azext_acat/custom.py | 14 +++++++ src/acat/setup.cfg | 1 + src/acat/setup.py | 49 +++++++++++++++++++++++++ src/service_name.json | 5 +++ 11 files changed, 167 insertions(+) create mode 100644 src/acat/HISTORY.rst create mode 100644 src/acat/README.md create mode 100644 src/acat/azext_acat/__init__.py create mode 100644 src/acat/azext_acat/_help.py create mode 100644 src/acat/azext_acat/_params.py create mode 100644 src/acat/azext_acat/azext_metadata.json create mode 100644 src/acat/azext_acat/commands.py create mode 100644 src/acat/azext_acat/custom.py create mode 100644 src/acat/setup.cfg create mode 100644 src/acat/setup.py diff --git a/src/acat/HISTORY.rst b/src/acat/HISTORY.rst new file mode 100644 index 00000000000..079773a898b --- /dev/null +++ b/src/acat/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +1.0.0b1 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/acat/README.md b/src/acat/README.md new file mode 100644 index 00000000000..894220a5313 --- /dev/null +++ b/src/acat/README.md @@ -0,0 +1,5 @@ +# Azure CLI Acat Extension # +This is an extension to Azure CLI to manage Acat resources. + +## How to use ## +Please add commands usage here. \ No newline at end of file diff --git a/src/acat/azext_acat/__init__.py b/src/acat/azext_acat/__init__.py new file mode 100644 index 00000000000..d2857c0d097 --- /dev/null +++ b/src/acat/azext_acat/__init__.py @@ -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_acat._help import helps # pylint: disable=unused-import + + +class AcatCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + custom_command_type = CliCommandType( + operations_tmpl='azext_acat.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) + + def load_command_table(self, args): + from azext_acat.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_acat._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = AcatCommandsLoader diff --git a/src/acat/azext_acat/_help.py b/src/acat/azext_acat/_help.py new file mode 100644 index 00000000000..72437e7e2ed --- /dev/null +++ b/src/acat/azext_acat/_help.py @@ -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 diff --git a/src/acat/azext_acat/_params.py b/src/acat/azext_acat/_params.py new file mode 100644 index 00000000000..dfff7baedf0 --- /dev/null +++ b/src/acat/azext_acat/_params.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# 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 + pass diff --git a/src/acat/azext_acat/azext_metadata.json b/src/acat/azext_acat/azext_metadata.json new file mode 100644 index 00000000000..a824ba80a23 --- /dev/null +++ b/src/acat/azext_acat/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.57.0" +} \ No newline at end of file diff --git a/src/acat/azext_acat/commands.py b/src/acat/azext_acat/commands.py new file mode 100644 index 00000000000..4c8525771b6 --- /dev/null +++ b/src/acat/azext_acat/commands.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# 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 + +# from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): # pylint: disable=unused-argument + pass diff --git a/src/acat/azext_acat/custom.py b/src/acat/azext_acat/custom.py new file mode 100644 index 00000000000..5bfa59e5329 --- /dev/null +++ b/src/acat/azext_acat/custom.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# 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 + +from knack.log import get_logger + + +logger = get_logger(__name__) diff --git a/src/acat/setup.cfg b/src/acat/setup.cfg new file mode 100644 index 00000000000..2fdd96e5d39 --- /dev/null +++ b/src/acat/setup.cfg @@ -0,0 +1 @@ +#setup.cfg \ No newline at end of file diff --git a/src/acat/setup.py b/src/acat/setup.py new file mode 100644 index 00000000000..d5433b5e313 --- /dev/null +++ b/src/acat/setup.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# 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 codecs import open +from setuptools import setup, find_packages + + +# HISTORY.rst entry. +VERSION = '1.0.0b1' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='acat', + version=VERSION, + description='Microsoft Azure Command-Line Tools Acat Extension.', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/main/src/acat', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_acat': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +) diff --git a/src/service_name.json b/src/service_name.json index e3c9f53941a..9af1f563768 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -1,4 +1,9 @@ [ + { + "Command":"az acat", + "AzureServiceName":"Azure App Compliance Automation Tool", + "URL":"https://learn.microsoft.com/en-us/microsoft-365-app-certification/docs/acat-overview" + }, { "Command": "az account", "AzureServiceName": "Azure CLI",