Skip to content

Commit

Permalink
CodeGen from PR 12289 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Get latest master (Azure#12289)

* [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-06-01 (Azure#11833)

* Changing Swagger file

* Changing examples

* Fixing tags example

* Fixing tags example

* Fixing tags example

* prettier fix for white spaces

* Enable azure-sdk-for-net-track2 (Azure#12169)

* Updating existing CRR APIs with zone restore feature (Azure#12157)

* - Added change for support of cross zone restores.

* - updating example json

* - Fixing prettier

* lastUpdatedDate for templates (Azure#11900)

* lastUpdatedDate for templates

* fix

* [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview (Azure#11823)

* Adds base for updating Microsoft.AppPlatform from version stable/2020-07-01 to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Introduce additional change to 2020-11-01-preview.

* Additional properties to monitoringSettings.
* Readonly properties to requiredTraffics.

Signed-off-by: Pan Li <[email protected]>

* Make credscan happy.

Signed-off-by: Pan Li <[email protected]>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#12113)

* Fix linter and swagger warnings

* Fix errors

* Removed unneeded change

* [ASC.Automations] Add new data type "RegulatoryComplianceAssessment" (Azure#12185)

* Add SubAssessment event source type and add more automations examples

* Change Location isReadOnlu to false

* Test

* Add new read/write location and add new type TrackedResourceLocation

* Minor

* minor

* prettier fixes

* Change variable name to TrackedResourceLocation

* Change type name TrackedResourceLocation to AzureTrackedResourceLocation

* Update automations example

* Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource

* [ASC.Automations] add new data type RegulatoryComplianceAssessment

* add datalake store track2 config (Azure#12186)

* cleanup old pipeline dependencies (Azure#11889)

* cleanup pipeline deps

* add rest-api-specs-scripts

* Extending recovery network input in replication intent API to support new network creation (Azure#12191)

* [Hub Generated] Review request for Microsoft.Maps to add version preview/2020-02-01-preview (Azure#12172)

* Adding operations for Maps Creator resource.

* Fixing typo.

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Resolving linter errors.

* Minor update.

* Updating all reference to v2 schema.

* Marked private atlas as deprecated in description.

* add operationsmanagement track2 config (Azure#12141)

* Update comment.yml (Azure#12202)

Add ARM traffic query link. When add breakingChangeReviewRequired

* Adding new properties to response body (Azure#12201)

* adding new properties

* updating examples

* prettier fix

* [Hub Generated] Review request for Microsoft.ContainerService to add version stable/2020-12-01 (Azure#12064)

* Add autorest.az configurations for azure monitor control service (Azure#12090)

* add AMCS config for codegen

* reorganize command group

* rename command group

* Codegen modify try to rename DataCollectionRules create parameters

* hide DataCollectionRules Create & Update commands and DataCollectionRuleAssociations Create command

* use alias instand of rename in code-gen

* use monitor-control-service as the extension name

* Update readme.python.md

* add logic track2 config (Azure#12166)

* add alertsmanagement track2 config (Azure#11759)

* Update comment.yml (Azure#12213)

* add mixedreality track2 confi (Azure#12070)

* add signalr track2 config (Azure#11892)

* add cognitiveservice track2 config (Azure#11498)

* add machinglearningservices track2 config (Azure#12183)

* add apimanagement track2 config (Azure#12187)

* add serialconsole track2 config (Azure#12046)

* Update TransparentDataEncryption Group Name (Azure#12160)

* update TransparentDataEncryption Group name

* update reference of TransparentDataEncryption

* Update readme.python.md (Azure#12216)

* Required changes for Azure HealthBot swagger (Azure#12124)

* Fixes for SDK generation files.

* Fixes for SDK generation files.

* Added GO.

* Change Healthcare bot to Healthbot.

* 1. Remove unused properties of SKU.
2. Removed unused CheckNameAvailability.json
3. Remove subgroup.

* Sku is required.

* [Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2018-09-01 (Azure#12224)

* update to name

* update

* add api-version of guest configuration to go SDK (Azure#12217)

* add api-version for templatespecs (Azure#12197)

* Update specificationRepositoryConfiguration.json (Azure#12218)

* Adding new api version to devops RP (Azure#11585)

* Initial commit as per PR review

* Actual changes to api spec for new version

* Switching to multi-api build for python

* Fix python spec to correct namespaces in multiapi mode

* Revert changes to python generation

* Add systemdata

* Fix the path for sys data reference

* Fix path once more

* remove additional properties after including systemdata

* Remove more addtional properties

* Move system data to root

* Fix wrong output-folder (Azure#12229)

* Remove swagger and examples because the controller will be used for private preview. (Azure#12177)

* Update pull_request_assignment.yml (Azure#12230)

* [Hub Generated] Review request for Microsoft.StorageCache to add version stable/2020-10-01 (Azure#11407)

* Init the next version so diffs can work better.

* Updates readme

* Updates API version in new specs and examples

* Updates to StorageTargetProperties and added examples of cmk, mtu

Add 202 to the storage cache and storage target create/update and update examples

Fix ST no junction example's 202 response.

add properties for nfs extended groups

fix issues with extended groups properties found with autorest

add properties and objects for Active Directory username download

undo unintended change

changes from comments in pull request

AccessPolicy support.

Example fixes for Access Policies.

Fix attribute names to match latest RP.

update to credential properties for LDAP and Active Directory

marking password properties with x-ms-secret tag

minor changes on extended groups and add examples

Added blob NFS and some other validation fixes.

Update required property for domainName from dnsName

Updated blobNfs examples and some kpi fixes.

Correct validation errors in examples.

Added systemdata to resources.

Remove x-ms-secret in keyvault reference due to linter error and common types not using it.

Remove blobNfs from this version.

Remove blobNfs from spec file.

Remove x-ms-secret due to linter errors.

Fix certificate spelling.

Updating prettier and spell check errors.

Used prettier on main spec file.

Readded x-ms-secret that open api hub failed on but the PR pipeline allows.

* Add prettier fix after rebase

* Remove 202 bodies and add systemData to examples.

* Update spec with prettier.

* Address comments on spec for descriptions, readmes, and extendedGroupsEnabled.

* Updating to address addition ldap and pattern comments.

* Update version tag to include 01

* Restore changes that would be considered breaking changes matching 2020-03-01

* Address a few other comments.

* Update netbios field names and some descriptions.

* Fix s360 for missing debugInfo operation.

* Fix credscan error in example file.

* Update required fields, new validator failure on debugInfo return codes, and bindPassword example value.

* Update debug info example with new return codes.

* Update other credscan password errors.

* Update Semantic-and-Model-Violations-Reference.md (Azure#12199)

Adding secret_property code, update some other codes.

* ADP - add system metadata to dataPool (Azure#12179)

* Swagger Linting Fix (Azure#12162)

* Fix Linting Issuing

* no message

* fix description

* add description and object back

* test to resolve model validation test

(cherry picked from commit ab273dfc0d5897683c128ee15da4babafa7a85ba)

* [SQL][V20180601] Updating LocationCapabilities spec (Azure#12032)

* [SQL][V20180601] Updating LocationCapabilities spec

* Fill 2020 versions

* Rollback V2018 changes and bump LocationCapabilities in V4 to 2020-08-01-preview

* update order for CI-FixRequiredOnFailure (Azure#12227)

* update rdbms track2 config (Azure#12245)

* ADT: refix path (Azure#12161)

* python track2 configure (Azure#12150)

* Add and remove owner for service principals (Azure#12081)

* [Hub Generated] Review request for Microsoft.MixedReality to add version stable/2020-05-01 (Azure#11810)

* fix spec

* fix prettier

* [Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-12-02-preview (Azure#11769)

* fix for swagger completeness

* forgot curly brace

* fix example

* Api Management - make /tenant endpoints ARM compliant in 2020-06-01-preview version (Azure#11549)

* Adds base for updating Microsoft.ApiManagement from version stable/2019-12-01 to version 2020-06-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add support in API Management for Availability Zones (Azure#10284)

* apim in azs

* fix prettier check

* PATCH should return 200 OK (Azure#10328)

* add support for PATCH returning 200 OK

* CI fixes

prettier fix

CI fixes part 2

* Password no longer a mandatory property when uploading Certificates

* add missing x-ms-odata extension for filter support

* +gatewayhostnameconfiguration protocol changes (Azure#10292)

* [2020-06-01-preview] Update Oauth Server secrets Contract (Azure#10602)

* Oauth server secrets contract

* fix azureMonitor enum

* API Management Service Deleted Services Resource (Azure#10607)

* API Management Service Deleted Services Resource

* Path fix

* Lint + custom-words fixes

* Location URI parameter for deletedservices Resource

* GET for deletedservices by service name

* Remove resourceGroupName from resource path

* fixes

* schema for purge operation

* perttier applied

* 204 response code added

Co-authored-by: REDMOND\glfeokti <[email protected]>

* OperationNameFormat property added to Diagnostic contract (Azure#10641)

* OperationNameFormat property added to Diagnostic contract

* add azuremonitor to update contract

Co-authored-by: REDMOND\glfeokti <[email protected]>

* [Microsoft.ApiManagement][2020-06-01-preview] Change Network Status response contract (Azure#10331)

* Change Network Status response contract

* Update examples for network status contract

* ApiManagement - tenant/settings endpoints

* ApiManagement - tenant/settings endpoints fix

* ApiManagement - tenant/settings endpoints fix prettier

* ApiManagement - tenant/settings endpoints fix 3

* ApiManagement - tenant/settings endpoints fix 4

* ApiManagement - tenant/settings endpoints fix 5

Co-authored-by: Samir Solanki <[email protected]>
Co-authored-by: maksimkim <[email protected]>
Co-authored-by: promoisha <[email protected]>
Co-authored-by: REDMOND\glfeokti <[email protected]>
Co-authored-by: RupengLiu <[email protected]>
Co-authored-by: vfedonkin <[email protected]>

* Add "mail" parameter to UserUpdateParameters in graphrbac (Azure#12127)

This patch adds a single optional field "mail" to UserUpdateParameters
schema. This makes it possible to update user's e-mail address using
the (Go) Azure SDK. Currently this is not possible.

I have curled the graphrbac API with the extra body parameter and it
works as expected.

Addition of the field will make it possible to support the mail property
on the azuread_user resource in terraform-provider-azuread.

Co-authored-by: David Čepelík <[email protected]>

* [Hub Generated] Review request for Microsoft.Advisor to add version stable/2020-01-01 (Azure#12262)

* add resourcegraph track2 config (Azure#12122)

* add reservations track2 config (Azure#12027)

* Removing a readonly tag from a property (Azure#12254)

* Fix swagger correctness errors (Azure#12246)

* Fix swagger correctness issues in Security for Iot service

* changed int format from 32 to 64

* Add systemData to iotSecuritySolutions

Co-authored-by: Liran Chen <[email protected]>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (Azure#12196)

* AAS - Swagger Linting and Correctness Fix (Azure#12176)

* Fix R4013 IntegerTypeMustHaveFormat

* Fix R4010 RequiredDefaultResponse

* Fix R4007 DefaultErrorResponseSchema

* removed extra bracket

* fix semantic issue

* add type error

* Fix linting issue

* test to resolve model validation test

* Revert "test to resolve model validation test"

This reverts commit ab273dfc0d5897683c128ee15da4babafa7a85ba.

* Resolve Model Validation Issue

* Resolve Model Validation Issue v2

* test - add missing properties

(cherry picked from commit 48ec27c51cc61f4b3c05b531618f40b7c2f77de6)

* fix format

* set default value

* add x-ms-enum

* fix nit

* Add missing property

* add missing properties

* add missing bracket

* change GatewayListStatusLive type

* add missing "origin" property

* fix model validation

* Revert "change GatewayListStatusLive type"

This reverts commit 4f3fa743d5ce91bea6bcf83474e6e3fc15bc3483.

* Revert "fix model validation"

This reverts commit 945bc233b9e623b2d90f7903b8b4dee94d873aa8.

* add redhatopenshift track2 config (Azure#12045)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-10-01 (Azure#12194)

* Adding nextLink and previousLink to Tags endpoint properties

* moving properties out

* prettier check fix

Co-authored-by: Jorge Chavez Nieto <[email protected]>

* add relay track2 config (Azure#11495)

* update healthbot t2 config (Azure#12269)

* update healthbot t2 config

* fix readme

* add automation track2 config (Azure#11628)

* add automation track2 config

* update config

* Azure Remote Rendering REST API swagger file - for review (Azure#12015)

* Azure Remote Rendering API specifcation

* fix schema issue

* fix examples

* fix request bodies integer values, :stop path

* pointing readme.md to open api spec for ARR

* fix typo, add custom words

* add msvc to custom words

* fix readme.md

* ran prettifier

* fix reference to json

* reference sts from file as well

* fix readme.md

* changes to readme.md

* remove example from error to fix error

* add 200 OK status for retried PUT for conversions and sessiosn

* ran prettier

* make autorest linter not crash

* fix casing of nextLinkName paramter

* factor out conversion list response

* add examples for conversions

* adding examples for sessions, prettify files

* [Hub Generated] Review request for Microsoft.Maps/Microsoft.Maps to add version preview/2.0 (Azure#12175)

* microsoft.imagery 512 not supported

Adding micorosft.imagery to 512 tile not supported list

* Updating Raster Tilesets to Have Max Zoom 22

Certain raster tilesets now support up to zoom level 22.

* minor changes to swagger (Azure#12253)

* minor changes to swagger

* reverting sdk definitions file

* Add addons to AVS 2020-07-17-preview (Azure#12236)

* found missing AVS/privateclouds/addons commit, moving it to 2020-07-17-preview API from PR repo

* fixed prettier errors

* Fixed vladation warnings for x-ms-enum and missing description/title, related to addons

* fixed validation error for missing systemData for addons responses

* fixed prettier errors

* fixed validation error for missing systemData for addons responses

* systemData for any Resource

* make sure systemData is readOnly

* systemData needs to go in a new api version

* suppress systemData error

Co-authored-by: Cameron Taggart <[email protected]>

* Azs api bug fix (Azure#12133)

* Old api version for ComputeOperationResult

* Api Bugfix for Azure Stack Fabric Admin

* Fix for typo in readme

* Add default reponse

* Fix example issue for default error

* Update comment.yml (Azure#12273)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (Azure#12031)

* fix dataSet typo

* fix dimensions and tags typo

* more dimensions and tags to fix

* one more miss on dimensions and tags

* Add the includeMonetaryCommitment missing field

* fix spell check error

* make property read only

* remove the not operation from query filters

* New backup service api version (Azure#12171)

* Initial commit: adding new api version

* - new api 2020-12-01

* updating the readme.md package reference

* - adding the zone information for new api

* - updating api-version in examples
- added 'zone' in Get recoverypoint api example json

* Fixing prettier issue

* Revert "- updating api-version in examples"

This reverts commit 80baa9fcec1293bd3a51875d793f2178964fce52.

* - adding api-version in examples

* adding new api version in package mds

* [IotHub] Introducing networkRuleSets in IotHubProperties [2020-08-31 : preview and stable ] (Azure#10853)

* Adds base for updating Microsoft.Devices from version preview/2020-07-10-preview to version 2020-08-31-preview

* Updates readme

* Updates API version in new specs and examples

* Adds base for updating Microsoft.Devices from version stable/2020-08-01 to version 2020-08-31

* Updates readme

* Updates API version in new specs and examples

* Adding networkRuleSets support for iothub

* Adding networkRuleSets Support in preview version

* Adding Examples, correcting order in iothub.json

* Updating Readme to have stable and previe versions

* Modifying Tag to package-2020-08-31

* Adding Arm identity properties from 2020-07-010-preview version

* Removing creds

* minor fix

* swagger correctness fix (Azure#12101)

* swagger correctness fix

* update preview version too

* Revert change and add defaults (Azure#12243)

* Remove gallery preview version 2020-09-30 from stable release (Azure#12222)

* add managementpartner track2 config (Azure#12043)

* [Hub Generated] Review request for Microsoft.Insights to add version stable/2019-03-01 (Azure#12232)

* Fixed swagger validations for api version 2019

* reverted error response change and suppress

* removed redundant error details

* renamed suppression rule

* fixed suppression

Co-authored-by: napolish <[email protected]>
Co-authored-by: Phoenix He <[email protected]>
Co-authored-by: arpja <[email protected]>
Co-authored-by: ShaniFelig <[email protected]>
Co-authored-by: Pan Li <[email protected]>
Co-authored-by: Zach Rathbun <[email protected]>
Co-authored-by: surashed <[email protected]>
Co-authored-by: Kaihui (Kerwin) Sun <[email protected]>
Co-authored-by: Zhenglai Zhang <[email protected]>
Co-authored-by: om-nishant <[email protected]>
Co-authored-by: Ihar Voitka <[email protected]>
Co-authored-by: Ruoxuan Wang <[email protected]>
Co-authored-by: Ju Hee Lee <[email protected]>
Co-authored-by: xiazhan <[email protected]>
Co-authored-by: kai ru <[email protected]>
Co-authored-by: Ji Wang <[email protected]>
Co-authored-by: Andy Zhang <[email protected]>
Co-authored-by: guy-microsoft <[email protected]>
Co-authored-by: PoAn (Baron) Chen <[email protected]>
Co-authored-by: Arcturus <[email protected]>
Co-authored-by: suyash691 <[email protected]>
Co-authored-by: nemijato <[email protected]>
Co-authored-by: brpanask <[email protected]>
Co-authored-by: Ray Chen <[email protected]>
Co-authored-by: Eli Arbel <[email protected]>
Co-authored-by: David Han <[email protected]>
Co-authored-by: Roman Khotsyn <[email protected]>
Co-authored-by: David R. Williamson <[email protected]>
Co-authored-by: msyyc <[email protected]>
Co-authored-by: Xinyi Joffre <[email protected]>
Co-authored-by: roytan-microsoft <[email protected]>
Co-authored-by: Vitaliy Fedonkin <[email protected]>
Co-authored-by: Samir Solanki <[email protected]>
Co-authored-by: maksimkim <[email protected]>
Co-authored-by: promoisha <[email protected]>
Co-authored-by: REDMOND\glfeokti <[email protected]>
Co-authored-by: RupengLiu <[email protected]>
Co-authored-by: vfedonkin <[email protected]>
Co-authored-by: David Čepelík <[email protected]>
Co-authored-by: David Čepelík <[email protected]>
Co-authored-by: mudit794 <[email protected]>
Co-authored-by: Dhawal Jain <[email protected]>
Co-authored-by: MichalHel <[email protected]>
Co-authored-by: Liran Chen <[email protected]>
Co-authored-by: jochav <[email protected]>
Co-authored-by: Jorge Chavez Nieto <[email protected]>
Co-authored-by: rikogeln <[email protected]>
Co-authored-by: chgennar <[email protected]>
Co-authored-by: hivyas <[email protected]>
Co-authored-by: Douglas Lee <[email protected]>
Co-authored-by: Cameron Taggart <[email protected]>
Co-authored-by: LingyunSu <[email protected]>
Co-authored-by: elabicha <[email protected]>
Co-authored-by: Nikhil Kumar Mengani <[email protected]>
Co-authored-by: Junbo Wang <[email protected]>
Co-authored-by: Daniel Orozco <[email protected]>
Co-authored-by: Adam Sandor <[email protected]>
Co-authored-by: yashmuel <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 39 changed files with 2,891 additions and 1,470 deletions.
7 changes: 4 additions & 3 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .maps_management_client import MapsManagementClient
from .version import VERSION
from ._configuration import MapsManagementClientConfiguration
from ._maps_management_client import MapsManagementClient
__all__ = ['MapsManagementClient', 'MapsManagementClientConfiguration']

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

__version__ = VERSION

48 changes: 48 additions & 0 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/_configuration.py
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 MapsManagementClientConfiguration(AzureConfiguration):
"""Configuration for MapsManagementClient
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(MapsManagementClientConfiguration, 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
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,13 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.accounts_operations import AccountsOperations
from . import models


class MapsManagementClientConfiguration(AzureConfiguration):
"""Configuration for MapsManagementClient
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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
: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(MapsManagementClientConfiguration, self).__init__(base_url)

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
from ._configuration import MapsManagementClientConfiguration
from .operations import AccountsOperations
from .operations import MapsOperationsOperations
from .operations import PrivateAtlasesOperations
from .operations import CreatorsOperations
from . import models


class MapsManagementClient(SDKClient):
Expand All @@ -59,13 +28,17 @@ class MapsManagementClient(SDKClient):
:ivar accounts: Accounts operations
:vartype accounts: azure.mgmt.maps.operations.AccountsOperations
:ivar maps: Maps operations
:vartype maps: azure.mgmt.maps.operations.MapsOperationsOperations
:ivar private_atlases: PrivateAtlases operations
:vartype private_atlases: azure.mgmt.maps.operations.PrivateAtlasesOperations
: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: Subscription credentials which uniquely identify
Microsoft Azure subscription. The subscription ID forms part of the URI
for every service call.
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""
Expand All @@ -77,9 +50,15 @@ def __init__(
super(MapsManagementClient, 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 = '2018-05-01'
self.api_version = '2020-02-01-preview'
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.private_atlases = PrivateAtlasesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.creators = CreatorsOperations(
self._client, self.config, self._serialize, self._deserialize)
113 changes: 79 additions & 34 deletions sdk/maps/azure-mgmt-maps/azure/mgmt/maps/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,96 @@
# --------------------------------------------------------------------------

try:
from .error_details_item_py3 import ErrorDetailsItem
from .error_py3 import Error, ErrorException
from .resource_py3 import Resource
from .sku_py3 import Sku
from .maps_account_py3 import MapsAccount
from .maps_account_create_parameters_py3 import MapsAccountCreateParameters
from .maps_account_update_parameters_py3 import MapsAccountUpdateParameters
from .maps_accounts_move_request_py3 import MapsAccountsMoveRequest
from .maps_key_specification_py3 import MapsKeySpecification
from .maps_account_keys_py3 import MapsAccountKeys
from .maps_operations_value_item_display_py3 import MapsOperationsValueItemDisplay
from .maps_operations_value_item_py3 import MapsOperationsValueItem
from ._models_py3 import AzureEntityResource
from ._models_py3 import Creator
from ._models_py3 import CreatorCreateParameters
from ._models_py3 import CreatorProperties
from ._models_py3 import CreatorUpdateParameters
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import MapsAccount
from ._models_py3 import MapsAccountCreateParameters
from ._models_py3 import MapsAccountKeys
from ._models_py3 import MapsAccountProperties
from ._models_py3 import MapsAccountUpdateParameters
from ._models_py3 import MapsKeySpecification
from ._models_py3 import MapsOperationsValueItem
from ._models_py3 import MapsOperationsValueItemDisplay
from ._models_py3 import PrivateAtlas
from ._models_py3 import PrivateAtlasCreateParameters
from ._models_py3 import PrivateAtlasProperties
from ._models_py3 import PrivateAtlasUpdateParameters
from ._models_py3 import ProxyResource
from ._models_py3 import Resource
from ._models_py3 import Sku
from ._models_py3 import SystemData
from ._models_py3 import TrackedResource
except (SyntaxError, ImportError):
from .error_details_item import ErrorDetailsItem
from .error import Error, ErrorException
from .resource import Resource
from .sku import Sku
from .maps_account import MapsAccount
from .maps_account_create_parameters import MapsAccountCreateParameters
from .maps_account_update_parameters import MapsAccountUpdateParameters
from .maps_accounts_move_request import MapsAccountsMoveRequest
from .maps_key_specification import MapsKeySpecification
from .maps_account_keys import MapsAccountKeys
from .maps_operations_value_item_display import MapsOperationsValueItemDisplay
from .maps_operations_value_item import MapsOperationsValueItem
from .maps_account_paged import MapsAccountPaged
from .maps_operations_value_item_paged import MapsOperationsValueItemPaged
from .maps_management_client_enums import (
from ._models import AzureEntityResource
from ._models import Creator
from ._models import CreatorCreateParameters
from ._models import CreatorProperties
from ._models import CreatorUpdateParameters
from ._models import ErrorAdditionalInfo
from ._models import ErrorDetail
from ._models import ErrorResponse, ErrorResponseException
from ._models import MapsAccount
from ._models import MapsAccountCreateParameters
from ._models import MapsAccountKeys
from ._models import MapsAccountProperties
from ._models import MapsAccountUpdateParameters
from ._models import MapsKeySpecification
from ._models import MapsOperationsValueItem
from ._models import MapsOperationsValueItemDisplay
from ._models import PrivateAtlas
from ._models import PrivateAtlasCreateParameters
from ._models import PrivateAtlasProperties
from ._models import PrivateAtlasUpdateParameters
from ._models import ProxyResource
from ._models import Resource
from ._models import Sku
from ._models import SystemData
from ._models import TrackedResource
from ._paged_models import CreatorPaged
from ._paged_models import MapsAccountPaged
from ._paged_models import MapsOperationsValueItemPaged
from ._paged_models import PrivateAtlasPaged
from ._maps_management_client_enums import (
CreatedByType,
KeyType,
)

__all__ = [
'ErrorDetailsItem',
'Error', 'ErrorException',
'Resource',
'Sku',
'AzureEntityResource',
'Creator',
'CreatorCreateParameters',
'CreatorProperties',
'CreatorUpdateParameters',
'ErrorAdditionalInfo',
'ErrorDetail',
'ErrorResponse', 'ErrorResponseException',
'MapsAccount',
'MapsAccountCreateParameters',
'MapsAccountKeys',
'MapsAccountProperties',
'MapsAccountUpdateParameters',
'MapsAccountsMoveRequest',
'MapsKeySpecification',
'MapsAccountKeys',
'MapsOperationsValueItemDisplay',
'MapsOperationsValueItem',
'MapsOperationsValueItemDisplay',
'PrivateAtlas',
'PrivateAtlasCreateParameters',
'PrivateAtlasProperties',
'PrivateAtlasUpdateParameters',
'ProxyResource',
'Resource',
'Sku',
'SystemData',
'TrackedResource',
'MapsAccountPaged',
'MapsOperationsValueItemPaged',
'PrivateAtlasPaged',
'CreatorPaged',
'CreatedByType',
'KeyType',
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
from enum import Enum


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class KeyType(str, Enum):

primary = "primary"
Expand Down
Loading

0 comments on commit 6f80699

Please sign in to comment.