Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sdk/datalake/azure-mgmt-datalake-analytics/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
include azure/mgmt/datalake/__init__.py

21 changes: 1 addition & 20 deletions sdk/datalake/azure-mgmt-datalake-analytics/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,14 @@ This is the Microsoft Azure Data Lake Analytics Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .data_lake_analytics_catalog_management_client import DataLakeAnalyticsCatalogManagementClient
from .version import VERSION
from ._configuration import DataLakeAnalyticsCatalogManagementClientConfiguration
from ._data_lake_analytics_catalog_management_client import DataLakeAnalyticsCatalogManagementClient
__all__ = ['DataLakeAnalyticsCatalogManagementClient', 'DataLakeAnalyticsCatalogManagementClientConfiguration']

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

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 DataLakeAnalyticsCatalogManagementClientConfiguration(AzureConfiguration):
"""Configuration for DataLakeAnalyticsCatalogManagementClient
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 adla_catalog_dns_suffix: Gets the DNS suffix used as the base for
all Azure Data Lake Analytics Catalog service requests.
:type adla_catalog_dns_suffix: str
"""

def __init__(
self, credentials, adla_catalog_dns_suffix):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if adla_catalog_dns_suffix is None:
raise ValueError("Parameter 'adla_catalog_dns_suffix' must not be None.")
base_url = 'https://{accountName}.{adlaCatalogDnsSuffix}'

super(DataLakeAnalyticsCatalogManagementClientConfiguration, 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-analytics/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.adla_catalog_dns_suffix = adla_catalog_dns_suffix
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,10 @@

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.catalog_operations import CatalogOperations
from . import models


class DataLakeAnalyticsCatalogManagementClientConfiguration(AzureConfiguration):
"""Configuration for DataLakeAnalyticsCatalogManagementClient
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 adla_catalog_dns_suffix: Gets the DNS suffix used as the base for
all Azure Data Lake Analytics Catalog service requests.
:type adla_catalog_dns_suffix: str
"""

def __init__(
self, credentials, adla_catalog_dns_suffix):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if adla_catalog_dns_suffix is None:
raise ValueError("Parameter 'adla_catalog_dns_suffix' must not be None.")
base_url = 'https://{accountName}.{adlaCatalogDnsSuffix}'

super(DataLakeAnalyticsCatalogManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-datalake-analytics/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.adla_catalog_dns_suffix = adla_catalog_dns_suffix
from ._configuration import DataLakeAnalyticsCatalogManagementClientConfiguration
from .operations import CatalogOperations
from . import models


class DataLakeAnalyticsCatalogManagementClient(SDKClient):
Expand Down
Loading