Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .._utils.model_base import Model as _Model, rest_field


class InvalidAuth(_Model):
class InvalidAuth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""InvalidAuth.

:ivar error: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .._utils.model_base import Model as _Model, rest_field


class InvalidAuth(_Model):
class InvalidAuth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""InvalidAuth.

:ivar error: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .._utils.model_base import Model as _Model, rest_field


class InvalidAuth(_Model):
class InvalidAuth(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""InvalidAuth.

:ivar error: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]


class PublicOperationOperations:
class PublicOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -183,7 +183,7 @@ async def public_decorator_in_public(self, *, name: str, **kwargs: Any) -> _mode
return deserialized # type: ignore


class InternalOperationOperations:
class InternalOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -395,7 +395,7 @@ async def _public_decorator_in_internal(
return deserialized # type: ignore


class SharedModelInOperationOperations:
class SharedModelInOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -533,7 +533,7 @@ async def _internal(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
return deserialized # type: ignore


class RelativeModelInOperationOperations:
class RelativeModelInOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .. import models as _models


class AbstractModel(_Model):
class AbstractModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in internal operations, should be generated but not exported.

You probably want to use the sub-classes and not this class directly. Known sub-classes are:
Expand Down Expand Up @@ -53,7 +53,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class BaseModel(_Model):
class BaseModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in internal operations, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -81,7 +81,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class InnerModel(_Model):
class InnerModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in internal operations, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -109,7 +109,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class InternalDecoratorModelInInternal(_Model):
class InternalDecoratorModelInInternal(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in an internal operation, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -137,7 +137,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class NoDecoratorModelInInternal(_Model):
class NoDecoratorModelInInternal(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in an internal operation, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -165,7 +165,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class NoDecoratorModelInPublic(_Model):
class NoDecoratorModelInPublic(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in a public operation, should be generated and exported.

:ivar name: Required.
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class OuterModel(BaseModel):
class OuterModel(BaseModel): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in internal operations, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -224,7 +224,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class PublicDecoratorModelInInternal(_Model):
class PublicDecoratorModelInInternal(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in an internal operation but with public decorator, should be generated and exported.

:ivar name: Required.
Expand Down Expand Up @@ -252,7 +252,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class PublicDecoratorModelInPublic(_Model):
class PublicDecoratorModelInPublic(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in a public operation, should be generated and exported.

:ivar name: Required.
Expand Down Expand Up @@ -280,7 +280,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)


class RealModel(AbstractModel, discriminator="real"):
class RealModel(AbstractModel, discriminator="real"): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used in internal operations, should be generated but not exported.

:ivar name: Required.
Expand Down Expand Up @@ -311,7 +311,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
self.kind = "real" # type: ignore


class SharedModel(_Model):
class SharedModel(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Used by both public and internal operation. It should be generated and exported.

:ivar name: Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def build_relative_model_in_operation_discriminator_request( # pylint: disable=
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


class PublicOperationOperations:
class PublicOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -356,7 +356,7 @@ def public_decorator_in_public(self, *, name: str, **kwargs: Any) -> _models.Pub
return deserialized # type: ignore


class InternalOperationOperations:
class InternalOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -564,7 +564,7 @@ def _public_decorator_in_internal(self, *, name: str, **kwargs: Any) -> _models.
return deserialized # type: ignore


class SharedModelInOperationOperations:
class SharedModelInOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down Expand Up @@ -702,7 +702,7 @@ def _internal(self, *, name: str, **kwargs: Any) -> _models.SharedModel:
return deserialized # type: ignore


class RelativeModelInOperationOperations:
class RelativeModelInOperationOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
Loading