Skip to content

Commit

Permalink
CodeGen from PR 11722 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[T2] datalakestore for python track2 (Azure#11722)

* python track2

* python.md
  • Loading branch information
SDKAuto committed Nov 20, 2020
1 parent b94a7a9 commit c95fa97
Show file tree
Hide file tree
Showing 15 changed files with 5,299 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Original file line number Diff line number Diff line change
@@ -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<msrestazure.azure_active_directory>`
: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
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import 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):
"""Creates an Azure Data Lake Store account management client.
:ivar config: Configuration for client.
:vartype config: DataLakeStoreAccountManagementClientConfiguration
:ivar accounts: Accounts operations
:vartype accounts: azure.mgmt.datalake.store.operations.AccountsOperations
:ivar firewall_rules: FirewallRules operations
:vartype firewall_rules: azure.mgmt.datalake.store.operations.FirewallRulesOperations
:ivar virtual_network_rules: VirtualNetworkRules operations
:vartype virtual_network_rules: azure.mgmt.datalake.store.operations.VirtualNetworkRulesOperations
:ivar trusted_id_providers: TrustedIdProviders operations
:vartype trusted_id_providers: azure.mgmt.datalake.store.operations.TrustedIdProvidersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.datalake.store.operations.Operations
:ivar locations: Locations operations
:vartype locations: azure.mgmt.datalake.store.operations.LocationsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: 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):

self.config = DataLakeStoreAccountManagementClientConfiguration(credentials, subscription_id, base_url)
super(DataLakeStoreAccountManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-11-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.accounts = AccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.firewall_rules = FirewallRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.virtual_network_rules = VirtualNetworkRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.trusted_id_providers = TrustedIdProvidersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.locations = LocationsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand All @@ -141,4 +150,5 @@
'DataLakeStoreAccountState',
'OperationOrigin',
'SubscriptionState',
'UsageUnit',
]
Loading

0 comments on commit c95fa97

Please sign in to comment.