Skip to content

Commit

Permalink
CodeGen from PR 16648 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Refactor only] Try to use common type as much as possible and remove not used field (Azure#16648)

* IoT Central Public API 1.1-preview Oct Release (Azure#16514)

* Add new 2.0-preview.1 version for IoT Central

* fix typo on enum value

* rollback 1.0 changes, applied 2.0-preview.1

* fix typo

* remove non-used examples

* fix style

* update version from 2.0-preview.1 to 1.1-preview

* update code review comments, fix patch consumes with json-patch support, fix examples for fileupload

* add nextLink to collection of orgs

* fix typo

* fix wrong position of paging

* fix the paging

* add . to description

* update default to use enum for api-version

* add oct release with query, cde v2, device filter, device template filter, relationship, edge template, simplified template patching

* update examples

* fix lint error, model validation

* fix missing type in examples, remove url format

* fix ID case

* fix id case

* fix ID case

* add iotc query language reference

* fix typo

* Try to use common types for operation list

* Fix semnatic

* try to use provided tracked resrouce

* Remove dup

* Fix tracked resource

* blah

* remove not used stuff

* Remove types aren't used

* use parameters from common

* fix correct path

* Adding back

* Adding coming sku back

Co-authored-by: Johnson Yang <[email protected]>
  • Loading branch information
SDKAuto and yang-hai-feng committed Nov 4, 2021
1 parent 625861a commit aae7e17
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 588 deletions.
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": "4faf292aa0f76fd1cfc2a4085c69391d79ada56e",
"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 All @@ -89,10 +77,10 @@
ArcSqlManagedInstanceLicenseType,
ArcSqlServerLicenseType,
ConnectionStatus,
CreatedByType,
DefenderStatus,
EditionType,
ExtendedLocationTypes,
IdentityType,
Infrastructure,
OperationOrigin,
SqlManagedInstanceSkuTier,
Expand All @@ -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 All @@ -141,10 +123,10 @@
'ArcSqlManagedInstanceLicenseType',
'ArcSqlServerLicenseType',
'ConnectionStatus',
'CreatedByType',
'DefenderStatus',
'EditionType',
'ExtendedLocationTypes',
'IdentityType',
'Infrastructure',
'OperationOrigin',
'SqlManagedInstanceSkuTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ class ConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
DISCONNECTED = "Disconnected"
UNKNOWN = "Unknown"

class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of identity that created the resource.
"""

USER = "User"
APPLICATION = "Application"
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"

class DefenderStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Status of Azure Defender.
"""
Expand All @@ -75,15 +84,6 @@ class ExtendedLocationTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum))

CUSTOM_LOCATION = "CustomLocation"

class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of identity that creates/modifies resources
"""

USER = "User"
APPLICATION = "Application"
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"

class Infrastructure(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The infrastructure the data controller is running on.
"""
Expand Down
Loading

0 comments on commit aae7e17

Please sign in to comment.