Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f6509b6
Azure-Fllet CLI generation.
rahuls-microsoft Oct 18, 2024
ea41620
Adding ComputeFleet CLI files.
rahuls-microsoft Oct 18, 2024
29ab46a
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 19, 2024
f0ea798
Merge branch 'Azure:dev' into computefleet
rahuls-microsoft Oct 19, 2024
110ceb8
Az Fleet test generated by copilot and recordings.
rahuls-microsoft Oct 20, 2024
d4b0a0d
Test code generated by copilot using .net test code.
rahuls-microsoft Oct 20, 2024
fd14331
Update Tests and default parameters.
rahuls-microsoft Oct 21, 2024
9f8ab3f
Update Tests and default parameters. And Recordings.
rahuls-microsoft Oct 22, 2024
30e8ae0
Test Updates.
rahuls-microsoft Oct 22, 2024
840c67e
Merge branch 'dev' of https://github.com/Azure/azure-cli into dev
rahuls-microsoft Oct 22, 2024
23384fb
Test Updates.
rahuls-microsoft Oct 22, 2024
293c94b
Updates to call create with multiple params.
rahuls-microsoft Oct 22, 2024
c966088
Updated cmd with all options.
rahuls-microsoft Oct 22, 2024
ed43b9c
No Op
rahuls-microsoft Oct 22, 2024
d7867bf
Updates to test
rahuls-microsoft Oct 22, 2024
5aab668
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 22, 2024
414fc77
remove old recording.
rahuls-microsoft Oct 22, 2024
8d60ba8
Update test and recordings, setup.
rahuls-microsoft Oct 22, 2024
130c99c
Updates to tests.
rahuls-microsoft Oct 23, 2024
3a573cf
commands.py update.
rahuls-microsoft Oct 23, 2024
a894600
Merge branch 'fleet' of https://github.com/rahuls-microsoft/azure-cli…
rahuls-microsoft Oct 23, 2024
7690904
Merge branch 'Azure:dev' into computefleet
rahuls-microsoft Oct 23, 2024
5612511
Merge branch 'Azure:dev' into fleet
rahuls-microsoft Oct 23, 2024
b87d827
Merge branch 'Azure:dev' into dev
rahuls-microsoft Oct 23, 2024
03c9eef
Merge branch 'dev' into fleet
rahuls-microsoft Oct 23, 2024
c334159
Merge branch 'dev' into computefleet
rahuls-microsoft Oct 23, 2024
35d0560
Config updates.
rahuls-microsoft Oct 23, 2024
2b2233c
Merge branch 'fleet' into computefleet
rahuls-microsoft Oct 23, 2024
5a74d61
Updates.
rahuls-microsoft Oct 23, 2024
ca62551
Config updtes.
rahuls-microsoft Oct 24, 2024
5e80c72
Updates.
rahuls-microsoft Oct 24, 2024
3fad900
Test update.
rahuls-microsoft Oct 24, 2024
92add65
Test Recordings
rahuls-microsoft Oct 24, 2024
706d99f
Remove local files.
rahuls-microsoft Oct 24, 2024
fc36a68
Updates based on Github CoPilot suggestions
rahuls-microsoft Oct 24, 2024
3b2cd4d
updates
rahuls-microsoft Oct 28, 2024
83c1524
Update cmd to - az azure-fleet list-vmss
rahuls-microsoft Oct 28, 2024
3e611dc
Adding list_vmss cmd reference and tests.
rahuls-microsoft Oct 28, 2024
4f5b055
Update the - az azure-fleet fleet update API example
rahuls-microsoft Oct 29, 2024
377fe33
Adding MGMT_COMPUTEFLEET to _shared.py.
rahuls-microsoft Oct 29, 2024
8cf3f6a
Updates based on Github Copilot and docs to add MGMT_COMPUTEFLEET in…
rahuls-microsoft Oct 29, 2024
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 src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_CUSTOMLOCATION = ('azure.mgmt.extendedlocation', 'CustomLocations')
MGMT_CONTAINERSERVICE = ('azure.mgmt.containerservice', 'ContainerServiceClient')
MGMT_APPCONTAINERS = ('azure.mgmt.appcontainers', 'ContainerAppsAPIClient')
MGMT_COMPUTEFLEET = ('azure.mgmt.computefleet', 'ComputeFleetManagementClient')

# the "None" below will stay till a command module fills in the type so "get_mgmt_service_client"
# can be provided with "ResourceType.XXX" to initialize the client object. This usually happens
Expand Down Expand Up @@ -202,6 +203,7 @@ def default_api_version(self):
'cache_rules': '2023-01-01-preview',
'credential_sets': '2023-01-01-preview'
}),
ResourceType.MGMT_COMPUTEFLEET: '2024-11-01',
# The order does make things different.
# Please keep ResourceType.DATA_KEYVAULT_KEYS before ResourceType.DATA_KEYVAULT
ResourceType.DATA_KEYVAULT_CERTIFICATES: None,
Expand Down
44 changes: 44 additions & 0 deletions src/azure-cli/azure/cli/command_modules/azure_fleet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# --------------------------------------------------------------------------------------------
# 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 azure.cli.command_modules.azure_fleet._help import helps # pylint: disable=unused-import
# from azure.cli.core.profiles import ResourceType # required when using python sdk


class AzureFleetCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azure.cli.command_modules.azure_fleet.custom#{}')
super().__init__(cli_ctx=cli_ctx,
# resource_type=ResourceType.XXX # required when using python sdk
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azure.cli.command_modules.azure_fleet.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 azure.cli.command_modules.azure_fleet._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = AzureFleetCommandsLoader
11 changes: 11 additions & 0 deletions src/azure-cli/azure/cli/command_modules/azure_fleet/_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
13 changes: 13 additions & 0 deletions src/azure-cli/azure/cli/command_modules/azure_fleet/_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(self, _): # pylint: disable=unused-argument
pass
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,10 @@
# --------------------------------------------------------------------------------------------
# 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

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# --------------------------------------------------------------------------------------------
# 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(
"azure-fleet",
)
class __CMDGroup(AAZCommandGroup):
"""Operations for Azure Compute Fleet

Operations for Azure Compute Fleet
"""
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,25 @@
# --------------------------------------------------------------------------------------------
# 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(
"azure-fleet fleet",
)
class __CMDGroup(AAZCommandGroup):
"""Create, Update, Delete, Get, List Azure Compute Fleet

Create, Update, Delete, Get, List Azure Compute Fleet
"""
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