From f605bb44d72771b29d952748ef9520463ad34e13 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Jan 2021 17:52:18 +0000 Subject: [PATCH] CodeGen from PR 12289 in Azure/azure-rest-api-specs Get latest master (#12289) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-06-01 (#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 (#12169) * Updating existing CRR APIs with zone restore feature (#12157) * - Added change for support of cross zone restores. * - updating example json * - Fixing prettier * lastUpdatedDate for templates (#11900) * lastUpdatedDate for templates * fix * [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview (#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 * Make credscan happy. Signed-off-by: Pan Li * [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#12113) * Fix linter and swagger warnings * Fix errors * Removed unneeded change * [ASC.Automations] Add new data type "RegulatoryComplianceAssessment" (#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 (#12186) * cleanup old pipeline dependencies (#11889) * cleanup pipeline deps * add rest-api-specs-scripts * Extending recovery network input in replication intent API to support new network creation (#12191) * [Hub Generated] Review request for Microsoft.Maps to add version preview/2020-02-01-preview (#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 (#12141) * Update comment.yml (#12202) Add ARM traffic query link. When add breakingChangeReviewRequired * Adding new properties to response body (#12201) * adding new properties * updating examples * prettier fix * [Hub Generated] Review request for Microsoft.ContainerService to add version stable/2020-12-01 (#12064) * Add autorest.az configurations for azure monitor control service (#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 (#12166) * add alertsmanagement track2 config (#11759) * Update comment.yml (#12213) * add mixedreality track2 confi (#12070) * add signalr track2 config (#11892) * add cognitiveservice track2 config (#11498) * add machinglearningservices track2 config (#12183) * add apimanagement track2 config (#12187) * add serialconsole track2 config (#12046) * Update TransparentDataEncryption Group Name (#12160) * update TransparentDataEncryption Group name * update reference of TransparentDataEncryption * Update readme.python.md (#12216) * Required changes for Azure HealthBot swagger (#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 (#12224) * update to name * update * add api-version of guest configuration to go SDK (#12217) * add api-version for templatespecs (#12197) * Update specificationRepositoryConfiguration.json (#12218) * Adding new api version to devops RP (#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 (#12229) * Remove swagger and examples because the controller will be used for private preview. (#12177) * Update pull_request_assignment.yml (#12230) * [Hub Generated] Review request for Microsoft.StorageCache to add version stable/2020-10-01 (#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 (#12199) Adding secret_property code, update some other codes. * ADP - add system metadata to dataPool (#12179) * Swagger Linting Fix (#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 (#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 (#12227) * update rdbms track2 config (#12245) * ADT: refix path (#12161) * python track2 configure (#12150) * Add and remove owner for service principals (#12081) * [Hub Generated] Review request for Microsoft.MixedReality to add version stable/2020-05-01 (#11810) * fix spec * fix prettier * [Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-12-02-preview (#11769) * fix for swagger completeness * forgot curly brace * fix example * Api Management - make /tenant endpoints ARM compliant in 2020-06-01-preview version (#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 (#10284) * apim in azs * fix prettier check * PATCH should return 200 OK (#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 (#10292) * [2020-06-01-preview] Update Oauth Server secrets Contract (#10602) * Oauth server secrets contract * fix azureMonitor enum * API Management Service Deleted Services Resource (#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 * OperationNameFormat property added to Diagnostic contract (#10641) * OperationNameFormat property added to Diagnostic contract * add azuremonitor to update contract Co-authored-by: REDMOND\glfeokti * [Microsoft.ApiManagement][2020-06-01-preview] Change Network Status response contract (#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 Co-authored-by: maksimkim Co-authored-by: promoisha Co-authored-by: REDMOND\glfeokti Co-authored-by: RupengLiu Co-authored-by: vfedonkin * Add "mail" parameter to UserUpdateParameters in graphrbac (#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 * [Hub Generated] Review request for Microsoft.Advisor to add version stable/2020-01-01 (#12262) * add resourcegraph track2 config (#12122) * add reservations track2 config (#12027) * Removing a readonly tag from a property (#12254) * Fix swagger correctness errors (#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 * [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#12196) * AAS - Swagger Linting and Correctness Fix (#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 (#12045) * [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-10-01 (#12194) * Adding nextLink and previousLink to Tags endpoint properties * moving properties out * prettier check fix Co-authored-by: Jorge Chavez Nieto * add relay track2 config (#11495) * update healthbot t2 config (#12269) * update healthbot t2 config * fix readme * add automation track2 config (#11628) * add automation track2 config * update config * Azure Remote Rendering REST API swagger file - for review (#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 (#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 (#12253) * minor changes to swagger * reverting sdk definitions file * Add addons to AVS 2020-07-17-preview (#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 * Azs api bug fix (#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 (#12273) * [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#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 (#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 ] (#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 (#12101) * swagger correctness fix * update preview version too * Revert change and add defaults (#12243) * Remove gallery preview version 2020-09-30 from stable release (#12222) * add managementpartner track2 config (#12043) * [Hub Generated] Review request for Microsoft.Insights to add version stable/2019-03-01 (#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 <67951636+napolish@users.noreply.github.com> Co-authored-by: Phoenix He Co-authored-by: arpja <46751982+arpja@users.noreply.github.com> Co-authored-by: ShaniFelig <74960756+ShaniFelig@users.noreply.github.com> Co-authored-by: Pan Li Co-authored-by: Zach Rathbun Co-authored-by: surashed <55134940+surashed@users.noreply.github.com> Co-authored-by: Kaihui (Kerwin) Sun Co-authored-by: Zhenglai Zhang Co-authored-by: om-nishant <50401171+om-nishant@users.noreply.github.com> Co-authored-by: Ihar Voitka Co-authored-by: Ruoxuan Wang <52271048+ruowan@users.noreply.github.com> Co-authored-by: Ju Hee Lee Co-authored-by: xiazhan Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> Co-authored-by: Ji Wang Co-authored-by: Andy Zhang Co-authored-by: guy-microsoft <50947884+guy-microsoft@users.noreply.github.com> Co-authored-by: PoAn (Baron) Chen Co-authored-by: Arcturus Co-authored-by: suyash691 Co-authored-by: nemijato <68876730+nemijato@users.noreply.github.com> Co-authored-by: brpanask <64860651+brpanask@users.noreply.github.com> Co-authored-by: Ray Chen Co-authored-by: Eli Arbel Co-authored-by: David Han <76010854+david-msft@users.noreply.github.com> Co-authored-by: Roman Khotsyn Co-authored-by: David R. Williamson Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: Xinyi Joffre Co-authored-by: roytan-microsoft <73565668+roytan-microsoft@users.noreply.github.com> Co-authored-by: Vitaliy Fedonkin Co-authored-by: Samir Solanki Co-authored-by: maksimkim Co-authored-by: promoisha Co-authored-by: REDMOND\glfeokti Co-authored-by: RupengLiu Co-authored-by: vfedonkin Co-authored-by: David Čepelík Co-authored-by: David Čepelík Co-authored-by: mudit794 <42189950+mudit794@users.noreply.github.com> Co-authored-by: Dhawal Jain <41853104+dhawal777@users.noreply.github.com> Co-authored-by: MichalHel <51286657+MichalHel@users.noreply.github.com> Co-authored-by: Liran Chen Co-authored-by: jochav <75458295+jochav@users.noreply.github.com> Co-authored-by: Jorge Chavez Nieto Co-authored-by: rikogeln <40666347+rikogeln@users.noreply.github.com> Co-authored-by: chgennar <56695749+chgennar@users.noreply.github.com> Co-authored-by: hivyas <61890270+hivyas@users.noreply.github.com> Co-authored-by: Douglas Lee <65295939+leedouglas@users.noreply.github.com> Co-authored-by: Cameron Taggart Co-authored-by: LingyunSu <33764806+LingyunSu@users.noreply.github.com> Co-authored-by: elabicha <61994320+elabicha@users.noreply.github.com> Co-authored-by: Nikhil Kumar Mengani <62704762+nimengan@users.noreply.github.com> Co-authored-by: Junbo Wang Co-authored-by: Daniel Orozco <64658732+dagoroz@users.noreply.github.com> Co-authored-by: Adam Sandor Co-authored-by: yashmuel <63585146+yashmuel@users.noreply.github.com> --- .../azure/mgmt/datalake/store/__init__.py | 7 +- .../mgmt/datalake/store/_configuration.py | 50 + ...a_lake_store_account_management_client.py} | 50 +- .../mgmt/datalake/store/models/__init__.py | 196 +-- ..._store_account_management_client_enums.py} | 10 + .../mgmt/datalake/store/models/_models.py | 1362 +++++++++++++++++ .../mgmt/datalake/store/models/_models_py3.py | 1362 +++++++++++++++++ .../datalake/store/models/_paged_models.py | 79 + .../store/models/capability_information.py | 60 - .../models/capability_information_py3.py | 60 - .../check_name_availability_parameters.py | 45 - .../check_name_availability_parameters_py3.py | 45 - ...eate_data_lake_store_account_parameters.py | 104 -- ..._data_lake_store_account_parameters_py3.py | 104 -- ...e_firewall_rule_with_account_parameters.py | 49 - ...rewall_rule_with_account_parameters_py3.py | 49 - ...eate_or_update_firewall_rule_parameters.py | 43 - ..._or_update_firewall_rule_parameters_py3.py | 43 - ...r_update_trusted_id_provider_parameters.py | 34 - ...date_trusted_id_provider_parameters_py3.py | 34 - ..._update_virtual_network_rule_parameters.py | 34 - ...ate_virtual_network_rule_parameters_py3.py | 34 - ...ted_id_provider_with_account_parameters.py | 41 - ...id_provider_with_account_parameters_py3.py | 41 - ...al_network_rule_with_account_parameters.py | 41 - ...etwork_rule_with_account_parameters_py3.py | 41 - .../store/models/data_lake_store_account.py | 180 --- .../models/data_lake_store_account_basic.py | 87 -- .../data_lake_store_account_basic_paged.py | 27 - .../data_lake_store_account_basic_py3.py | 87 -- .../models/data_lake_store_account_py3.py | 180 --- .../store/models/encryption_config.py | 42 - .../store/models/encryption_config_py3.py | 42 - .../store/models/encryption_identity.py | 50 - .../store/models/encryption_identity_py3.py | 50 - .../datalake/store/models/firewall_rule.py | 54 - .../store/models/firewall_rule_paged.py | 27 - .../store/models/firewall_rule_py3.py | 54 - .../store/models/key_vault_meta_info.py | 47 - .../store/models/key_vault_meta_info_py3.py | 47 - .../models/name_availability_information.py | 48 - .../name_availability_information_py3.py | 48 - .../mgmt/datalake/store/models/operation.py | 45 - .../store/models/operation_display.py | 50 - .../store/models/operation_display_py3.py | 50 - .../store/models/operation_list_result.py | 40 - .../store/models/operation_list_result_py3.py | 40 - .../datalake/store/models/operation_py3.py | 45 - .../mgmt/datalake/store/models/resource.py | 55 - .../datalake/store/models/resource_py3.py | 55 - .../datalake/store/models/sub_resource.py | 45 - .../datalake/store/models/sub_resource_py3.py | 45 - .../store/models/trusted_id_provider.py | 47 - .../store/models/trusted_id_provider_paged.py | 27 - .../store/models/trusted_id_provider_py3.py | 47 - ...date_data_lake_store_account_parameters.py | 88 -- ..._data_lake_store_account_parameters_py3.py | 88 -- .../store/models/update_encryption_config.py | 30 - .../models/update_encryption_config_py3.py | 30 - .../models/update_firewall_rule_parameters.py | 34 - .../update_firewall_rule_parameters_py3.py | 34 - ...e_firewall_rule_with_account_parameters.py | 45 - ...rewall_rule_with_account_parameters_py3.py | 45 - .../models/update_key_vault_meta_info.py | 29 - .../models/update_key_vault_meta_info_py3.py | 29 - .../update_trusted_id_provider_parameters.py | 28 - ...date_trusted_id_provider_parameters_py3.py | 28 - ...ted_id_provider_with_account_parameters.py | 40 - ...id_provider_with_account_parameters_py3.py | 40 - .../update_virtual_network_rule_parameters.py | 28 - ...ate_virtual_network_rule_parameters_py3.py | 28 - ...al_network_rule_with_account_parameters.py | 40 - ...etwork_rule_with_account_parameters_py3.py | 40 - .../store/models/virtual_network_rule.py | 47 - .../models/virtual_network_rule_paged.py | 27 - .../store/models/virtual_network_rule_py3.py | 47 - .../datalake/store/operations/__init__.py | 12 +- ..._operations.py => _accounts_operations.py} | 80 +- ...tions.py => _firewall_rules_operations.py} | 49 +- ...operations.py => _locations_operations.py} | 79 +- .../{operations.py => _operations.py} | 9 +- ...py => _trusted_id_providers_operations.py} | 49 +- ...y => _virtual_network_rules_operations.py} | 49 +- 83 files changed, 3176 insertions(+), 3675 deletions(-) create mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_configuration.py rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/{data_lake_store_account_management_client.py => _data_lake_store_account_management_client.py} (64%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/{data_lake_store_account_management_client_enums.py => _data_lake_store_account_management_client_enums.py} (91%) create mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py create mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models_py3.py create mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_paged_models.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_py3.py rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{accounts_operations.py => _accounts_operations.py} (93%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{firewall_rules_operations.py => _firewall_rules_operations.py} (92%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{locations_operations.py => _locations_operations.py} (52%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{operations.py => _operations.py} (90%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{trusted_id_providers_operations.py => _trusted_id_providers_operations.py} (92%) rename sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/{virtual_network_rules_operations.py => _virtual_network_rules_operations.py} (92%) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/__init__.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/__init__.py index 477619f740d40..311212e8e1b3a 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .data_lake_store_account_management_client import DataLakeStoreAccountManagementClient -from .version import VERSION +from ._configuration import DataLakeStoreAccountManagementClientConfiguration +from ._data_lake_store_account_management_client import DataLakeStoreAccountManagementClient +__all__ = ['DataLakeStoreAccountManagementClient', 'DataLakeStoreAccountManagementClientConfiguration'] -__all__ = ['DataLakeStoreAccountManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_configuration.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_configuration.py new file mode 100644 index 0000000000000..58b6e76c47a22 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_configuration.py @@ -0,0 +1,50 @@ +# 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 DataLakeStoreAccountManagementClientConfiguration(AzureConfiguration): + """Configuration for DataLakeStoreAccountManagementClient + 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` + :param subscription_id: Gets 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(DataLakeStoreAccountManagementClientConfiguration, 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-datalake-store/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/data_lake_store_account_management_client.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_data_lake_store_account_management_client.py similarity index 64% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/data_lake_store_account_management_client.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_data_lake_store_account_management_client.py index dafc1af5ead6b..d61e53c8719da 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/data_lake_store_account_management_client.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_data_lake_store_account_management_client.py @@ -11,49 +11,15 @@ 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 .operations.firewall_rules_operations import FirewallRulesOperations -from .operations.virtual_network_rules_operations import VirtualNetworkRulesOperations -from .operations.trusted_id_providers_operations import TrustedIdProvidersOperations -from .operations.operations import Operations -from .operations.locations_operations import LocationsOperations -from . import models - - -class DataLakeStoreAccountManagementClientConfiguration(AzureConfiguration): - """Configuration for DataLakeStoreAccountManagementClient - 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` - :param subscription_id: Gets 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(DataLakeStoreAccountManagementClientConfiguration, self).__init__(base_url) - self.add_user_agent('azure-mgmt-datalake-store/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import DataLakeStoreAccountManagementClientConfiguration +from .operations import AccountsOperations +from .operations import FirewallRulesOperations +from .operations import VirtualNetworkRulesOperations +from .operations import TrustedIdProvidersOperations +from .operations import Operations +from .operations import LocationsOperations +from . import models class DataLakeStoreAccountManagementClient(SDKClient): diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/__init__.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/__init__.py index f4b7b68b94e54..c0e8c932792b0 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/__init__.py @@ -10,76 +10,81 @@ # -------------------------------------------------------------------------- try: - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .encryption_identity_py3 import EncryptionIdentity - from .key_vault_meta_info_py3 import KeyVaultMetaInfo - from .encryption_config_py3 import EncryptionConfig - from .firewall_rule_py3 import FirewallRule - from .virtual_network_rule_py3 import VirtualNetworkRule - from .trusted_id_provider_py3 import TrustedIdProvider - from .data_lake_store_account_py3 import DataLakeStoreAccount - from .data_lake_store_account_basic_py3 import DataLakeStoreAccountBasic - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation - from .operation_list_result_py3 import OperationListResult - from .capability_information_py3 import CapabilityInformation - from .name_availability_information_py3 import NameAvailabilityInformation - from .create_firewall_rule_with_account_parameters_py3 import CreateFirewallRuleWithAccountParameters - from .create_virtual_network_rule_with_account_parameters_py3 import CreateVirtualNetworkRuleWithAccountParameters - from .create_trusted_id_provider_with_account_parameters_py3 import CreateTrustedIdProviderWithAccountParameters - from .create_data_lake_store_account_parameters_py3 import CreateDataLakeStoreAccountParameters - from .update_key_vault_meta_info_py3 import UpdateKeyVaultMetaInfo - from .update_encryption_config_py3 import UpdateEncryptionConfig - from .update_firewall_rule_with_account_parameters_py3 import UpdateFirewallRuleWithAccountParameters - from .update_virtual_network_rule_with_account_parameters_py3 import UpdateVirtualNetworkRuleWithAccountParameters - from .update_trusted_id_provider_with_account_parameters_py3 import UpdateTrustedIdProviderWithAccountParameters - from .update_data_lake_store_account_parameters_py3 import UpdateDataLakeStoreAccountParameters - from .create_or_update_firewall_rule_parameters_py3 import CreateOrUpdateFirewallRuleParameters - from .update_firewall_rule_parameters_py3 import UpdateFirewallRuleParameters - from .create_or_update_virtual_network_rule_parameters_py3 import CreateOrUpdateVirtualNetworkRuleParameters - from .update_virtual_network_rule_parameters_py3 import UpdateVirtualNetworkRuleParameters - from .create_or_update_trusted_id_provider_parameters_py3 import CreateOrUpdateTrustedIdProviderParameters - from .update_trusted_id_provider_parameters_py3 import UpdateTrustedIdProviderParameters - from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters + from ._models_py3 import CapabilityInformation + from ._models_py3 import CheckNameAvailabilityParameters + from ._models_py3 import CreateDataLakeStoreAccountParameters + from ._models_py3 import CreateFirewallRuleWithAccountParameters + from ._models_py3 import CreateOrUpdateFirewallRuleParameters + from ._models_py3 import CreateOrUpdateTrustedIdProviderParameters + from ._models_py3 import CreateOrUpdateVirtualNetworkRuleParameters + from ._models_py3 import CreateTrustedIdProviderWithAccountParameters + from ._models_py3 import CreateVirtualNetworkRuleWithAccountParameters + from ._models_py3 import DataLakeStoreAccount + from ._models_py3 import DataLakeStoreAccountBasic + from ._models_py3 import EncryptionConfig + from ._models_py3 import EncryptionIdentity + from ._models_py3 import FirewallRule + from ._models_py3 import KeyVaultMetaInfo + from ._models_py3 import NameAvailabilityInformation + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationListResult + from ._models_py3 import Resource + from ._models_py3 import SubResource + from ._models_py3 import TrustedIdProvider + from ._models_py3 import UpdateDataLakeStoreAccountParameters + from ._models_py3 import UpdateEncryptionConfig + from ._models_py3 import UpdateFirewallRuleParameters + from ._models_py3 import UpdateFirewallRuleWithAccountParameters + from ._models_py3 import UpdateKeyVaultMetaInfo + from ._models_py3 import UpdateTrustedIdProviderParameters + from ._models_py3 import UpdateTrustedIdProviderWithAccountParameters + from ._models_py3 import UpdateVirtualNetworkRuleParameters + from ._models_py3 import UpdateVirtualNetworkRuleWithAccountParameters + from ._models_py3 import Usage + from ._models_py3 import UsageName + from ._models_py3 import VirtualNetworkRule except (SyntaxError, ImportError): - from .resource import Resource - from .sub_resource import SubResource - from .encryption_identity import EncryptionIdentity - from .key_vault_meta_info import KeyVaultMetaInfo - from .encryption_config import EncryptionConfig - from .firewall_rule import FirewallRule - from .virtual_network_rule import VirtualNetworkRule - from .trusted_id_provider import TrustedIdProvider - from .data_lake_store_account import DataLakeStoreAccount - from .data_lake_store_account_basic import DataLakeStoreAccountBasic - from .operation_display import OperationDisplay - from .operation import Operation - from .operation_list_result import OperationListResult - from .capability_information import CapabilityInformation - from .name_availability_information import NameAvailabilityInformation - from .create_firewall_rule_with_account_parameters import CreateFirewallRuleWithAccountParameters - from .create_virtual_network_rule_with_account_parameters import CreateVirtualNetworkRuleWithAccountParameters - from .create_trusted_id_provider_with_account_parameters import CreateTrustedIdProviderWithAccountParameters - from .create_data_lake_store_account_parameters import CreateDataLakeStoreAccountParameters - from .update_key_vault_meta_info import UpdateKeyVaultMetaInfo - from .update_encryption_config import UpdateEncryptionConfig - from .update_firewall_rule_with_account_parameters import UpdateFirewallRuleWithAccountParameters - from .update_virtual_network_rule_with_account_parameters import UpdateVirtualNetworkRuleWithAccountParameters - from .update_trusted_id_provider_with_account_parameters import UpdateTrustedIdProviderWithAccountParameters - from .update_data_lake_store_account_parameters import UpdateDataLakeStoreAccountParameters - from .create_or_update_firewall_rule_parameters import CreateOrUpdateFirewallRuleParameters - from .update_firewall_rule_parameters import UpdateFirewallRuleParameters - from .create_or_update_virtual_network_rule_parameters import CreateOrUpdateVirtualNetworkRuleParameters - from .update_virtual_network_rule_parameters import UpdateVirtualNetworkRuleParameters - from .create_or_update_trusted_id_provider_parameters import CreateOrUpdateTrustedIdProviderParameters - from .update_trusted_id_provider_parameters import UpdateTrustedIdProviderParameters - from .check_name_availability_parameters import CheckNameAvailabilityParameters -from .data_lake_store_account_basic_paged import DataLakeStoreAccountBasicPaged -from .firewall_rule_paged import FirewallRulePaged -from .virtual_network_rule_paged import VirtualNetworkRulePaged -from .trusted_id_provider_paged import TrustedIdProviderPaged -from .data_lake_store_account_management_client_enums import ( + from ._models import CapabilityInformation + from ._models import CheckNameAvailabilityParameters + from ._models import CreateDataLakeStoreAccountParameters + from ._models import CreateFirewallRuleWithAccountParameters + from ._models import CreateOrUpdateFirewallRuleParameters + from ._models import CreateOrUpdateTrustedIdProviderParameters + from ._models import CreateOrUpdateVirtualNetworkRuleParameters + from ._models import CreateTrustedIdProviderWithAccountParameters + from ._models import CreateVirtualNetworkRuleWithAccountParameters + from ._models import DataLakeStoreAccount + from ._models import DataLakeStoreAccountBasic + from ._models import EncryptionConfig + from ._models import EncryptionIdentity + from ._models import FirewallRule + from ._models import KeyVaultMetaInfo + from ._models import NameAvailabilityInformation + from ._models import Operation + from ._models import OperationDisplay + from ._models import OperationListResult + from ._models import Resource + from ._models import SubResource + from ._models import TrustedIdProvider + from ._models import UpdateDataLakeStoreAccountParameters + from ._models import UpdateEncryptionConfig + from ._models import UpdateFirewallRuleParameters + from ._models import UpdateFirewallRuleWithAccountParameters + from ._models import UpdateKeyVaultMetaInfo + from ._models import UpdateTrustedIdProviderParameters + from ._models import UpdateTrustedIdProviderWithAccountParameters + from ._models import UpdateVirtualNetworkRuleParameters + from ._models import UpdateVirtualNetworkRuleWithAccountParameters + from ._models import Usage + from ._models import UsageName + from ._models import VirtualNetworkRule +from ._paged_models import DataLakeStoreAccountBasicPaged +from ._paged_models import FirewallRulePaged +from ._paged_models import TrustedIdProviderPaged +from ._paged_models import UsagePaged +from ._paged_models import VirtualNetworkRulePaged +from ._data_lake_store_account_management_client_enums import ( EncryptionConfigType, EncryptionState, EncryptionProvisioningState, @@ -91,45 +96,49 @@ DataLakeStoreAccountState, OperationOrigin, SubscriptionState, + UsageUnit, ) __all__ = [ - 'Resource', - 'SubResource', - 'EncryptionIdentity', - 'KeyVaultMetaInfo', - 'EncryptionConfig', - 'FirewallRule', - 'VirtualNetworkRule', - 'TrustedIdProvider', + 'CapabilityInformation', + 'CheckNameAvailabilityParameters', + 'CreateDataLakeStoreAccountParameters', + 'CreateFirewallRuleWithAccountParameters', + 'CreateOrUpdateFirewallRuleParameters', + 'CreateOrUpdateTrustedIdProviderParameters', + 'CreateOrUpdateVirtualNetworkRuleParameters', + 'CreateTrustedIdProviderWithAccountParameters', + 'CreateVirtualNetworkRuleWithAccountParameters', 'DataLakeStoreAccount', 'DataLakeStoreAccountBasic', - 'OperationDisplay', + 'EncryptionConfig', + 'EncryptionIdentity', + 'FirewallRule', + 'KeyVaultMetaInfo', + 'NameAvailabilityInformation', 'Operation', + 'OperationDisplay', 'OperationListResult', - 'CapabilityInformation', - 'NameAvailabilityInformation', - 'CreateFirewallRuleWithAccountParameters', - 'CreateVirtualNetworkRuleWithAccountParameters', - 'CreateTrustedIdProviderWithAccountParameters', - 'CreateDataLakeStoreAccountParameters', - 'UpdateKeyVaultMetaInfo', + 'Resource', + 'SubResource', + 'TrustedIdProvider', + 'UpdateDataLakeStoreAccountParameters', 'UpdateEncryptionConfig', + 'UpdateFirewallRuleParameters', 'UpdateFirewallRuleWithAccountParameters', - 'UpdateVirtualNetworkRuleWithAccountParameters', + 'UpdateKeyVaultMetaInfo', + 'UpdateTrustedIdProviderParameters', 'UpdateTrustedIdProviderWithAccountParameters', - 'UpdateDataLakeStoreAccountParameters', - 'CreateOrUpdateFirewallRuleParameters', - 'UpdateFirewallRuleParameters', - 'CreateOrUpdateVirtualNetworkRuleParameters', 'UpdateVirtualNetworkRuleParameters', - 'CreateOrUpdateTrustedIdProviderParameters', - 'UpdateTrustedIdProviderParameters', - 'CheckNameAvailabilityParameters', + 'UpdateVirtualNetworkRuleWithAccountParameters', + 'Usage', + 'UsageName', + 'VirtualNetworkRule', 'DataLakeStoreAccountBasicPaged', 'FirewallRulePaged', 'VirtualNetworkRulePaged', 'TrustedIdProviderPaged', + 'UsagePaged', 'EncryptionConfigType', 'EncryptionState', 'EncryptionProvisioningState', @@ -141,4 +150,5 @@ 'DataLakeStoreAccountState', 'OperationOrigin', 'SubscriptionState', + 'UsageUnit', ] diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_management_client_enums.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_data_lake_store_account_management_client_enums.py similarity index 91% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_management_client_enums.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_data_lake_store_account_management_client_enums.py index 26b787263665a..96a4f0ca46b81 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_management_client_enums.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_data_lake_store_account_management_client_enums.py @@ -94,3 +94,13 @@ class SubscriptionState(str, Enum): deleted = "Deleted" unregistered = "Unregistered" warned = "Warned" + + +class UsageUnit(str, Enum): + + count = "Count" + bytes = "Bytes" + seconds = "Seconds" + percent = "Percent" + counts_per_second = "CountsPerSecond" + bytes_per_second = "BytesPerSecond" diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py new file mode 100644 index 0000000000000..25e7dbe15cea5 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models.py @@ -0,0 +1,1362 @@ +# 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.serialization import Model + + +class CapabilityInformation(Model): + """Subscription-level properties and limits for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar subscription_id: The subscription credentials that uniquely + identifies the subscription. + :vartype subscription_id: str + :ivar state: The subscription state. Possible values include: + 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' + :vartype state: str or ~azure.mgmt.datalake.store.models.SubscriptionState + :ivar max_account_count: The maximum supported number of accounts under + this subscription. + :vartype max_account_count: int + :ivar account_count: The current number of accounts under this + subscription. + :vartype account_count: int + :ivar migration_state: The Boolean value of true or false to indicate the + maintenance state. + :vartype migration_state: bool + """ + + _validation = { + 'subscription_id': {'readonly': True}, + 'state': {'readonly': True}, + 'max_account_count': {'readonly': True}, + 'account_count': {'readonly': True}, + 'migration_state': {'readonly': True}, + } + + _attribute_map = { + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, + 'account_count': {'key': 'accountCount', 'type': 'int'}, + 'migration_state': {'key': 'migrationState', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(CapabilityInformation, self).__init__(**kwargs) + self.subscription_id = None + self.state = None + self.max_account_count = None + self.account_count = None + self.migration_state = None + + +class CheckNameAvailabilityParameters(Model): + """Data Lake Store account name availability check parameters. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The Data Lake Store name to check availability for. + :type name: str + :ivar type: Required. The resource type. Note: This should not be set by + the user, as the constant value is Microsoft.DataLakeStore/accounts. + Default value: "Microsoft.DataLakeStore/accounts" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.DataLakeStore/accounts" + + def __init__(self, **kwargs): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CreateDataLakeStoreAccountParameters(Model): + """CreateDataLakeStoreAccountParameters. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param identity: The Key Vault encryption identity, if any. + :type identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity + :param default_group: The default owner group for all new folders and + files created in the Data Lake Store account. + :type default_group: str + :param encryption_config: The Key Vault encryption configuration. + :type encryption_config: + ~azure.mgmt.datalake.store.models.EncryptionConfig + :param encryption_state: The current state of encryption for this Data + Lake Store account. Possible values include: 'Enabled', 'Disabled' + :type encryption_state: str or + ~azure.mgmt.datalake.store.models.EncryptionState + :param firewall_rules: The list of firewall rules associated with this + Data Lake Store account. + :type firewall_rules: + list[~azure.mgmt.datalake.store.models.CreateFirewallRuleWithAccountParameters] + :param virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :type virtual_network_rules: + list[~azure.mgmt.datalake.store.models.CreateVirtualNetworkRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Possible values include: 'Enabled', + 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :param trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :type trusted_id_providers: + list[~azure.mgmt.datalake.store.models.CreateTrustedIdProviderWithAccountParameters] + :param trusted_id_provider_state: The current state of the trusted + identity provider feature for this Data Lake Store account. Possible + values include: 'Enabled', 'Disabled' + :type trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _validation = { + 'location': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, + 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[CreateVirtualNetworkRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[CreateTrustedIdProviderWithAccountParameters]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + } + + def __init__(self, **kwargs): + super(CreateDataLakeStoreAccountParameters, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.identity = kwargs.get('identity', None) + self.default_group = kwargs.get('default_group', None) + self.encryption_config = kwargs.get('encryption_config', None) + self.encryption_state = kwargs.get('encryption_state', None) + self.firewall_rules = kwargs.get('firewall_rules', None) + self.virtual_network_rules = kwargs.get('virtual_network_rules', None) + self.firewall_state = kwargs.get('firewall_state', None) + self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) + self.trusted_id_providers = kwargs.get('trusted_id_providers', None) + self.trusted_id_provider_state = kwargs.get('trusted_id_provider_state', None) + self.new_tier = kwargs.get('new_tier', None) + + +class CreateFirewallRuleWithAccountParameters(Model): + """The parameters used to create a new firewall rule while creating a new Data + Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to create. + :type name: str + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class CreateOrUpdateFirewallRuleParameters(Model): + """The parameters used to create a new firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class CreateOrUpdateTrustedIdProviderParameters(Model): + """The parameters used to create a new trusted identity provider. + + All required parameters must be populated in order to send to Azure. + + :param id_provider: Required. The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'id_provider': {'required': True}, + } + + _attribute_map = { + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateOrUpdateTrustedIdProviderParameters, self).__init__(**kwargs) + self.id_provider = kwargs.get('id_provider', None) + + +class CreateOrUpdateVirtualNetworkRuleParameters(Model): + """The parameters used to create a new virtual network rule. + + All required parameters must be populated in order to send to Azure. + + :param subnet_id: Required. The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateOrUpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) + self.subnet_id = kwargs.get('subnet_id', None) + + +class CreateTrustedIdProviderWithAccountParameters(Model): + """The parameters used to create a new trusted identity provider while + creating a new Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the trusted identity provider to + create. + :type name: str + :param id_provider: Required. The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'name': {'required': True}, + 'id_provider': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.id_provider = kwargs.get('id_provider', None) + + +class CreateVirtualNetworkRuleWithAccountParameters(Model): + """The parameters used to create a new virtual network rule while creating a + new Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the virtual network rule to + create. + :type name: str + :param subnet_id: Required. The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.subnet_id = kwargs.get('subnet_id', None) + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None + + +class DataLakeStoreAccount(Resource): + """Data Lake Store account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar identity: The Key Vault encryption identity, if any. + :vartype identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity + :ivar account_id: The unique identifier associated with this Data Lake + Store account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake Store + account. Possible values include: 'Failed', 'Creating', 'Running', + 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', + 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus + :ivar state: The state of the Data Lake Store account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + :ivar default_group: The default owner group for all new folders and files + created in the Data Lake Store account. + :vartype default_group: str + :ivar encryption_config: The Key Vault encryption configuration. + :vartype encryption_config: + ~azure.mgmt.datalake.store.models.EncryptionConfig + :ivar encryption_state: The current state of encryption for this Data Lake + Store account. Possible values include: 'Enabled', 'Disabled' + :vartype encryption_state: str or + ~azure.mgmt.datalake.store.models.EncryptionState + :ivar encryption_provisioning_state: The current state of encryption + provisioning for this Data Lake Store account. Possible values include: + 'Creating', 'Succeeded' + :vartype encryption_provisioning_state: str or + ~azure.mgmt.datalake.store.models.EncryptionProvisioningState + :ivar firewall_rules: The list of firewall rules associated with this Data + Lake Store account. + :vartype firewall_rules: + list[~azure.mgmt.datalake.store.models.FirewallRule] + :ivar virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :vartype virtual_network_rules: + list[~azure.mgmt.datalake.store.models.VirtualNetworkRule] + :ivar firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Possible values include: 'Enabled', + 'Disabled' + :vartype firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :ivar firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :vartype firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :ivar trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :vartype trusted_id_providers: + list[~azure.mgmt.datalake.store.models.TrustedIdProvider] + :ivar trusted_id_provider_state: The current state of the trusted identity + provider feature for this Data Lake Store account. Possible values + include: 'Enabled', 'Disabled' + :vartype trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :ivar new_tier: The commitment tier to use for next month. Possible values + include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :vartype new_tier: str or ~azure.mgmt.datalake.store.models.TierType + :ivar current_tier: The commitment tier in use for the current month. + Possible values include: 'Consumption', 'Commitment_1TB', + 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + 'Commitment_1PB', 'Commitment_5PB' + :vartype current_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'identity': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + 'default_group': {'readonly': True}, + 'encryption_config': {'readonly': True}, + 'encryption_state': {'readonly': True}, + 'encryption_provisioning_state': {'readonly': True}, + 'firewall_rules': {'readonly': True}, + 'virtual_network_rules': {'readonly': True}, + 'firewall_state': {'readonly': True}, + 'firewall_allow_azure_ips': {'readonly': True}, + 'trusted_id_providers': {'readonly': True}, + 'trusted_id_provider_state': {'readonly': True}, + 'new_tier': {'readonly': True}, + 'current_tier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, + 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, + 'encryption_provisioning_state': {'key': 'properties.encryptionProvisioningState', 'type': 'EncryptionProvisioningState'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[TrustedIdProvider]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, + } + + def __init__(self, **kwargs): + super(DataLakeStoreAccount, self).__init__(**kwargs) + self.identity = None + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + self.default_group = None + self.encryption_config = None + self.encryption_state = None + self.encryption_provisioning_state = None + self.firewall_rules = None + self.virtual_network_rules = None + self.firewall_state = None + self.firewall_allow_azure_ips = None + self.trusted_id_providers = None + self.trusted_id_provider_state = None + self.new_tier = None + self.current_tier = None + + +class DataLakeStoreAccountBasic(Resource): + """Basic Data Lake Store account information, returned on list calls. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Store account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake Store + account. Possible values include: 'Failed', 'Creating', 'Running', + 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', + 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus + :ivar state: The state of the Data Lake Store account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataLakeStoreAccountBasic, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + + +class EncryptionConfig(Model): + """The encryption configuration for the account. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The type of encryption configuration being used. + Currently the only supported types are 'UserManaged' and 'ServiceManaged'. + Possible values include: 'UserManaged', 'ServiceManaged' + :type type: str or ~azure.mgmt.datalake.store.models.EncryptionConfigType + :param key_vault_meta_info: The Key Vault information for connecting to + user managed encryption keys. + :type key_vault_meta_info: + ~azure.mgmt.datalake.store.models.KeyVaultMetaInfo + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'EncryptionConfigType'}, + 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'KeyVaultMetaInfo'}, + } + + def __init__(self, **kwargs): + super(EncryptionConfig, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.key_vault_meta_info = kwargs.get('key_vault_meta_info', None) + + +class EncryptionIdentity(Model): + """The encryption identity properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar type: Required. The type of encryption being used. Currently the + only supported type is 'SystemAssigned'. Default value: "SystemAssigned" . + :vartype type: str + :ivar principal_id: The principal identifier associated with the + encryption. + :vartype principal_id: str + :ivar tenant_id: The tenant identifier associated with the encryption. + :vartype tenant_id: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + type = "SystemAssigned" + + def __init__(self, **kwargs): + super(EncryptionIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + + +class SubResource(Model): + """The resource model definition for a nested resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class FirewallRule(SubResource): + """Data Lake Store firewall rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype start_ip_address: str + :ivar end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype end_ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_ip_address': {'readonly': True}, + 'end_ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FirewallRule, self).__init__(**kwargs) + self.start_ip_address = None + self.end_ip_address = None + + +class KeyVaultMetaInfo(Model): + """Metadata information used by account encryption. + + All required parameters must be populated in order to send to Azure. + + :param key_vault_resource_id: Required. The resource identifier for the + user managed Key Vault being used to encrypt. + :type key_vault_resource_id: str + :param encryption_key_name: Required. The name of the user managed + encryption key. + :type encryption_key_name: str + :param encryption_key_version: Required. The version of the user managed + encryption key. + :type encryption_key_version: str + """ + + _validation = { + 'key_vault_resource_id': {'required': True}, + 'encryption_key_name': {'required': True}, + 'encryption_key_version': {'required': True}, + } + + _attribute_map = { + 'key_vault_resource_id': {'key': 'keyVaultResourceId', 'type': 'str'}, + 'encryption_key_name': {'key': 'encryptionKeyName', 'type': 'str'}, + 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyVaultMetaInfo, self).__init__(**kwargs) + self.key_vault_resource_id = kwargs.get('key_vault_resource_id', None) + self.encryption_key_name = kwargs.get('encryption_key_name', None) + self.encryption_key_version = kwargs.get('encryption_key_version', None) + + +class NameAvailabilityInformation(Model): + """Data Lake Store account name availability result information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: The Boolean value of true or false to indicate + whether the Data Lake Store account name is available or not. + :vartype name_available: bool + :ivar reason: The reason why the Data Lake Store account name is not + available, if nameAvailable is false. + :vartype reason: str + :ivar message: The message describing why the Data Lake Store account name + is not available, if nameAvailable is false. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NameAvailabilityInformation, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class Operation(Model): + """An available operation for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation. + :vartype name: str + :param display: The display information for the operation. + :type display: ~azure.mgmt.datalake.store.models.OperationDisplay + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system', 'user,system' + :vartype origin: str or ~azure.mgmt.datalake.store.models.OperationOrigin + """ + + _validation = { + 'name': {'readonly': True}, + 'origin': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = kwargs.get('display', None) + self.origin = None + + +class OperationDisplay(Model): + """The display information for a particular operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The resource provider of the operation. + :vartype provider: str + :ivar resource: The resource type of the operation. + :vartype resource: str + :ivar operation: A friendly name of the operation. + :vartype operation: str + :ivar description: A friendly description of the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(Model): + """The list of available operations for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: list[~azure.mgmt.datalake.store.models.Operation] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class TrustedIdProvider(SubResource): + """Data Lake Store trusted identity provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar id_provider: The URL of this trusted identity provider. + :vartype id_provider: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'id_provider': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrustedIdProvider, self).__init__(**kwargs) + self.id_provider = None + + +class UpdateDataLakeStoreAccountParameters(Model): + """Data Lake Store account information to update. + + :param tags: Resource tags + :type tags: dict[str, str] + :param default_group: The default owner group for all new folders and + files created in the Data Lake Store account. + :type default_group: str + :param encryption_config: Used for rotation of user managed Key Vault + keys. Can only be used to rotate a user managed encryption Key Vault key. + :type encryption_config: + ~azure.mgmt.datalake.store.models.UpdateEncryptionConfig + :param firewall_rules: The list of firewall rules associated with this + Data Lake Store account. + :type firewall_rules: + list[~azure.mgmt.datalake.store.models.UpdateFirewallRuleWithAccountParameters] + :param virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :type virtual_network_rules: + list[~azure.mgmt.datalake.store.models.UpdateVirtualNetworkRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Disabling the firewall does not remove + existing rules, they will just be ignored until the firewall is + re-enabled. Possible values include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :param trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :type trusted_id_providers: + list[~azure.mgmt.datalake.store.models.UpdateTrustedIdProviderWithAccountParameters] + :param trusted_id_provider_state: The current state of the trusted + identity provider feature for this Data Lake Store account. Disabling + trusted identity provider functionality does not remove the providers, + they will just be ignored until this feature is re-enabled. Possible + values include: 'Enabled', 'Disabled' + :type trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'UpdateEncryptionConfig'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[UpdateVirtualNetworkRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[UpdateTrustedIdProviderWithAccountParameters]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + } + + def __init__(self, **kwargs): + super(UpdateDataLakeStoreAccountParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.default_group = kwargs.get('default_group', None) + self.encryption_config = kwargs.get('encryption_config', None) + self.firewall_rules = kwargs.get('firewall_rules', None) + self.virtual_network_rules = kwargs.get('virtual_network_rules', None) + self.firewall_state = kwargs.get('firewall_state', None) + self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) + self.trusted_id_providers = kwargs.get('trusted_id_providers', None) + self.trusted_id_provider_state = kwargs.get('trusted_id_provider_state', None) + self.new_tier = kwargs.get('new_tier', None) + + +class UpdateEncryptionConfig(Model): + """The encryption configuration used to update a user managed Key Vault key. + + :param key_vault_meta_info: The updated Key Vault key to use in user + managed key rotation. + :type key_vault_meta_info: + ~azure.mgmt.datalake.store.models.UpdateKeyVaultMetaInfo + """ + + _attribute_map = { + 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'UpdateKeyVaultMetaInfo'}, + } + + def __init__(self, **kwargs): + super(UpdateEncryptionConfig, self).__init__(**kwargs) + self.key_vault_meta_info = kwargs.get('key_vault_meta_info', None) + + +class UpdateFirewallRuleParameters(Model): + """The parameters used to update a firewall rule. + + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class UpdateFirewallRuleWithAccountParameters(Model): + """The parameters used to update a firewall rule while updating a Data Lake + Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to update. + :type name: str + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class UpdateKeyVaultMetaInfo(Model): + """The Key Vault update information used for user managed key rotation. + + :param encryption_key_version: The version of the user managed encryption + key to update through a key rotation. + :type encryption_key_version: str + """ + + _attribute_map = { + 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateKeyVaultMetaInfo, self).__init__(**kwargs) + self.encryption_key_version = kwargs.get('encryption_key_version', None) + + +class UpdateTrustedIdProviderParameters(Model): + """The parameters used to update a trusted identity provider. + + :param id_provider: The URL of this trusted identity provider. + :type id_provider: str + """ + + _attribute_map = { + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateTrustedIdProviderParameters, self).__init__(**kwargs) + self.id_provider = kwargs.get('id_provider', None) + + +class UpdateTrustedIdProviderWithAccountParameters(Model): + """The parameters used to update a trusted identity provider while updating a + Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the trusted identity provider to + update. + :type name: str + :param id_provider: The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.id_provider = kwargs.get('id_provider', None) + + +class UpdateVirtualNetworkRuleParameters(Model): + """The parameters used to update a virtual network rule. + + :param subnet_id: The resource identifier for the subnet. + :type subnet_id: str + """ + + _attribute_map = { + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) + self.subnet_id = kwargs.get('subnet_id', None) + + +class UpdateVirtualNetworkRuleWithAccountParameters(Model): + """The parameters used to update a virtual network rule while updating a Data + Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the virtual network rule to + update. + :type name: str + :param subnet_id: The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.subnet_id = kwargs.get('subnet_id', None) + + +class Usage(Model): + """Describes the Resource Usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar unit: Gets the unit of measurement. Possible values include: + 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', + 'BytesPerSecond' + :vartype unit: str or ~azure.mgmt.datalake.store.models.UsageUnit + :ivar id: Resource identifier. + :vartype id: str + :ivar current_value: Gets the current count of the allocated resources in + the subscription. + :vartype current_value: int + :ivar limit: Gets the maximum count of the resources that can be allocated + in the subscription. + :vartype limit: int + :ivar name: Gets the name of the type of usage. + :vartype name: ~azure.mgmt.datalake.store.models.UsageName + """ + + _validation = { + 'unit': {'readonly': True}, + 'id': {'readonly': True}, + 'current_value': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'UsageUnit'}, + 'id': {'key': 'id', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + def __init__(self, **kwargs): + super(Usage, self).__init__(**kwargs) + self.unit = None + self.id = None + self.current_value = None + self.limit = None + self.name = None + + +class UsageName(Model): + """The usage names that can be used. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: Gets a string describing the resource name. + :vartype value: str + :ivar localized_value: Gets a localized string describing the resource + name. + :vartype localized_value: str + """ + + _validation = { + 'value': {'readonly': True}, + 'localized_value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UsageName, self).__init__(**kwargs) + self.value = None + self.localized_value = None + + +class VirtualNetworkRule(SubResource): + """Data Lake Store virtual network rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar subnet_id: The resource identifier for the subnet. + :vartype subnet_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnet_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.subnet_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models_py3.py new file mode 100644 index 0000000000000..ddc2042535953 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_models_py3.py @@ -0,0 +1,1362 @@ +# 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.serialization import Model + + +class CapabilityInformation(Model): + """Subscription-level properties and limits for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar subscription_id: The subscription credentials that uniquely + identifies the subscription. + :vartype subscription_id: str + :ivar state: The subscription state. Possible values include: + 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' + :vartype state: str or ~azure.mgmt.datalake.store.models.SubscriptionState + :ivar max_account_count: The maximum supported number of accounts under + this subscription. + :vartype max_account_count: int + :ivar account_count: The current number of accounts under this + subscription. + :vartype account_count: int + :ivar migration_state: The Boolean value of true or false to indicate the + maintenance state. + :vartype migration_state: bool + """ + + _validation = { + 'subscription_id': {'readonly': True}, + 'state': {'readonly': True}, + 'max_account_count': {'readonly': True}, + 'account_count': {'readonly': True}, + 'migration_state': {'readonly': True}, + } + + _attribute_map = { + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, + 'account_count': {'key': 'accountCount', 'type': 'int'}, + 'migration_state': {'key': 'migrationState', 'type': 'bool'}, + } + + def __init__(self, **kwargs) -> None: + super(CapabilityInformation, self).__init__(**kwargs) + self.subscription_id = None + self.state = None + self.max_account_count = None + self.account_count = None + self.migration_state = None + + +class CheckNameAvailabilityParameters(Model): + """Data Lake Store account name availability check parameters. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The Data Lake Store name to check availability for. + :type name: str + :ivar type: Required. The resource type. Note: This should not be set by + the user, as the constant value is Microsoft.DataLakeStore/accounts. + Default value: "Microsoft.DataLakeStore/accounts" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.DataLakeStore/accounts" + + def __init__(self, *, name: str, **kwargs) -> None: + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class CreateDataLakeStoreAccountParameters(Model): + """CreateDataLakeStoreAccountParameters. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param identity: The Key Vault encryption identity, if any. + :type identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity + :param default_group: The default owner group for all new folders and + files created in the Data Lake Store account. + :type default_group: str + :param encryption_config: The Key Vault encryption configuration. + :type encryption_config: + ~azure.mgmt.datalake.store.models.EncryptionConfig + :param encryption_state: The current state of encryption for this Data + Lake Store account. Possible values include: 'Enabled', 'Disabled' + :type encryption_state: str or + ~azure.mgmt.datalake.store.models.EncryptionState + :param firewall_rules: The list of firewall rules associated with this + Data Lake Store account. + :type firewall_rules: + list[~azure.mgmt.datalake.store.models.CreateFirewallRuleWithAccountParameters] + :param virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :type virtual_network_rules: + list[~azure.mgmt.datalake.store.models.CreateVirtualNetworkRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Possible values include: 'Enabled', + 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :param trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :type trusted_id_providers: + list[~azure.mgmt.datalake.store.models.CreateTrustedIdProviderWithAccountParameters] + :param trusted_id_provider_state: The current state of the trusted + identity provider feature for this Data Lake Store account. Possible + values include: 'Enabled', 'Disabled' + :type trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _validation = { + 'location': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, + 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[CreateVirtualNetworkRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[CreateTrustedIdProviderWithAccountParameters]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + } + + def __init__(self, *, location: str, tags=None, identity=None, default_group: str=None, encryption_config=None, encryption_state=None, firewall_rules=None, virtual_network_rules=None, firewall_state=None, firewall_allow_azure_ips=None, trusted_id_providers=None, trusted_id_provider_state=None, new_tier=None, **kwargs) -> None: + super(CreateDataLakeStoreAccountParameters, self).__init__(**kwargs) + self.location = location + self.tags = tags + self.identity = identity + self.default_group = default_group + self.encryption_config = encryption_config + self.encryption_state = encryption_state + self.firewall_rules = firewall_rules + self.virtual_network_rules = virtual_network_rules + self.firewall_state = firewall_state + self.firewall_allow_azure_ips = firewall_allow_azure_ips + self.trusted_id_providers = trusted_id_providers + self.trusted_id_provider_state = trusted_id_provider_state + self.new_tier = new_tier + + +class CreateFirewallRuleWithAccountParameters(Model): + """The parameters used to create a new firewall rule while creating a new Data + Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to create. + :type name: str + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, name: str, start_ip_address: str, end_ip_address: str, **kwargs) -> None: + super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class CreateOrUpdateFirewallRuleParameters(Model): + """The parameters used to create a new firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, start_ip_address: str, end_ip_address: str, **kwargs) -> None: + super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class CreateOrUpdateTrustedIdProviderParameters(Model): + """The parameters used to create a new trusted identity provider. + + All required parameters must be populated in order to send to Azure. + + :param id_provider: Required. The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'id_provider': {'required': True}, + } + + _attribute_map = { + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, *, id_provider: str, **kwargs) -> None: + super(CreateOrUpdateTrustedIdProviderParameters, self).__init__(**kwargs) + self.id_provider = id_provider + + +class CreateOrUpdateVirtualNetworkRuleParameters(Model): + """The parameters used to create a new virtual network rule. + + All required parameters must be populated in order to send to Azure. + + :param subnet_id: Required. The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, *, subnet_id: str, **kwargs) -> None: + super(CreateOrUpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) + self.subnet_id = subnet_id + + +class CreateTrustedIdProviderWithAccountParameters(Model): + """The parameters used to create a new trusted identity provider while + creating a new Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the trusted identity provider to + create. + :type name: str + :param id_provider: Required. The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'name': {'required': True}, + 'id_provider': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, *, name: str, id_provider: str, **kwargs) -> None: + super(CreateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.id_provider = id_provider + + +class CreateVirtualNetworkRuleWithAccountParameters(Model): + """The parameters used to create a new virtual network rule while creating a + new Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the virtual network rule to + create. + :type name: str + :param subnet_id: Required. The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + 'subnet_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, *, name: str, subnet_id: str, **kwargs) -> None: + super(CreateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.subnet_id = subnet_id + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None + + +class DataLakeStoreAccount(Resource): + """Data Lake Store account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar identity: The Key Vault encryption identity, if any. + :vartype identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity + :ivar account_id: The unique identifier associated with this Data Lake + Store account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake Store + account. Possible values include: 'Failed', 'Creating', 'Running', + 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', + 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus + :ivar state: The state of the Data Lake Store account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + :ivar default_group: The default owner group for all new folders and files + created in the Data Lake Store account. + :vartype default_group: str + :ivar encryption_config: The Key Vault encryption configuration. + :vartype encryption_config: + ~azure.mgmt.datalake.store.models.EncryptionConfig + :ivar encryption_state: The current state of encryption for this Data Lake + Store account. Possible values include: 'Enabled', 'Disabled' + :vartype encryption_state: str or + ~azure.mgmt.datalake.store.models.EncryptionState + :ivar encryption_provisioning_state: The current state of encryption + provisioning for this Data Lake Store account. Possible values include: + 'Creating', 'Succeeded' + :vartype encryption_provisioning_state: str or + ~azure.mgmt.datalake.store.models.EncryptionProvisioningState + :ivar firewall_rules: The list of firewall rules associated with this Data + Lake Store account. + :vartype firewall_rules: + list[~azure.mgmt.datalake.store.models.FirewallRule] + :ivar virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :vartype virtual_network_rules: + list[~azure.mgmt.datalake.store.models.VirtualNetworkRule] + :ivar firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Possible values include: 'Enabled', + 'Disabled' + :vartype firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :ivar firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :vartype firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :ivar trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :vartype trusted_id_providers: + list[~azure.mgmt.datalake.store.models.TrustedIdProvider] + :ivar trusted_id_provider_state: The current state of the trusted identity + provider feature for this Data Lake Store account. Possible values + include: 'Enabled', 'Disabled' + :vartype trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :ivar new_tier: The commitment tier to use for next month. Possible values + include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :vartype new_tier: str or ~azure.mgmt.datalake.store.models.TierType + :ivar current_tier: The commitment tier in use for the current month. + Possible values include: 'Consumption', 'Commitment_1TB', + 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', + 'Commitment_1PB', 'Commitment_5PB' + :vartype current_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'identity': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + 'default_group': {'readonly': True}, + 'encryption_config': {'readonly': True}, + 'encryption_state': {'readonly': True}, + 'encryption_provisioning_state': {'readonly': True}, + 'firewall_rules': {'readonly': True}, + 'virtual_network_rules': {'readonly': True}, + 'firewall_state': {'readonly': True}, + 'firewall_allow_azure_ips': {'readonly': True}, + 'trusted_id_providers': {'readonly': True}, + 'trusted_id_provider_state': {'readonly': True}, + 'new_tier': {'readonly': True}, + 'current_tier': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, + 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, + 'encryption_provisioning_state': {'key': 'properties.encryptionProvisioningState', 'type': 'EncryptionProvisioningState'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[TrustedIdProvider]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, + } + + def __init__(self, **kwargs) -> None: + super(DataLakeStoreAccount, self).__init__(**kwargs) + self.identity = None + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + self.default_group = None + self.encryption_config = None + self.encryption_state = None + self.encryption_provisioning_state = None + self.firewall_rules = None + self.virtual_network_rules = None + self.firewall_state = None + self.firewall_allow_azure_ips = None + self.trusted_id_providers = None + self.trusted_id_provider_state = None + self.new_tier = None + self.current_tier = None + + +class DataLakeStoreAccountBasic(Resource): + """Basic Data Lake Store account information, returned on list calls. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Store account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake Store + account. Possible values include: 'Failed', 'Creating', 'Running', + 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', + 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus + :ivar state: The state of the Data Lake Store account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DataLakeStoreAccountBasic, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + + +class EncryptionConfig(Model): + """The encryption configuration for the account. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The type of encryption configuration being used. + Currently the only supported types are 'UserManaged' and 'ServiceManaged'. + Possible values include: 'UserManaged', 'ServiceManaged' + :type type: str or ~azure.mgmt.datalake.store.models.EncryptionConfigType + :param key_vault_meta_info: The Key Vault information for connecting to + user managed encryption keys. + :type key_vault_meta_info: + ~azure.mgmt.datalake.store.models.KeyVaultMetaInfo + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'EncryptionConfigType'}, + 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'KeyVaultMetaInfo'}, + } + + def __init__(self, *, type, key_vault_meta_info=None, **kwargs) -> None: + super(EncryptionConfig, self).__init__(**kwargs) + self.type = type + self.key_vault_meta_info = key_vault_meta_info + + +class EncryptionIdentity(Model): + """The encryption identity properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar type: Required. The type of encryption being used. Currently the + only supported type is 'SystemAssigned'. Default value: "SystemAssigned" . + :vartype type: str + :ivar principal_id: The principal identifier associated with the + encryption. + :vartype principal_id: str + :ivar tenant_id: The tenant identifier associated with the encryption. + :vartype tenant_id: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + type = "SystemAssigned" + + def __init__(self, **kwargs) -> None: + super(EncryptionIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + + +class SubResource(Model): + """The resource model definition for a nested resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class FirewallRule(SubResource): + """Data Lake Store firewall rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype start_ip_address: str + :ivar end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype end_ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_ip_address': {'readonly': True}, + 'end_ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(FirewallRule, self).__init__(**kwargs) + self.start_ip_address = None + self.end_ip_address = None + + +class KeyVaultMetaInfo(Model): + """Metadata information used by account encryption. + + All required parameters must be populated in order to send to Azure. + + :param key_vault_resource_id: Required. The resource identifier for the + user managed Key Vault being used to encrypt. + :type key_vault_resource_id: str + :param encryption_key_name: Required. The name of the user managed + encryption key. + :type encryption_key_name: str + :param encryption_key_version: Required. The version of the user managed + encryption key. + :type encryption_key_version: str + """ + + _validation = { + 'key_vault_resource_id': {'required': True}, + 'encryption_key_name': {'required': True}, + 'encryption_key_version': {'required': True}, + } + + _attribute_map = { + 'key_vault_resource_id': {'key': 'keyVaultResourceId', 'type': 'str'}, + 'encryption_key_name': {'key': 'encryptionKeyName', 'type': 'str'}, + 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, + } + + def __init__(self, *, key_vault_resource_id: str, encryption_key_name: str, encryption_key_version: str, **kwargs) -> None: + super(KeyVaultMetaInfo, self).__init__(**kwargs) + self.key_vault_resource_id = key_vault_resource_id + self.encryption_key_name = encryption_key_name + self.encryption_key_version = encryption_key_version + + +class NameAvailabilityInformation(Model): + """Data Lake Store account name availability result information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: The Boolean value of true or false to indicate + whether the Data Lake Store account name is available or not. + :vartype name_available: bool + :ivar reason: The reason why the Data Lake Store account name is not + available, if nameAvailable is false. + :vartype reason: str + :ivar message: The message describing why the Data Lake Store account name + is not available, if nameAvailable is false. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(NameAvailabilityInformation, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class Operation(Model): + """An available operation for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation. + :vartype name: str + :param display: The display information for the operation. + :type display: ~azure.mgmt.datalake.store.models.OperationDisplay + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system', 'user,system' + :vartype origin: str or ~azure.mgmt.datalake.store.models.OperationOrigin + """ + + _validation = { + 'name': {'readonly': True}, + 'origin': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, *, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = display + self.origin = None + + +class OperationDisplay(Model): + """The display information for a particular operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The resource provider of the operation. + :vartype provider: str + :ivar resource: The resource type of the operation. + :vartype resource: str + :ivar operation: A friendly name of the operation. + :vartype operation: str + :ivar description: A friendly description of the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(Model): + """The list of available operations for Data Lake Store. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: list[~azure.mgmt.datalake.store.models.Operation] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class TrustedIdProvider(SubResource): + """Data Lake Store trusted identity provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar id_provider: The URL of this trusted identity provider. + :vartype id_provider: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'id_provider': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(TrustedIdProvider, self).__init__(**kwargs) + self.id_provider = None + + +class UpdateDataLakeStoreAccountParameters(Model): + """Data Lake Store account information to update. + + :param tags: Resource tags + :type tags: dict[str, str] + :param default_group: The default owner group for all new folders and + files created in the Data Lake Store account. + :type default_group: str + :param encryption_config: Used for rotation of user managed Key Vault + keys. Can only be used to rotate a user managed encryption Key Vault key. + :type encryption_config: + ~azure.mgmt.datalake.store.models.UpdateEncryptionConfig + :param firewall_rules: The list of firewall rules associated with this + Data Lake Store account. + :type firewall_rules: + list[~azure.mgmt.datalake.store.models.UpdateFirewallRuleWithAccountParameters] + :param virtual_network_rules: The list of virtual network rules associated + with this Data Lake Store account. + :type virtual_network_rules: + list[~azure.mgmt.datalake.store.models.UpdateVirtualNetworkRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this Data Lake Store account. Disabling the firewall does not remove + existing rules, they will just be ignored until the firewall is + re-enabled. Possible values include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.store.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState + :param trusted_id_providers: The list of trusted identity providers + associated with this Data Lake Store account. + :type trusted_id_providers: + list[~azure.mgmt.datalake.store.models.UpdateTrustedIdProviderWithAccountParameters] + :param trusted_id_provider_state: The current state of the trusted + identity provider feature for this Data Lake Store account. Disabling + trusted identity provider functionality does not remove the providers, + they will just be ignored until this feature is re-enabled. Possible + values include: 'Enabled', 'Disabled' + :type trusted_id_provider_state: str or + ~azure.mgmt.datalake.store.models.TrustedIdProviderState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', + 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' + :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, + 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'UpdateEncryptionConfig'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[UpdateVirtualNetworkRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[UpdateTrustedIdProviderWithAccountParameters]'}, + 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + } + + def __init__(self, *, tags=None, default_group: str=None, encryption_config=None, firewall_rules=None, virtual_network_rules=None, firewall_state=None, firewall_allow_azure_ips=None, trusted_id_providers=None, trusted_id_provider_state=None, new_tier=None, **kwargs) -> None: + super(UpdateDataLakeStoreAccountParameters, self).__init__(**kwargs) + self.tags = tags + self.default_group = default_group + self.encryption_config = encryption_config + self.firewall_rules = firewall_rules + self.virtual_network_rules = virtual_network_rules + self.firewall_state = firewall_state + self.firewall_allow_azure_ips = firewall_allow_azure_ips + self.trusted_id_providers = trusted_id_providers + self.trusted_id_provider_state = trusted_id_provider_state + self.new_tier = new_tier + + +class UpdateEncryptionConfig(Model): + """The encryption configuration used to update a user managed Key Vault key. + + :param key_vault_meta_info: The updated Key Vault key to use in user + managed key rotation. + :type key_vault_meta_info: + ~azure.mgmt.datalake.store.models.UpdateKeyVaultMetaInfo + """ + + _attribute_map = { + 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'UpdateKeyVaultMetaInfo'}, + } + + def __init__(self, *, key_vault_meta_info=None, **kwargs) -> None: + super(UpdateEncryptionConfig, self).__init__(**kwargs) + self.key_vault_meta_info = key_vault_meta_info + + +class UpdateFirewallRuleParameters(Model): + """The parameters used to update a firewall rule. + + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: + super(UpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class UpdateFirewallRuleWithAccountParameters(Model): + """The parameters used to update a firewall rule while updating a Data Lake + Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to update. + :type name: str + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, name: str, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: + super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class UpdateKeyVaultMetaInfo(Model): + """The Key Vault update information used for user managed key rotation. + + :param encryption_key_version: The version of the user managed encryption + key to update through a key rotation. + :type encryption_key_version: str + """ + + _attribute_map = { + 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, + } + + def __init__(self, *, encryption_key_version: str=None, **kwargs) -> None: + super(UpdateKeyVaultMetaInfo, self).__init__(**kwargs) + self.encryption_key_version = encryption_key_version + + +class UpdateTrustedIdProviderParameters(Model): + """The parameters used to update a trusted identity provider. + + :param id_provider: The URL of this trusted identity provider. + :type id_provider: str + """ + + _attribute_map = { + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, *, id_provider: str=None, **kwargs) -> None: + super(UpdateTrustedIdProviderParameters, self).__init__(**kwargs) + self.id_provider = id_provider + + +class UpdateTrustedIdProviderWithAccountParameters(Model): + """The parameters used to update a trusted identity provider while updating a + Data Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the trusted identity provider to + update. + :type name: str + :param id_provider: The URL of this trusted identity provider. + :type id_provider: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, + } + + def __init__(self, *, name: str, id_provider: str=None, **kwargs) -> None: + super(UpdateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.id_provider = id_provider + + +class UpdateVirtualNetworkRuleParameters(Model): + """The parameters used to update a virtual network rule. + + :param subnet_id: The resource identifier for the subnet. + :type subnet_id: str + """ + + _attribute_map = { + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, *, subnet_id: str=None, **kwargs) -> None: + super(UpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) + self.subnet_id = subnet_id + + +class UpdateVirtualNetworkRuleWithAccountParameters(Model): + """The parameters used to update a virtual network rule while updating a Data + Lake Store account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the virtual network rule to + update. + :type name: str + :param subnet_id: The resource identifier for the subnet. + :type subnet_id: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, *, name: str, subnet_id: str=None, **kwargs) -> None: + super(UpdateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.subnet_id = subnet_id + + +class Usage(Model): + """Describes the Resource Usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar unit: Gets the unit of measurement. Possible values include: + 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', + 'BytesPerSecond' + :vartype unit: str or ~azure.mgmt.datalake.store.models.UsageUnit + :ivar id: Resource identifier. + :vartype id: str + :ivar current_value: Gets the current count of the allocated resources in + the subscription. + :vartype current_value: int + :ivar limit: Gets the maximum count of the resources that can be allocated + in the subscription. + :vartype limit: int + :ivar name: Gets the name of the type of usage. + :vartype name: ~azure.mgmt.datalake.store.models.UsageName + """ + + _validation = { + 'unit': {'readonly': True}, + 'id': {'readonly': True}, + 'current_value': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'UsageUnit'}, + 'id': {'key': 'id', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + def __init__(self, **kwargs) -> None: + super(Usage, self).__init__(**kwargs) + self.unit = None + self.id = None + self.current_value = None + self.limit = None + self.name = None + + +class UsageName(Model): + """The usage names that can be used. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: Gets a string describing the resource name. + :vartype value: str + :ivar localized_value: Gets a localized string describing the resource + name. + :vartype localized_value: str + """ + + _validation = { + 'value': {'readonly': True}, + 'localized_value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(UsageName, self).__init__(**kwargs) + self.value = None + self.localized_value = None + + +class VirtualNetworkRule(SubResource): + """Data Lake Store virtual network rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar subnet_id: The resource identifier for the subnet. + :vartype subnet_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnet_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualNetworkRule, self).__init__(**kwargs) + self.subnet_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_paged_models.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_paged_models.py new file mode 100644 index 0000000000000..d7c777e4db78e --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/_paged_models.py @@ -0,0 +1,79 @@ +# 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.paging import Paged + + +class DataLakeStoreAccountBasicPaged(Paged): + """ + A paging container for iterating over a list of :class:`DataLakeStoreAccountBasic ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DataLakeStoreAccountBasic]'} + } + + def __init__(self, *args, **kwargs): + + super(DataLakeStoreAccountBasicPaged, self).__init__(*args, **kwargs) +class FirewallRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`FirewallRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FirewallRule]'} + } + + def __init__(self, *args, **kwargs): + + super(FirewallRulePaged, self).__init__(*args, **kwargs) +class VirtualNetworkRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs) +class TrustedIdProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`TrustedIdProvider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TrustedIdProvider]'} + } + + def __init__(self, *args, **kwargs): + + super(TrustedIdProviderPaged, self).__init__(*args, **kwargs) +class UsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`Usage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Usage]'} + } + + def __init__(self, *args, **kwargs): + + super(UsagePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information.py deleted file mode 100644 index a5e1fdae71e08..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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.serialization import Model - - -class CapabilityInformation(Model): - """Subscription-level properties and limits for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar subscription_id: The subscription credentials that uniquely - identifies the subscription. - :vartype subscription_id: str - :ivar state: The subscription state. Possible values include: - 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' - :vartype state: str or ~azure.mgmt.datalake.store.models.SubscriptionState - :ivar max_account_count: The maximum supported number of accounts under - this subscription. - :vartype max_account_count: int - :ivar account_count: The current number of accounts under this - subscription. - :vartype account_count: int - :ivar migration_state: The Boolean value of true or false to indicate the - maintenance state. - :vartype migration_state: bool - """ - - _validation = { - 'subscription_id': {'readonly': True}, - 'state': {'readonly': True}, - 'max_account_count': {'readonly': True}, - 'account_count': {'readonly': True}, - 'migration_state': {'readonly': True}, - } - - _attribute_map = { - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, - 'account_count': {'key': 'accountCount', 'type': 'int'}, - 'migration_state': {'key': 'migrationState', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(CapabilityInformation, self).__init__(**kwargs) - self.subscription_id = None - self.state = None - self.max_account_count = None - self.account_count = None - self.migration_state = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information_py3.py deleted file mode 100644 index 683f9daccb02d..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/capability_information_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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.serialization import Model - - -class CapabilityInformation(Model): - """Subscription-level properties and limits for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar subscription_id: The subscription credentials that uniquely - identifies the subscription. - :vartype subscription_id: str - :ivar state: The subscription state. Possible values include: - 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' - :vartype state: str or ~azure.mgmt.datalake.store.models.SubscriptionState - :ivar max_account_count: The maximum supported number of accounts under - this subscription. - :vartype max_account_count: int - :ivar account_count: The current number of accounts under this - subscription. - :vartype account_count: int - :ivar migration_state: The Boolean value of true or false to indicate the - maintenance state. - :vartype migration_state: bool - """ - - _validation = { - 'subscription_id': {'readonly': True}, - 'state': {'readonly': True}, - 'max_account_count': {'readonly': True}, - 'account_count': {'readonly': True}, - 'migration_state': {'readonly': True}, - } - - _attribute_map = { - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, - 'account_count': {'key': 'accountCount', 'type': 'int'}, - 'migration_state': {'key': 'migrationState', 'type': 'bool'}, - } - - def __init__(self, **kwargs) -> None: - super(CapabilityInformation, self).__init__(**kwargs) - self.subscription_id = None - self.state = None - self.max_account_count = None - self.account_count = None - self.migration_state = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters.py deleted file mode 100644 index e2428966a4e1c..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class CheckNameAvailabilityParameters(Model): - """Data Lake Store account name availability check parameters. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The Data Lake Store name to check availability for. - :type name: str - :ivar type: Required. The resource type. Note: This should not be set by - the user, as the constant value is Microsoft.DataLakeStore/accounts. - Default value: "Microsoft.DataLakeStore/accounts" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.DataLakeStore/accounts" - - def __init__(self, **kwargs): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters_py3.py deleted file mode 100644 index 70886bdd35211..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/check_name_availability_parameters_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class CheckNameAvailabilityParameters(Model): - """Data Lake Store account name availability check parameters. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The Data Lake Store name to check availability for. - :type name: str - :ivar type: Required. The resource type. Note: This should not be set by - the user, as the constant value is Microsoft.DataLakeStore/accounts. - Default value: "Microsoft.DataLakeStore/accounts" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.DataLakeStore/accounts" - - def __init__(self, *, name: str, **kwargs) -> None: - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = name diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters.py deleted file mode 100644 index f94222452d422..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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.serialization import Model - - -class CreateDataLakeStoreAccountParameters(Model): - """CreateDataLakeStoreAccountParameters. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param identity: The Key Vault encryption identity, if any. - :type identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity - :param default_group: The default owner group for all new folders and - files created in the Data Lake Store account. - :type default_group: str - :param encryption_config: The Key Vault encryption configuration. - :type encryption_config: - ~azure.mgmt.datalake.store.models.EncryptionConfig - :param encryption_state: The current state of encryption for this Data - Lake Store account. Possible values include: 'Enabled', 'Disabled' - :type encryption_state: str or - ~azure.mgmt.datalake.store.models.EncryptionState - :param firewall_rules: The list of firewall rules associated with this - Data Lake Store account. - :type firewall_rules: - list[~azure.mgmt.datalake.store.models.CreateFirewallRuleWithAccountParameters] - :param virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :type virtual_network_rules: - list[~azure.mgmt.datalake.store.models.CreateVirtualNetworkRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Possible values include: 'Enabled', - 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :param trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :type trusted_id_providers: - list[~azure.mgmt.datalake.store.models.CreateTrustedIdProviderWithAccountParameters] - :param trusted_id_provider_state: The current state of the trusted - identity provider feature for this Data Lake Store account. Possible - values include: 'Enabled', 'Disabled' - :type trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, - 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[CreateVirtualNetworkRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[CreateTrustedIdProviderWithAccountParameters]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - } - - def __init__(self, **kwargs): - super(CreateDataLakeStoreAccountParameters, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.identity = kwargs.get('identity', None) - self.default_group = kwargs.get('default_group', None) - self.encryption_config = kwargs.get('encryption_config', None) - self.encryption_state = kwargs.get('encryption_state', None) - self.firewall_rules = kwargs.get('firewall_rules', None) - self.virtual_network_rules = kwargs.get('virtual_network_rules', None) - self.firewall_state = kwargs.get('firewall_state', None) - self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) - self.trusted_id_providers = kwargs.get('trusted_id_providers', None) - self.trusted_id_provider_state = kwargs.get('trusted_id_provider_state', None) - self.new_tier = kwargs.get('new_tier', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters_py3.py deleted file mode 100644 index 1ea6a258b4f30..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_data_lake_store_account_parameters_py3.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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.serialization import Model - - -class CreateDataLakeStoreAccountParameters(Model): - """CreateDataLakeStoreAccountParameters. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param identity: The Key Vault encryption identity, if any. - :type identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity - :param default_group: The default owner group for all new folders and - files created in the Data Lake Store account. - :type default_group: str - :param encryption_config: The Key Vault encryption configuration. - :type encryption_config: - ~azure.mgmt.datalake.store.models.EncryptionConfig - :param encryption_state: The current state of encryption for this Data - Lake Store account. Possible values include: 'Enabled', 'Disabled' - :type encryption_state: str or - ~azure.mgmt.datalake.store.models.EncryptionState - :param firewall_rules: The list of firewall rules associated with this - Data Lake Store account. - :type firewall_rules: - list[~azure.mgmt.datalake.store.models.CreateFirewallRuleWithAccountParameters] - :param virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :type virtual_network_rules: - list[~azure.mgmt.datalake.store.models.CreateVirtualNetworkRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Possible values include: 'Enabled', - 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :param trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :type trusted_id_providers: - list[~azure.mgmt.datalake.store.models.CreateTrustedIdProviderWithAccountParameters] - :param trusted_id_provider_state: The current state of the trusted - identity provider feature for this Data Lake Store account. Possible - values include: 'Enabled', 'Disabled' - :type trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _validation = { - 'location': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, - 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[CreateVirtualNetworkRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[CreateTrustedIdProviderWithAccountParameters]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - } - - def __init__(self, *, location: str, tags=None, identity=None, default_group: str=None, encryption_config=None, encryption_state=None, firewall_rules=None, virtual_network_rules=None, firewall_state=None, firewall_allow_azure_ips=None, trusted_id_providers=None, trusted_id_provider_state=None, new_tier=None, **kwargs) -> None: - super(CreateDataLakeStoreAccountParameters, self).__init__(**kwargs) - self.location = location - self.tags = tags - self.identity = identity - self.default_group = default_group - self.encryption_config = encryption_config - self.encryption_state = encryption_state - self.firewall_rules = firewall_rules - self.virtual_network_rules = virtual_network_rules - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.trusted_id_providers = trusted_id_providers - self.trusted_id_provider_state = trusted_id_provider_state - self.new_tier = new_tier diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters.py deleted file mode 100644 index e916a6fec0cf0..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class CreateFirewallRuleWithAccountParameters(Model): - """The parameters used to create a new firewall rule while creating a new Data - Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to create. - :type name: str - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters_py3.py deleted file mode 100644 index 6892ba667a5eb..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_firewall_rule_with_account_parameters_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# 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.serialization import Model - - -class CreateFirewallRuleWithAccountParameters(Model): - """The parameters used to create a new firewall rule while creating a new Data - Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to create. - :type name: str - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, name: str, start_ip_address: str, end_ip_address: str, **kwargs) -> None: - super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters.py deleted file mode 100644 index 47cef2ac665a0..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateFirewallRuleParameters(Model): - """The parameters used to create a new firewall rule. - - All required parameters must be populated in order to send to Azure. - - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters_py3.py deleted file mode 100644 index 263552b9e691d..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_firewall_rule_parameters_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateFirewallRuleParameters(Model): - """The parameters used to create a new firewall rule. - - All required parameters must be populated in order to send to Azure. - - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, start_ip_address: str, end_ip_address: str, **kwargs) -> None: - super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters.py deleted file mode 100644 index 9cfa064de8722..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateTrustedIdProviderParameters(Model): - """The parameters used to create a new trusted identity provider. - - All required parameters must be populated in order to send to Azure. - - :param id_provider: Required. The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'id_provider': {'required': True}, - } - - _attribute_map = { - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateOrUpdateTrustedIdProviderParameters, self).__init__(**kwargs) - self.id_provider = kwargs.get('id_provider', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters_py3.py deleted file mode 100644 index 70ca9f133148e..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_trusted_id_provider_parameters_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateTrustedIdProviderParameters(Model): - """The parameters used to create a new trusted identity provider. - - All required parameters must be populated in order to send to Azure. - - :param id_provider: Required. The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'id_provider': {'required': True}, - } - - _attribute_map = { - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, *, id_provider: str, **kwargs) -> None: - super(CreateOrUpdateTrustedIdProviderParameters, self).__init__(**kwargs) - self.id_provider = id_provider diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters.py deleted file mode 100644 index 70547f60b8b25..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateVirtualNetworkRuleParameters(Model): - """The parameters used to create a new virtual network rule. - - All required parameters must be populated in order to send to Azure. - - :param subnet_id: Required. The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'subnet_id': {'required': True}, - } - - _attribute_map = { - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateOrUpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) - self.subnet_id = kwargs.get('subnet_id', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters_py3.py deleted file mode 100644 index fcfb95f07a8d9..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_or_update_virtual_network_rule_parameters_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class CreateOrUpdateVirtualNetworkRuleParameters(Model): - """The parameters used to create a new virtual network rule. - - All required parameters must be populated in order to send to Azure. - - :param subnet_id: Required. The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'subnet_id': {'required': True}, - } - - _attribute_map = { - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, *, subnet_id: str, **kwargs) -> None: - super(CreateOrUpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) - self.subnet_id = subnet_id diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py deleted file mode 100644 index 4a0e6339dfa00..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CreateTrustedIdProviderWithAccountParameters(Model): - """The parameters used to create a new trusted identity provider while - creating a new Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the trusted identity provider to - create. - :type name: str - :param id_provider: Required. The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'name': {'required': True}, - 'id_provider': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.id_provider = kwargs.get('id_provider', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters_py3.py deleted file mode 100644 index 66fc5888e5af2..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CreateTrustedIdProviderWithAccountParameters(Model): - """The parameters used to create a new trusted identity provider while - creating a new Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the trusted identity provider to - create. - :type name: str - :param id_provider: Required. The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'name': {'required': True}, - 'id_provider': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, *, name: str, id_provider: str, **kwargs) -> None: - super(CreateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.id_provider = id_provider diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters.py deleted file mode 100644 index 2dc3fdc8b7ad8..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CreateVirtualNetworkRuleWithAccountParameters(Model): - """The parameters used to create a new virtual network rule while creating a - new Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the virtual network rule to - create. - :type name: str - :param subnet_id: Required. The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'name': {'required': True}, - 'subnet_id': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.subnet_id = kwargs.get('subnet_id', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters_py3.py deleted file mode 100644 index 47786a85cd78b..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_virtual_network_rule_with_account_parameters_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# 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.serialization import Model - - -class CreateVirtualNetworkRuleWithAccountParameters(Model): - """The parameters used to create a new virtual network rule while creating a - new Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the virtual network rule to - create. - :type name: str - :param subnet_id: Required. The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'name': {'required': True}, - 'subnet_id': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, *, name: str, subnet_id: str, **kwargs) -> None: - super(CreateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.subnet_id = subnet_id diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account.py deleted file mode 100644 index 4df64e5350eb4..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account.py +++ /dev/null @@ -1,180 +0,0 @@ -# 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 .resource import Resource - - -class DataLakeStoreAccount(Resource): - """Data Lake Store account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar identity: The Key Vault encryption identity, if any. - :vartype identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity - :ivar account_id: The unique identifier associated with this Data Lake - Store account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake Store - account. Possible values include: 'Failed', 'Creating', 'Running', - 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', - 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus - :ivar state: The state of the Data Lake Store account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - :ivar default_group: The default owner group for all new folders and files - created in the Data Lake Store account. - :vartype default_group: str - :ivar encryption_config: The Key Vault encryption configuration. - :vartype encryption_config: - ~azure.mgmt.datalake.store.models.EncryptionConfig - :ivar encryption_state: The current state of encryption for this Data Lake - Store account. Possible values include: 'Enabled', 'Disabled' - :vartype encryption_state: str or - ~azure.mgmt.datalake.store.models.EncryptionState - :ivar encryption_provisioning_state: The current state of encryption - provisioning for this Data Lake Store account. Possible values include: - 'Creating', 'Succeeded' - :vartype encryption_provisioning_state: str or - ~azure.mgmt.datalake.store.models.EncryptionProvisioningState - :ivar firewall_rules: The list of firewall rules associated with this Data - Lake Store account. - :vartype firewall_rules: - list[~azure.mgmt.datalake.store.models.FirewallRule] - :ivar virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :vartype virtual_network_rules: - list[~azure.mgmt.datalake.store.models.VirtualNetworkRule] - :ivar firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Possible values include: 'Enabled', - 'Disabled' - :vartype firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :ivar firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :vartype firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :ivar trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :vartype trusted_id_providers: - list[~azure.mgmt.datalake.store.models.TrustedIdProvider] - :ivar trusted_id_provider_state: The current state of the trusted identity - provider feature for this Data Lake Store account. Possible values - include: 'Enabled', 'Disabled' - :vartype trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :ivar new_tier: The commitment tier to use for next month. Possible values - include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :vartype new_tier: str or ~azure.mgmt.datalake.store.models.TierType - :ivar current_tier: The commitment tier in use for the current month. - Possible values include: 'Consumption', 'Commitment_1TB', - 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', - 'Commitment_1PB', 'Commitment_5PB' - :vartype current_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'identity': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'default_group': {'readonly': True}, - 'encryption_config': {'readonly': True}, - 'encryption_state': {'readonly': True}, - 'encryption_provisioning_state': {'readonly': True}, - 'firewall_rules': {'readonly': True}, - 'virtual_network_rules': {'readonly': True}, - 'firewall_state': {'readonly': True}, - 'firewall_allow_azure_ips': {'readonly': True}, - 'trusted_id_providers': {'readonly': True}, - 'trusted_id_provider_state': {'readonly': True}, - 'new_tier': {'readonly': True}, - 'current_tier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, - 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, - 'encryption_provisioning_state': {'key': 'properties.encryptionProvisioningState', 'type': 'EncryptionProvisioningState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[TrustedIdProvider]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, - } - - def __init__(self, **kwargs): - super(DataLakeStoreAccount, self).__init__(**kwargs) - self.identity = None - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.default_group = None - self.encryption_config = None - self.encryption_state = None - self.encryption_provisioning_state = None - self.firewall_rules = None - self.virtual_network_rules = None - self.firewall_state = None - self.firewall_allow_azure_ips = None - self.trusted_id_providers = None - self.trusted_id_provider_state = None - self.new_tier = None - self.current_tier = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic.py deleted file mode 100644 index aa7b91f5e581c..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic.py +++ /dev/null @@ -1,87 +0,0 @@ -# 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 .resource import Resource - - -class DataLakeStoreAccountBasic(Resource): - """Basic Data Lake Store account information, returned on list calls. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Store account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake Store - account. Possible values include: 'Failed', 'Creating', 'Running', - 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', - 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus - :ivar state: The state of the Data Lake Store account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataLakeStoreAccountBasic, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_paged.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_paged.py deleted file mode 100644 index 61a413fcb2b33..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class DataLakeStoreAccountBasicPaged(Paged): - """ - A paging container for iterating over a list of :class:`DataLakeStoreAccountBasic ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataLakeStoreAccountBasic]'} - } - - def __init__(self, *args, **kwargs): - - super(DataLakeStoreAccountBasicPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_py3.py deleted file mode 100644 index e01cf301f3d4f..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_basic_py3.py +++ /dev/null @@ -1,87 +0,0 @@ -# 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 .resource_py3 import Resource - - -class DataLakeStoreAccountBasic(Resource): - """Basic Data Lake Store account information, returned on list calls. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Store account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake Store - account. Possible values include: 'Failed', 'Creating', 'Running', - 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', - 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus - :ivar state: The state of the Data Lake Store account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(DataLakeStoreAccountBasic, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_py3.py deleted file mode 100644 index 3af1a2211161f..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/data_lake_store_account_py3.py +++ /dev/null @@ -1,180 +0,0 @@ -# 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 .resource_py3 import Resource - - -class DataLakeStoreAccount(Resource): - """Data Lake Store account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar identity: The Key Vault encryption identity, if any. - :vartype identity: ~azure.mgmt.datalake.store.models.EncryptionIdentity - :ivar account_id: The unique identifier associated with this Data Lake - Store account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake Store - account. Possible values include: 'Failed', 'Creating', 'Running', - 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', 'Deleted', - 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountStatus - :ivar state: The state of the Data Lake Store account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.store.models.DataLakeStoreAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - :ivar default_group: The default owner group for all new folders and files - created in the Data Lake Store account. - :vartype default_group: str - :ivar encryption_config: The Key Vault encryption configuration. - :vartype encryption_config: - ~azure.mgmt.datalake.store.models.EncryptionConfig - :ivar encryption_state: The current state of encryption for this Data Lake - Store account. Possible values include: 'Enabled', 'Disabled' - :vartype encryption_state: str or - ~azure.mgmt.datalake.store.models.EncryptionState - :ivar encryption_provisioning_state: The current state of encryption - provisioning for this Data Lake Store account. Possible values include: - 'Creating', 'Succeeded' - :vartype encryption_provisioning_state: str or - ~azure.mgmt.datalake.store.models.EncryptionProvisioningState - :ivar firewall_rules: The list of firewall rules associated with this Data - Lake Store account. - :vartype firewall_rules: - list[~azure.mgmt.datalake.store.models.FirewallRule] - :ivar virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :vartype virtual_network_rules: - list[~azure.mgmt.datalake.store.models.VirtualNetworkRule] - :ivar firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Possible values include: 'Enabled', - 'Disabled' - :vartype firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :ivar firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :vartype firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :ivar trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :vartype trusted_id_providers: - list[~azure.mgmt.datalake.store.models.TrustedIdProvider] - :ivar trusted_id_provider_state: The current state of the trusted identity - provider feature for this Data Lake Store account. Possible values - include: 'Enabled', 'Disabled' - :vartype trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :ivar new_tier: The commitment tier to use for next month. Possible values - include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :vartype new_tier: str or ~azure.mgmt.datalake.store.models.TierType - :ivar current_tier: The commitment tier in use for the current month. - Possible values include: 'Consumption', 'Commitment_1TB', - 'Commitment_10TB', 'Commitment_100TB', 'Commitment_500TB', - 'Commitment_1PB', 'Commitment_5PB' - :vartype current_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'identity': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'default_group': {'readonly': True}, - 'encryption_config': {'readonly': True}, - 'encryption_state': {'readonly': True}, - 'encryption_provisioning_state': {'readonly': True}, - 'firewall_rules': {'readonly': True}, - 'virtual_network_rules': {'readonly': True}, - 'firewall_state': {'readonly': True}, - 'firewall_allow_azure_ips': {'readonly': True}, - 'trusted_id_providers': {'readonly': True}, - 'trusted_id_provider_state': {'readonly': True}, - 'new_tier': {'readonly': True}, - 'current_tier': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'EncryptionIdentity'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeStoreAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeStoreAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'EncryptionConfig'}, - 'encryption_state': {'key': 'properties.encryptionState', 'type': 'EncryptionState'}, - 'encryption_provisioning_state': {'key': 'properties.encryptionProvisioningState', 'type': 'EncryptionProvisioningState'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[TrustedIdProvider]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, - } - - def __init__(self, **kwargs) -> None: - super(DataLakeStoreAccount, self).__init__(**kwargs) - self.identity = None - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.default_group = None - self.encryption_config = None - self.encryption_state = None - self.encryption_provisioning_state = None - self.firewall_rules = None - self.virtual_network_rules = None - self.firewall_state = None - self.firewall_allow_azure_ips = None - self.trusted_id_providers = None - self.trusted_id_provider_state = None - self.new_tier = None - self.current_tier = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config.py deleted file mode 100644 index b653ef23a5961..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class EncryptionConfig(Model): - """The encryption configuration for the account. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. The type of encryption configuration being used. - Currently the only supported types are 'UserManaged' and 'ServiceManaged'. - Possible values include: 'UserManaged', 'ServiceManaged' - :type type: str or ~azure.mgmt.datalake.store.models.EncryptionConfigType - :param key_vault_meta_info: The Key Vault information for connecting to - user managed encryption keys. - :type key_vault_meta_info: - ~azure.mgmt.datalake.store.models.KeyVaultMetaInfo - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'EncryptionConfigType'}, - 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'KeyVaultMetaInfo'}, - } - - def __init__(self, **kwargs): - super(EncryptionConfig, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.key_vault_meta_info = kwargs.get('key_vault_meta_info', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config_py3.py deleted file mode 100644 index cdc4b47e6be29..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_config_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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.serialization import Model - - -class EncryptionConfig(Model): - """The encryption configuration for the account. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. The type of encryption configuration being used. - Currently the only supported types are 'UserManaged' and 'ServiceManaged'. - Possible values include: 'UserManaged', 'ServiceManaged' - :type type: str or ~azure.mgmt.datalake.store.models.EncryptionConfigType - :param key_vault_meta_info: The Key Vault information for connecting to - user managed encryption keys. - :type key_vault_meta_info: - ~azure.mgmt.datalake.store.models.KeyVaultMetaInfo - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'EncryptionConfigType'}, - 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'KeyVaultMetaInfo'}, - } - - def __init__(self, *, type, key_vault_meta_info=None, **kwargs) -> None: - super(EncryptionConfig, self).__init__(**kwargs) - self.type = type - self.key_vault_meta_info = key_vault_meta_info diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity.py deleted file mode 100644 index ebc74ea333cad..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class EncryptionIdentity(Model): - """The encryption identity properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar type: Required. The type of encryption being used. Currently the - only supported type is 'SystemAssigned'. Default value: "SystemAssigned" . - :vartype type: str - :ivar principal_id: The principal identifier associated with the - encryption. - :vartype principal_id: str - :ivar tenant_id: The tenant identifier associated with the encryption. - :vartype tenant_id: str - """ - - _validation = { - 'type': {'required': True, 'constant': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - type = "SystemAssigned" - - def __init__(self, **kwargs): - super(EncryptionIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity_py3.py deleted file mode 100644 index 6dc9b776e72bf..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/encryption_identity_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class EncryptionIdentity(Model): - """The encryption identity properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar type: Required. The type of encryption being used. Currently the - only supported type is 'SystemAssigned'. Default value: "SystemAssigned" . - :vartype type: str - :ivar principal_id: The principal identifier associated with the - encryption. - :vartype principal_id: str - :ivar tenant_id: The tenant identifier associated with the encryption. - :vartype tenant_id: str - """ - - _validation = { - 'type': {'required': True, 'constant': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - type = "SystemAssigned" - - def __init__(self, **kwargs) -> None: - super(EncryptionIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule.py deleted file mode 100644 index 37baa6b6167c3..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .sub_resource import SubResource - - -class FirewallRule(SubResource): - """Data Lake Store firewall rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype start_ip_address: str - :ivar end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype end_ip_address: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'start_ip_address': {'readonly': True}, - 'end_ip_address': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FirewallRule, self).__init__(**kwargs) - self.start_ip_address = None - self.end_ip_address = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_paged.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_paged.py deleted file mode 100644 index 3db1c14e4e67a..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class FirewallRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`FirewallRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FirewallRule]'} - } - - def __init__(self, *args, **kwargs): - - super(FirewallRulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_py3.py deleted file mode 100644 index 8eb5f6f8084ee..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/firewall_rule_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# 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 .sub_resource_py3 import SubResource - - -class FirewallRule(SubResource): - """Data Lake Store firewall rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype start_ip_address: str - :ivar end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype end_ip_address: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'start_ip_address': {'readonly': True}, - 'end_ip_address': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(FirewallRule, self).__init__(**kwargs) - self.start_ip_address = None - self.end_ip_address = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info.py deleted file mode 100644 index 84dc7d694d8da..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class KeyVaultMetaInfo(Model): - """Metadata information used by account encryption. - - All required parameters must be populated in order to send to Azure. - - :param key_vault_resource_id: Required. The resource identifier for the - user managed Key Vault being used to encrypt. - :type key_vault_resource_id: str - :param encryption_key_name: Required. The name of the user managed - encryption key. - :type encryption_key_name: str - :param encryption_key_version: Required. The version of the user managed - encryption key. - :type encryption_key_version: str - """ - - _validation = { - 'key_vault_resource_id': {'required': True}, - 'encryption_key_name': {'required': True}, - 'encryption_key_version': {'required': True}, - } - - _attribute_map = { - 'key_vault_resource_id': {'key': 'keyVaultResourceId', 'type': 'str'}, - 'encryption_key_name': {'key': 'encryptionKeyName', 'type': 'str'}, - 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(KeyVaultMetaInfo, self).__init__(**kwargs) - self.key_vault_resource_id = kwargs.get('key_vault_resource_id', None) - self.encryption_key_name = kwargs.get('encryption_key_name', None) - self.encryption_key_version = kwargs.get('encryption_key_version', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info_py3.py deleted file mode 100644 index 9cf21107e30fb..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/key_vault_meta_info_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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.serialization import Model - - -class KeyVaultMetaInfo(Model): - """Metadata information used by account encryption. - - All required parameters must be populated in order to send to Azure. - - :param key_vault_resource_id: Required. The resource identifier for the - user managed Key Vault being used to encrypt. - :type key_vault_resource_id: str - :param encryption_key_name: Required. The name of the user managed - encryption key. - :type encryption_key_name: str - :param encryption_key_version: Required. The version of the user managed - encryption key. - :type encryption_key_version: str - """ - - _validation = { - 'key_vault_resource_id': {'required': True}, - 'encryption_key_name': {'required': True}, - 'encryption_key_version': {'required': True}, - } - - _attribute_map = { - 'key_vault_resource_id': {'key': 'keyVaultResourceId', 'type': 'str'}, - 'encryption_key_name': {'key': 'encryptionKeyName', 'type': 'str'}, - 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, - } - - def __init__(self, *, key_vault_resource_id: str, encryption_key_name: str, encryption_key_version: str, **kwargs) -> None: - super(KeyVaultMetaInfo, self).__init__(**kwargs) - self.key_vault_resource_id = key_vault_resource_id - self.encryption_key_name = encryption_key_name - self.encryption_key_version = encryption_key_version diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information.py deleted file mode 100644 index 1d56253681afb..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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.serialization import Model - - -class NameAvailabilityInformation(Model): - """Data Lake Store account name availability result information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The Boolean value of true or false to indicate - whether the Data Lake Store account name is available or not. - :vartype name_available: bool - :ivar reason: The reason why the Data Lake Store account name is not - available, if nameAvailable is false. - :vartype reason: str - :ivar message: The message describing why the Data Lake Store account name - is not available, if nameAvailable is false. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameAvailabilityInformation, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information_py3.py deleted file mode 100644 index d6692f54021d1..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/name_availability_information_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# 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.serialization import Model - - -class NameAvailabilityInformation(Model): - """Data Lake Store account name availability result information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The Boolean value of true or false to indicate - whether the Data Lake Store account name is available or not. - :vartype name_available: bool - :ivar reason: The reason why the Data Lake Store account name is not - available, if nameAvailable is false. - :vartype reason: str - :ivar message: The message describing why the Data Lake Store account name - is not available, if nameAvailable is false. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(NameAvailabilityInformation, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation.py deleted file mode 100644 index 18362f3d0c2c2..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Operation(Model): - """An available operation for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the operation. - :vartype name: str - :param display: The display information for the operation. - :type display: ~azure.mgmt.datalake.store.models.OperationDisplay - :ivar origin: The intended executor of the operation. Possible values - include: 'user', 'system', 'user,system' - :vartype origin: str or ~azure.mgmt.datalake.store.models.OperationOrigin - """ - - _validation = { - 'name': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = kwargs.get('display', None) - self.origin = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display.py deleted file mode 100644 index 06d6c6925b999..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class OperationDisplay(Model): - """The display information for a particular operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: The resource provider of the operation. - :vartype provider: str - :ivar resource: The resource type of the operation. - :vartype resource: str - :ivar operation: A friendly name of the operation. - :vartype operation: str - :ivar description: A friendly description of the operation. - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display_py3.py deleted file mode 100644 index c2452ff41dcb3..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_display_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# 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.serialization import Model - - -class OperationDisplay(Model): - """The display information for a particular operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: The resource provider of the operation. - :vartype provider: str - :ivar resource: The resource type of the operation. - :vartype resource: str - :ivar operation: A friendly name of the operation. - :vartype operation: str - :ivar description: A friendly description of the operation. - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result.py deleted file mode 100644 index 95c17464dfa72..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class OperationListResult(Model): - """The list of available operations for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The results of the list operation. - :vartype value: list[~azure.mgmt.datalake.store.models.Operation] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result_py3.py deleted file mode 100644 index b8349a2c052f2..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_list_result_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class OperationListResult(Model): - """The list of available operations for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The results of the list operation. - :vartype value: list[~azure.mgmt.datalake.store.models.Operation] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_py3.py deleted file mode 100644 index 5cf8f222c2ab9..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/operation_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class Operation(Model): - """An available operation for Data Lake Store. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the operation. - :vartype name: str - :param display: The display information for the operation. - :type display: ~azure.mgmt.datalake.store.models.OperationDisplay - :ivar origin: The intended executor of the operation. Possible values - include: 'user', 'system', 'user,system' - :vartype origin: str or ~azure.mgmt.datalake.store.models.OperationOrigin - """ - - _validation = { - 'name': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, *, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = display - self.origin = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource.py deleted file mode 100644 index 199fe6c5939d6..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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.serialization import Model - - -class Resource(Model): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.tags = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource_py3.py deleted file mode 100644 index 0d98701adfeb7..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/resource_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# 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.serialization import Model - - -class Resource(Model): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.tags = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource.py deleted file mode 100644 index d8797b92b1549..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class SubResource(Model): - """The resource model definition for a nested resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource_py3.py deleted file mode 100644 index 747861d8e1828..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/sub_resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class SubResource(Model): - """The resource model definition for a nested resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider.py deleted file mode 100644 index 12194150e251d..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 .sub_resource import SubResource - - -class TrustedIdProvider(SubResource): - """Data Lake Store trusted identity provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar id_provider: The URL of this trusted identity provider. - :vartype id_provider: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'id_provider': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrustedIdProvider, self).__init__(**kwargs) - self.id_provider = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_paged.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_paged.py deleted file mode 100644 index 27ffcf3c49e50..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class TrustedIdProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`TrustedIdProvider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TrustedIdProvider]'} - } - - def __init__(self, *args, **kwargs): - - super(TrustedIdProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_py3.py deleted file mode 100644 index 53346f2dc90f1..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/trusted_id_provider_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 .sub_resource_py3 import SubResource - - -class TrustedIdProvider(SubResource): - """Data Lake Store trusted identity provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar id_provider: The URL of this trusted identity provider. - :vartype id_provider: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'id_provider': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(TrustedIdProvider, self).__init__(**kwargs) - self.id_provider = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters.py deleted file mode 100644 index bdce1b10b51c7..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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.serialization import Model - - -class UpdateDataLakeStoreAccountParameters(Model): - """Data Lake Store account information to update. - - :param tags: Resource tags - :type tags: dict[str, str] - :param default_group: The default owner group for all new folders and - files created in the Data Lake Store account. - :type default_group: str - :param encryption_config: Used for rotation of user managed Key Vault - keys. Can only be used to rotate a user managed encryption Key Vault key. - :type encryption_config: - ~azure.mgmt.datalake.store.models.UpdateEncryptionConfig - :param firewall_rules: The list of firewall rules associated with this - Data Lake Store account. - :type firewall_rules: - list[~azure.mgmt.datalake.store.models.UpdateFirewallRuleWithAccountParameters] - :param virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :type virtual_network_rules: - list[~azure.mgmt.datalake.store.models.UpdateVirtualNetworkRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Disabling the firewall does not remove - existing rules, they will just be ignored until the firewall is - re-enabled. Possible values include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :param trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :type trusted_id_providers: - list[~azure.mgmt.datalake.store.models.UpdateTrustedIdProviderWithAccountParameters] - :param trusted_id_provider_state: The current state of the trusted - identity provider feature for this Data Lake Store account. Disabling - trusted identity provider functionality does not remove the providers, - they will just be ignored until this feature is re-enabled. Possible - values include: 'Enabled', 'Disabled' - :type trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'UpdateEncryptionConfig'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[UpdateVirtualNetworkRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[UpdateTrustedIdProviderWithAccountParameters]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - } - - def __init__(self, **kwargs): - super(UpdateDataLakeStoreAccountParameters, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.default_group = kwargs.get('default_group', None) - self.encryption_config = kwargs.get('encryption_config', None) - self.firewall_rules = kwargs.get('firewall_rules', None) - self.virtual_network_rules = kwargs.get('virtual_network_rules', None) - self.firewall_state = kwargs.get('firewall_state', None) - self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) - self.trusted_id_providers = kwargs.get('trusted_id_providers', None) - self.trusted_id_provider_state = kwargs.get('trusted_id_provider_state', None) - self.new_tier = kwargs.get('new_tier', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters_py3.py deleted file mode 100644 index aa1cc215e4c87..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_data_lake_store_account_parameters_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# 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.serialization import Model - - -class UpdateDataLakeStoreAccountParameters(Model): - """Data Lake Store account information to update. - - :param tags: Resource tags - :type tags: dict[str, str] - :param default_group: The default owner group for all new folders and - files created in the Data Lake Store account. - :type default_group: str - :param encryption_config: Used for rotation of user managed Key Vault - keys. Can only be used to rotate a user managed encryption Key Vault key. - :type encryption_config: - ~azure.mgmt.datalake.store.models.UpdateEncryptionConfig - :param firewall_rules: The list of firewall rules associated with this - Data Lake Store account. - :type firewall_rules: - list[~azure.mgmt.datalake.store.models.UpdateFirewallRuleWithAccountParameters] - :param virtual_network_rules: The list of virtual network rules associated - with this Data Lake Store account. - :type virtual_network_rules: - list[~azure.mgmt.datalake.store.models.UpdateVirtualNetworkRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this Data Lake Store account. Disabling the firewall does not remove - existing rules, they will just be ignored until the firewall is - re-enabled. Possible values include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.store.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.store.models.FirewallAllowAzureIpsState - :param trusted_id_providers: The list of trusted identity providers - associated with this Data Lake Store account. - :type trusted_id_providers: - list[~azure.mgmt.datalake.store.models.UpdateTrustedIdProviderWithAccountParameters] - :param trusted_id_provider_state: The current state of the trusted - identity provider feature for this Data Lake Store account. Disabling - trusted identity provider functionality does not remove the providers, - they will just be ignored until this feature is re-enabled. Possible - values include: 'Enabled', 'Disabled' - :type trusted_id_provider_state: str or - ~azure.mgmt.datalake.store.models.TrustedIdProviderState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_1TB', 'Commitment_10TB', - 'Commitment_100TB', 'Commitment_500TB', 'Commitment_1PB', 'Commitment_5PB' - :type new_tier: str or ~azure.mgmt.datalake.store.models.TierType - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_group': {'key': 'properties.defaultGroup', 'type': 'str'}, - 'encryption_config': {'key': 'properties.encryptionConfig', 'type': 'UpdateEncryptionConfig'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, - 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[UpdateVirtualNetworkRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'trusted_id_providers': {'key': 'properties.trustedIdProviders', 'type': '[UpdateTrustedIdProviderWithAccountParameters]'}, - 'trusted_id_provider_state': {'key': 'properties.trustedIdProviderState', 'type': 'TrustedIdProviderState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - } - - def __init__(self, *, tags=None, default_group: str=None, encryption_config=None, firewall_rules=None, virtual_network_rules=None, firewall_state=None, firewall_allow_azure_ips=None, trusted_id_providers=None, trusted_id_provider_state=None, new_tier=None, **kwargs) -> None: - super(UpdateDataLakeStoreAccountParameters, self).__init__(**kwargs) - self.tags = tags - self.default_group = default_group - self.encryption_config = encryption_config - self.firewall_rules = firewall_rules - self.virtual_network_rules = virtual_network_rules - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.trusted_id_providers = trusted_id_providers - self.trusted_id_provider_state = trusted_id_provider_state - self.new_tier = new_tier diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py deleted file mode 100644 index 5a52c377f4ea4..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class UpdateEncryptionConfig(Model): - """The encryption configuration used to update a user managed Key Vault key. - - :param key_vault_meta_info: The updated Key Vault key to use in user - managed key rotation. - :type key_vault_meta_info: - ~azure.mgmt.datalake.store.models.UpdateKeyVaultMetaInfo - """ - - _attribute_map = { - 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'UpdateKeyVaultMetaInfo'}, - } - - def __init__(self, **kwargs): - super(UpdateEncryptionConfig, self).__init__(**kwargs) - self.key_vault_meta_info = kwargs.get('key_vault_meta_info', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config_py3.py deleted file mode 100644 index cf3c246478052..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_encryption_config_py3.py +++ /dev/null @@ -1,30 +0,0 @@ -# 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.serialization import Model - - -class UpdateEncryptionConfig(Model): - """The encryption configuration used to update a user managed Key Vault key. - - :param key_vault_meta_info: The updated Key Vault key to use in user - managed key rotation. - :type key_vault_meta_info: - ~azure.mgmt.datalake.store.models.UpdateKeyVaultMetaInfo - """ - - _attribute_map = { - 'key_vault_meta_info': {'key': 'keyVaultMetaInfo', 'type': 'UpdateKeyVaultMetaInfo'}, - } - - def __init__(self, *, key_vault_meta_info=None, **kwargs) -> None: - super(UpdateEncryptionConfig, self).__init__(**kwargs) - self.key_vault_meta_info = key_vault_meta_info diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters.py deleted file mode 100644 index 1419fff19fd8d..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class UpdateFirewallRuleParameters(Model): - """The parameters used to update a firewall rule. - - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters_py3.py deleted file mode 100644 index 1abcaeaa9b114..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_parameters_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# 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.serialization import Model - - -class UpdateFirewallRuleParameters(Model): - """The parameters used to update a firewall rule. - - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: - super(UpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters.py deleted file mode 100644 index d322b03981e8d..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class UpdateFirewallRuleWithAccountParameters(Model): - """The parameters used to update a firewall rule while updating a Data Lake - Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to update. - :type name: str - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters_py3.py deleted file mode 100644 index c5b95358bfb33..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_firewall_rule_with_account_parameters_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# 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.serialization import Model - - -class UpdateFirewallRuleWithAccountParameters(Model): - """The parameters used to update a firewall rule while updating a Data Lake - Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to update. - :type name: str - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, name: str, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: - super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info.py deleted file mode 100644 index 3471a458c1254..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class UpdateKeyVaultMetaInfo(Model): - """The Key Vault update information used for user managed key rotation. - - :param encryption_key_version: The version of the user managed encryption - key to update through a key rotation. - :type encryption_key_version: str - """ - - _attribute_map = { - 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateKeyVaultMetaInfo, self).__init__(**kwargs) - self.encryption_key_version = kwargs.get('encryption_key_version', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info_py3.py deleted file mode 100644 index 71b6583901d76..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_key_vault_meta_info_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# 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.serialization import Model - - -class UpdateKeyVaultMetaInfo(Model): - """The Key Vault update information used for user managed key rotation. - - :param encryption_key_version: The version of the user managed encryption - key to update through a key rotation. - :type encryption_key_version: str - """ - - _attribute_map = { - 'encryption_key_version': {'key': 'encryptionKeyVersion', 'type': 'str'}, - } - - def __init__(self, *, encryption_key_version: str=None, **kwargs) -> None: - super(UpdateKeyVaultMetaInfo, self).__init__(**kwargs) - self.encryption_key_version = encryption_key_version diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters.py deleted file mode 100644 index 53d6f930e12b9..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class UpdateTrustedIdProviderParameters(Model): - """The parameters used to update a trusted identity provider. - - :param id_provider: The URL of this trusted identity provider. - :type id_provider: str - """ - - _attribute_map = { - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateTrustedIdProviderParameters, self).__init__(**kwargs) - self.id_provider = kwargs.get('id_provider', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters_py3.py deleted file mode 100644 index d1911f1650410..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_parameters_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class UpdateTrustedIdProviderParameters(Model): - """The parameters used to update a trusted identity provider. - - :param id_provider: The URL of this trusted identity provider. - :type id_provider: str - """ - - _attribute_map = { - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, *, id_provider: str=None, **kwargs) -> None: - super(UpdateTrustedIdProviderParameters, self).__init__(**kwargs) - self.id_provider = id_provider diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters.py deleted file mode 100644 index 611d7a2d7321b..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class UpdateTrustedIdProviderWithAccountParameters(Model): - """The parameters used to update a trusted identity provider while updating a - Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the trusted identity provider to - update. - :type name: str - :param id_provider: The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.id_provider = kwargs.get('id_provider', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters_py3.py deleted file mode 100644 index 632d5c28fe81f..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_trusted_id_provider_with_account_parameters_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class UpdateTrustedIdProviderWithAccountParameters(Model): - """The parameters used to update a trusted identity provider while updating a - Data Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the trusted identity provider to - update. - :type name: str - :param id_provider: The URL of this trusted identity provider. - :type id_provider: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id_provider': {'key': 'properties.idProvider', 'type': 'str'}, - } - - def __init__(self, *, name: str, id_provider: str=None, **kwargs) -> None: - super(UpdateTrustedIdProviderWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.id_provider = id_provider diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters.py deleted file mode 100644 index 1eeae8a9fba6e..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class UpdateVirtualNetworkRuleParameters(Model): - """The parameters used to update a virtual network rule. - - :param subnet_id: The resource identifier for the subnet. - :type subnet_id: str - """ - - _attribute_map = { - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) - self.subnet_id = kwargs.get('subnet_id', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters_py3.py deleted file mode 100644 index 006c50d49b036..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_parameters_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# 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.serialization import Model - - -class UpdateVirtualNetworkRuleParameters(Model): - """The parameters used to update a virtual network rule. - - :param subnet_id: The resource identifier for the subnet. - :type subnet_id: str - """ - - _attribute_map = { - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, *, subnet_id: str=None, **kwargs) -> None: - super(UpdateVirtualNetworkRuleParameters, self).__init__(**kwargs) - self.subnet_id = subnet_id diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters.py deleted file mode 100644 index 4f4150bb599eb..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class UpdateVirtualNetworkRuleWithAccountParameters(Model): - """The parameters used to update a virtual network rule while updating a Data - Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the virtual network rule to - update. - :type name: str - :param subnet_id: The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.subnet_id = kwargs.get('subnet_id', None) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters_py3.py deleted file mode 100644 index 84fe06269a453..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/update_virtual_network_rule_with_account_parameters_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# 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.serialization import Model - - -class UpdateVirtualNetworkRuleWithAccountParameters(Model): - """The parameters used to update a virtual network rule while updating a Data - Lake Store account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the virtual network rule to - update. - :type name: str - :param subnet_id: The resource identifier for the subnet. - :type subnet_id: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, *, name: str, subnet_id: str=None, **kwargs) -> None: - super(UpdateVirtualNetworkRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.subnet_id = subnet_id diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule.py deleted file mode 100644 index dab1f4dc32d5b..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 .sub_resource import SubResource - - -class VirtualNetworkRule(SubResource): - """Data Lake Store virtual network rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar subnet_id: The resource identifier for the subnet. - :vartype subnet_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'subnet_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNetworkRule, self).__init__(**kwargs) - self.subnet_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_paged.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_paged.py deleted file mode 100644 index 02b3439a805f0..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# 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.paging import Paged - - -class VirtualNetworkRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`VirtualNetworkRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'} - } - - def __init__(self, *args, **kwargs): - - super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_py3.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_py3.py deleted file mode 100644 index a0d4b638a3022..0000000000000 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/virtual_network_rule_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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 .sub_resource_py3 import SubResource - - -class VirtualNetworkRule(SubResource): - """Data Lake Store virtual network rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar subnet_id: The resource identifier for the subnet. - :vartype subnet_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'subnet_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(VirtualNetworkRule, self).__init__(**kwargs) - self.subnet_id = None diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/__init__.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/__init__.py index f8ac266b1b20a..4c583f247827f 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/__init__.py @@ -9,12 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from .accounts_operations import AccountsOperations -from .firewall_rules_operations import FirewallRulesOperations -from .virtual_network_rules_operations import VirtualNetworkRulesOperations -from .trusted_id_providers_operations import TrustedIdProvidersOperations -from .operations import Operations -from .locations_operations import LocationsOperations +from ._accounts_operations import AccountsOperations +from ._firewall_rules_operations import FirewallRulesOperations +from ._virtual_network_rules_operations import VirtualNetworkRulesOperations +from ._trusted_id_providers_operations import TrustedIdProvidersOperations +from ._operations import Operations +from ._locations_operations import LocationsOperations __all__ = [ 'AccountsOperations', diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/accounts_operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_accounts_operations.py similarity index 93% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/accounts_operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_accounts_operations.py index e6980d7c30b0b..a50d3ac4130e5 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/accounts_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_accounts_operations.py @@ -21,6 +21,8 @@ class AccountsOperations(object): """AccountsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -74,8 +76,7 @@ def list( ~azure.mgmt.datalake.store.models.DataLakeStoreAccountBasicPaged[~azure.mgmt.datalake.store.models.DataLakeStoreAccountBasic] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -106,7 +107,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -115,9 +116,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -127,12 +132,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/accounts'} @@ -174,8 +177,7 @@ def list_by_resource_group( ~azure.mgmt.datalake.store.models.DataLakeStoreAccountBasicPaged[~azure.mgmt.datalake.store.models.DataLakeStoreAccountBasic] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -207,7 +209,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -216,9 +218,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -228,12 +234,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataLakeStoreAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts'} @@ -256,6 +260,7 @@ def _create_initial( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -268,9 +273,8 @@ def _create_initial( body_content = self._serialize.body(parameters, 'CreateDataLakeStoreAccountParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -375,7 +379,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -384,8 +388,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -393,7 +397,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DataLakeStoreAccount', response) @@ -422,6 +425,7 @@ def _update_initial( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -434,9 +438,8 @@ def _update_initial( body_content = self._serialize.body(parameters, 'UpdateDataLakeStoreAccountParameters') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201, 202]: exp = CloudError(response) @@ -528,7 +531,6 @@ def _delete_initial( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -537,8 +539,8 @@ def _delete_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 202, 204]: exp = CloudError(response) @@ -623,7 +625,6 @@ def enable_key_vault( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -632,8 +633,8 @@ def enable_key_vault( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -679,6 +680,7 @@ def check_name_availability( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -691,9 +693,8 @@ def check_name_availability( body_content = self._serialize.body(parameters, 'CheckNameAvailabilityParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -701,7 +702,6 @@ def check_name_availability( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NameAvailabilityInformation', response) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/firewall_rules_operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_firewall_rules_operations.py similarity index 92% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/firewall_rules_operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_firewall_rules_operations.py index 3ec5a5bec7895..ccaab6ea20a3b 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/firewall_rules_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_firewall_rules_operations.py @@ -19,6 +19,8 @@ class FirewallRulesOperations(object): """FirewallRulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list_by_account( ~azure.mgmt.datalake.store.models.FirewallRulePaged[~azure.mgmt.datalake.store.models.FirewallRule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_account.metadata['url'] @@ -78,7 +79,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -87,9 +88,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -99,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules'} @@ -158,6 +161,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -170,9 +174,8 @@ def create_or_update( body_content = self._serialize.body(parameters, 'CreateOrUpdateFirewallRuleParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -180,7 +183,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -227,7 +229,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -236,8 +238,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -245,7 +247,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -304,6 +305,7 @@ def update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -319,9 +321,8 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -329,7 +330,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -376,7 +376,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -385,8 +384,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/locations_operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_locations_operations.py similarity index 52% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/locations_operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_locations_operations.py index 38679b7e1d1d8..5e26b9a347b79 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/locations_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_locations_operations.py @@ -19,6 +19,8 @@ class LocationsOperations(object): """LocationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -68,7 +70,7 @@ def get_capability( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -77,8 +79,8 @@ def get_capability( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 404]: exp = CloudError(response) @@ -86,7 +88,6 @@ def get_capability( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CapabilityInformation', response) @@ -96,3 +97,73 @@ def get_capability( return deserialized get_capability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/capability'} + + def get_usage( + self, location, custom_headers=None, raw=False, **operation_config): + """Gets the current usage count and the limit for the resources of the + location under the subscription. + + :param location: The resource location without whitespace. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Usage + :rtype: + ~azure.mgmt.datalake.store.models.UsagePaged[~azure.mgmt.datalake.store.models.Usage] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.get_usage.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'location': self._serialize.url("location", location, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.UsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + get_usage.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/locations/{location}/usages'} diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_operations.py similarity index 90% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_operations.py index 7a232b5fd5b02..e199d3cdde0f3 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -60,7 +62,7 @@ def list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -69,8 +71,8 @@ def list( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -78,7 +80,6 @@ def list( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationListResult', response) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/trusted_id_providers_operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_trusted_id_providers_operations.py similarity index 92% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/trusted_id_providers_operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_trusted_id_providers_operations.py index ca72701fd040e..9f81699afa5dc 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/trusted_id_providers_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_trusted_id_providers_operations.py @@ -19,6 +19,8 @@ class TrustedIdProvidersOperations(object): """TrustedIdProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list_by_account( ~azure.mgmt.datalake.store.models.TrustedIdProviderPaged[~azure.mgmt.datalake.store.models.TrustedIdProvider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_account.metadata['url'] @@ -78,7 +79,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -87,9 +88,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -99,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TrustedIdProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TrustedIdProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TrustedIdProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders'} @@ -153,6 +156,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -165,9 +169,8 @@ def create_or_update( body_content = self._serialize.body(parameters, 'CreateOrUpdateTrustedIdProviderParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -175,7 +178,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TrustedIdProvider', response) @@ -223,7 +225,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -232,8 +234,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -241,7 +243,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TrustedIdProvider', response) @@ -296,6 +297,7 @@ def update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -311,9 +313,8 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -321,7 +322,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TrustedIdProvider', response) @@ -369,7 +369,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -378,8 +377,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) diff --git a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/virtual_network_rules_operations.py b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_virtual_network_rules_operations.py similarity index 92% rename from sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/virtual_network_rules_operations.py rename to sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_virtual_network_rules_operations.py index 7cff74ae09a98..cc82930dee28e 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/virtual_network_rules_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/operations/_virtual_network_rules_operations.py @@ -19,6 +19,8 @@ class VirtualNetworkRulesOperations(object): """VirtualNetworkRulesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -56,8 +58,7 @@ def list_by_account( ~azure.mgmt.datalake.store.models.VirtualNetworkRulePaged[~azure.mgmt.datalake.store.models.VirtualNetworkRule] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_account.metadata['url'] @@ -78,7 +79,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -87,9 +88,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -99,12 +104,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.VirtualNetworkRulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.VirtualNetworkRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.VirtualNetworkRulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/virtualNetworkRules'} @@ -152,6 +155,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -164,9 +168,8 @@ def create_or_update( body_content = self._serialize.body(parameters, 'CreateOrUpdateVirtualNetworkRuleParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -174,7 +177,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VirtualNetworkRule', response) @@ -222,7 +224,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -231,8 +233,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -240,7 +242,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VirtualNetworkRule', response) @@ -294,6 +295,7 @@ def update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -309,9 +311,8 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -319,7 +320,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('VirtualNetworkRule', response) @@ -367,7 +367,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -376,8 +375,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response)