Skip to content

Commit fda59f6

Browse files
authored
{Mesh} Migrate to AAZ command (#8876)
* mesh * update * update
1 parent 2b0d806 commit fda59f6

File tree

131 files changed

+813
-8490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+813
-8490
lines changed

src/mesh/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
1.0.0b2
7+
++++++++++++++++++
8+
9+
* Migrate to AAZ command.
10+
611
1.0.0a1
712
++++++++++++++++++
813

src/mesh/azext_mesh/_client_factory.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,6 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
7-
def _cf_mesh(cli_ctx, **_):
8-
from azure.cli.core.commands.client_factory import get_mgmt_service_client
9-
from .servicefabricmesh.mgmt.servicefabricmesh import ServiceFabricMeshManagementClient
10-
return get_mgmt_service_client(cli_ctx, ServiceFabricMeshManagementClient)
11-
12-
13-
def cf_mesh_application(cli_ctx, _):
14-
return _cf_mesh(cli_ctx).application
15-
16-
17-
def cf_mesh_service(cli_ctx, _):
18-
return _cf_mesh(cli_ctx).service
19-
20-
21-
def cf_mesh_service_replica(cli_ctx, _):
22-
return _cf_mesh(cli_ctx).service_replica
23-
24-
25-
def cf_mesh_code_package(cli_ctx, _):
26-
return _cf_mesh(cli_ctx).code_package
27-
28-
29-
def cf_mesh_network(cli_ctx, _):
30-
return _cf_mesh(cli_ctx).network
31-
32-
33-
def cf_mesh_volume(cli_ctx, _):
34-
return _cf_mesh(cli_ctx).volume
35-
36-
376
def _resource_client_factory(cli_ctx, **_):
387
from azure.cli.core.commands.client_factory import get_mgmt_service_client
398
from azure.cli.core.profiles import ResourceType
@@ -42,15 +11,3 @@ def _resource_client_factory(cli_ctx, **_):
4211

4312
def cf_mesh_deployments(cli_ctx, _):
4413
return _resource_client_factory(cli_ctx).deployments
45-
46-
47-
def cf_mesh_secret(cli_ctx, _):
48-
return _cf_mesh(cli_ctx).secret
49-
50-
51-
def cf_mesh_secret_value(cli_ctx, _):
52-
return _cf_mesh(cli_ctx).secret_value
53-
54-
55-
def cf_mesh_gateway(cli_ctx, _):
56-
return _cf_mesh(cli_ctx).gateway

src/mesh/azext_mesh/_exception_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6+
# pylint: disable=no-else-raise
67

78
def resource_exception_handler(exception):
89
from knack.util import CLIError

src/mesh/azext_mesh/_help.py

Lines changed: 0 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -66,162 +66,7 @@
6666
short-summary: parameters in yaml file as key-value pairs or as json object or as json arm parameter file to supplement parameters of the deployment template
6767
"""
6868

69-
helps['mesh app'] = """
70-
type: group
71-
short-summary: Manage Service Fabric Mesh applications.
72-
"""
73-
74-
helps['mesh app delete'] = """
75-
type: command
76-
short-summary: Delete a Service Fabric Mesh application.
77-
"""
78-
79-
helps['mesh app list'] = """
80-
type: command
81-
short-summary: List Service Fabric Mesh applications.
82-
"""
83-
84-
helps['mesh app show'] = """
85-
type: command
86-
short-summary: Get the details of a Service Fabric Mesh application.
87-
"""
88-
89-
helps['mesh service'] = """
90-
type: group
91-
short-summary: Manage Service Fabric Mesh services.
92-
"""
93-
94-
helps['mesh service show'] = """
95-
type: command
96-
short-summary: Get the details of a service.
97-
"""
98-
99-
helps['mesh service-replica'] = """
100-
type: group
101-
short-summary: Manage Service Fabric Mesh service replicas.
102-
"""
103-
104-
helps['mesh service-replica list'] = """
105-
type: command
106-
short-summary: List the details of service replicas.
107-
"""
108-
109-
helps['mesh code-package-log'] = """
110-
type: group
111-
short-summary: Examine the logs for a codepackage.
112-
"""
113-
114-
helps['mesh code-package-log get'] = """
115-
type: command
116-
short-summary: Examine the logs for a codepackage.
117-
"""
118-
119-
helps['mesh network'] = """
120-
type: group
121-
short-summary: Manage networks.
122-
"""
123-
124-
helps['mesh network delete'] = """
125-
type: command
126-
short-summary: Delete a network.
127-
"""
128-
129-
helps['mesh network list'] = """
130-
type: command
131-
short-summary: List networks.
132-
"""
133-
134-
helps['mesh network show'] = """
135-
type: command
136-
short-summary: Get the details of a network.
137-
"""
138-
139-
helps['mesh volume'] = """
140-
type: group
141-
short-summary: Manage volumes.
142-
"""
143-
144-
helps['mesh volume create'] = """
145-
type: command
146-
short-summary: Create a volume.
147-
examples:
148-
- name: Create a volume with a template file on a remote URL.
149-
text: az mesh volume create --location westus --name myvolume --resource-group mygroup --template-uri https://mystorage.blob.core.windows.net/templates/volumeDescription.json
150-
- name: Create a volume with a template file on local disk.
151-
text: az mesh volume create --location westus --name myvolume --resource-group mygroup --template-file ./volumeDescription.json
152-
"""
153-
154-
helps['mesh volume delete'] = """
155-
type: command
156-
short-summary: Delete a volume.
157-
"""
158-
159-
helps['mesh volume list'] = """
160-
type: command
161-
short-summary: List volumes.
162-
"""
163-
164-
helps['mesh volume show'] = """
165-
type: command
166-
short-summary: Get the details of a volume.
167-
"""
168-
169-
helps['mesh secret'] = """
170-
type: group
171-
short-summary: Manage secret resources.
172-
"""
173-
174-
helps['mesh secret delete'] = """
175-
type: command
176-
short-summary: Delete a secret.
177-
"""
178-
179-
helps['mesh secret list'] = """
180-
type: command
181-
short-summary: List Secrets.
182-
"""
183-
184-
helps['mesh secret show'] = """
185-
type: command
186-
short-summary: Get the details of a secret.
187-
"""
188-
189-
helps['mesh secretvalue'] = """
190-
type: group
191-
short-summary: Manage secret values.
192-
"""
193-
194-
helps['mesh secretvalue delete'] = """
195-
type: command
196-
short-summary: Delete a secret version.
197-
"""
198-
199-
helps['mesh secretvalue list'] = """
200-
type: command
201-
short-summary: List Secrets versions.
202-
"""
203-
20469
helps['mesh secretvalue show'] = """
20570
type: command
20671
short-summary: Get the details of a secret value.
20772
"""
208-
209-
helps['mesh gateway'] = """
210-
type: group
211-
short-summary: Manage gateway resources.
212-
"""
213-
214-
helps['mesh gateway delete'] = """
215-
type: command
216-
short-summary: Delete a gateway resource.
217-
"""
218-
219-
helps['mesh gateway list'] = """
220-
type: command
221-
short-summary: List gateway resources.
222-
"""
223-
224-
helps['mesh gateway show'] = """
225-
type: command
226-
short-summary: Get the details of a gateway.
227-
"""

src/mesh/azext_mesh/aaz/latest/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7+
8+
# pylint: skip-file
9+
# flake8: noqa
10+

src/mesh/azext_mesh/aaz/latest/mesh/secretvalue/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
from .__cmd_group import *
1212
from ._delete import *
1313
from ._list import *
14+
from ._listvalue import *
15+
from ._show import *

0 commit comments

Comments
 (0)