Skip to content
Closed
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
6 changes: 3 additions & 3 deletions sdk/voiceservices/azure-mgmt-voiceservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "84113e300ebbd2e804f000b73b522ffd8acedd4a",
"commit": "d1f290a77a9e11d1e9baccba127e2712203cfdc5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.4.8",
"@autorest/python@6.4.12",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/voiceservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/voiceservices/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/voiceservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class VoiceServicesMgmtClientConfiguration(Configuration): # pylint: disable=to
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-01-31". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-04-03". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(VoiceServicesMgmtClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-01-31")
api_version: str = kwargs.pop("api_version", "2023-04-03")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class VoiceServicesMgmtClient: # pylint: disable=client-accepts-api-version-key
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-01-31". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-04-03". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class VoiceServicesMgmtClientConfiguration(Configuration): # pylint: disable=to
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-01-31". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-04-03". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(VoiceServicesMgmtClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-01-31")
api_version: str = kwargs.pop("api_version", "2023-04-03")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class VoiceServicesMgmtClient: # pylint: disable=client-accepts-api-version-key
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-01-31". Note that overriding this
:keyword api_version: Api Version. Default value is "2023-04-03". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse

Expand Down Expand Up @@ -328,7 +329,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(resource, (IO, bytes)):
if isinstance(resource, (IOBase, bytes)):
_content = resource
else:
_json = self._serialize.body(resource, "CommunicationsGateway")
Expand Down Expand Up @@ -759,7 +760,7 @@ async def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(properties, (IO, bytes)):
if isinstance(properties, (IOBase, bytes)):
_content = properties
else:
_json = self._serialize.body(properties, "CommunicationsGatewayUpdate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload

from azure.core.exceptions import (
Expand Down Expand Up @@ -130,7 +131,7 @@ async def check_local(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(body, (IO, bytes)):
if isinstance(body, (IOBase, bytes)):
_content = body
else:
_json = self._serialize.body(body, "CheckNameAvailabilityRequest")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse

Expand Down Expand Up @@ -247,7 +248,7 @@ async def _create_or_update_initial(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(resource, (IO, bytes)):
if isinstance(resource, (IOBase, bytes)):
_content = resource
else:
_json = self._serialize.body(resource, "TestLine")
Expand Down Expand Up @@ -698,7 +699,7 @@ async def update(
content_type = content_type or "application/json"
_json = None
_content = None
if isinstance(properties, (IO, bytes)):
if isinstance(properties, (IOBase, bytes)):
_content = properties
else:
_json = self._serialize.body(properties, "TestLineUpdate")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse
from ._models_py3 import ManagedServiceIdentity
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
Expand All @@ -25,6 +26,7 @@
from ._models_py3 import TestLineListResult
from ._models_py3 import TestLineUpdate
from ._models_py3 import TrackedResource
from ._models_py3 import UserAssignedIdentity

from ._voice_services_mgmt_client_enums import ActionType
from ._voice_services_mgmt_client_enums import AutoGeneratedDomainNameLabelScope
Expand All @@ -33,6 +35,7 @@
from ._voice_services_mgmt_client_enums import Connectivity
from ._voice_services_mgmt_client_enums import CreatedByType
from ._voice_services_mgmt_client_enums import E911Type
from ._voice_services_mgmt_client_enums import ManagedServiceIdentityType
from ._voice_services_mgmt_client_enums import Origin
from ._voice_services_mgmt_client_enums import ProvisioningState
from ._voice_services_mgmt_client_enums import Status
Expand All @@ -51,6 +54,7 @@
"ErrorAdditionalInfo",
"ErrorDetail",
"ErrorResponse",
"ManagedServiceIdentity",
"Operation",
"OperationDisplay",
"OperationListResult",
Expand All @@ -62,13 +66,15 @@
"TestLineListResult",
"TestLineUpdate",
"TrackedResource",
"UserAssignedIdentity",
"ActionType",
"AutoGeneratedDomainNameLabelScope",
"CheckNameAvailabilityReason",
"CommunicationsPlatform",
"Connectivity",
"CreatedByType",
"E911Type",
"ManagedServiceIdentityType",
"Origin",
"ProvisioningState",
"Status",
Expand Down
Loading