Skip to content

Commit 95d1ed3

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-maps-2021-05-08-40384 (Azure#18594)
* 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 Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent e16abba commit 95d1ed3

24 files changed

+657
-1473
lines changed

sdk/maps/azure-mgmt-maps/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Release History
22

3+
## 2.0.0 (2021-05-08)
4+
5+
**Features**
6+
7+
- Model CreatorUpdateParameters has a new parameter storage_units
8+
- Model CreatorUpdateParameters has a new parameter provisioning_state
9+
- Model MapsOperations has a new parameter next_link
10+
- Model CreatorList has a new parameter next_link
11+
- Model MapsAccountKeys has a new parameter secondary_key_last_updated
12+
- Model MapsAccountKeys has a new parameter primary_key_last_updated
13+
- Model MapsAccount has a new parameter kind
14+
- Model MapsAccounts has a new parameter next_link
15+
16+
**Breaking changes**
17+
18+
- Operation AccountsOperations.create_or_update has a new signature
19+
- Operation CreatorsOperations.create_or_update has a new signature
20+
- Parameter properties of model Creator is now required
21+
- Parameter sku of model MapsAccount is now required
22+
- Model CreatorProperties has a new required parameter storage_units
23+
- Model MapsAccountKeys no longer has parameter id
24+
- Model MapsAccountUpdateParameters has a new signature
25+
- Model MapsAccountProperties has a new signature
26+
- Removed operation group PrivateAtlasesOperations
27+
328
## 1.0.0 (2021-04-23)
429

530
- GA release

sdk/maps/azure-mgmt-maps/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "3.3.0",
33
"use": "@autorest/python@5.6.6",
4-
"commit": "c555c1c8bc915132c6f3df485ea49c42765ef32a",
4+
"commit": "5e6a5758c2bd7128984f131be88200cd4d2d1a17",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/maps/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
77
"readme": "specification/maps/resource-manager/readme.md"

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._azure_maps_resource_provider import AzureMapsResourceProvider
9+
from ._azure_maps_management_client import AzureMapsManagementClient
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13-
__all__ = ['AzureMapsResourceProvider']
13+
__all__ = ['AzureMapsManagementClient']
1414

1515
try:
1616
from ._patch import patch_sdk # type: ignore

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_azure_maps_resource_provider.py renamed to sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_azure_maps_management_client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@
1818
from azure.core.credentials import TokenCredential
1919
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2020

21-
from ._configuration import AzureMapsResourceProviderConfiguration
21+
from ._configuration import AzureMapsManagementClientConfiguration
2222
from .operations import AccountsOperations
2323
from .operations import MapsOperations
24-
from .operations import PrivateAtlasesOperations
2524
from .operations import CreatorsOperations
2625
from . import models
2726

2827

29-
class AzureMapsResourceProvider(object):
30-
"""Resource Provider.
28+
class AzureMapsManagementClient(object):
29+
"""Azure Maps.
3130
3231
:ivar accounts: AccountsOperations operations
3332
:vartype accounts: azure.mgmt.maps.operations.AccountsOperations
3433
:ivar maps: MapsOperations operations
3534
:vartype maps: azure.mgmt.maps.operations.MapsOperations
36-
:ivar private_atlases: PrivateAtlasesOperations operations
37-
:vartype private_atlases: azure.mgmt.maps.operations.PrivateAtlasesOperations
3835
:ivar creators: CreatorsOperations operations
3936
:vartype creators: azure.mgmt.maps.operations.CreatorsOperations
4037
:param credential: Credential needed for the client to connect to Azure.
@@ -54,7 +51,7 @@ def __init__(
5451
# type: (...) -> None
5552
if not base_url:
5653
base_url = 'https://management.azure.com'
57-
self._config = AzureMapsResourceProviderConfiguration(credential, subscription_id, **kwargs)
54+
self._config = AzureMapsManagementClientConfiguration(credential, subscription_id, **kwargs)
5855
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5956

6057
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
@@ -66,8 +63,6 @@ def __init__(
6663
self._client, self._config, self._serialize, self._deserialize)
6764
self.maps = MapsOperations(
6865
self._client, self._config, self._serialize, self._deserialize)
69-
self.private_atlases = PrivateAtlasesOperations(
70-
self._client, self._config, self._serialize, self._deserialize)
7166
self.creators = CreatorsOperations(
7267
self._client, self._config, self._serialize, self._deserialize)
7368

@@ -94,7 +89,7 @@ def close(self):
9489
self._client.close()
9590

9691
def __enter__(self):
97-
# type: () -> AzureMapsResourceProvider
92+
# type: () -> AzureMapsManagementClient
9893
self._client.__enter__()
9994
return self
10095

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from azure.core.credentials import TokenCredential
2222

2323

24-
class AzureMapsResourceProviderConfiguration(Configuration):
25-
"""Configuration for AzureMapsResourceProvider.
24+
class AzureMapsManagementClientConfiguration(Configuration):
25+
"""Configuration for AzureMapsManagementClient.
2626
2727
Note that all parameters used to create this instance are saved as instance
2828
attributes.
@@ -44,11 +44,11 @@ def __init__(
4444
raise ValueError("Parameter 'credential' must not be None.")
4545
if subscription_id is None:
4646
raise ValueError("Parameter 'subscription_id' must not be None.")
47-
super(AzureMapsResourceProviderConfiguration, self).__init__(**kwargs)
47+
super(AzureMapsManagementClientConfiguration, self).__init__(**kwargs)
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-02-01-preview"
51+
self.api_version = "2021-02-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-maps/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_metadata.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"chosen_version": "2020-02-01-preview",
3-
"total_api_version_list": ["2020-02-01-preview"],
2+
"chosen_version": "2021-02-01",
3+
"total_api_version_list": ["2021-02-01"],
44
"client": {
5-
"name": "AzureMapsResourceProvider",
6-
"filename": "_azure_maps_resource_provider",
7-
"description": "Resource Provider.",
5+
"name": "AzureMapsManagementClient",
6+
"filename": "_azure_maps_management_client",
7+
"description": "Azure Maps.",
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
1111
"has_lro_operations": false,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMapsResourceProviderConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMapsResourceProviderConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMapsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureMapsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -100,7 +100,6 @@
100100
"operation_groups": {
101101
"accounts": "AccountsOperations",
102102
"maps": "MapsOperations",
103-
"private_atlases": "PrivateAtlasesOperations",
104103
"creators": "CreatorsOperations"
105104
}
106105
}

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "2.0.0"

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/aio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._azure_maps_resource_provider import AzureMapsResourceProvider
10-
__all__ = ['AzureMapsResourceProvider']
9+
from ._azure_maps_management_client import AzureMapsManagementClient
10+
__all__ = ['AzureMapsManagementClient']

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/aio/_azure_maps_resource_provider.py renamed to sdk/maps/azure-mgmt-maps/azure/mgmt/maps/aio/_azure_maps_management_client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,20 @@
1616
# pylint: disable=unused-import,ungrouped-imports
1717
from azure.core.credentials_async import AsyncTokenCredential
1818

19-
from ._configuration import AzureMapsResourceProviderConfiguration
19+
from ._configuration import AzureMapsManagementClientConfiguration
2020
from .operations import AccountsOperations
2121
from .operations import MapsOperations
22-
from .operations import PrivateAtlasesOperations
2322
from .operations import CreatorsOperations
2423
from .. import models
2524

2625

27-
class AzureMapsResourceProvider(object):
28-
"""Resource Provider.
26+
class AzureMapsManagementClient(object):
27+
"""Azure Maps.
2928
3029
:ivar accounts: AccountsOperations operations
3130
:vartype accounts: azure.mgmt.maps.aio.operations.AccountsOperations
3231
:ivar maps: MapsOperations operations
3332
:vartype maps: azure.mgmt.maps.aio.operations.MapsOperations
34-
:ivar private_atlases: PrivateAtlasesOperations operations
35-
:vartype private_atlases: azure.mgmt.maps.aio.operations.PrivateAtlasesOperations
3633
:ivar creators: CreatorsOperations operations
3734
:vartype creators: azure.mgmt.maps.aio.operations.CreatorsOperations
3835
:param credential: Credential needed for the client to connect to Azure.
@@ -51,7 +48,7 @@ def __init__(
5148
) -> None:
5249
if not base_url:
5350
base_url = 'https://management.azure.com'
54-
self._config = AzureMapsResourceProviderConfiguration(credential, subscription_id, **kwargs)
51+
self._config = AzureMapsManagementClientConfiguration(credential, subscription_id, **kwargs)
5552
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5653

5754
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
@@ -63,8 +60,6 @@ def __init__(
6360
self._client, self._config, self._serialize, self._deserialize)
6461
self.maps = MapsOperations(
6562
self._client, self._config, self._serialize, self._deserialize)
66-
self.private_atlases = PrivateAtlasesOperations(
67-
self._client, self._config, self._serialize, self._deserialize)
6863
self.creators = CreatorsOperations(
6964
self._client, self._config, self._serialize, self._deserialize)
7065

@@ -88,7 +83,7 @@ async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> Async
8883
async def close(self) -> None:
8984
await self._client.close()
9085

91-
async def __aenter__(self) -> "AzureMapsResourceProvider":
86+
async def __aenter__(self) -> "AzureMapsManagementClient":
9287
await self._client.__aenter__()
9388
return self
9489

sdk/maps/azure-mgmt-maps/azure/mgmt/maps/aio/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from azure.core.credentials_async import AsyncTokenCredential
2020

2121

22-
class AzureMapsResourceProviderConfiguration(Configuration):
23-
"""Configuration for AzureMapsResourceProvider.
22+
class AzureMapsManagementClientConfiguration(Configuration):
23+
"""Configuration for AzureMapsManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
@@ -41,11 +41,11 @@ def __init__(
4141
raise ValueError("Parameter 'credential' must not be None.")
4242
if subscription_id is None:
4343
raise ValueError("Parameter 'subscription_id' must not be None.")
44-
super(AzureMapsResourceProviderConfiguration, self).__init__(**kwargs)
44+
super(AzureMapsManagementClientConfiguration, self).__init__(**kwargs)
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2020-02-01-preview"
48+
self.api_version = "2021-02-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-maps/{}'.format(VERSION))
5151
self._configure(**kwargs)

0 commit comments

Comments
 (0)