forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 11692 in Azure/azure-rest-api-specs
top level name can be 64 char long (Azure#11692)
- Loading branch information
SDKAuto
committed
Nov 25, 2020
1 parent
e1f2009
commit d54f0f4
Showing
22 changed files
with
8,419 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sdk/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
48 changes: 48 additions & 0 deletions
48
sdk/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
104 changes: 104 additions & 0 deletions
104
...ktopvirtualization/azure/mgmt/desktopvirtualization/_desktop_virtualization_api_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = '2020-11-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.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) |
176 changes: 176 additions & 0 deletions
176
sdk/azure-mgmt-desktopvirtualization/azure/mgmt/desktopvirtualization/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
# 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 CloudErrorProperties | ||
from ._models_py3 import Desktop | ||
from ._models_py3 import DesktopList | ||
from ._models_py3 import DesktopPatch | ||
from ._models_py3 import ExpandMsixImage | ||
from ._models_py3 import HostPool | ||
from ._models_py3 import HostPoolPatch | ||
from ._models_py3 import MSIXImageURI | ||
from ._models_py3 import MSIXPackage | ||
from ._models_py3 import MsixPackageApplications | ||
from ._models_py3 import MsixPackageDependencies | ||
from ._models_py3 import MSIXPackagePatch | ||
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 ScalingHostPoolReference | ||
from ._models_py3 import ScalingPlan | ||
from ._models_py3 import ScalingPlanPatch | ||
from ._models_py3 import ScalingSchedule | ||
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 CloudErrorProperties | ||
from ._models import Desktop | ||
from ._models import DesktopList | ||
from ._models import DesktopPatch | ||
from ._models import ExpandMsixImage | ||
from ._models import HostPool | ||
from ._models import HostPoolPatch | ||
from ._models import MSIXImageURI | ||
from ._models import MSIXPackage | ||
from ._models import MsixPackageApplications | ||
from ._models import MsixPackageDependencies | ||
from ._models import MSIXPackagePatch | ||
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 ScalingHostPoolReference | ||
from ._models import ScalingPlan | ||
from ._models import ScalingPlanPatch | ||
from ._models import ScalingSchedule | ||
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 ExpandMsixImagePaged | ||
from ._paged_models import HostPoolPaged | ||
from ._paged_models import MSIXPackagePaged | ||
from ._paged_models import ScalingPlanPaged | ||
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, | ||
SSOSecretType, | ||
PreferredAppGroupType, | ||
RemoteApplicationType, | ||
CommandLineSetting, | ||
Status, | ||
UpdateState, | ||
ApplicationType, | ||
SessionState, | ||
SessionHostLoadBalancingAlgorithm, | ||
StopHostsWhen, | ||
) | ||
|
||
__all__ = [ | ||
'Application', | ||
'ApplicationGroup', | ||
'ApplicationGroupPatch', | ||
'ApplicationPatch', | ||
'AzureEntityResource', | ||
'CloudErrorProperties', | ||
'Desktop', | ||
'DesktopList', | ||
'DesktopPatch', | ||
'ExpandMsixImage', | ||
'HostPool', | ||
'HostPoolPatch', | ||
'MSIXImageURI', | ||
'MSIXPackage', | ||
'MsixPackageApplications', | ||
'MsixPackageDependencies', | ||
'MSIXPackagePatch', | ||
'ProxyResource', | ||
'RegistrationInfo', | ||
'RegistrationInfoPatch', | ||
'Resource', | ||
'ResourceProviderOperation', | ||
'ResourceProviderOperationDisplay', | ||
'ResourceProviderOperationList', | ||
'ScalingHostPoolReference', | ||
'ScalingPlan', | ||
'ScalingPlanPatch', | ||
'ScalingSchedule', | ||
'SendMessage', | ||
'SessionHost', | ||
'SessionHostPatch', | ||
'StartMenuItem', | ||
'TrackedResource', | ||
'UserSession', | ||
'Workspace', | ||
'WorkspacePatch', | ||
'WorkspacePaged', | ||
'ScalingPlanPaged', | ||
'ApplicationGroupPaged', | ||
'StartMenuItemPaged', | ||
'ApplicationPaged', | ||
'HostPoolPaged', | ||
'UserSessionPaged', | ||
'SessionHostPaged', | ||
'MSIXPackagePaged', | ||
'ExpandMsixImagePaged', | ||
'ApplicationGroupType', | ||
'HostPoolType', | ||
'PersonalDesktopAssignmentType', | ||
'LoadBalancerType', | ||
'RegistrationTokenOperation', | ||
'SSOSecretType', | ||
'PreferredAppGroupType', | ||
'RemoteApplicationType', | ||
'CommandLineSetting', | ||
'Status', | ||
'UpdateState', | ||
'ApplicationType', | ||
'SessionState', | ||
'SessionHostLoadBalancingAlgorithm', | ||
'StopHostsWhen', | ||
] |
Oops, something went wrong.