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

[connectedmachine] release preview version 2024-05-20 #7797

Merged
merged 30 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5698c7d
generate code
yaotongms Jun 12, 2024
6116ff6
update version
yaotongms Jun 12, 2024
39a73c6
Merge branch 'Azure:main' into main
yaotongms Jun 26, 2024
1e84b86
add gateway commands
yaotongms Jun 26, 2024
ddf586c
Merge branch 'main' of https://github.com/yaotongms/azure-cli-extensions
yaotongms Jun 26, 2024
059fd5d
remove vmware update
yaotongms Jun 26, 2024
a290808
run tests
yaotongms Jun 26, 2024
ed0fc9a
add gateway tests
yaotongms Jul 15, 2024
31e5c04
Merge branch 'main' of https://github.com/yaotongms/azure-cli-extensions
yaotongms Jul 15, 2024
d290b62
add tests
yaotongms Jul 16, 2024
a1d2f75
hide subscription
yaotongms Jul 16, 2024
40a3138
add arc module
yaotongms Jul 17, 2024
4f50f13
add gateway tests
yaotongms Jul 17, 2024
aa82a6b
add NSP get test
yaotongms Jul 17, 2024
b4cb88d
add service name for gateway
yaotongms Jul 17, 2024
bf609e6
add 200 response in nsp reconcile
yaotongms Jul 19, 2024
379ad08
remove NSP PATCH
yaotongms Jul 22, 2024
a3fb34f
fix pylint errors
yaotongms Jul 23, 2024
9059a54
update codebase
yaotongms Jul 23, 2024
f3fa4ec
Update src/connectedmachine/azext_connectedmachine/aaz/latest/connect…
yaotongms Jul 24, 2024
302e139
fix ci error
yaotongms Jul 25, 2024
0a546cd
Merge branch 'main' of https://github.com/yaotongms/azure-cli-extensions
yaotongms Jul 25, 2024
92b2296
Merge branch 'Azure:main' into main
yaotongms Jul 25, 2024
fa34403
fix ci
yaotongms Jul 25, 2024
910992a
fix ci
yaotongms Jul 26, 2024
9b03a62
remove arc
yaotongms Jul 30, 2024
793c4f2
Merge branch 'Azure:main' into main
yaotongms Jul 30, 2024
b307113
fix comment
yaotongms Aug 1, 2024
07446da
fix comment
yaotongms Aug 1, 2024
9444e1e
fix comment
yaotongms Aug 5, 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
8 changes: 8 additions & 0 deletions src/arc/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

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

1.0.0b1
++++++
* Initial release.
31 changes: 31 additions & 0 deletions src/arc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Azure CLI Arc Extension #
This is an extension to manage Arc resources.

## How to use ##
Install this extension using the below CLI command
```
az extension add --name arc
```

### Included Features ###
#### arc ####
##### Create #####
```
az arc gateway create --resource-group "myResourceGroup" --location "eastus2euap" --name "myGateway" --allowed-features *
```
##### List #####
```
az arc gateway list
```
##### Show #####
```
az arc gateway show --resource-group "myResourceGroup" --name "myGateway"
```
##### Update #####
```
az arc gateway update --resource-group "myResourceGroup" --name "myGateway"
```
##### Delete #####
```
az arc gateway delete --resource-group "myResourceGroup" --name "myGateway"
```
42 changes: 42 additions & 0 deletions src/arc/azext_arc/__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_arc._help import helps # pylint: disable=unused-import


class ArcCommandsLoader(AzCommandsLoader):

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

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


COMMAND_LOADER_CLS = ArcCommandsLoader
11 changes: 11 additions & 0 deletions src/arc/azext_arc/_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/arc/azext_arc/_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/arc/azext_arc/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
# --------------------------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions src/arc/azext_arc/aaz/latest/__init__.py
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

23 changes: 23 additions & 0 deletions src/arc/azext_arc/aaz/latest/arc/__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(
"arc",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Arc Machines.
"""
pass


__all__ = ["__CMDGroup"]
11 changes: 11 additions & 0 deletions src/arc/azext_arc/aaz/latest/arc/__init__.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: skip-file
# flake8: noqa

from .__cmd_group import *
23 changes: 23 additions & 0 deletions src/arc/azext_arc/aaz/latest/arc/gateway/__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(
"arc gateway",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Gateway for Azure Arc Machines.
"""
pass


__all__ = ["__CMDGroup"]
17 changes: 17 additions & 0 deletions src/arc/azext_arc/aaz/latest/arc/gateway/__init__.py
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