Skip to content

Commit

Permalink
regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc committed Sep 30, 2024
1 parent 8b1671b commit d8eb8c9
Show file tree
Hide file tree
Showing 2,217 changed files with 14,948 additions and 22,903 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from ._version import VERSION


class AutoRestDurationTestServiceConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class AutoRestDurationTestServiceConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for AutoRestDurationTestService.
Note that all parameters used to create this instance are saved as instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .._version import VERSION


class AutoRestDurationTestServiceConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class AutoRestDurationTestServiceConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for AutoRestDurationTestService.
Note that all parameters used to create this instance are saved as instance
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
import datetime
import sys
from typing import Any, Callable, Dict, Optional, Type, TypeVar
from typing import Any, Callable, Dict, Optional, TypeVar

from azure.core.exceptions import (
ClientAuthenticationError,
Expand All @@ -34,7 +33,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -66,7 +65,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]:
:rtype: ~datetime.timedelta or None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -105,9 +104,7 @@ async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]:
return deserialized # type: ignore

@distributed_trace_async
async def put_positive_duration( # pylint: disable=inconsistent-return-statements
self, duration_body: datetime.timedelta, **kwargs: Any
) -> None:
async def put_positive_duration(self, duration_body: datetime.timedelta, **kwargs: Any) -> None:
"""Put a positive duration value.
:param duration_body: duration body. Required.
Expand All @@ -116,7 +113,7 @@ async def put_positive_duration( # pylint: disable=inconsistent-return-statemen
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -163,7 +160,7 @@ async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta:
:rtype: ~datetime.timedelta
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -209,7 +206,7 @@ async def get_invalid(self, **kwargs: Any) -> datetime.timedelta:
:rtype: ~datetime.timedelta
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -8,7 +7,7 @@
# --------------------------------------------------------------------------
import datetime
import sys
from typing import Any, Callable, Dict, Optional, Type, TypeVar
from typing import Any, Callable, Dict, Optional, TypeVar

from azure.core.exceptions import (
ClientAuthenticationError,
Expand All @@ -29,7 +28,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -123,7 +122,7 @@ def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]:
:rtype: ~datetime.timedelta or None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -173,7 +172,7 @@ def put_positive_duration( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -220,7 +219,7 @@ def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta:
:rtype: ~datetime.timedelta
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -266,7 +265,7 @@ def get_invalid(self, **kwargs: Any) -> datetime.timedelta:
:rtype: ~datetime.timedelta
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, Callable, Dict, Optional, Type, TypeVar
from typing import Any, Callable, Dict, Optional, TypeVar

from azure.core.exceptions import (
ClientAuthenticationError,
Expand Down Expand Up @@ -35,7 +34,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand All @@ -60,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None:
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")

@distributed_trace_async
async def post_required( # pylint: disable=inconsistent-return-statements
async def post_required(
self,
parameter_grouping_post_required_parameters: _models.ParameterGroupingPostRequiredParameters,
**kwargs: Any
Expand All @@ -74,7 +73,7 @@ async def post_required( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -126,7 +125,7 @@ async def post_required( # pylint: disable=inconsistent-return-statements
return cls(pipeline_response, None, {}) # type: ignore

@distributed_trace_async
async def post_optional( # pylint: disable=inconsistent-return-statements
async def post_optional(
self,
parameter_grouping_post_optional_parameters: Optional[_models.ParameterGroupingPostOptionalParameters] = None,
**kwargs: Any
Expand All @@ -140,7 +139,7 @@ async def post_optional( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -183,7 +182,7 @@ async def post_optional( # pylint: disable=inconsistent-return-statements
return cls(pipeline_response, None, {}) # type: ignore

@distributed_trace_async
async def post_reserved_words( # pylint: disable=inconsistent-return-statements
async def post_reserved_words(
self,
parameter_grouping_post_reserved_words_parameters: Optional[
_models.ParameterGroupingPostReservedWordsParameters
Expand All @@ -200,7 +199,7 @@ async def post_reserved_words( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -243,7 +242,7 @@ async def post_reserved_words( # pylint: disable=inconsistent-return-statements
return cls(pipeline_response, None, {}) # type: ignore

@distributed_trace_async
async def post_multi_param_groups( # pylint: disable=inconsistent-return-statements
async def post_multi_param_groups(
self,
first_parameter_group: Optional[_models.FirstParameterGroup] = None,
parameter_grouping_post_multi_param_groups_second_param_group: Optional[
Expand All @@ -263,7 +262,7 @@ async def post_multi_param_groups( # pylint: disable=inconsistent-return-statem
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -313,7 +312,7 @@ async def post_multi_param_groups( # pylint: disable=inconsistent-return-statem
return cls(pipeline_response, None, {}) # type: ignore

@distributed_trace_async
async def post_shared_parameter_group_object( # pylint: disable=inconsistent-return-statements
async def post_shared_parameter_group_object(
self, first_parameter_group: Optional[_models.FirstParameterGroup] = None, **kwargs: Any
) -> None:
"""Post parameters with a shared parameter group object.
Expand All @@ -324,7 +323,7 @@ async def post_shared_parameter_group_object( # pylint: disable=inconsistent-re
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -367,9 +366,7 @@ async def post_shared_parameter_group_object( # pylint: disable=inconsistent-re
return cls(pipeline_response, None, {}) # type: ignore

@distributed_trace_async
async def group_with_constant( # pylint: disable=inconsistent-return-statements
self, grouper: Optional[_models.Grouper] = None, **kwargs: Any
) -> None:
async def group_with_constant(self, grouper: Optional[_models.Grouper] = None, **kwargs: Any) -> None:
"""Parameter group with a constant. Pass in 'foo' for groupedConstant and 'bar' for
groupedParameter.
Expand All @@ -379,7 +376,7 @@ async def group_with_constant( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines,too-many-statements
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -7,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, Callable, Dict, Literal, Optional, Type, TypeVar
from typing import Any, Callable, Dict, Literal, Optional, TypeVar

from msrest import Serializer

Expand All @@ -29,7 +28,7 @@
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
from typing import MutableMapping # type: ignore
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -220,7 +219,7 @@ def post_required( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -286,7 +285,7 @@ def post_optional( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -346,7 +345,7 @@ def post_reserved_words( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -409,7 +408,7 @@ def post_multi_param_groups( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -470,7 +469,7 @@ def post_shared_parameter_group_object( # pylint: disable=inconsistent-return-s
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -525,7 +524,7 @@ def group_with_constant( # pylint: disable=inconsistent-return-statements
:rtype: None
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ._configuration import AutoRestReportServiceForAzureConfiguration

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core import PipelineClient

from ._serialization import Deserializer, Serializer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ._configuration import AutoRestReportServiceForAzureConfiguration

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core import AsyncPipelineClient

from .._serialization import Deserializer, Serializer
Expand Down
Loading

0 comments on commit d8eb8c9

Please sign in to comment.