Dive into secure and efficient coding practices with our curated list of the top 10 examples showcasing 'azure-mgmt-datalake-store' in functional components in Python. Our advanced machine learning engine meticulously scans each line of code, cross-referencing millions of open source libraries to ensure your implementation is not just functional, but also robust and secure. Elevate your React applications to new heights by mastering the art of handling side effects, API calls, and asynchronous operations with confidence and precision.
# 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
"""
# 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
"""
# 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
"""
# 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
"""
# 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
"""
# 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
"""
# 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
"""
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'}
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
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)