Skip to content
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

Updated api version of providerhub cli to 2024-04-01-preview #7691

Merged
merged 18 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
40 changes: 17 additions & 23 deletions src/providerhub/azext_providerhub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,36 @@
# pylint: disable=super-with-arguments

from azure.cli.core import AzCommandsLoader
from azext_providerhub.generated._help import helps # pylint: disable=unused-import
try:
from azext_providerhub.manual._help import helps # pylint: disable=reimported
except ImportError:
pass


class ProviderHubCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_providerhub.generated._client_factory import cf_providerhub_cl
providerhub_custom = CliCommandType(
operations_tmpl='azext_providerhub.custom#{}',
client_factory=cf_providerhub_cl)
parent = super(ProviderHubCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=providerhub_custom)
custom_command_type = CliCommandType(
operations_tmpl='azext_providerhub.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

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

def load_arguments(self, command):
from azext_providerhub.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_providerhub.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass
from azext_providerhub._params import load_arguments
load_arguments(command)


COMMAND_LOADER_CLS = ProviderHubCommandsLoader
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines
13 changes: 13 additions & 0 deletions src/providerhub/azext_providerhub/_params.py
Original file line number Diff line number Diff line change
@@ -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(_): # pylint: disable=unused-argument
pass
6 changes: 6 additions & 0 deletions src/providerhub/azext_providerhub/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
@@ -1,10 +1,10 @@
# coding=utf-8
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from ._provider_hub import ProviderHub
__all__ = ['ProviderHub']
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(
"providerhub",
)
class __CMDGroup(AAZCommandGroup):
"""Manage resources with ProviderHub.
"""
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(
"providerhub authorized-application",
)
class __CMDGroup(AAZCommandGroup):
"""Manage authorized application with providerhub.
"""
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 ._list import *
from ._show import *
from ._update import *
from ._wait import *
Loading
Loading