Skip to content

Commit

Permalink
Updated api version of providerhub cli to 2024-04-01-preview (#7691)
Browse files Browse the repository at this point in the history
* new version of providerhub cli

* change uri to management.azure.com

* update provider reg create test

* update provider reg delete

* update operations type

* delete other test file

* updates from release suggestions

* remove generated folder

* Clean up codes

* fix style and test

* fix linter issues

* .\.azure-pipelines\

* fix linter issues

* fix linter issues

* add in examples

* Example fix

* Update setup.py

---------

Co-authored-by: kai ru <[email protected]>
Co-authored-by: kai ru <[email protected]>
  • Loading branch information
3 people committed Jun 27, 2024
1 parent 3c46e59 commit c099c40
Show file tree
Hide file tree
Showing 202 changed files with 77,448 additions and 24,193 deletions.
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

0 comments on commit c099c40

Please sign in to comment.