Skip to content
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
5 changes: 5 additions & 0 deletions src/mesh/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

1.0.0b2
++++++++++++++++++

* Migrate to AAZ command.

1.0.0a1
++++++++++++++++++

Expand Down
43 changes: 0 additions & 43 deletions src/mesh/azext_mesh/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------


def _cf_mesh(cli_ctx, **_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from .servicefabricmesh.mgmt.servicefabricmesh import ServiceFabricMeshManagementClient
return get_mgmt_service_client(cli_ctx, ServiceFabricMeshManagementClient)


def cf_mesh_application(cli_ctx, _):
return _cf_mesh(cli_ctx).application


def cf_mesh_service(cli_ctx, _):
return _cf_mesh(cli_ctx).service


def cf_mesh_service_replica(cli_ctx, _):
return _cf_mesh(cli_ctx).service_replica


def cf_mesh_code_package(cli_ctx, _):
return _cf_mesh(cli_ctx).code_package


def cf_mesh_network(cli_ctx, _):
return _cf_mesh(cli_ctx).network


def cf_mesh_volume(cli_ctx, _):
return _cf_mesh(cli_ctx).volume


def _resource_client_factory(cli_ctx, **_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
Expand All @@ -42,15 +11,3 @@ def _resource_client_factory(cli_ctx, **_):

def cf_mesh_deployments(cli_ctx, _):
return _resource_client_factory(cli_ctx).deployments


def cf_mesh_secret(cli_ctx, _):
return _cf_mesh(cli_ctx).secret


def cf_mesh_secret_value(cli_ctx, _):
return _cf_mesh(cli_ctx).secret_value


def cf_mesh_gateway(cli_ctx, _):
return _cf_mesh(cli_ctx).gateway
1 change: 1 addition & 0 deletions src/mesh/azext_mesh/_exception_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

# pylint: disable=no-else-raise

def resource_exception_handler(exception):
from knack.util import CLIError
Expand Down
155 changes: 0 additions & 155 deletions src/mesh/azext_mesh/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,162 +66,7 @@
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
"""

helps['mesh app'] = """
type: group
short-summary: Manage Service Fabric Mesh applications.
"""

helps['mesh app delete'] = """
type: command
short-summary: Delete a Service Fabric Mesh application.
"""

helps['mesh app list'] = """
type: command
short-summary: List Service Fabric Mesh applications.
"""

helps['mesh app show'] = """
type: command
short-summary: Get the details of a Service Fabric Mesh application.
"""

helps['mesh service'] = """
type: group
short-summary: Manage Service Fabric Mesh services.
"""

helps['mesh service show'] = """
type: command
short-summary: Get the details of a service.
"""

helps['mesh service-replica'] = """
type: group
short-summary: Manage Service Fabric Mesh service replicas.
"""

helps['mesh service-replica list'] = """
type: command
short-summary: List the details of service replicas.
"""

helps['mesh code-package-log'] = """
type: group
short-summary: Examine the logs for a codepackage.
"""

helps['mesh code-package-log get'] = """
type: command
short-summary: Examine the logs for a codepackage.
"""

helps['mesh network'] = """
type: group
short-summary: Manage networks.
"""

helps['mesh network delete'] = """
type: command
short-summary: Delete a network.
"""

helps['mesh network list'] = """
type: command
short-summary: List networks.
"""

helps['mesh network show'] = """
type: command
short-summary: Get the details of a network.
"""

helps['mesh volume'] = """
type: group
short-summary: Manage volumes.
"""

helps['mesh volume create'] = """
type: command
short-summary: Create a volume.
examples:
- name: Create a volume with a template file on a remote URL.
text: az mesh volume create --location westus --name myvolume --resource-group mygroup --template-uri https://mystorage.blob.core.windows.net/templates/volumeDescription.json
- name: Create a volume with a template file on local disk.
text: az mesh volume create --location westus --name myvolume --resource-group mygroup --template-file ./volumeDescription.json
"""

helps['mesh volume delete'] = """
type: command
short-summary: Delete a volume.
"""

helps['mesh volume list'] = """
type: command
short-summary: List volumes.
"""

helps['mesh volume show'] = """
type: command
short-summary: Get the details of a volume.
"""

helps['mesh secret'] = """
type: group
short-summary: Manage secret resources.
"""

helps['mesh secret delete'] = """
type: command
short-summary: Delete a secret.
"""

helps['mesh secret list'] = """
type: command
short-summary: List Secrets.
"""

helps['mesh secret show'] = """
type: command
short-summary: Get the details of a secret.
"""

helps['mesh secretvalue'] = """
type: group
short-summary: Manage secret values.
"""

helps['mesh secretvalue delete'] = """
type: command
short-summary: Delete a secret version.
"""

helps['mesh secretvalue list'] = """
type: command
short-summary: List Secrets versions.
"""

helps['mesh secretvalue show'] = """
type: command
short-summary: Get the details of a secret value.
"""

helps['mesh gateway'] = """
type: group
short-summary: Manage gateway resources.
"""

helps['mesh gateway delete'] = """
type: command
short-summary: Delete a gateway resource.
"""

helps['mesh gateway list'] = """
type: command
short-summary: List gateway resources.
"""

helps['mesh gateway show'] = """
type: command
short-summary: Get the details of a gateway.
"""
4 changes: 4 additions & 0 deletions src/mesh/azext_mesh/aaz/latest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

2 changes: 2 additions & 0 deletions src/mesh/azext_mesh/aaz/latest/mesh/secretvalue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
from .__cmd_group import *
from ._delete import *
from ._list import *
from ._listvalue import *
from ._show import *
Loading
Loading