Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,6 @@
import geojson


class Geometry(TypedDict, total=False):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These deleted class in types.py are not referred by any model or operation so they should be deleted.

"""Geometry.

:ivar type: Required.
:vartype type: str
:ivar coordinates: Required.
:vartype coordinates: list[float]
"""

type: Required[str]
"""Required."""
coordinates: Required[list[float]]
"""Required."""


class ModelWithFeatureProperty(TypedDict, total=False):
"""ModelWithFeatureProperty.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,6 @@
from typing_extensions import Required, TypedDict


class BlobProperties(TypedDict, total=False):
"""Properties of a blob.

:ivar name: Required.
:vartype name: str
:ivar size: Required.
:vartype size: int
:ivar content_type: Required.
:vartype content_type: str
:ivar created_on: Required.
:vartype created_on: str
"""

name: Required[str]
"""Required."""
size: Required[int]
"""Required."""
contentType: Required[str]
"""Required."""
createdOn: Required[str]
"""Required."""


class Input(TypedDict, total=False):
"""Input.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ class User(TypedDict, total=False):
"""The entity tag for this resource. Required."""


class UserList(TypedDict, total=False):
"""UserList.

:ivar users: Required.
:vartype users: list["User"]
"""

users: Required[list["User"]]
"""Required."""


class UserOrder(TypedDict, total=False):
"""UserOrder for testing list with expand.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,3 @@ class GenerationOptions(TypedDict, total=False):

prompt: Required[str]
"""Prompt. Required."""


class GenerationResult(TypedDict, total=False):
"""Result of the generation.

:ivar data: The data. Required.
:vartype data: str
"""

data: Required[str]
"""The data. Required."""
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@
from typing_extensions import Required, TypedDict


class ExportedUser(TypedDict, total=False):
"""The exported user data.

:ivar name: The name of user. Required.
:vartype name: str
:ivar resource_uri: The exported URI. Required.
:vartype resource_uri: str
"""

name: Required[str]
"""The name of user. Required."""
resourceUri: Required[str]
"""The exported URI. Required."""


class User(TypedDict, total=False):
"""Details about a user.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@
from typing_extensions import Required, TypedDict


class FirstItem(TypedDict, total=False):
"""First item.

:ivar id: The id of the item. Required.
:vartype id: int
"""

id: Required[int]
"""The id of the item. Required."""


class ListItemInputBody(TypedDict, total=False):
"""The body of the input.

Expand All @@ -29,56 +18,3 @@ class ListItemInputBody(TypedDict, total=False):

inputName: Required[str]
"""The name of the input. Required."""


class SecondItem(TypedDict, total=False):
"""Second item.

:ivar name: The name of the item. Required.
:vartype name: str
"""

name: Required[str]
"""The name of the item. Required."""


class User(TypedDict, total=False):
"""Details about a user.

:ivar id: The user's id. Required.
:vartype id: int
:ivar name: The user's name. Required.
:vartype name: str
:ivar orders: The user's order list.
:vartype orders: list["UserOrder"]
:ivar etag: The entity tag for this resource. Required.
:vartype etag: str
"""

id: Required[int]
"""The user's id. Required."""
name: Required[str]
"""The user's name. Required."""
orders: list["UserOrder"]
"""The user's order list."""
etag: Required[str]
"""The entity tag for this resource. Required."""


class UserOrder(TypedDict, total=False):
"""UserOrder for testing list with expand.

:ivar id: The user's id. Required.
:vartype id: int
:ivar user_id: The user's id. Required.
:vartype user_id: int
:ivar detail: The user's order detail. Required.
:vartype detail: str
"""

id: Required[int]
"""The user's id. Required."""
userId: Required[int]
"""The user's id. Required."""
detail: Required[str]
"""The user's order detail. Required."""
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@
from typing_extensions import Required, TypedDict


class User(TypedDict, total=False):
"""Sample Model.
:ivar id: The user's id. Required.
:vartype id: int
:ivar name: The user's name.
:vartype name: str
"""

id: Required[int]
"""The user's id. Required."""
name: str
"""The user's name."""


class UserActionParam(TypedDict, total=False):
"""User action param.
Expand All @@ -33,14 +18,3 @@ class UserActionParam(TypedDict, total=False):

userActionValue: Required[str]
"""User action value. Required."""


class UserActionResponse(TypedDict, total=False):
"""User action response.
:ivar user_action_result: User action result. Required.
:vartype user_action_result: str
"""

userActionResult: Required[str]
"""User action result. Required."""
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@ class ActionRequest(TypedDict, total=False):
recordProperty: dict[str, str]


class ActionResponse(TypedDict, total=False):
"""ActionResponse.

:ivar string_property: Required.
:vartype string_property: str
:ivar model_property:
:vartype model_property: "Model"
:ivar array_property:
:vartype array_property: list[str]
:ivar record_property:
:vartype record_property: dict[str, str]
"""

stringProperty: Required[str]
"""Required."""
modelProperty: "Model"
arrayProperty: list[str]
recordProperty: dict[str, str]


class Model(TypedDict, total=False):
"""Model.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,13 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING, Union
from typing import TYPE_CHECKING, Union
from typing_extensions import Required, TypedDict

if TYPE_CHECKING:
from .models import CreatedByType, ManagedServiceIdentityType, ResourceProvisioningState


class ApiError(TypedDict, total=False):
"""Api error.

:ivar details: The Api error details.
:vartype details: list["ApiErrorBase"]
:ivar innererror: The Api inner error.
:vartype innererror: "InnerError"
:ivar code: The error code.
:vartype code: str
:ivar target: The target of the particular error.
:vartype target: str
:ivar message: The error message.
:vartype message: str
"""

details: list["ApiErrorBase"]
"""The Api error details."""
innererror: "InnerError"
"""The Api inner error."""
code: str
"""The error code."""
target: str
"""The target of the particular error."""
message: str
"""The error message."""


class ApiErrorBase(TypedDict, total=False):
"""Api error base.

:ivar code: The error code.
:vartype code: str
:ivar target: The target of the particular error.
:vartype target: str
:ivar message: The error message.
:vartype message: str
"""

code: str
"""The error code."""
target: str
"""The target of the particular error."""
message: str
"""The error message."""


class Resource(TypedDict, total=False):
"""Resource.

Expand Down Expand Up @@ -170,17 +124,6 @@ class ArmResourceIdentifierResourceProperties(TypedDict, total=False):
"""An ARM resource identifier with all scopes. Required."""


class CloudError(TypedDict, total=False):
"""An error response.

:ivar error: Api error.
:vartype error: "ApiError"
"""

error: "ApiError"
"""Api error."""


class ConfidentialResource(TrackedResource):
"""Concrete tracked resource types can be created by aliasing this type using a specific property
type.
Expand Down Expand Up @@ -223,74 +166,6 @@ class ConfidentialResourceProperties(TypedDict, total=False):
"""Required."""


class ErrorAdditionalInfo(TypedDict, total=False):
"""The resource management error additional info.

:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: Any
"""

type: str
"""The additional info type."""
info: Any
"""The additional info."""


class ErrorDetail(TypedDict, total=False):
"""The error detail.

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list["ErrorDetail"]
:ivar additional_info: The error additional info.
:vartype additional_info: list["ErrorAdditionalInfo"]
"""

code: str
"""The error code."""
message: str
"""The error message."""
target: str
"""The error target."""
details: list["ErrorDetail"]
"""The error details."""
additionalInfo: list["ErrorAdditionalInfo"]
"""The error additional info."""


class ErrorResponse(TypedDict, total=False):
"""Error response.

:ivar error: The error object.
:vartype error: "ErrorDetail"
"""

error: "ErrorDetail"
"""The error object."""


class InnerError(TypedDict, total=False):
"""Inner error details.

:ivar exceptiontype: The exception type.
:vartype exceptiontype: str
:ivar errordetail: The internal error message or exception dump.
:vartype errordetail: str
"""

exceptiontype: str
"""The exception type."""
errordetail: str
"""The internal error message or exception dump."""


class ManagedIdentityTrackedResource(TrackedResource):
"""Concrete tracked resource types can be created by aliasing this type using a specific property
type.
Expand Down
Loading