Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
645825c
Migrate vmware private-cloud show/create/update/delete/list
kairu-ms Aug 8, 2023
068e104
migrate vmware private-cloud list-admin-credential/rotate-vcenter-pas…
kairu-ms Aug 8, 2023
622b8a7
Migrate commands vmware private-cloud identity and enable-cmk-encrypt…
kairu-ms Aug 9, 2023
ea20144
migrate commands group 'vmware cluster'
kairu-ms Aug 9, 2023
0b68ad3
migrate commands group 'vmware authorization'
kairu-ms Aug 9, 2023
821019e
migrate commands group 'vmware hcx-enterprise-site'
kairu-ms Aug 9, 2023
61643e6
Optimize the confirmation prompt for vmware create command
kairu-ms Aug 10, 2023
2ebee1a
migrate commands group 'vmware location'
kairu-ms Aug 10, 2023
fa566a0
migrate commands group 'vmware datastore'
kairu-ms Aug 10, 2023
55dbf91
migrate commands group 'vmware addon'
kairu-ms Aug 11, 2023
dc59538
migrate commands group 'vmware global-reach-connection'
kairu-ms Aug 14, 2023
a13d2eb
migrate commands group 'vmware cloud-link'
kairu-ms Aug 14, 2023
7487758
migrate commands group 'vmware script-cmdlet'
kairu-ms Aug 14, 2023
0785228
migrate commands group 'vmware script-package'
kairu-ms Aug 14, 2023
89b73bb
migrate commands group 'vmware workload-network dhcp'
kairu-ms Aug 14, 2023
298b4b7
migrate commands group 'vmware workload-network dns-service'
kairu-ms Aug 15, 2023
1d81774
migrate commands group 'vmware workload-network dns-zone'
kairu-ms Aug 15, 2023
76b5c8f
migrate commands group 'vmware workload-network port-mirroring'
kairu-ms Aug 15, 2023
febbe61
migrate commands group 'vmware workload-network segment'
kairu-ms Aug 15, 2023
4c6c8f8
migrate commands group 'vmware workload-network public-ip'
kairu-ms Aug 15, 2023
68e7fde
migrate commands group 'vmware workload-network vm-group'
kairu-ms Aug 15, 2023
ec4b8dd
migrate commands group 'vmware workload-network vm'
kairu-ms Aug 15, 2023
a0da5a9
migrate commands group 'vmware workload-network gateway'
kairu-ms Aug 15, 2023
8d02596
migrate commands group 'vmware placement-policy'
kairu-ms Aug 15, 2023
45e25d0
migrate commands group 'vmware vm'
kairu-ms Aug 15, 2023
92d846d
Migrate vmware private-cloud identity-source
kairu-ms Aug 17, 2023
29dfbab
migrate command group 'vmware script-execution', except create command
kairu-ms Aug 17, 2023
68284df
record test for test_vmware_private_cloud
kairu-ms Aug 21, 2023
e87fbeb
fix test issues
kairu-ms Aug 21, 2023
f39b0f7
add tests for vmware delete
kairu-ms Aug 21, 2023
d389a8f
update vmware tests
kairu-ms Aug 21, 2023
6cee033
fix identity source create tests
kairu-ms Aug 21, 2023
ab015a6
fix ci issues
kairu-ms Aug 21, 2023
dcc63b5
fix ci issues
kairu-ms Aug 21, 2023
08eb28f
migrate command 'az vmware script-execution create'
kairu-ms Aug 22, 2023
dc1117e
clean up code
kairu-ms Aug 22, 2023
2d54c31
fix linter issues
kairu-ms Aug 22, 2023
d668007
remove vendored_sdks
kairu-ms Aug 22, 2023
994b6c9
fix linter issues
kairu-ms Aug 22, 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
16 changes: 12 additions & 4 deletions src/vmware/azext_vmware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ class VmwareCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_vmware._client_factory import cf_vmware
vmware_custom = CliCommandType(
operations_tmpl='azext_vmware.custom#{}',
client_factory=cf_vmware)
vmware_custom = CliCommandType(operations_tmpl='azext_vmware.custom#{}')
super(VmwareCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=vmware_custom) # pylint: disable=super-with-arguments

def load_command_table(self, args):
from azext_vmware.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

Expand Down
4 changes: 2 additions & 2 deletions src/vmware/azext_vmware/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,15 +846,15 @@
short-summary: Create a segment by ID in a private cloud workload network.
examples:
- name: Create a segment by ID in a workload network.
text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 --port-name port1
text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16
"""

helps['vmware workload-network segment update'] = """
type: command
short-summary: Update a segment by ID in a private cloud workload network.
examples:
- name: Update a segment by ID in a workload network.
text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 --port-name port1
text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16
"""

helps['vmware workload-network segment delete'] = """
Expand Down
178 changes: 5 additions & 173 deletions src/vmware/azext_vmware/_params.py

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions src/vmware/azext_vmware/_validators.py

This file was deleted.

6 changes: 6 additions & 0 deletions src/vmware/azext_vmware/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
# --------------------------------------------------------------------------------------------
6 changes: 6 additions & 0 deletions src/vmware/azext_vmware/aaz/latest/__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
# --------------------------------------------------------------------------------------------
23 changes: 23 additions & 0 deletions src/vmware/azext_vmware/aaz/latest/vmware/__cmd_group.py
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(
"vmware",
)
class __CMDGroup(AAZCommandGroup):
"""Commands to manage Azure VMware Solution.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
def cf_vmware(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azext_vmware.vendored_sdks.avs_client import AVSClient
return get_mgmt_service_client(cli_ctx, AVSClient)
# --------------------------------------------------------------------------------------------
# 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 *
23 changes: 23 additions & 0 deletions src/vmware/azext_vmware/aaz/latest/vmware/addon/__cmd_group.py
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(
"vmware addon",
)
class __CMDGroup(AAZCommandGroup):
"""Commands to manage addons for a private cloud.
"""
pass


__all__ = ["__CMDGroup"]
16 changes: 16 additions & 0 deletions src/vmware/azext_vmware/aaz/latest/vmware/addon/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# --------------------------------------------------------------------------------------------
# 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 *
Loading