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.
Releasing mixedreality (Azure#11618)
* Generated from 6ba80acb417873f6fe2808d1a0d1ad144241ac60 Merge branch 'master' into Azure-MixedReality * changelog and version * adding mixedreality test * fixed indentation * fixed layout * one more fix * test recording * serial thing * fix + indent * indent * additional test fix Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
- Loading branch information
Zim Kalinowski
and
SDK Automation
committed
Jun 3, 2020
1 parent
205a1cb
commit fcb76a2
Showing
45 changed files
with
3,283 additions
and
1,393 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,48 @@ | ||
# Release History | ||
|
||
## 0.2.0 (2020-05-25) | ||
|
||
**Features** | ||
|
||
- Added operation SpatialAnchorsAccountsOperations.list_keys | ||
- Added operation SpatialAnchorsAccountsOperations.get | ||
- Added operation SpatialAnchorsAccountsOperations.regenerate_keys | ||
- Added operation SpatialAnchorsAccountsOperations.delete | ||
- Added operation group MixedRealityClientOperationsMixin | ||
- Added operation group RemoteRenderingAccountsOperations | ||
|
||
**Breaking changes** | ||
|
||
- Operation SpatialAnchorsAccountsOperations.create has a new signature | ||
- Operation SpatialAnchorsAccountsOperations.update has a new signature | ||
- Removed operation SpatialAnchorsAccountsOperations.get_keys | ||
|
||
**General Breaking Changes** | ||
|
||
This version uses a next-generation code generator that *might* | ||
introduce breaking changes. In summary, some modules were incorrectly | ||
visible/importable and have been renamed. This fixed several issues | ||
caused by usage of classes that were not supposed to be used in the | ||
first place. | ||
|
||
- MixedRealityClient cannot be imported from | ||
`azure.mgmt.mixedreality.mixed_reality_client` anymore (import from | ||
`azure.mgmt.mixedreality` works like before) | ||
- MixedRealityClientConfiguration import has been moved from | ||
`azure.mgmt.mixedreality.mixedreality_client` | ||
to `azure.mgmt.mixedreality` | ||
- A model `MyClass` from a "models" sub-module cannot be imported | ||
anymore using `azure.mgmt.mixedreality.models.my_class` (import from | ||
`azure.mgmt.mixedreality.models` works like before) | ||
- An operation class `MyClassOperations` from an `operations` | ||
sub-module cannot be imported anymore using | ||
`azure.mgmt.mixedreality.operations.my_class_operations` (import from | ||
`azure.mgmt.mixedreality.operations` works like before) | ||
|
||
Last but not least, HTTP connection pooling is now enabled by default. | ||
You should always use a client as a context manager, or call close(), or | ||
use no more than one client per process. | ||
|
||
## 0.1.0 (2019-02-05) | ||
|
||
- Initial Release |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.md | ||
include azure/__init__.py | ||
include azure/mgmt/__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 |
---|---|---|
@@ -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. | ||
|
||
 | ||
|
||
 |
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
49 changes: 49 additions & 0 deletions
49
sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_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,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 |
60 changes: 60 additions & 0 deletions
60
sdk/mixedreality/azure-mgmt-mixedreality/azure/mgmt/mixedreality/_mixed_reality_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,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) |
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
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
Oops, something went wrong.