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

[arcgateway] release preview version 2024-07-31 #8141

Merged
merged 60 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 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
1c2ea7d
Merge branch 'main' of https://github.com/yaotongms/azure-cli-extensions
yaotongms Sep 25, 2024
d59e091
generate stable api code
yaotongms Sep 25, 2024
a949bd9
remove preview version
yaotongms Sep 27, 2024
f366557
update tests
yaotongms Oct 1, 2024
56fa242
update test
yaotongms Oct 2, 2024
1a87d5d
update test
yaotongms Oct 8, 2024
4dfb841
update test
yaotongms Oct 8, 2024
3c12390
update test
yaotongms Oct 9, 2024
cc93fa1
update tests
yaotongms Oct 9, 2024
2ab8f72
update test
yaotongms Oct 10, 2024
ec6e2b6
update tests
yaotongms Oct 11, 2024
a24f6df
Merge branch 'Azure:main' into main
yaotongms Oct 11, 2024
6f97626
update tests
yaotongms Oct 11, 2024
8caeef6
update test
yaotongms Oct 11, 2024
2f2e176
update test
yaotongms Oct 11, 2024
0da4fb5
Merge branch 'main' of https://github.com/yaotongms/azure-cli-extensions
yaotongms Oct 15, 2024
452d812
generate code
yaotongms Oct 15, 2024
7d99d1e
update command name
yaotongms Oct 15, 2024
98b1f3b
upload tests
yaotongms Oct 16, 2024
44438b5
update description
yaotongms Oct 16, 2024
56ecff6
hide update cli
yaotongms Oct 17, 2024
a15820f
add arcgateway to service name
yaotongms Oct 18, 2024
3bb4261
update description
yaotongms Oct 18, 2024
9d0b7b8
set default value for create
yaotongms Oct 18, 2024
20b0a47
update sample
yaotongms Oct 18, 2024
8ee2dd8
set default
yaotongms Oct 21, 2024
0eb47c5
customize command
yaotongms Oct 24, 2024
2f4b052
fix
yaotongms Oct 25, 2024
5a5e9c3
update test
yaotongms Oct 25, 2024
3dd0b5c
fix styling issue
yaotongms Oct 25, 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/arcgateway/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:
Release History
===============

1.0.0b1
++++++
* Initial release.
35 changes: 35 additions & 0 deletions src/arcgateway/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Azure CLI arcgateway Extension #
This is the extension for arcgateway

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

### Included Features ###
#### arcgateway ####
##### Create #####
```
az arcgateway create --name MyArcgateway --resource-group myResourceGroup --location eastus2euap --subscription mySubscription --allowed-features *
```
##### List #####
```
az arcgateway list --subscription mySubscription
```
##### Show #####
```
az arcgateway show --name myArcgateway --resource-group myResourceGroup --subscription mySubscription
```
##### Update #####
```
az arcgateway update --name MyArcgateway --resource-group myResourceGroup --subscription mySubscription
```
##### Delete #####
```
az arcgateway delete --name MyArcgateway --resource-group myResourceGroup --subscription mySubscription
```
#### arcgateway settings ####
##### Update #####
```
az arcgateway settings update --resource-group myResourceGroup --subscription mySubscription --base-provider Microsoft.HybridCompute --base-resource-type machines --base-resource-name workloadServer --settings-resource-name default --gateway-resource-id myResourceId
42 changes: 42 additions & 0 deletions src/arcgateway/azext_arcgateway/__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_arcgateway._help import helps # pylint: disable=unused-import


class ArcgatewayCommandsLoader(AzCommandsLoader):

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

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


COMMAND_LOADER_CLS = ArcgatewayCommandsLoader
11 changes: 11 additions & 0 deletions src/arcgateway/azext_arcgateway/_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/arcgateway/azext_arcgateway/_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/arcgateway/azext_arcgateway/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/arcgateway/azext_arcgateway/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

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(
"arcgateway",
)
class __CMDGroup(AAZCommandGroup):
"""Manage gateway connection on Arc machine
"""
pass


__all__ = ["__CMDGroup"]
16 changes: 16 additions & 0 deletions src/arcgateway/azext_arcgateway/aaz/latest/arcgateway/__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 ._wait import *
Loading
Loading