Skip to content

Commit

Permalink
CodeGen from PR 31818 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 796643fe4a37115342d85f0bbfa5c411cbb94471 into e6bf6e8f8ff8b3325aa2618b712d5c3bad770631
  • Loading branch information
SDKAuto committed Dec 10, 2024
1 parent 5fa44c1 commit f1d198d
Show file tree
Hide file tree
Showing 208 changed files with 10,206 additions and 1,688 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "f1e65f90e77a72258801439e757fc76ecb13a7fc",
"commit": "ebd40aee03b3006a30213900bd9e7eeac9b478f7",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.26.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/desktopvirtualization/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-2024-04 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/desktopvirtualization/resource-manager/readme.md --generate-sample=True --generate-test=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.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/desktopvirtualization/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._desktop_virtualization_mgmt_client import DesktopVirtualizationMgmtClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._desktop_virtualization_mgmt_client import DesktopVirtualizationMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"DesktopVirtualizationMgmtClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ._version import VERSION

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


Expand All @@ -28,13 +27,13 @@ class DesktopVirtualizationMgmtClientConfiguration: # pylint: disable=too-many-
: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-03". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-08-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-03")
api_version: str = kwargs.pop("api_version", "2024-08-08-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 @@ -19,12 +19,15 @@
from ._configuration import DesktopVirtualizationMgmtClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
ActiveSessionHostConfigurationsOperations,
AppAttachPackageInfoOperations,
AppAttachPackageOperations,
ApplicationGroupsOperations,
ApplicationsOperations,
ControlSessionHostUpdateOperations,
DesktopsOperations,
HostPoolsOperations,
InitiateSessionHostUpdateOperations,
MSIXPackagesOperations,
MsixImagesOperations,
Operations,
Expand All @@ -33,18 +36,21 @@
ScalingPlanPersonalSchedulesOperations,
ScalingPlanPooledSchedulesOperations,
ScalingPlansOperations,
SessionHostConfigurationsOperations,
SessionHostManagementsOperations,
SessionHostManagementsUpdateStatusOperations,
SessionHostOperations,
SessionHostsOperations,
StartMenuItemsOperations,
UserSessionsOperations,
WorkspacesOperations,
)

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


class DesktopVirtualizationMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class DesktopVirtualizationMgmtClient: # pylint: disable=too-many-instance-attributes
"""DesktopVirtualizationMgmtClient.
:ivar operations: Operations operations
Expand Down Expand Up @@ -76,10 +82,31 @@ class DesktopVirtualizationMgmtClient: # pylint: disable=client-accepts-api-ver
:vartype desktops: azure.mgmt.desktopvirtualization.operations.DesktopsOperations
:ivar host_pools: HostPoolsOperations operations
:vartype host_pools: azure.mgmt.desktopvirtualization.operations.HostPoolsOperations
:ivar session_host_managements: SessionHostManagementsOperations operations
:vartype session_host_managements:
azure.mgmt.desktopvirtualization.operations.SessionHostManagementsOperations
:ivar initiate_session_host_update: InitiateSessionHostUpdateOperations operations
:vartype initiate_session_host_update:
azure.mgmt.desktopvirtualization.operations.InitiateSessionHostUpdateOperations
:ivar control_session_host_update: ControlSessionHostUpdateOperations operations
:vartype control_session_host_update:
azure.mgmt.desktopvirtualization.operations.ControlSessionHostUpdateOperations
:ivar session_host_managements_update_status: SessionHostManagementsUpdateStatusOperations
operations
:vartype session_host_managements_update_status:
azure.mgmt.desktopvirtualization.operations.SessionHostManagementsUpdateStatusOperations
:ivar session_host_configurations: SessionHostConfigurationsOperations operations
:vartype session_host_configurations:
azure.mgmt.desktopvirtualization.operations.SessionHostConfigurationsOperations
:ivar active_session_host_configurations: ActiveSessionHostConfigurationsOperations operations
:vartype active_session_host_configurations:
azure.mgmt.desktopvirtualization.operations.ActiveSessionHostConfigurationsOperations
:ivar user_sessions: UserSessionsOperations operations
:vartype user_sessions: azure.mgmt.desktopvirtualization.operations.UserSessionsOperations
:ivar session_hosts: SessionHostsOperations operations
:vartype session_hosts: azure.mgmt.desktopvirtualization.operations.SessionHostsOperations
:ivar session_host: SessionHostOperations operations
:vartype session_host: azure.mgmt.desktopvirtualization.operations.SessionHostOperations
:ivar msix_packages: MSIXPackagesOperations operations
:vartype msix_packages: azure.mgmt.desktopvirtualization.operations.MSIXPackagesOperations
:ivar app_attach_package_info: AppAttachPackageInfoOperations operations
Expand All @@ -96,9 +123,11 @@ class DesktopVirtualizationMgmtClient: # pylint: disable=client-accepts-api-ver
: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-03". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-08-08-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.
"""

def __init__(
Expand Down Expand Up @@ -157,8 +186,27 @@ def __init__(
self.applications = ApplicationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.desktops = DesktopsOperations(self._client, self._config, self._serialize, self._deserialize)
self.host_pools = HostPoolsOperations(self._client, self._config, self._serialize, self._deserialize)
self.session_host_managements = SessionHostManagementsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.initiate_session_host_update = InitiateSessionHostUpdateOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.control_session_host_update = ControlSessionHostUpdateOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.session_host_managements_update_status = SessionHostManagementsUpdateStatusOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.session_host_configurations = SessionHostConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.active_session_host_configurations = ActiveSessionHostConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.user_sessions = UserSessionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.session_hosts = SessionHostsOperations(self._client, self._config, self._serialize, self._deserialize)
self.session_host = SessionHostOperations(self._client, self._config, self._serialize, self._deserialize)
self.msix_packages = MSIXPackagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.app_attach_package_info = AppAttachPackageInfoOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down
Loading

0 comments on commit f1d198d

Please sign in to comment.