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-azurearcdata] Dev/shul/refactor swagger #7965

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/azurearcdata/azure-mgmt-azurearcdata/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "b28a542b3eb4f2f4f384b14b635d0a835df818cd",
"commit": "86afea74620d2cfc08f094f5139bba28cfd2f24c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azurearcdata/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] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/azurearcdata/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.1.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,22 @@

try:
from ._models_py3 import BasicLoginInformation
from ._models_py3 import CommonSku
from ._models_py3 import DataControllerProperties
from ._models_py3 import DataControllerResource
from ._models_py3 import DataControllerUpdate
from ._models_py3 import ErrorResponse
from ._models_py3 import ErrorResponseBody
from ._models_py3 import ExtendedLocation
from ._models_py3 import Identity
from ._models_py3 import K8SResourceRequirements
from ._models_py3 import K8SScheduling
from ._models_py3 import K8SSchedulingOptions
from ._models_py3 import LogAnalyticsWorkspaceConfig
from ._models_py3 import ODataError
from ._models_py3 import OnPremiseProperty
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import PageOfDataControllerResource
from ._models_py3 import Plan
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import ResourceSku
from ._models_py3 import SqlManagedInstance
from ._models_py3 import SqlManagedInstanceK8SRaw
from ._models_py3 import SqlManagedInstanceK8SSpec
Expand All @@ -47,28 +41,22 @@
from ._models_py3 import UploadWatermark
except (SyntaxError, ImportError):
from ._models import BasicLoginInformation # type: ignore
from ._models import CommonSku # type: ignore
from ._models import DataControllerProperties # type: ignore
from ._models import DataControllerResource # type: ignore
from ._models import DataControllerUpdate # type: ignore
from ._models import ErrorResponse # type: ignore
from ._models import ErrorResponseBody # type: ignore
from ._models import ExtendedLocation # type: ignore
from ._models import Identity # type: ignore
from ._models import K8SResourceRequirements # type: ignore
from ._models import K8SScheduling # type: ignore
from ._models import K8SSchedulingOptions # type: ignore
from ._models import LogAnalyticsWorkspaceConfig # type: ignore
from ._models import ODataError # type: ignore
from ._models import OnPremiseProperty # type: ignore
from ._models import Operation # type: ignore
from ._models import OperationDisplay # type: ignore
from ._models import OperationListResult # type: ignore
from ._models import PageOfDataControllerResource # type: ignore
from ._models import Plan # type: ignore
from ._models import ProxyResource # type: ignore
from ._models import Resource # type: ignore
from ._models import ResourceSku # type: ignore
from ._models import SqlManagedInstance # type: ignore
from ._models import SqlManagedInstanceK8SRaw # type: ignore
from ._models import SqlManagedInstanceK8SSpec # type: ignore
Expand Down Expand Up @@ -101,28 +89,22 @@

__all__ = [
'BasicLoginInformation',
'CommonSku',
'DataControllerProperties',
'DataControllerResource',
'DataControllerUpdate',
'ErrorResponse',
'ErrorResponseBody',
'ExtendedLocation',
'Identity',
'K8SResourceRequirements',
'K8SScheduling',
'K8SSchedulingOptions',
'LogAnalyticsWorkspaceConfig',
'ODataError',
'OnPremiseProperty',
'Operation',
'OperationDisplay',
'OperationListResult',
'PageOfDataControllerResource',
'Plan',
'ProxyResource',
'Resource',
'ResourceSku',
'SqlManagedInstance',
'SqlManagedInstanceK8SRaw',
'SqlManagedInstanceK8SSpec',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,51 +33,6 @@ def __init__(
self.password = kwargs.get('password', None)


class CommonSku(msrest.serialization.Model):
"""The resource model definition representing SKU for ARM resources.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the SKU. It is typically a letter+number code.
:type name: str
:param dev: Whether dev/test is enabled. When the dev field is set to true, the resource is
used for dev/test purpose.
:type dev: bool
:param size: The SKU size. When the name field is the combination of tier and some other value,
this would be the standalone code.
:type size: str
:param family: If the service has different generations of hardware, for the same SKU, then
that can be captured here.
:type family: str
:param capacity: If the SKU supports scale out/in then the capacity integer should be included.
If scale out/in is not possible for the resource this may be omitted.
:type capacity: int
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'dev': {'key': 'dev', 'type': 'bool'},
'size': {'key': 'size', 'type': 'str'},
'family': {'key': 'family', 'type': 'str'},
'capacity': {'key': 'capacity', 'type': 'int'},
}

def __init__(
self,
**kwargs
):
super(CommonSku, self).__init__(**kwargs)
self.name = kwargs['name']
self.dev = kwargs.get('dev', True)
self.size = kwargs.get('size', None)
self.family = kwargs.get('family', None)
self.capacity = kwargs.get('capacity', None)


class DataControllerProperties(msrest.serialization.Model):
"""The data controller properties.

Expand Down Expand Up @@ -400,41 +355,6 @@ def __init__(
self.type = kwargs.get('type', None)


class Identity(msrest.serialization.Model):
"""Identity for the resource.

Variables are only populated by the server, and will be ignored when sending a request.

:ivar principal_id: The principal ID of resource identity.
:vartype principal_id: str
:ivar tenant_id: The tenant ID of resource.
:vartype tenant_id: str
:param type: The identity type. The only acceptable values to pass in are None and
"SystemAssigned". The default value is None.
:type type: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(Identity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = kwargs.get('type', None)


class K8SResourceRequirements(msrest.serialization.Model):
"""The kubernetes resource limits and requests used to restrict or reserve resource usage.

Expand Down Expand Up @@ -542,37 +462,6 @@ def __init__(
self.primary_key = kwargs.get('primary_key', None)


class ODataError(msrest.serialization.Model):
"""Information about an error.

:param code: A language-independent error name.
:type code: str
:param message: The error message.
:type message: str
:param target: The target of the error (for example, the name of the property in error).
:type target: str
:param details: The error details.
:type details: list[~azure_arc_data_management_client.models.ODataError]
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ODataError]'},
}

def __init__(
self,
**kwargs
):
super(ODataError, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)


class OnPremiseProperty(msrest.serialization.Model):
"""Properties from the Kubernetes data controller.

Expand Down Expand Up @@ -752,121 +641,6 @@ def __init__(
self.next_link = kwargs.get('next_link', None)


class Plan(msrest.serialization.Model):
"""Plan for the resource.

All required parameters must be populated in order to send to Azure.

:param name: Required. A user defined name of the 3rd Party Artifact that is being procured.
:type name: str
:param publisher: Required. The publisher of the 3rd Party Artifact that is being bought. E.g.
NewRelic.
:type publisher: str
:param product: Required. The 3rd Party artifact that is being procured. E.g. NewRelic. Product
maps to the OfferID specified for the artifact at the time of Data Market onboarding.
:type product: str
:param promotion_code: A publisher provided promotion code as provisioned in Data Market for
the said product/artifact.
:type promotion_code: str
:param version: The version of the desired product/artifact.
:type version: str
"""

_validation = {
'name': {'required': True},
'publisher': {'required': True},
'product': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'publisher': {'key': 'publisher', 'type': 'str'},
'product': {'key': 'product', 'type': 'str'},
'promotion_code': {'key': 'promotionCode', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(Plan, self).__init__(**kwargs)
self.name = kwargs['name']
self.publisher = kwargs['publisher']
self.product = kwargs['product']
self.promotion_code = kwargs.get('promotion_code', None)
self.version = kwargs.get('version', None)


class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.

Variables are only populated by the server, and will be ignored when sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or
Microsoft.Storage/storageAccounts.
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(ProxyResource, self).__init__(**kwargs)


class ResourceSku(msrest.serialization.Model):
"""ResourceSku.

:param capacity:
:type capacity: int
:param family:
:type family: str
:param name:
:type name: str
:param size:
:type size: str
:param tier:
:type tier: str
"""

_attribute_map = {
'capacity': {'key': 'capacity', 'type': 'int'},
'family': {'key': 'family', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'size': {'key': 'size', 'type': 'str'},
'tier': {'key': 'tier', 'type': 'str'},
}

def __init__(
self,
**kwargs
):
super(ResourceSku, self).__init__(**kwargs)
self.capacity = kwargs.get('capacity', None)
self.family = kwargs.get('family', None)
self.name = kwargs.get('name', None)
self.size = kwargs.get('size', None)
self.tier = kwargs.get('tier', None)


class SqlManagedInstance(TrackedResource):
"""A SqlManagedInstance.

Expand Down
Loading