Skip to content

[AutoPR] datalake-analytics/data-plane #2398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
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
1 change: 0 additions & 1 deletion azure-mgmt-datalake-analytics/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
8 changes: 4 additions & 4 deletions azure-mgmt-datalake-analytics/README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure Data Lake Analytics Management Client Library.
This is the Microsoft Azure MyService 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 and 3.6.
This package has been tested with Python 2.7, 3.4, 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.
Expand Down Expand Up @@ -36,8 +36,8 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Azure Data Lake Analytics Management
<https://docs.microsoft.com/python/api/overview/azure/data-lake-analytics>`__
For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-datalake-analytics/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-datalake-analytics/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

import warnings
from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -49,7 +48,7 @@ def __init__(
self.adla_catalog_dns_suffix = adla_catalog_dns_suffix


class DataLakeAnalyticsCatalogManagementClient(object):
class DataLakeAnalyticsCatalogManagementClient(SDKClient):
"""Creates an Azure Data Lake Analytics catalog client.

:ivar config: Configuration for client.
Expand All @@ -70,7 +69,7 @@ def __init__(
self, credentials, adla_catalog_dns_suffix):

self.config = DataLakeAnalyticsCatalogManagementClientConfiguration(credentials, adla_catalog_dns_suffix)
self._client = ServiceClient(self.config.credentials, self.config)
super(DataLakeAnalyticsCatalogManagementClient, 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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,86 @@
# regenerated.
# --------------------------------------------------------------------------

from .acl_create_or_update_parameters import AclCreateOrUpdateParameters
from .acl_delete_parameters import AclDeleteParameters
from .acl import Acl
from .data_lake_analytics_catalog_secret_create_or_update_parameters import DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters
from .data_lake_analytics_catalog_credential_create_parameters import DataLakeAnalyticsCatalogCredentialCreateParameters
from .data_lake_analytics_catalog_credential_delete_parameters import DataLakeAnalyticsCatalogCredentialDeleteParameters
from .data_lake_analytics_catalog_credential_update_parameters import DataLakeAnalyticsCatalogCredentialUpdateParameters
from .usql_secret import USqlSecret
from .usql_external_data_source import USqlExternalDataSource
from .usql_credential import USqlCredential
from .usql_procedure import USqlProcedure
from .usql_table_column import USqlTableColumn
from .usql_directed_column import USqlDirectedColumn
from .usql_distribution_info import USqlDistributionInfo
from .usql_index import USqlIndex
from .ddl_name import DdlName
from .entity_id import EntityId
from .external_table import ExternalTable
from .type_field_info import TypeFieldInfo
from .usql_table import USqlTable
from .usql_table_type import USqlTableType
from .usql_view import USqlView
from .usql_package import USqlPackage
from .usql_table_partition import USqlTablePartition
from .usql_table_statistics import USqlTableStatistics
from .usql_type import USqlType
from .usql_table_valued_function import USqlTableValuedFunction
from .usql_assembly_file_info import USqlAssemblyFileInfo
from .usql_assembly_dependency_info import USqlAssemblyDependencyInfo
from .usql_assembly import USqlAssembly
from .usql_assembly_clr import USqlAssemblyClr
from .usql_schema import USqlSchema
from .usql_database import USqlDatabase
from .catalog_item import CatalogItem
from .catalog_item_list import CatalogItemList
try:
from .acl_create_or_update_parameters_py3 import AclCreateOrUpdateParameters
from .acl_delete_parameters_py3 import AclDeleteParameters
from .acl_py3 import Acl
from .data_lake_analytics_catalog_secret_create_or_update_parameters_py3 import DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters
from .data_lake_analytics_catalog_credential_create_parameters_py3 import DataLakeAnalyticsCatalogCredentialCreateParameters
from .data_lake_analytics_catalog_credential_delete_parameters_py3 import DataLakeAnalyticsCatalogCredentialDeleteParameters
from .data_lake_analytics_catalog_credential_update_parameters_py3 import DataLakeAnalyticsCatalogCredentialUpdateParameters
from .usql_secret_py3 import USqlSecret
from .usql_external_data_source_py3 import USqlExternalDataSource
from .usql_credential_py3 import USqlCredential
from .usql_procedure_py3 import USqlProcedure
from .usql_table_column_py3 import USqlTableColumn
from .usql_directed_column_py3 import USqlDirectedColumn
from .usql_distribution_info_py3 import USqlDistributionInfo
from .usql_index_py3 import USqlIndex
from .ddl_name_py3 import DdlName
from .entity_id_py3 import EntityId
from .external_table_py3 import ExternalTable
from .type_field_info_py3 import TypeFieldInfo
from .usql_table_preview_py3 import USqlTablePreview
from .usql_table_py3 import USqlTable
from .usql_table_fragment_py3 import USqlTableFragment
from .usql_table_type_py3 import USqlTableType
from .usql_view_py3 import USqlView
from .usql_package_py3 import USqlPackage
from .usql_table_partition_py3 import USqlTablePartition
from .usql_table_statistics_py3 import USqlTableStatistics
from .usql_type_py3 import USqlType
from .usql_table_valued_function_py3 import USqlTableValuedFunction
from .usql_assembly_file_info_py3 import USqlAssemblyFileInfo
from .usql_assembly_dependency_info_py3 import USqlAssemblyDependencyInfo
from .usql_assembly_py3 import USqlAssembly
from .usql_assembly_clr_py3 import USqlAssemblyClr
from .usql_schema_py3 import USqlSchema
from .usql_database_py3 import USqlDatabase
from .catalog_item_py3 import CatalogItem
from .catalog_item_list_py3 import CatalogItemList
except (SyntaxError, ImportError):
from .acl_create_or_update_parameters import AclCreateOrUpdateParameters
from .acl_delete_parameters import AclDeleteParameters
from .acl import Acl
from .data_lake_analytics_catalog_secret_create_or_update_parameters import DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters
from .data_lake_analytics_catalog_credential_create_parameters import DataLakeAnalyticsCatalogCredentialCreateParameters
from .data_lake_analytics_catalog_credential_delete_parameters import DataLakeAnalyticsCatalogCredentialDeleteParameters
from .data_lake_analytics_catalog_credential_update_parameters import DataLakeAnalyticsCatalogCredentialUpdateParameters
from .usql_secret import USqlSecret
from .usql_external_data_source import USqlExternalDataSource
from .usql_credential import USqlCredential
from .usql_procedure import USqlProcedure
from .usql_table_column import USqlTableColumn
from .usql_directed_column import USqlDirectedColumn
from .usql_distribution_info import USqlDistributionInfo
from .usql_index import USqlIndex
from .ddl_name import DdlName
from .entity_id import EntityId
from .external_table import ExternalTable
from .type_field_info import TypeFieldInfo
from .usql_table_preview import USqlTablePreview
from .usql_table import USqlTable
from .usql_table_fragment import USqlTableFragment
from .usql_table_type import USqlTableType
from .usql_view import USqlView
from .usql_package import USqlPackage
from .usql_table_partition import USqlTablePartition
from .usql_table_statistics import USqlTableStatistics
from .usql_type import USqlType
from .usql_table_valued_function import USqlTableValuedFunction
from .usql_assembly_file_info import USqlAssemblyFileInfo
from .usql_assembly_dependency_info import USqlAssemblyDependencyInfo
from .usql_assembly import USqlAssembly
from .usql_assembly_clr import USqlAssemblyClr
from .usql_schema import USqlSchema
from .usql_database import USqlDatabase
from .catalog_item import CatalogItem
from .catalog_item_list import CatalogItemList
from .usql_credential_paged import USqlCredentialPaged
from .usql_external_data_source_paged import USqlExternalDataSourcePaged
from .usql_procedure_paged import USqlProcedurePaged
from .usql_table_fragment_paged import USqlTableFragmentPaged
from .usql_table_paged import USqlTablePaged
from .usql_table_statistics_paged import USqlTableStatisticsPaged
from .usql_table_type_paged import USqlTableTypePaged
Expand Down Expand Up @@ -85,7 +127,9 @@
'EntityId',
'ExternalTable',
'TypeFieldInfo',
'USqlTablePreview',
'USqlTable',
'USqlTableFragment',
'USqlTableType',
'USqlView',
'USqlPackage',
Expand All @@ -104,6 +148,7 @@
'USqlCredentialPaged',
'USqlExternalDataSourcePaged',
'USqlProcedurePaged',
'USqlTableFragmentPaged',
'USqlTablePaged',
'USqlTableStatisticsPaged',
'USqlTableTypePaged',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class Acl(Model):
'permission': {'key': 'permission', 'type': 'str'},
}

def __init__(self):
super(Acl, self).__init__()
def __init__(self, **kwargs):
super(Acl, self).__init__(**kwargs)
self.ace_type = None
self.principal_id = None
self.permission = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
class AclCreateOrUpdateParameters(Model):
"""The parameters used to create or update an access control list (ACL) entry.

:param ace_type: the access control list (ACL) entry type. UserObj and
GroupObj denote the owning user and group, respectively. Possible values
include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
All required parameters must be populated in order to send to Azure.

:param ace_type: Required. the access control list (ACL) entry type.
UserObj and GroupObj denote the owning user and group, respectively.
Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
:type ace_type: str or
~azure.mgmt.datalake.analytics.catalog.models.AclType
:param principal_id: the Azure AD object ID of the user or group being
specified in the access control list (ACL) entry.
:param principal_id: Required. the Azure AD object ID of the user or group
being specified in the access control list (ACL) entry.
:type principal_id: str
:param permission: the permission type of the access control list (ACL)
entry. Possible values include: 'None', 'Use', 'Create', 'Drop', 'Alter',
'Write', 'All'
:param permission: Required. the permission type of the access control
list (ACL) entry. Possible values include: 'None', 'Use', 'Create',
'Drop', 'Alter', 'Write', 'All'
:type permission: str or
~azure.mgmt.datalake.analytics.catalog.models.PermissionType
"""
Expand All @@ -42,8 +44,8 @@ class AclCreateOrUpdateParameters(Model):
'permission': {'key': 'permission', 'type': 'str'},
}

def __init__(self, ace_type, principal_id, permission):
super(AclCreateOrUpdateParameters, self).__init__()
self.ace_type = ace_type
self.principal_id = principal_id
self.permission = permission
def __init__(self, **kwargs):
super(AclCreateOrUpdateParameters, self).__init__(**kwargs)
self.ace_type = kwargs.get('ace_type', None)
self.principal_id = kwargs.get('principal_id', None)
self.permission = kwargs.get('permission', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 AclCreateOrUpdateParameters(Model):
"""The parameters used to create or update an access control list (ACL) entry.

All required parameters must be populated in order to send to Azure.

:param ace_type: Required. the access control list (ACL) entry type.
UserObj and GroupObj denote the owning user and group, respectively.
Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
:type ace_type: str or
~azure.mgmt.datalake.analytics.catalog.models.AclType
:param principal_id: Required. the Azure AD object ID of the user or group
being specified in the access control list (ACL) entry.
:type principal_id: str
:param permission: Required. the permission type of the access control
list (ACL) entry. Possible values include: 'None', 'Use', 'Create',
'Drop', 'Alter', 'Write', 'All'
:type permission: str or
~azure.mgmt.datalake.analytics.catalog.models.PermissionType
"""

_validation = {
'ace_type': {'required': True},
'principal_id': {'required': True},
'permission': {'required': True},
}

_attribute_map = {
'ace_type': {'key': 'aceType', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'permission': {'key': 'permission', 'type': 'str'},
}

def __init__(self, *, ace_type, principal_id: str, permission, **kwargs) -> None:
super(AclCreateOrUpdateParameters, self).__init__(**kwargs)
self.ace_type = ace_type
self.principal_id = principal_id
self.permission = permission
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
class AclDeleteParameters(Model):
"""The parameters used to delete an access control list (ACL) entry.

:param ace_type: the access control list (ACL) entry type. UserObj and
GroupObj denote the owning user and group, respectively. Possible values
include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
All required parameters must be populated in order to send to Azure.

:param ace_type: Required. the access control list (ACL) entry type.
UserObj and GroupObj denote the owning user and group, respectively.
Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
:type ace_type: str or
~azure.mgmt.datalake.analytics.catalog.models.AclType
:param principal_id: the Azure AD object ID of the user or group being
specified in the access control list (ACL) entry.
:param principal_id: Required. the Azure AD object ID of the user or group
being specified in the access control list (ACL) entry.
:type principal_id: str
"""

Expand All @@ -35,7 +37,7 @@ class AclDeleteParameters(Model):
'principal_id': {'key': 'principalId', 'type': 'str'},
}

def __init__(self, ace_type, principal_id):
super(AclDeleteParameters, self).__init__()
self.ace_type = ace_type
self.principal_id = principal_id
def __init__(self, **kwargs):
super(AclDeleteParameters, self).__init__(**kwargs)
self.ace_type = kwargs.get('ace_type', None)
self.principal_id = kwargs.get('principal_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 AclDeleteParameters(Model):
"""The parameters used to delete an access control list (ACL) entry.

All required parameters must be populated in order to send to Azure.

:param ace_type: Required. the access control list (ACL) entry type.
UserObj and GroupObj denote the owning user and group, respectively.
Possible values include: 'UserObj', 'GroupObj', 'Other', 'User', 'Group'
:type ace_type: str or
~azure.mgmt.datalake.analytics.catalog.models.AclType
:param principal_id: Required. the Azure AD object ID of the user or group
being specified in the access control list (ACL) entry.
:type principal_id: str
"""

_validation = {
'ace_type': {'required': True},
'principal_id': {'required': True},
}

_attribute_map = {
'ace_type': {'key': 'aceType', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
}

def __init__(self, *, ace_type, principal_id: str, **kwargs) -> None:
super(AclDeleteParameters, self).__init__(**kwargs)
self.ace_type = ace_type
self.principal_id = principal_id
Loading