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.
[AutoRelease] t1-maps-2021-05-08-02525 (Azure#18593)
* CodeGen from PR 13733 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Maps to add version stable/2021-02-01 (Azure#13733) * Adds base for updating Microsoft.Maps from version preview/2020-02-01-preview to version 2020-02-01 * Updates for 2021-02-01 api version swagger * creator swagger fixes * fix model examples * nextLink, uniqueId * build fixes * fixing listkeys * fix long running operations * fixing spelling * fixing async behavior and examples * updating arm region * reset package-lock * version,CHANGELOG * test * test skip Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <[email protected]>
- Loading branch information
1 parent
8dd26ca
commit 322dd15
Showing
44 changed files
with
2,531 additions
and
1,826 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,28 @@ | ||
# Release History | ||
|
||
## 0.2.0 (2021-05-08) | ||
|
||
**Features** | ||
|
||
- Model MapsAccount has a new parameter system_data | ||
- Model MapsAccount has a new parameter kind | ||
- Model MapsAccount has a new parameter properties | ||
- Model MapsAccountKeys has a new parameter primary_key_last_updated | ||
- Model MapsAccountKeys has a new parameter secondary_key_last_updated | ||
- Added operation group MapsOperationsOperations | ||
- Added operation group CreatorsOperations | ||
|
||
**Breaking changes** | ||
|
||
- Operation AccountsOperations.create_or_update has a new signature | ||
- Parameter sku of model MapsAccount is now required | ||
- Parameter location of model MapsAccount is now required | ||
- Model MapsAccountKeys no longer has parameter id | ||
- Operation AccountsOperations.update has a new signature | ||
- Model MapsAccountUpdateParameters has a new signature | ||
- Removed operation AccountsOperations.list_operations | ||
- Removed operation AccountsOperations.move | ||
|
||
## 0.1.0 (2018-05-07) | ||
|
||
- 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 @@ | ||
include _meta.json | ||
recursive-include tests *.py *.yaml | ||
include *.md | ||
include azure/__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,8 @@ | ||
{ | ||
"autorest": "V2", | ||
"use": "@microsoft.azure/autorest.python@~4.0.71", | ||
"commit": "5e6a5758c2bd7128984f131be88200cd4d2d1a17", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
"autorest_command": "autorest specification/maps/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2", | ||
"readme": "specification/maps/resource-manager/readme.md" | ||
} |
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
59 changes: 59 additions & 0 deletions
59
sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_azure_maps_management_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,59 @@ | ||
# 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 AzureMapsManagementClientConfiguration | ||
from .operations import AccountsOperations | ||
from .operations import MapsOperationsOperations | ||
from .operations import CreatorsOperations | ||
from . import models | ||
|
||
|
||
class AzureMapsManagementClient(SDKClient): | ||
"""Azure Maps | ||
:ivar config: Configuration for client. | ||
:vartype config: AzureMapsManagementClientConfiguration | ||
:ivar accounts: Accounts operations | ||
:vartype accounts: azure.mgmt.maps.operations.AccountsOperations | ||
:ivar maps: Maps operations | ||
:vartype maps: azure.mgmt.maps.operations.MapsOperationsOperations | ||
:ivar creators: Creators operations | ||
:vartype creators: azure.mgmt.maps.operations.CreatorsOperations | ||
: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 = AzureMapsManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(AzureMapsManagementClient, 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-02-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.accounts = AccountsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.maps = MapsOperationsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.creators = CreatorsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
48 changes: 48 additions & 0 deletions
48
sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_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 AzureMapsManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for AzureMapsManagementClient | ||
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(AzureMapsManagementClientConfiguration, 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-maps/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
85 changes: 0 additions & 85 deletions
85
sdk/maps/azure-mgmt-maps/azure/mgmt/maps/maps_management_client.py
This file was deleted.
Oops, something went wrong.
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.