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

NetworkCloud 2022-12-12 API - aaz test recordings added for all resources #6245

Merged
merged 11 commits into from
Jun 15, 2023
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
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

/src/netappfiles-preview/ @b-lefr

/src/networkcloud/ @kiall @mbashtovaya @priyamshet

/src/network-manager/ @necusjz @kairu-ms @jsntcy

/src/healthcareapis/ @fengzhou-msft @iviark
Expand Down Expand Up @@ -290,4 +292,4 @@

/src/workloads/ @jsntcy

/src/self-help/ @BharathaAravind
/src/self-help/ @BharathaAravind
69 changes: 69 additions & 0 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2009,6 +2009,75 @@ network vwan update:
security_provider_name:
rule_exclusions:
- option_length_too_long
networkcloud cloudservicesnetwork create:
parameters:
enable_default_egress_endpoints:
rule_exclusions:
- no_parameter_defaults_for_update_commands
- option_length_too_long
additional_egress_endpoints:
rule_exclusions:
- option_length_too_long
networkcloud cloudservicesnetwork update:
parameters:
enable_default_egress_endpoints:
rule_exclusions:
- no_parameter_defaults_for_update_commands
- option_length_too_long
additional_egress_endpoints:
rule_exclusions:
- option_length_too_long
networkcloud cluster create:
parameters:
aggregator_or_single_rack_definition:
rule_exclusions:
- option_length_too_long
cluster_service_principal:
rule_exclusions:
- option_length_too_long
compute_deployment_threshold:
rule_exclusions:
- option_length_too_long
compute_rack_definitions:
rule_exclusions:
- option_length_too_long
managed_resource_group_configuration:
rule_exclusions:
- option_length_too_long
networkcloud cluster update:
parameters:
aggregator_or_single_rack_definition:
rule_exclusions:
- option_length_too_long
cluster_service_principal:
rule_exclusions:
- option_length_too_long
compute_deployment_threshold:
rule_exclusions:
- option_length_too_long
compute_rack_definitions:
rule_exclusions:
- option_length_too_long
networkcloud cluster deploy:
parameters:
skip_validations_for_machines:
rule_exclusions:
- option_length_too_long
networkcloud clustermanager create:
parameters:
managed_resource_group_configuration:
rule_exclusions:
- option_length_too_long
networkcloud l3network create:
parameters:
hybrid_aks_ipam_enabled:
rule_exclusions:
- option_length_too_long
networkcloud virtualmachine create:
parameters:
isolate_emulator_thread:
rule_exclusions:
- option_length_too_long
notification-hub authorization-rule create:
parameters:
notification_hub_name:
Expand Down
9 changes: 9 additions & 0 deletions src/networkcloud/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.3.0
++++++
* Initial release. This version supports NetworkCloud 2022-12-12-preview APIs.
* This version is experimental. Changes to the interface are expected but will be done in backward compatible way where possible.
40 changes: 40 additions & 0 deletions src/networkcloud/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Azure CLI Networkcloud Extension #
This is an extension to Azure CLI to manage Azure Operator Nexus - Network Cloud on-premises clusters and their resources, such as racks, bare metal hosts, virtual machines, workload networks and more.

## How to use ##

Install the extension:

```
az extension add --name networkcloud
```

Validate that the extension is installed correctly:

```
az networkcloud --help
```

## Included Features ##

Below is a high-level overview of networkcloud commands.

| Commands | Description|
| ------------- | ------------- |
| az networkcloud baremetalmachine | Provides commands to manage bare metal machines. |
| az networkcloud cluster | Provides commands to manage clusters. |
| az networkcloud cluster baremetalmachinekeyset | Provides commands to manage cluster's bare metal machines access via SSH key sets. |
| az networkcloud cluster bmckeyset | Provides commands to manage cluster's baseboard management controller key set. |
| az networkcloud cluster metricsconfiguration | Provides commands to manage cluster's metrics configurations. |
| az networkcloud clustermanager | Provides commands to manage cluster managers. |
| az networkcloud defaultcninetwork | Provides commands to manage default CNI networks. |
| az networkcloud hybridakscluster | Provides commands to manage additional details of Hybrid Aks provisioned clusters. |
| az networkcloud l2network | Provides commands to manage layer 2 (L2) networks. |
| az networkcloud l3network | Provides commands to manage layer 3 (L3) networks. |
| az networkcloud rack | Provides commands to manage racks. |
| az networkcloud racksku | Provides commands to display rack Skus information. |
| az networkcloud storageappliance | Provides commands to manage storage appliances. |
| az networkcloud trunkednetwork | Provides commands to manage trunked networks. |
| az networkcloud virtualmachine | Provides commands to manage virtual machines. |

For more details, please refer to [Azure Operator Nexus - NetworkCloud](https://learn.microsoft.com/en-us/azure/operator-nexus/).
42 changes: 42 additions & 0 deletions src/networkcloud/azext_networkcloud/__init__.py
Original file line number Diff line number Diff line change
@@ -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_networkcloud._help import helps # pylint: disable=unused-import


class NetworkcloudCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_networkcloud.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_networkcloud.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_networkcloud._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = NetworkcloudCommandsLoader
11 changes: 11 additions & 0 deletions src/networkcloud/azext_networkcloud/_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/networkcloud/azext_networkcloud/_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
6 changes: 6 additions & 0 deletions src/networkcloud/azext_networkcloud/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/networkcloud/azext_networkcloud/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
# --------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# 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(
"networkcloud",
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage Network Cloud resources
"""
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,24 @@
# --------------------------------------------------------------------------------------------
# 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(
"networkcloud baremetalmachine",
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage bare metal machine
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# 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 ._cordon import *
from ._list import *
from ._power_off import *
from ._reimage import *
from ._restart import *
from ._run_command import *
from ._run_data_extract import *
from ._run_read_command import *
from ._show import *
from ._start import *
from ._uncordon import *
from ._update import *
from ._wait import *
Loading