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

[ReleasePR azure-mgmt-desktopvirtualization] correct example responses #13994

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
5 changes: 5 additions & 0 deletions sdk/azure-mgmt-desktopvirtualization/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 0.1.0 (1970-01-01)

* Initial Release
5 changes: 5 additions & 0 deletions sdk/azure-mgmt-desktopvirtualization/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py

21 changes: 21 additions & 0 deletions sdk/azure-mgmt-desktopvirtualization/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure MyService Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).


# Usage

For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.


# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-desktopvirtualization%2FREADME.png)
1 change: 1 addition & 0 deletions sdk/azure-mgmt-desktopvirtualization/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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,89 @@
# 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 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 . 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 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

: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 = '2019-12-10-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.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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# 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.
# --------------------------------------------------------------------------

try:
from ._models_py3 import Application
from ._models_py3 import ApplicationGroup
from ._models_py3 import ApplicationGroupPatch
from ._models_py3 import ApplicationPatch
from ._models_py3 import AzureEntityResource
from ._models_py3 import CloudError, CloudErrorException
from ._models_py3 import Desktop
from ._models_py3 import DesktopList
from ._models_py3 import DesktopPatch
from ._models_py3 import HostPool
from ._models_py3 import HostPoolPatch
from ._models_py3 import ProxyResource
from ._models_py3 import RegistrationInfo
from ._models_py3 import RegistrationInfoPatch
from ._models_py3 import Resource
from ._models_py3 import ResourceProviderOperation
from ._models_py3 import ResourceProviderOperationDisplay
from ._models_py3 import ResourceProviderOperationList
from ._models_py3 import SendMessage
from ._models_py3 import SessionHost
from ._models_py3 import SessionHostPatch
from ._models_py3 import StartMenuItem
from ._models_py3 import TrackedResource
from ._models_py3 import UserSession
from ._models_py3 import Workspace
from ._models_py3 import WorkspacePatch
except (SyntaxError, ImportError):
from ._models import Application
from ._models import ApplicationGroup
from ._models import ApplicationGroupPatch
from ._models import ApplicationPatch
from ._models import AzureEntityResource
from ._models import CloudError, CloudErrorException
from ._models import Desktop
from ._models import DesktopList
from ._models import DesktopPatch
from ._models import HostPool
from ._models import HostPoolPatch
from ._models import ProxyResource
from ._models import RegistrationInfo
from ._models import RegistrationInfoPatch
from ._models import Resource
from ._models import ResourceProviderOperation
from ._models import ResourceProviderOperationDisplay
from ._models import ResourceProviderOperationList
from ._models import SendMessage
from ._models import SessionHost
from ._models import SessionHostPatch
from ._models import StartMenuItem
from ._models import TrackedResource
from ._models import UserSession
from ._models import Workspace
from ._models import WorkspacePatch
from ._paged_models import ApplicationGroupPaged
from ._paged_models import ApplicationPaged
from ._paged_models import HostPoolPaged
from ._paged_models import SessionHostPaged
from ._paged_models import StartMenuItemPaged
from ._paged_models import UserSessionPaged
from ._paged_models import WorkspacePaged
from ._desktop_virtualization_api_client_enums import (
ApplicationGroupType,
HostPoolType,
PersonalDesktopAssignmentType,
LoadBalancerType,
RegistrationTokenOperation,
PreferredAppGroupType,
CommandLineSetting,
Status,
UpdateState,
ApplicationType,
SessionState,
)

__all__ = [
'Application',
'ApplicationGroup',
'ApplicationGroupPatch',
'ApplicationPatch',
'AzureEntityResource',
'CloudError', 'CloudErrorException',
'Desktop',
'DesktopList',
'DesktopPatch',
'HostPool',
'HostPoolPatch',
'ProxyResource',
'RegistrationInfo',
'RegistrationInfoPatch',
'Resource',
'ResourceProviderOperation',
'ResourceProviderOperationDisplay',
'ResourceProviderOperationList',
'SendMessage',
'SessionHost',
'SessionHostPatch',
'StartMenuItem',
'TrackedResource',
'UserSession',
'Workspace',
'WorkspacePatch',
'WorkspacePaged',
'ApplicationGroupPaged',
'StartMenuItemPaged',
'ApplicationPaged',
'HostPoolPaged',
'UserSessionPaged',
'SessionHostPaged',
'ApplicationGroupType',
'HostPoolType',
'PersonalDesktopAssignmentType',
'LoadBalancerType',
'RegistrationTokenOperation',
'PreferredAppGroupType',
'CommandLineSetting',
'Status',
'UpdateState',
'ApplicationType',
'SessionState',
]
Loading