How to use azure-mgmt-datalake-store - 10 common examples

To help you get started, we’ve selected a few azure-mgmt-datalake-store examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_file_not_found_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsFileNotFoundException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating the file or folder could not be
    found. Thrown when a 404 error response code is returned (not found).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_runtime_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsRuntimeException(AdlsRemoteException):
    """A WebHDFS exception thrown when an unexpected error occurs during an
    operation. Thrown when a 500 error response code is returned (Internal
    server error).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_security_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsSecurityException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating that access is denied. Thrown when a
    401 error response code is returned (Unauthorized).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_access_control_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsAccessControlException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating that access is denied due to
    insufficient permissions. Thrown when a 403 error response code is
    returned (forbidden).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_io_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsIOException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating there was an IO (read or write)
    error. Thrown when a 403 error response code is returned (forbidden).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_illegal_argument_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsIllegalArgumentException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating that one more arguments is
    incorrect. Thrown when a 400 error response code is returned (bad
    request).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / filesystem / models / adls_unsupported_operation_exception.py View on Github external
# 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 .adls_remote_exception import AdlsRemoteException


class AdlsUnsupportedOperationException(AdlsRemoteException):
    """A WebHDFS exception thrown indicating that the requested operation is not
    supported. Thrown when a 400 error response code is returned (bad
    request).

    Variables are only populated by the server, and will be ignored when
    sending a request.

    :ivar java_class_name: the full class package name for the exception
     thrown, such as 'java.lang.IllegalArgumentException'.
    :vartype java_class_name: str
    :ivar message: the message associated with the exception that was thrown,
     such as 'Invalid value for webhdfs parameter "permission":...'.
    :vartype message: str
    :param exception: Polymorphic Discriminator
    :type exception: str
    """
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / operations / trusted_id_providers_operations.py View on Github external
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)

            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
        deserialized = models.TrustedIdProviderPaged(internal_paging, self._deserialize.dependencies)

        if raw:
            header_dict = {}
            client_raw_response = models.TrustedIdProviderPaged(internal_paging, self._deserialize.dependencies, header_dict)
            return client_raw_response

        return deserialized
    list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/trustedIdProviders'}
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / operations / firewall_rules_operations.py View on Github external
can be either ipv4 or ipv6. Start and End should be in the same
         protocol.
        :type end_ip_address: 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: FirewallRule or ClientRawResponse if raw=true
        :rtype: ~azure.mgmt.datalake.store.models.FirewallRule or
         ~msrest.pipeline.ClientRawResponse
        :raises: :class:`CloudError`
        """
        parameters = None
        if start_ip_address is not None or end_ip_address is not None:
            parameters = models.UpdateFirewallRuleParameters(start_ip_address=start_ip_address, end_ip_address=end_ip_address)

        # Construct URL
        url = self.update.metadata['url']
        path_format_arguments = {
            'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
            'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
            'accountName': self._serialize.url("account_name", account_name, 'str'),
            'firewallRuleName': self._serialize.url("firewall_rule_name", firewall_rule_name, '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')

        # Construct headers
github Azure / azure-sdk-for-python / azure-mgmt-datalake-store / azure / mgmt / datalake / store / data_lake_store_account_management_client.py View on Github external
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)

azure-mgmt-datalake-store

Microsoft Azure Data Lake Store Management Client Library for Python

MIT
Latest version published 7 years ago

Package Health Score

79 / 100
Full package analysis

Popular azure-mgmt-datalake-store functions

Similar packages