Skip to content

Commit

Permalink
CodeGen from PR 16083 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
force for sessionHost assign (Azure#16083)
  • Loading branch information
SDKAuto committed Sep 18, 2021
1 parent 03516c3 commit 6a36f39
Show file tree
Hide file tree
Showing 24 changed files with 11,472 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import DesktopVirtualizationAPIClientConfiguration
from ._desktop_virtualization_api_client import DesktopVirtualizationAPIClient
__all__ = ['DesktopVirtualizationAPIClient', 'DesktopVirtualizationAPIClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class DesktopVirtualizationAPIClientConfiguration(AzureConfiguration):
"""Configuration for DesktopVirtualizationAPIClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(DesktopVirtualizationAPIClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-desktopvirtualization/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import DesktopVirtualizationAPIClientConfiguration
from .operations import Operations
from .operations import WorkspacesOperations
from .operations import ScalingPlansOperations
from .operations import ApplicationGroupsOperations
from .operations import StartMenuItemsOperations
from .operations import ApplicationsOperations
from .operations import DesktopsOperations
from .operations import HostPoolsOperations
from .operations import UserSessionsOperations
from .operations import SessionHostsOperations
from .operations import MSIXPackagesOperations
from .operations import MsixImagesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from . import models


class DesktopVirtualizationAPIClient(SDKClient):
"""DesktopVirtualizationAPIClient
:ivar config: Configuration for client.
:vartype config: DesktopVirtualizationAPIClientConfiguration
:ivar operations: Operations operations
:vartype operations: azure.mgmt.desktopvirtualization.operations.Operations
:ivar workspaces: Workspaces operations
:vartype workspaces: azure.mgmt.desktopvirtualization.operations.WorkspacesOperations
:ivar scaling_plans: ScalingPlans operations
:vartype scaling_plans: azure.mgmt.desktopvirtualization.operations.ScalingPlansOperations
:ivar application_groups: ApplicationGroups operations
:vartype application_groups: azure.mgmt.desktopvirtualization.operations.ApplicationGroupsOperations
:ivar start_menu_items: StartMenuItems operations
:vartype start_menu_items: azure.mgmt.desktopvirtualization.operations.StartMenuItemsOperations
:ivar applications: Applications operations
:vartype applications: azure.mgmt.desktopvirtualization.operations.ApplicationsOperations
:ivar desktops: Desktops operations
:vartype desktops: azure.mgmt.desktopvirtualization.operations.DesktopsOperations
:ivar host_pools: HostPools operations
:vartype host_pools: azure.mgmt.desktopvirtualization.operations.HostPoolsOperations
:ivar user_sessions: UserSessions operations
:vartype user_sessions: azure.mgmt.desktopvirtualization.operations.UserSessionsOperations
:ivar session_hosts: SessionHosts operations
:vartype session_hosts: azure.mgmt.desktopvirtualization.operations.SessionHostsOperations
:ivar msix_packages: MSIXPackages operations
:vartype msix_packages: azure.mgmt.desktopvirtualization.operations.MSIXPackagesOperations
:ivar msix_images: MsixImages operations
:vartype msix_images: azure.mgmt.desktopvirtualization.operations.MsixImagesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.desktopvirtualization.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.desktopvirtualization.operations.PrivateLinkResourcesOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = DesktopVirtualizationAPIClientConfiguration(credentials, subscription_id, base_url)
super(DesktopVirtualizationAPIClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2021-09-03-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.scaling_plans = ScalingPlansOperations(
self._client, self.config, self._serialize, self._deserialize)
self.application_groups = ApplicationGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.start_menu_items = StartMenuItemsOperations(
self._client, self.config, self._serialize, self._deserialize)
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.user_sessions = UserSessionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.session_hosts = SessionHostsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.msix_packages = MSIXPackagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.msix_images = MsixImagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading

0 comments on commit 6a36f39

Please sign in to comment.