Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-desktopvirtualization] [Hub Generated] Review request for Microsoft.DesktopVirtualization to add version preview/2021-08-04-preview #6925

Draft
wants to merge 1 commit into
base: release/v3
Choose a base branch
from
Draft
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
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,104 @@
# 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 . 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

: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-08-04-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)
Loading