From 2cf7af7afc161bc5126eb2676da9bfa7792c6079 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 4 May 2021 14:16:32 +0000 Subject: [PATCH] CodeGen from PR 14231 in Azure/azure-rest-api-specs Merge 8e5914ec6824bc5eaaeb3627f5c498143374e7a3 into b93bd818d2c2bf3a014dbf2306658a65fa25a160 --- .../azure-mgmt-databoxedge/_meta.json | 2 +- .../v2021_02_01_preview/models/__init__.py | 3 ++ .../v2021_02_01_preview/models/_models.py | 35 +++++++++++++++++++ .../v2021_02_01_preview/models/_models_py3.py | 35 +++++++++++++++++++ 4 files changed, 74 insertions(+), 1 deletion(-) diff --git a/sdk/databoxedge/azure-mgmt-databoxedge/_meta.json b/sdk/databoxedge/azure-mgmt-databoxedge/_meta.json index 2527cb55f4a7..84160f3c0ccd 100644 --- a/sdk/databoxedge/azure-mgmt-databoxedge/_meta.json +++ b/sdk/databoxedge/azure-mgmt-databoxedge/_meta.json @@ -1,7 +1,7 @@ { "autorest": "3.3.0", "use": "@autorest/python@5.6.6", - "commit": "cc247b28bd6dc94786fb18e691d6331a168985f6", + "commit": "1687e105fc76a9021387244a220407068f00c782", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest_command": "autorest specification/databoxedge/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0", "readme": "specification/databoxedge/resource-manager/readme.md" diff --git a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/__init__.py b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/__init__.py index 427bbdbc0d20..6c496dc252d3 100644 --- a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/__init__.py +++ b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/__init__.py @@ -102,6 +102,7 @@ from ._models_py3 import ShareAccessRight from ._models_py3 import ShareList from ._models_py3 import Sku + from ._models_py3 import SkuCapability from ._models_py3 import SkuCost from ._models_py3 import SkuInformation from ._models_py3 import SkuInformationList @@ -221,6 +222,7 @@ from ._models import ShareAccessRight # type: ignore from ._models import ShareList # type: ignore from ._models import Sku # type: ignore + from ._models import SkuCapability # type: ignore from ._models import SkuCost # type: ignore from ._models import SkuInformation # type: ignore from ._models import SkuInformationList # type: ignore @@ -403,6 +405,7 @@ 'ShareAccessRight', 'ShareList', 'Sku', + 'SkuCapability', 'SkuCost', 'SkuInformation', 'SkuInformationList', diff --git a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models.py b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models.py index ed1d3c45a4dc..1aff5ddf91ef 100644 --- a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models.py +++ b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models.py @@ -1365,6 +1365,8 @@ class DataBoxEdgeSku(msrest.serialization.Model): :ivar shipment_types: List of Shipment Types supported by this SKU. :vartype shipment_types: list[str or ~azure.mgmt.databoxedge.v2021_02_01_preview.models.ShipmentType] + :ivar capabilities: The capability info of the SKU. + :vartype capabilities: list[~azure.mgmt.databoxedge.v2021_02_01_preview.models.SkuCapability] """ _validation = { @@ -1382,6 +1384,7 @@ class DataBoxEdgeSku(msrest.serialization.Model): 'version': {'readonly': True}, 'availability': {'readonly': True}, 'shipment_types': {'readonly': True}, + 'capabilities': {'readonly': True}, } _attribute_map = { @@ -1399,6 +1402,7 @@ class DataBoxEdgeSku(msrest.serialization.Model): 'version': {'key': 'version', 'type': 'str'}, 'availability': {'key': 'availability', 'type': 'str'}, 'shipment_types': {'key': 'shipmentTypes', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, } def __init__( @@ -1420,6 +1424,7 @@ def __init__( self.version = None self.availability = None self.shipment_types = None + self.capabilities = None class DataBoxEdgeSkuList(msrest.serialization.Model): @@ -4171,6 +4176,36 @@ def __init__( self.tier = kwargs.get('tier', None) +class SkuCapability(msrest.serialization.Model): + """The metadata to describe the capability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: An invariant to describe the feature. + :vartype name: str + :ivar value: An invariant if the feature is measured by quantity. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SkuCapability, self).__init__(**kwargs) + self.name = None + self.value = None + + class SkuCost(msrest.serialization.Model): """The metadata for retrieving price info. diff --git a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models_py3.py b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models_py3.py index 646fd8f45498..b5a61c639da8 100644 --- a/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models_py3.py +++ b/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2021_02_01_preview/models/_models_py3.py @@ -1445,6 +1445,8 @@ class DataBoxEdgeSku(msrest.serialization.Model): :ivar shipment_types: List of Shipment Types supported by this SKU. :vartype shipment_types: list[str or ~azure.mgmt.databoxedge.v2021_02_01_preview.models.ShipmentType] + :ivar capabilities: The capability info of the SKU. + :vartype capabilities: list[~azure.mgmt.databoxedge.v2021_02_01_preview.models.SkuCapability] """ _validation = { @@ -1462,6 +1464,7 @@ class DataBoxEdgeSku(msrest.serialization.Model): 'version': {'readonly': True}, 'availability': {'readonly': True}, 'shipment_types': {'readonly': True}, + 'capabilities': {'readonly': True}, } _attribute_map = { @@ -1479,6 +1482,7 @@ class DataBoxEdgeSku(msrest.serialization.Model): 'version': {'key': 'version', 'type': 'str'}, 'availability': {'key': 'availability', 'type': 'str'}, 'shipment_types': {'key': 'shipmentTypes', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': '[SkuCapability]'}, } def __init__( @@ -1500,6 +1504,7 @@ def __init__( self.version = None self.availability = None self.shipment_types = None + self.capabilities = None class DataBoxEdgeSkuList(msrest.serialization.Model): @@ -4433,6 +4438,36 @@ def __init__( self.tier = tier +class SkuCapability(msrest.serialization.Model): + """The metadata to describe the capability. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: An invariant to describe the feature. + :vartype name: str + :ivar value: An invariant if the feature is measured by quantity. + :vartype value: str + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SkuCapability, self).__init__(**kwargs) + self.name = None + self.value = None + + class SkuCost(msrest.serialization.Model): """The metadata for retrieving price info.