From e2690180aafb2ac7ba75fc6facbed587c7e939c8 Mon Sep 17 00:00:00 2001 From: Ashwin Jeyaseelan Date: Mon, 1 Jul 2024 21:29:54 -0700 Subject: [PATCH] Adding 2024-04-10 api version fior AzureLargeInstance (#7690) * Adding 2024-04-10 api version * Added updates to history.rst and updated version in setup.py * Updated tests since previous resource was deleted * Updated recorded tests * Fixed parameter name * Fixing parameter names * Update src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_update.py --------- Co-authored-by: Ashwin Jeyaseelan Co-authored-by: Ashwin Jeyaseelan Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> --- src/azurelargeinstance/HISTORY.rst | 3 + .../aaz/latest/__init__.py | 4 ++ .../aaz/latest/large_instance/_list.py | 24 ++++---- .../aaz/latest/large_instance/_restart.py | 9 ++- .../aaz/latest/large_instance/_show.py | 12 ++-- .../aaz/latest/large_instance/_shutdown.py | 9 ++- .../aaz/latest/large_instance/_start.py | 9 ++- .../aaz/latest/large_instance/_update.py | 16 +++-- .../latest/large_storage_instance/_list.py | 27 +++++---- .../latest/large_storage_instance/_show.py | 10 ++-- .../latest/large_storage_instance/_update.py | 12 ++-- .../azext_metadata.json | 2 +- ..._azurelargeinstances_in_resourcegroup.yaml | 39 +++++++++--- ...t_azurelargeinstances_in_subscription.yaml | 39 ++++++++---- ...argestorageinstances_in_resourcegroup.yaml | 40 ++++++++++--- ...largestorageinstances_in_subscription.yaml | 59 +++++++++++++++---- .../tests/latest/test_azurelargeinstance.py | 4 +- src/azurelargeinstance/setup.py | 2 +- 18 files changed, 219 insertions(+), 101 deletions(-) diff --git a/src/azurelargeinstance/HISTORY.rst b/src/azurelargeinstance/HISTORY.rst index abbff5a61a7..16108ef301f 100644 --- a/src/azurelargeinstance/HISTORY.rst +++ b/src/azurelargeinstance/HISTORY.rst @@ -2,6 +2,9 @@ Release History =============== +1.0.0b2 +++++++ +* Release the first public api version for AzureLargeInstance 2024-04-10, which is the public version of 2023-07-20-preview api. 1.0.0b1 ++++++ diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/__init__.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/__init__.py index 5757aea3175..f6acc11aa4e 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/__init__.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/__init__.py @@ -4,3 +4,7 @@ # # Code generated by aaz-dev-tools # -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_list.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_list.py index 5c3c3acf38f..f78025193ce 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_list.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_list.py @@ -25,10 +25,10 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurelargeinstance/azurelargeinstances", "2023-07-20-preview"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurelargeinstance/azurelargeinstances", "2024-04-10"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances", "2024-04-10"], ] } @@ -119,7 +119,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -155,7 +155,9 @@ def _build_schema_on_200(cls): _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) - _schema_on_200.value = AAZListType() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -200,9 +202,6 @@ def _build_schema_on_200(cls): properties.os_profile = AAZObjectType( serialized_name="osProfile", ) - properties.partner_node_id = AAZStrType( - serialized_name="partnerNodeId", - ) properties.power_state = AAZStrType( serialized_name="powerState", flags={"read_only": True}, @@ -347,7 +346,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -383,7 +382,9 @@ def _build_schema_on_200(cls): _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) - _schema_on_200.value = AAZListType() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -428,9 +429,6 @@ def _build_schema_on_200(cls): properties.os_profile = AAZObjectType( serialized_name="osProfile", ) - properties.partner_node_id = AAZStrType( - serialized_name="partnerNodeId", - ) properties.power_state = AAZStrType( serialized_name="powerState", flags={"read_only": True}, diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_restart.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_restart.py index 5648d84ac14..25983525939 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_restart.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_restart.py @@ -22,9 +22,9 @@ class Restart(AAZCommand): """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/restart", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/restart", "2024-04-10"], ] } @@ -150,7 +150,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -239,6 +239,9 @@ def _build_schema_error_detail_read(cls, _schema): additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_show.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_show.py index 1d2578932b7..d264ba53556 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_show.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_show.py @@ -15,16 +15,17 @@ "large-instance show", ) class Show(AAZCommand): - """Get an Azure Large Instance for the specified subscription, resource group, and instance name. + """Get an Azure Large Instance for the specified subscription, resource group, +and instance name. :example: To show details about an Azure Large Instance az large-instance show --subscription $SUBSCRIPTION_ID --instance-name $INSTANCE_NAME --resource-group $RESOURCE_GROUP """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}", "2024-04-10"], ] } @@ -123,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -195,9 +196,6 @@ def _build_schema_on_200(cls): properties.os_profile = AAZObjectType( serialized_name="osProfile", ) - properties.partner_node_id = AAZStrType( - serialized_name="partnerNodeId", - ) properties.power_state = AAZStrType( serialized_name="powerState", flags={"read_only": True}, diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_shutdown.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_shutdown.py index 3d19b4bee95..106bd4a3f41 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_shutdown.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_shutdown.py @@ -22,9 +22,9 @@ class Shutdown(AAZCommand): """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/shutdown", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/shutdown", "2024-04-10"], ] } @@ -140,7 +140,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -215,6 +215,9 @@ def _build_schema_error_detail_read(cls, _schema): additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_start.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_start.py index d67ca29dda6..b5a2958f710 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_start.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_start.py @@ -22,9 +22,9 @@ class Start(AAZCommand): """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/start", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}/start", "2024-04-10"], ] } @@ -140,7 +140,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -215,6 +215,9 @@ def _build_schema_error_detail_read(cls, _schema): additional_info.Element = AAZObjectType() _element = _schema_error_detail_read.additional_info.Element + _element.info = AAZObjectType( + flags={"read_only": True}, + ) _element.type = AAZStrType( flags={"read_only": True}, ) diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_update.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_update.py index 20dcbc1341d..a87620255a3 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_update.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_instance/_update.py @@ -15,16 +15,17 @@ "large-instance update", ) class Update(AAZCommand): - """Update the Tags field of an Azure Large Instance for the specified subscription, resource group, and instance name. + """Update the Tags field of an Azure Large Instance for the specified +subscription, resource group, and instance name. :example: To add an Azure Large Instance tag - az large-instance update --subscription $SUBSCRIPTION_ID --instance-name=$INSTANCE_NAME --resource-group=$RESOURCE_GROUP --tags newKey=value + az large-instance update --instance-name=$INSTANCE_NAME --resource-group=$RESOURCE_GROUP --tags newKey=value """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargeinstances/{}", "2024-04-10"], ] } @@ -63,7 +64,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.tags = AAZDictArg( options=["--tags"], arg_group="TagsParameter", - help="Tags field of the AzureLargeInstance instance.", + help="Resource tags.", ) tags = cls._args_schema.tags @@ -135,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -225,9 +226,6 @@ def _build_schema_on_200(cls): properties.os_profile = AAZObjectType( serialized_name="osProfile", ) - properties.partner_node_id = AAZStrType( - serialized_name="partnerNodeId", - ) properties.power_state = AAZStrType( serialized_name="powerState", flags={"read_only": True}, diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_list.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_list.py index 91540dc76c0..94df4b6c070 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_list.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_list.py @@ -15,20 +15,17 @@ "large-storage-instance list", ) class List(AAZCommand): - """List a list of AzureLargeStorageInstances in the specified subscription. The operations returns various properties of each Azure LargeStorage instance. - - :example: To list Azure Large Storage Instances in a subscription - az large-storage-instance list --subscription $SUBSCRIPTION_ID + """List a list of Azure Large Storage Instances in the specified subscription. The operations returns various properties of each Azure Large Storage instance. :example: To list Azure Large Storage Instances in a specific subscription and resource group - az azurelargestorageinstance list --subscription $SUBSCRIPTIONID --resource-group $RESOURCE_GROUP + az large-storage-instance list --subscription $SUBSCRIPTIONID --resource-group $RESOURCE_GROUP """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances", "2023-07-20-preview"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances", "2024-04-10"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances", "2024-04-10"], ] } @@ -119,7 +116,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -155,7 +152,9 @@ def _build_schema_on_200(cls): _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) - _schema_on_200.value = AAZListType() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -200,6 +199,7 @@ def _build_schema_on_200(cls): ) storage_properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) storage_properties.storage_billing_properties = AAZObjectType( serialized_name="storageBillingProperties", @@ -282,7 +282,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -318,7 +318,9 @@ def _build_schema_on_200(cls): _schema_on_200.next_link = AAZStrType( serialized_name="nextLink", ) - _schema_on_200.value = AAZListType() + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) value = cls._schema_on_200.value value.Element = AAZObjectType() @@ -363,6 +365,7 @@ def _build_schema_on_200(cls): ) storage_properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) storage_properties.storage_billing_properties = AAZObjectType( serialized_name="storageBillingProperties", diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_show.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_show.py index 9e49fe081f8..3ff99d57c57 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_show.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_show.py @@ -15,16 +15,17 @@ "large-storage-instance show", ) class Show(AAZCommand): - """Get an Azure Large Storage instance for the specified subscription, resource group, and instance name. + """Get an Azure Large Storage instance for the specified subscription, resource +group, and instance name. :example: To show details about a specific Azure Large Storage Instance az large-storage-instance show --subscription $SUBSCRIPTION_ID --instance-name $INSTANCE_NAME --resource-group $RESOURCE_GROUP """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances/{}", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances/{}", "2024-04-10"], ] } @@ -123,7 +124,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -195,6 +196,7 @@ def _build_schema_on_200(cls): ) storage_properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) storage_properties.storage_billing_properties = AAZObjectType( serialized_name="storageBillingProperties", diff --git a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_update.py b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_update.py index 7a8460c0609..b2438690287 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_update.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/aaz/latest/large_storage_instance/_update.py @@ -15,16 +15,17 @@ "large-storage-instance update", ) class Update(AAZCommand): - """Update the Tags field of a Azure Large Storage Instance for the specified subscription, resource group, and instance name. + """Update the Tags field of a Azure Large Storage Instance for the specified +subscription, resource group, and instance name. :example: To add an Azure Large Storage Instance tag az large-storage-instance update --subscription $SUBSCRIPTION_ID --instance-name $INSTANCE_NAME --resource-group $RESOURCE_GROUP --tags newKey=value """ _aaz_info = { - "version": "2023-07-20-preview", + "version": "2024-04-10", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances/{}", "2023-07-20-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.azurelargeinstance/azurelargestorageinstances/{}", "2024-04-10"], ] } @@ -63,7 +64,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema.tags = AAZDictArg( options=["--tags"], arg_group="TagsParameter", - help="Tags field of the AzureLargeInstance instance.", + help="Resource tags.", ) tags = cls._args_schema.tags @@ -135,7 +136,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2023-07-20-preview", + "api-version", "2024-04-10", required=True, ), } @@ -225,6 +226,7 @@ def _build_schema_on_200(cls): ) storage_properties.provisioning_state = AAZStrType( serialized_name="provisioningState", + flags={"read_only": True}, ) storage_properties.storage_billing_properties = AAZObjectType( serialized_name="storageBillingProperties", diff --git a/src/azurelargeinstance/azext_azurelargeinstance/azext_metadata.json b/src/azurelargeinstance/azext_azurelargeinstance/azext_metadata.json index 24862c32571..916deb3b5c2 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/azext_metadata.json +++ b/src/azurelargeinstance/azext_azurelargeinstance/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.51.0" + "azext.minCliCoreVersion": "2.57.0" } \ No newline at end of file diff --git a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_resourcegroup.yaml b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_resourcegroup.yaml index 98d85a19206..85fc45e7e5c 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_resourcegroup.yaml +++ b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_resourcegroup.yaml @@ -11,33 +11,54 @@ interactions: Connection: - keep-alive ParameterSetName: - - --subscription --resource-group + - --resource-group User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.61.0 azsdk-python-core/1.30.1 Python/3.10.11 (macOS-14.5-arm64-arm-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T100/providers/Microsoft.AzureLargeInstance/azureLargeInstances?api-version=2023-07-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/azureLargeInstances?api-version=2024-04-10 response: body: - string: '{"value":[]}' + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/AzureLargeInstances/epiciotooltest1\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"epiciotooltest1\"\ + ,\n \"tags\": {\n \"t\": \"v\",\n \"t2\": \"v2\"\n },\n \"\ + type\": \"Microsoft.AzureLargeInstance/AzureLargeInstances\",\n \"systemData\"\ + : {\n \"lastModifiedBy\": \"pratikkaria@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2024-05-14T12:51:48.3075032Z\"\n \ + \ },\n \"properties\": {\n \"azureLargeInstanceId\": \"5d177a4e-c221-4666-a5f4-171e815c9e98\"\ + ,\n \"powerState\": \"started\",\n \"proximityPlacementGroup\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DSM05A-T210/providers/Microsoft.Compute/proximityPlacementGroups/epiciotooltest1-ppg\"\ + ,\n \"hwRevision\": \"Rev 4.2\",\n \"hardwareProfile\": {\n \"\ + hardwareType\": \"SDFLEX\",\n \"azureLargeInstanceSize\": \"S448SE\"\n\ + \ },\n \"networkProfile\": {\n \"networkInterfaces\": [\n \ + \ {\n \"ipAddress\": \"10.100.0.91\"\n }\n ],\n \ + \ \"circuitId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/T210_DSM05-Circuits/providers/Microsoft.Network/expressRouteCircuits/T210_DSM05-10Gb\"\ + \n },\n \"storageProfile\": {\n \"nfsIpAddress\": \"10.20.211.91\"\ + ,\n \"osDisks\": [\n {\n \"name\": \"t210_rhel_boot_epiciotooltest1_vol_lun\"\ + ,\n \"diskSizeGB\": 50\n }\n ]\n },\n \"osProfile\"\ + : {\n \"computerName\": \"epiciotooltest1\",\n \"osType\": \"RHEL\ + \ 8.4\",\n \"version\": \"8.4\"\n },\n \"provisioningState\"\ + : \"Succeeded\"\n }\n }\n ]\n }" headers: cache-control: - no-cache content-length: - - '12' + - '1649' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 14 Nov 2023 07:05:15 GMT + - Fri, 07 Jun 2024 01:49:00 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2192F48B46114921B3E1CD0CC8BF0B89 Ref B: CO6AA3150217019 Ref C: 2024-06-07T01:49:01Z' status: code: 200 message: OK diff --git a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_subscription.yaml b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_subscription.yaml index 6fd412f7629..e49fcd83f29 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_subscription.yaml +++ b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargeinstances_in_subscription.yaml @@ -10,34 +10,53 @@ interactions: - large-instance list Connection: - keep-alive - ParameterSetName: - - --subscription User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.61.0 azsdk-python-core/1.30.1 Python/3.10.11 (macOS-14.5-arm64-arm-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureLargeInstance/azureLargeInstances?api-version=2023-07-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureLargeInstance/azureLargeInstances?api-version=2024-04-10 response: body: - string: '{"value":[]}' + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/AzureLargeInstances/epiciotooltest1\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"epiciotooltest1\"\ + ,\n \"tags\": {\n \"t\": \"v\",\n \"t2\": \"v2\"\n },\n \"\ + type\": \"Microsoft.AzureLargeInstance/AzureLargeInstances\",\n \"systemData\"\ + : {\n \"lastModifiedBy\": \"pratikkaria@microsoft.com\",\n \"lastModifiedByType\"\ + : \"User\",\n \"lastModifiedAt\": \"2024-05-14T12:51:48.3075032Z\"\n \ + \ },\n \"properties\": {\n \"azureLargeInstanceId\": \"5d177a4e-c221-4666-a5f4-171e815c9e98\"\ + ,\n \"powerState\": \"started\",\n \"proximityPlacementGroup\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/DSM05A-T210/providers/Microsoft.Compute/proximityPlacementGroups/epiciotooltest1-ppg\"\ + ,\n \"hwRevision\": \"Rev 4.2\",\n \"hardwareProfile\": {\n \"\ + hardwareType\": \"SDFLEX\",\n \"azureLargeInstanceSize\": \"S448SE\"\n\ + \ },\n \"networkProfile\": {\n \"networkInterfaces\": [\n \ + \ {\n \"ipAddress\": \"10.100.0.91\"\n }\n ],\n \ + \ \"circuitId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/T210_DSM05-Circuits/providers/Microsoft.Network/expressRouteCircuits/T210_DSM05-10Gb\"\ + \n },\n \"storageProfile\": {\n \"nfsIpAddress\": \"10.20.211.91\"\ + ,\n \"osDisks\": [\n {\n \"name\": \"t210_rhel_boot_epiciotooltest1_vol_lun\"\ + ,\n \"diskSizeGB\": 50\n }\n ]\n },\n \"osProfile\"\ + : {\n \"computerName\": \"epiciotooltest1\",\n \"osType\": \"RHEL\ + \ 8.4\",\n \"version\": \"8.4\"\n },\n \"provisioningState\"\ + : \"Succeeded\"\n }\n }\n ]\n }" headers: cache-control: - no-cache content-length: - - '12' + - '1649' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 14 Nov 2023 06:52:03 GMT + - Fri, 07 Jun 2024 01:49:01 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 247F90064E3A40E7879C23747A0630E8 Ref B: CO6AA3150220023 Ref C: 2024-06-07T01:49:01Z' status: code: 200 message: OK diff --git a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_resourcegroup.yaml b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_resourcegroup.yaml index 0384d99aac5..7fabd14b381 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_resourcegroup.yaml +++ b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_resourcegroup.yaml @@ -11,33 +11,55 @@ interactions: Connection: - keep-alive ParameterSetName: - - --subscription --resource-group + - --resource-group User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.61.0 azsdk-python-core/1.30.1 Python/3.10.11 (macOS-14.5-arm64-arm-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T100/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances?api-version=2023-07-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances?api-version=2024-04-10 response: body: - string: '{"value":[]}' + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/alistorage\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"alistorage\",\n \ + \ \"tags\": {},\n \"type\": \"Microsoft.AzureLargeInstance/azureLargeStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureLargeStorageInstanceUniqueIdentifier\"\ + : \"a582472d-2a29-4c2b-a0d0-0ebd39e46904\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Accepted\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"Gen4\",\n \ + \ \"hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \"\ + storageBillingProperties\": {\n \"billingMode\": \"PAYG\",\n \"\ + azureLargeStorageInstanceSize\": \"n100\"\n }\n }\n }\n },\n\ + \ {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/dummyRN1\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"dummyRN1\",\n \ + \ \"tags\": {},\n \"type\": \"Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureLargeStorageInstanceUniqueIdentifier\"\ + : \"cfcffde1-63b3-46a4-9881-2e9f4e59ff8d\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Accepted\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"Gen4.5\",\n \ + \ \"hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \ + \ \"storageBillingProperties\": {\n \"billingMode\": \"PAYG\",\n \ + \ \"azureLargeStorageInstanceSize\": \"n100\"\n }\n }\n }\n\ + \ }\n ]\n }" headers: cache-control: - no-cache content-length: - - '12' + - '1632' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 14 Nov 2023 07:05:15 GMT + - Thu, 27 Jun 2024 19:44:55 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C2991CBCB8ED40DD93B9935FDBE589D0 Ref B: CO6AA3150218053 Ref C: 2024-06-27T19:44:56Z' status: code: 200 message: OK diff --git a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_subscription.yaml b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_subscription.yaml index 51d87333217..33d855a9106 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_subscription.yaml +++ b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/recordings/test_list_azurelargestorageinstances_in_subscription.yaml @@ -10,34 +10,73 @@ interactions: - large-storage-instance list Connection: - keep-alive - ParameterSetName: - - --subscription User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + - AZURECLI/2.61.0 azsdk-python-core/1.30.1 Python/3.10.11 (macOS-14.5-arm64-arm-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances?api-version=2023-07-20-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances?api-version=2024-04-10 response: body: - string: '{"value":[]}' + string: "{\n \"value\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bmsi-rg-canchliya/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/testcmkbmsi\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"testcmkbmsi\",\n\ + \ \"tags\": {},\n \"type\": \"Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureBareMetalStorageInstanceUniqueIdentifier\"\ + : \"bcb58551-e106-4b66-a9b9-d73db0bd07ad\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Succeeded\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"Gen4.5\",\n \ + \ \"hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \ + \ \"storageBillingProperties\": {\n \"billingMode\": \"Internal\",\n\ + \ \"azureBareMetalStorageInstanceSize\": \"n100\"\n }\n }\n\ + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/alistorage\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"alistorage\",\n \ + \ \"tags\": {},\n \"type\": \"Microsoft.AzureLargeInstance/azureLargeStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureBareMetalStorageInstanceUniqueIdentifier\"\ + : \"a582472d-2a29-4c2b-a0d0-0ebd39e46904\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Accepted\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"Gen4\",\n \ + \ \"hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \"\ + storageBillingProperties\": {\n \"billingMode\": \"PAYG\",\n \"\ + azureBareMetalStorageInstanceSize\": \"n100\"\n }\n }\n }\n \ + \ },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DSM05A-T210/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/dummyRN1\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"dummyRN1\",\n \ + \ \"tags\": {},\n \"type\": \"Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureBareMetalStorageInstanceUniqueIdentifier\"\ + : \"cfcffde1-63b3-46a4-9881-2e9f4e59ff8d\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Accepted\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"Gen4.5\",\n \ + \ \"hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \ + \ \"storageBillingProperties\": {\n \"billingMode\": \"PAYG\",\n \ + \ \"azureBareMetalStorageInstanceSize\": \"n100\"\n }\n }\n \ + \ }\n },\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testnewbillingmeters/providers/Microsoft.BareMetalInfrastructure/bareMetalStorageInstances/testnewbmsi\"\ + ,\n \"location\": \"centraluseuap\",\n \"name\": \"testnewbmsi\",\n\ + \ \"tags\": {},\n \"type\": \"Microsoft.BareMetalInfrastructure/bareMetalStorageInstances\"\ + ,\n \"systemData\": {},\n \"properties\": {\n \"azureBareMetalStorageInstanceUniqueIdentifier\"\ + : \"63a5dff1-317c-4537-8079-357a44405d10\",\n \"storageProperties\": {\n\ + \ \"provisioningState\": \"Succeeded\",\n \"offeringType\": \"EPIC\"\ + ,\n \"storageType\": \"FC\",\n \"generation\": \"4\",\n \"\ + hardwareType\": \"NetApp\",\n \"workloadType\": \"ODB\",\n \"storageBillingProperties\"\ + : {\n \"billingMode\": \"RI\",\n \"azureBareMetalStorageInstanceSize\"\ + : \"n100v3\"\n }\n }\n }\n }\n ]\n }" headers: cache-control: - no-cache content-length: - - '12' + - '3322' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 14 Nov 2023 06:52:02 GMT + - Fri, 07 Jun 2024 01:49:00 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 61B54FE50A64435B9284540D0BDDCB7B Ref B: CO6AA3150217047 Ref C: 2024-06-07T01:49:01Z' status: code: 200 message: OK diff --git a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/test_azurelargeinstance.py b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/test_azurelargeinstance.py index b959fb3c8d3..250e5220e58 100644 --- a/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/test_azurelargeinstance.py +++ b/src/azurelargeinstance/azext_azurelargeinstance/tests/latest/test_azurelargeinstance.py @@ -14,7 +14,7 @@ def test_list_azurelargeinstances_in_subscription(self): def test_list_azurelargeinstances_in_resourcegroup(self): self.kwargs.update({ - 'resource_group': 'DSM05A-T100' + 'resource_group': 'DSM05A-T210' }) self.cmd('az large-instance list --resource-group {resource_group}') @@ -24,6 +24,6 @@ def test_list_azurelargestorageinstances_in_subscription(self): def test_list_azurelargestorageinstances_in_resourcegroup(self): self.kwargs.update({ - 'resource_group': 'DSM05A-T100' + 'resource_group': 'DSM05A-T210' }) self.cmd('az large-storage-instance list --resource-group {resource_group}') diff --git a/src/azurelargeinstance/setup.py b/src/azurelargeinstance/setup.py index bca2c95ad69..6b4326848ce 100644 --- a/src/azurelargeinstance/setup.py +++ b/src/azurelargeinstance/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '1.0.0b1' +VERSION = '1.0.0b2' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers