Skip to content

Commit

Permalink
Update tcgc (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored May 15, 2024
1 parent bb8b93b commit abe7b3c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 84 deletions.
7 changes: 7 additions & 0 deletions .chronus/changes/update_tcgc-2024-4-15-17-13-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: dependencies
packages:
- "@azure-tools/typespec-python"
---

bump tcgc to 0.41.3
4 changes: 2 additions & 2 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
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 @@ -78,7 +78,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
24 changes: 12 additions & 12 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 abe7b3c

Please sign in to comment.