Skip to content

Commit

Permalink
Generated from 157cbd9f9a999aad9fbc5a08cfeaab99f5acb5cc
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
SDK Automation committed May 18, 2020
1 parent 91de6c7 commit 54dbc59
Show file tree
Hide file tree
Showing 41 changed files with 1,859 additions and 1,392 deletions.
1 change: 1 addition & 0 deletions sdk/mixedreality/azure-mgmt-mixedreality/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
30 changes: 11 additions & 19 deletions sdk/mixedreality/azure-mgmt-mixedreality/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Mixed Reality 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 [Github repo](https://github.com/Azure/azure-sdk-for-python/)

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.
For code examples, see [Mixed Reality Management](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.

## Usage
# Provide Feedback

For code examples, see [Mixed Reality
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)
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.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-mixedreality%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-mixedreality%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .mixed_reality_client import MixedRealityClient
from .version import VERSION
from ._configuration import MixedRealityClientConfiguration
from ._mixed_reality_client import MixedRealityClient
__all__ = ['MixedRealityClient', 'MixedRealityClientConfiguration']

__all__ = ['MixedRealityClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 MixedRealityClientConfiguration(AzureConfiguration):
"""Configuration for MixedRealityClient
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 Azure subscription ID. This is a
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
: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(MixedRealityClientConfiguration, 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-mixedreality/{}'.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,60 @@
# 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 MixedRealityClientConfiguration
from .operations import MixedRealityClientOperationsMixin
from .operations import Operations
from .operations import SpatialAnchorsAccountsOperations
from .operations import RemoteRenderingAccountsOperations
from . import models


class MixedRealityClient(MixedRealityClientOperationsMixin, SDKClient):
"""Mixed Reality Client
:ivar config: Configuration for client.
:vartype config: MixedRealityClientConfiguration
:ivar operations: Operations operations
:vartype operations: azure.mgmt.mixedreality.operations.Operations
:ivar spatial_anchors_accounts: SpatialAnchorsAccounts operations
:vartype spatial_anchors_accounts: azure.mgmt.mixedreality.operations.SpatialAnchorsAccountsOperations
:ivar remote_rendering_accounts: RemoteRenderingAccounts operations
:vartype remote_rendering_accounts: azure.mgmt.mixedreality.operations.RemoteRenderingAccountsOperations
: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 Azure subscription ID. This is a
GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
:type subscription_id: str
:param str base_url: Service URL
"""

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

self.config = MixedRealityClientConfiguration(credentials, subscription_id, base_url)
super(MixedRealityClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.spatial_anchors_accounts = SpatialAnchorsAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.remote_rendering_accounts = RemoteRenderingAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,55 @@
# --------------------------------------------------------------------------

try:
from .check_name_availability_request_py3 import CheckNameAvailabilityRequest
from .check_name_availability_response_py3 import CheckNameAvailabilityResponse
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .spatial_anchors_account_py3 import SpatialAnchorsAccount
from .spatial_anchors_account_keys_py3 import SpatialAnchorsAccountKeys
from .spatial_anchors_account_key_regenerate_request_py3 import SpatialAnchorsAccountKeyRegenerateRequest
from .proxy_resource_py3 import ProxyResource
from .azure_entity_resource_py3 import AzureEntityResource
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
from ._models_py3 import AccountKeyRegenerateRequest
from ._models_py3 import AccountKeys
from ._models_py3 import AzureEntityResource
from ._models_py3 import CheckNameAvailabilityRequest
from ._models_py3 import CheckNameAvailabilityResponse
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import ProxyResource
from ._models_py3 import RemoteRenderingAccount
from ._models_py3 import Resource
from ._models_py3 import SpatialAnchorsAccount
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from .check_name_availability_request import CheckNameAvailabilityRequest
from .check_name_availability_response import CheckNameAvailabilityResponse
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .spatial_anchors_account import SpatialAnchorsAccount
from .spatial_anchors_account_keys import SpatialAnchorsAccountKeys
from .spatial_anchors_account_key_regenerate_request import SpatialAnchorsAccountKeyRegenerateRequest
from .proxy_resource import ProxyResource
from .azure_entity_resource import AzureEntityResource
from .resource import Resource
from .tracked_resource import TrackedResource
from .operation_paged import OperationPaged
from .spatial_anchors_account_paged import SpatialAnchorsAccountPaged
from .mixed_reality_client_enums import (
from ._models import AccountKeyRegenerateRequest
from ._models import AccountKeys
from ._models import AzureEntityResource
from ._models import CheckNameAvailabilityRequest
from ._models import CheckNameAvailabilityResponse
from ._models import Operation
from ._models import OperationDisplay
from ._models import ProxyResource
from ._models import RemoteRenderingAccount
from ._models import Resource
from ._models import SpatialAnchorsAccount
from ._models import TrackedResource
from ._paged_models import OperationPaged
from ._paged_models import RemoteRenderingAccountPaged
from ._paged_models import SpatialAnchorsAccountPaged
from ._mixed_reality_client_enums import (
NameAvailability,
NameUnavailableReason,
)

__all__ = [
'AccountKeyRegenerateRequest',
'AccountKeys',
'AzureEntityResource',
'CheckNameAvailabilityRequest',
'CheckNameAvailabilityResponse',
'ErrorResponse', 'ErrorResponseException',
'OperationDisplay',
'Operation',
'SpatialAnchorsAccount',
'SpatialAnchorsAccountKeys',
'SpatialAnchorsAccountKeyRegenerateRequest',
'OperationDisplay',
'ProxyResource',
'AzureEntityResource',
'RemoteRenderingAccount',
'Resource',
'SpatialAnchorsAccount',
'TrackedResource',
'OperationPaged',
'SpatialAnchorsAccountPaged',
'RemoteRenderingAccountPaged',
'NameAvailability',
'NameUnavailableReason',
]
Loading

0 comments on commit 54dbc59

Please sign in to comment.