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
8 changes: 4 additions & 4 deletions sdk/support/azure-mgmt-support/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "665e7c3b6f26b148b3c05e55602621bc293cc0a4",
"commit": "d409622c9a7e5777cf2b14f94544b8a6c5b97e9e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected].7",
"@autorest/[email protected].16",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/support/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/[email protected].7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/support/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/[email protected].16 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/support/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class MicrosoftSupportConfiguration: # pylint: disable=too-many-instance-attrib
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-06-01-preview". 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:
api_version: str = kwargs.pop("api_version", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")

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 @@ -26,8 +26,12 @@
FileWorkspacesOperations,
FilesNoSubscriptionOperations,
FilesOperations,
LookUpResourceIdOperations,
Operations,
ProblemClassificationsNoSubscriptionOperations,
ProblemClassificationsOperations,
ServiceClassificationsNoSubscriptionOperations,
ServiceClassificationsOperations,
ServicesOperations,
SupportTicketsNoSubscriptionOperations,
SupportTicketsOperations,
Expand All @@ -45,6 +49,17 @@ class MicrosoftSupport: # pylint: disable=client-accepts-api-version-keyword,to
:vartype operations: azure.mgmt.support.operations.Operations
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.support.operations.ServicesOperations
:ivar service_classifications_no_subscription: ServiceClassificationsNoSubscriptionOperations
operations
:vartype service_classifications_no_subscription:
azure.mgmt.support.operations.ServiceClassificationsNoSubscriptionOperations
:ivar service_classifications: ServiceClassificationsOperations operations
:vartype service_classifications:
azure.mgmt.support.operations.ServiceClassificationsOperations
:ivar problem_classifications_no_subscription: ProblemClassificationsNoSubscriptionOperations
operations
:vartype problem_classifications_no_subscription:
azure.mgmt.support.operations.ProblemClassificationsNoSubscriptionOperations
:ivar problem_classifications: ProblemClassificationsOperations operations
:vartype problem_classifications:
azure.mgmt.support.operations.ProblemClassificationsOperations
Expand Down Expand Up @@ -72,14 +87,16 @@ class MicrosoftSupport: # pylint: disable=client-accepts-api-version-keyword,to
:vartype files: azure.mgmt.support.operations.FilesOperations
:ivar files_no_subscription: FilesNoSubscriptionOperations operations
:vartype files_no_subscription: azure.mgmt.support.operations.FilesNoSubscriptionOperations
:ivar look_up_resource_id: LookUpResourceIdOperations operations
:vartype look_up_resource_id: azure.mgmt.support.operations.LookUpResourceIdOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
: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 "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-06-01-preview". 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
Retry-After header is present.
Expand Down Expand Up @@ -119,6 +136,15 @@ def __init__(
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.service_classifications_no_subscription = ServiceClassificationsNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.service_classifications = ServiceClassificationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.problem_classifications_no_subscription = ProblemClassificationsNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.problem_classifications = ProblemClassificationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -144,6 +170,9 @@ def __init__(
self.files_no_subscription = FilesNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.look_up_resource_id = LookUpResourceIdOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "7.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class MicrosoftSupportConfiguration: # pylint: disable=too-many-instance-attrib
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-06-01-preview". 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:
api_version: str = kwargs.pop("api_version", "2024-04-01")
api_version: str = kwargs.pop("api_version", "2023-06-01-preview")

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 @@ -26,8 +26,12 @@
FileWorkspacesOperations,
FilesNoSubscriptionOperations,
FilesOperations,
LookUpResourceIdOperations,
Operations,
ProblemClassificationsNoSubscriptionOperations,
ProblemClassificationsOperations,
ServiceClassificationsNoSubscriptionOperations,
ServiceClassificationsOperations,
ServicesOperations,
SupportTicketsNoSubscriptionOperations,
SupportTicketsOperations,
Expand All @@ -45,6 +49,17 @@ class MicrosoftSupport: # pylint: disable=client-accepts-api-version-keyword,to
:vartype operations: azure.mgmt.support.aio.operations.Operations
:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.support.aio.operations.ServicesOperations
:ivar service_classifications_no_subscription: ServiceClassificationsNoSubscriptionOperations
operations
:vartype service_classifications_no_subscription:
azure.mgmt.support.aio.operations.ServiceClassificationsNoSubscriptionOperations
:ivar service_classifications: ServiceClassificationsOperations operations
:vartype service_classifications:
azure.mgmt.support.aio.operations.ServiceClassificationsOperations
:ivar problem_classifications_no_subscription: ProblemClassificationsNoSubscriptionOperations
operations
:vartype problem_classifications_no_subscription:
azure.mgmt.support.aio.operations.ProblemClassificationsNoSubscriptionOperations
:ivar problem_classifications: ProblemClassificationsOperations operations
:vartype problem_classifications:
azure.mgmt.support.aio.operations.ProblemClassificationsOperations
Expand Down Expand Up @@ -72,14 +87,16 @@ class MicrosoftSupport: # pylint: disable=client-accepts-api-version-keyword,to
:vartype files: azure.mgmt.support.aio.operations.FilesOperations
:ivar files_no_subscription: FilesNoSubscriptionOperations operations
:vartype files_no_subscription: azure.mgmt.support.aio.operations.FilesNoSubscriptionOperations
:ivar look_up_resource_id: LookUpResourceIdOperations operations
:vartype look_up_resource_id: azure.mgmt.support.aio.operations.LookUpResourceIdOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
: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 "2024-04-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-06-01-preview". 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
Retry-After header is present.
Expand Down Expand Up @@ -119,6 +136,15 @@ def __init__(
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.service_classifications_no_subscription = ServiceClassificationsNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.service_classifications = ServiceClassificationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.problem_classifications_no_subscription = ProblemClassificationsNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.problem_classifications = ProblemClassificationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -144,6 +170,9 @@ def __init__(
self.files_no_subscription = FilesNoSubscriptionOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.look_up_resource_id = LookUpResourceIdOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

from ._operations import Operations
from ._services_operations import ServicesOperations
from ._service_classifications_no_subscription_operations import ServiceClassificationsNoSubscriptionOperations
from ._service_classifications_operations import ServiceClassificationsOperations
from ._problem_classifications_no_subscription_operations import ProblemClassificationsNoSubscriptionOperations
from ._problem_classifications_operations import ProblemClassificationsOperations
from ._support_tickets_operations import SupportTicketsOperations
from ._support_tickets_no_subscription_operations import SupportTicketsNoSubscriptionOperations
Expand All @@ -19,6 +22,7 @@
from ._file_workspaces_no_subscription_operations import FileWorkspacesNoSubscriptionOperations
from ._files_operations import FilesOperations
from ._files_no_subscription_operations import FilesNoSubscriptionOperations
from ._look_up_resource_id_operations import LookUpResourceIdOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand All @@ -27,6 +31,9 @@
__all__ = [
"Operations",
"ServicesOperations",
"ServiceClassificationsNoSubscriptionOperations",
"ServiceClassificationsOperations",
"ProblemClassificationsNoSubscriptionOperations",
"ProblemClassificationsOperations",
"SupportTicketsOperations",
"SupportTicketsNoSubscriptionOperations",
Expand All @@ -38,6 +45,7 @@
"FileWorkspacesNoSubscriptionOperations",
"FilesOperations",
"FilesNoSubscriptionOperations",
"LookUpResourceIdOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
import urllib.parse

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -30,6 +31,10 @@
from ..._vendor import _convert_request
from ...operations._chat_transcripts_no_subscription_operations import build_get_request, build_list_request

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

Expand Down Expand Up @@ -71,7 +76,7 @@ def list(self, support_ticket_name: str, **kwargs: Any) -> AsyncIterable["_model
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ChatTranscriptsListResult] = kwargs.pop("cls", None)

error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -148,7 +153,7 @@ async def get(
:rtype: ~azure.mgmt.support.models.ChatTranscriptDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
import urllib.parse

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -30,6 +31,10 @@
from ..._vendor import _convert_request
from ...operations._chat_transcripts_operations import build_get_request, build_list_request

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

Expand Down Expand Up @@ -71,7 +76,7 @@ def list(self, support_ticket_name: str, **kwargs: Any) -> AsyncIterable["_model
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ChatTranscriptsListResult] = kwargs.pop("cls", None)

error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down Expand Up @@ -149,7 +154,7 @@ async def get(
:rtype: ~azure.mgmt.support.models.ChatTranscriptDetails
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Loading