Skip to content

Commit

Permalink
Updating examples and SKU description for Elastic (#7002)
Browse files Browse the repository at this point in the history
* Updating examples and SKU description for Elastic

* Updating VERSIOn in setup.py
  • Loading branch information
poshett authored Nov 16, 2023
1 parent 435b7d5 commit d7e57d8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Create(AAZCommand):
"""Create a monitor resource.
:example: Create monitor
az elastic monitor create -n monitor-name -g rg --user-info "{firstName:Alice,lastName:bob,companyName:Micosoft,emailAddress:alice@microsoft.com}" --sku "{name:ess-monthly-consumption_Monthly}"
az elastic monitor create -n monitor-name -g rg --user-info "{firstName:Alice,lastName:bob,companyName:Micosoft,emailAddress:alice@microsoft.com}" --sku "{name:ess-consumption-2024_Monthly}"
"""

_aaz_info = {
Expand Down Expand Up @@ -67,7 +67,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema.sku = AAZObjectArg(
options=["--sku"],
arg_group="Body",
help="SKU of the monitor resource.",
help={"short-summary": "SKU of the monitor resource.", "long-summary": "The SKU depends on the Elasticsearch Plans available for your account and is a combination of PlanID_Term.\nEx: If the plan ID is \"planXYZ\" and term is \"Yearly\", the SKU will be \"planXYZ_Yearly\".\nYou may find your eligible plans at https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/elastic.ec-azure-pp or in the online documentation at https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure-pp?tab=PlansAndPrice for more details or in case of any issues with the SKU."},
is_experimental=True,
)
_args_schema.tags = AAZDictArg(
options=["--tags"],
Expand Down
2 changes: 2 additions & 0 deletions src/elastic/azext_elastic/aaz/latest/elastic/monitor/_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class List(AAZCommand):
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ListResource(AAZCommand):
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ListVmHost(AAZCommand):
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class List(AAZCommand):
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)
Expand Down
2 changes: 1 addition & 1 deletion src/elastic/azext_elastic/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.49.0"
"azext.minCliCoreVersion": "2.51.0"
}
2 changes: 1 addition & 1 deletion src/elastic/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from setuptools import setup, find_packages

# HISTORY.rst entry.
VERSION = '1.0.0b1'
VERSION = '1.0.0b2'
try:
from azext_elastic.manual.version import VERSION
except ImportError:
Expand Down

0 comments on commit d7e57d8

Please sign in to comment.