Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-databoxedge] Fix Swagger Correctness S360:Additional properties not allowed: capabilities #5436

Closed
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
2 changes: 1 addition & 1 deletion sdk/databoxedge/azure-mgmt-databoxedge/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autorest": "3.3.0",
"use": "@autorest/[email protected]",
"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/[email protected] --version=3.3.0",
"readme": "specification/databoxedge/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -403,6 +405,7 @@
'ShareAccessRight',
'ShareList',
'Sku',
'SkuCapability',
'SkuCost',
'SkuInformation',
'SkuInformationList',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -1382,6 +1384,7 @@ class DataBoxEdgeSku(msrest.serialization.Model):
'version': {'readonly': True},
'availability': {'readonly': True},
'shipment_types': {'readonly': True},
'capabilities': {'readonly': True},
}

_attribute_map = {
Expand All @@ -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__(
Expand All @@ -1420,6 +1424,7 @@ def __init__(
self.version = None
self.availability = None
self.shipment_types = None
self.capabilities = None


class DataBoxEdgeSkuList(msrest.serialization.Model):
Expand Down Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -1462,6 +1464,7 @@ class DataBoxEdgeSku(msrest.serialization.Model):
'version': {'readonly': True},
'availability': {'readonly': True},
'shipment_types': {'readonly': True},
'capabilities': {'readonly': True},
}

_attribute_map = {
Expand All @@ -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__(
Expand All @@ -1500,6 +1504,7 @@ def __init__(
self.version = None
self.availability = None
self.shipment_types = None
self.capabilities = None


class DataBoxEdgeSkuList(msrest.serialization.Model):
Expand Down Expand Up @@ -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.

Expand Down