Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Azure/autorest.python into …
Browse files Browse the repository at this point in the history
…link_emitters
  • Loading branch information
iscai-msft committed May 16, 2024
2 parents 2bbe3ed + e748eec commit bdcd5a2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 81 deletions.
7 changes: 7 additions & 0 deletions packages/typespec-python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release

## 0.23.11

### Bump dependencies

- [#2590](https://github.com/Azure/autorest.python/pull/2590) bump tcgc to 0.41.3


## 2023-05-11 - 0.23.10

| Library | Min Version |
Expand Down
6 changes: 3 additions & 3 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-python",
"version": "0.23.10",
"version": "0.23.11",
"author": "Microsoft Corporation",
"description": "TypeSpec emitter for Python SDKs",
"homepage": "https://github.com/Azure/autorest.python",
Expand Down Expand Up @@ -45,7 +45,7 @@
"@azure-tools/typespec-azure-core": ">=0.42.0 <1.0.0",
"@azure-tools/typespec-azure-resource-manager": ">=0.42.0 <1.0.0",
"@azure-tools/typespec-autorest": ">=0.42.0 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.42.2 <1.0.0",
"@azure-tools/typespec-client-generator-core": ">=0.42.3 <1.0.0",
"@typespec/compiler": ">=0.56.0 <1.0.0",
"@typespec/http": ">=0.56.0 <1.0.0",
"@typespec/rest": ">=0.56.0 <1.0.0",
Expand Down Expand Up @@ -80,7 +80,7 @@
"rimraf": "~5.0.0",
"typescript": "~5.1.3",
"@azure-tools/typespec-azure-core": "~0.42.0",
"@azure-tools/typespec-client-generator-core": "~0.42.2",
"@azure-tools/typespec-client-generator-core": "~0.42.3",
"@typespec/compiler": "~0.56.0",
"@typespec/http": "~0.56.0",
"@typespec/rest": "~0.56.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"CrossLanguagePackageId": "Microsoft.AzureSphere",
"CrossLanguageDefinitionId": {
"azure.mgmt.spheredpg.models.ArmOperationStatus": "Azure.ResourceManager.ArmOperationStatus",
"azure.mgmt.spheredpg.models.Resource": "Azure.ResourceManager.Foundations.Resource",
"azure.mgmt.spheredpg.models.TrackedResource": "Azure.ResourceManager.Foundations.TrackedResource",
"azure.mgmt.spheredpg.models.Catalog": "Microsoft.AzureSphere.Catalog",
Expand Down Expand Up @@ -53,7 +52,6 @@
"azure.mgmt.spheredpg.models.SystemData": "Azure.ResourceManager.Foundations.SystemData",
"azure.mgmt.spheredpg.models.CreatedByType": "Azure.ResourceManager.Foundations.createdByType",
"azure.mgmt.spheredpg.models.ProvisioningState": "Microsoft.AzureSphere.ProvisioningState",
"azure.mgmt.spheredpg.models.ResourceProvisioningState": "Azure.ResourceManager.ResourceProvisioningState",
"azure.mgmt.spheredpg.models.CapabilityType": "Microsoft.AzureSphere.CapabilityType",
"azure.mgmt.spheredpg.models.RegionalDataBoundary": "Microsoft.AzureSphere.RegionalDataBoundary",
"azure.mgmt.spheredpg.models.ImageType": "Microsoft.AzureSphere.ImageType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._models import ArmOperationStatus
from ._models import Catalog
from ._models import CatalogListResult
from ._models import CatalogProperties
Expand Down Expand Up @@ -67,14 +66,12 @@
from ._enums import Origin
from ._enums import ProvisioningState
from ._enums import RegionalDataBoundary
from ._enums import ResourceProvisioningState
from ._enums import UpdatePolicy
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ArmOperationStatus",
"Catalog",
"CatalogListResult",
"CatalogProperties",
Expand Down Expand Up @@ -134,7 +131,6 @@
"Origin",
"ProvisioningState",
"RegionalDataBoundary",
"ResourceProvisioningState",
"UpdatePolicy",
]
__all__.extend([p for p in _patch_all if p not in __all__])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,6 @@ class RegionalDataBoundary(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""EU data boundary"""


class ResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The provisioning state of a resource type."""

SUCCEEDED = "Succeeded"
"""Resource has been created."""
FAILED = "Failed"
"""Resource creation failed."""
CANCELED = "Canceled"
"""Resource creation was canceled."""


class UpdatePolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Update policy values."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,59 +18,6 @@
from .. import models as _models


class ArmOperationStatus(_model_base.Model):
"""Standard Azure Resource Manager operation status response.
Readonly variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar status: The operation status. Required. Known values are: "Succeeded", "Failed", and
"Canceled".
:vartype status: str or ~azure.mgmt.spheredpg.models.ResourceProvisioningState
:ivar name: The name of the operationStatus resource.
:vartype name: str
:ivar start_time: Operation start time.
:vartype start_time: ~datetime.datetime
:ivar end_time: Operation complete time.
:vartype end_time: ~datetime.datetime
:ivar percent_complete: The progress made toward completing the operation.
:vartype percent_complete: float
:ivar error: Errors that occurred if the operation ended with Canceled or Failed status.
:vartype error: ~azure.mgmt.spheredpg.models.ErrorDetail
"""

status: Union[str, "_models.ResourceProvisioningState"] = rest_field()
"""The operation status. Required. Known values are: \"Succeeded\", \"Failed\", and \"Canceled\"."""
name: Optional[str] = rest_field(visibility=["read"])
"""The name of the operationStatus resource."""
start_time: Optional[datetime.datetime] = rest_field(name="startTime", visibility=["read"], format="rfc3339")
"""Operation start time."""
end_time: Optional[datetime.datetime] = rest_field(name="endTime", visibility=["read"], format="rfc3339")
"""Operation complete time."""
percent_complete: Optional[float] = rest_field(name="percentComplete", visibility=["read"])
"""The progress made toward completing the operation."""
error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read"])
"""Errors that occurred if the operation ended with Canceled or Failed status."""

@overload
def __init__(
self,
*,
status: Union[str, "_models.ResourceProvisioningState"],
): ...

@overload
def __init__(self, mapping: Mapping[str, Any]):
"""
:param mapping: raw JSON to initialize the model.
:type mapping: Mapping[str, Any]
"""

def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation
super().__init__(*args, **kwargs)


class Resource(_model_base.Model):
"""Common properties for all Azure Resource Manager resources.
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bdcd5a2

Please sign in to comment.