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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

import warnings
from msrest.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
Expand Down Expand Up @@ -37,13 +38,11 @@ def __init__(
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.")
if not isinstance(adla_catalog_dns_suffix, str):
raise TypeError("Parameter 'adla_catalog_dns_suffix' must be str.")
base_url = 'https://{accountName}.{adlaCatalogDnsSuffix}'

super(DataLakeAnalyticsCatalogManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .acl_create_or_update_parameters import AclCreateOrUpdateParameters
from .acl_delete_parameters import AclDeleteParameters
from .acl import Acl
from .acl_list import AclList
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
Expand Down Expand Up @@ -56,10 +60,16 @@
from .usql_schema_paged import USqlSchemaPaged
from .usql_database_paged import USqlDatabasePaged
from .data_lake_analytics_catalog_management_client_enums import (
AclType,
PermissionType,
FileType,
)

__all__ = [
'AclCreateOrUpdateParameters',
'AclDeleteParameters',
'Acl',
'AclList',
'DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters',
'DataLakeAnalyticsCatalogCredentialCreateParameters',
'DataLakeAnalyticsCatalogCredentialDeleteParameters',
Expand Down Expand Up @@ -106,5 +116,7 @@
'USqlAssemblyClrPaged',
'USqlSchemaPaged',
'USqlDatabasePaged',
'AclType',
'PermissionType',
'FileType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 Acl(Model):
"""A Data Lake Analytics catalog access control list (ACL) entry.

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

:ivar 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'
:vartype ace_type: str or
~azure.mgmt.datalake.analytics.catalog.models.AclType
:ivar principal_id: the Azure AD object ID of the user or group being
specified in the access control list (ACL) entry.
:vartype principal_id: str
:ivar permission: the permission type of the access control list (ACL)
entry. Possible values include: 'None', 'Use', 'Create', 'Drop', 'Alter',
'Write', 'All'
:vartype permission: str or
~azure.mgmt.datalake.analytics.catalog.models.PermissionType
"""

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

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

def __init__(self):
super(Acl, self).__init__()
self.ace_type = None
self.principal_id = None
self.permission = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.

: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'
: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.
: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'
: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, permission):
super(AclCreateOrUpdateParameters, self).__init__()
self.ace_type = ace_type
self.principal_id = principal_id
self.permission = permission
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.

: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'
: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.
: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):
super(AclDeleteParameters, self).__init__()
self.ace_type = ace_type
self.principal_id = principal_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 AclList(Model):
"""A Data Lake Analytics catalog access control list (ACL).

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

:ivar value: the access control list (ACL).
:vartype value: list[~azure.mgmt.datalake.analytics.catalog.models.Acl]
"""

_validation = {
'value': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[Acl]'},
}

def __init__(self):
super(AclList, self).__init__()
self.value = None
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ class CatalogItem(Model):
}

def __init__(self, compute_account_name=None, version=None):
super(CatalogItem, self).__init__()
self.compute_account_name = compute_account_name
self.version = version
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class CatalogItemList(Model):
}

def __init__(self, next_link=None):
super(CatalogItemList, self).__init__()
self.next_link = next_link
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DataLakeAnalyticsCatalogCredentialCreateParameters(Model):
}

def __init__(self, password, uri, user_id):
super(DataLakeAnalyticsCatalogCredentialCreateParameters, self).__init__()
self.password = password
self.uri = uri
self.user_id = user_id
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ class DataLakeAnalyticsCatalogCredentialDeleteParameters(Model):
}

def __init__(self, password=None):
super(DataLakeAnalyticsCatalogCredentialDeleteParameters, self).__init__()
self.password = password
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class DataLakeAnalyticsCatalogCredentialUpdateParameters(Model):
}

def __init__(self, password=None, new_password=None, uri=None, user_id=None):
super(DataLakeAnalyticsCatalogCredentialUpdateParameters, self).__init__()
self.password = password
self.new_password = new_password
self.uri = uri
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@
from enum import Enum


class AclType(Enum):

user_obj = "UserObj"
group_obj = "GroupObj"
other = "Other"
user = "User"
group = "Group"


class PermissionType(Enum):

none = "None"
use = "Use"
create = "Create"
drop = "Drop"
alter = "Alter"
write = "Write"
all = "All"


class FileType(Enum):

assembly = "Assembly"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ class DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters(Model):
}

def __init__(self, password, uri=None):
super(DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters, self).__init__()
self.password = password
self.uri = uri
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class DdlName(Model):
}

def __init__(self, first_part=None, second_part=None, third_part=None, server=None):
super(DdlName, self).__init__()
self.first_part = first_part
self.second_part = second_part
self.third_part = third_part
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class EntityId(Model):

:param name: the name of the external table associated with this database,
schema and table.
:type name: :class:`DdlName
<azure.mgmt.datalake.analytics.catalog.models.DdlName>`
:type name: ~azure.mgmt.datalake.analytics.catalog.models.DdlName
:param version: the version of the external data source.
:type version: str
"""
Expand All @@ -29,5 +28,6 @@ class EntityId(Model):
}

def __init__(self, name=None, version=None):
super(EntityId, self).__init__()
self.name = name
self.version = version
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class ExternalTable(Model):
schema.
:type table_name: str
:param data_source: the data source associated with this external table.
:type data_source: :class:`EntityId
<azure.mgmt.datalake.analytics.catalog.models.EntityId>`
:type data_source: ~azure.mgmt.datalake.analytics.catalog.models.EntityId
"""

_attribute_map = {
Expand All @@ -29,5 +28,6 @@ class ExternalTable(Model):
}

def __init__(self, table_name=None, data_source=None):
super(ExternalTable, self).__init__()
self.table_name = table_name
self.data_source = data_source
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ class TypeFieldInfo(Model):
}

def __init__(self, name=None, type=None):
super(TypeFieldInfo, self).__init__()
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ class USqlAssembly(CatalogItem):
defined or not.
:type is_user_defined: bool
:param files: the list of files associated with the assembly
:type files: list of :class:`USqlAssemblyFileInfo
<azure.mgmt.datalake.analytics.catalog.models.USqlAssemblyFileInfo>`
:type files:
list[~azure.mgmt.datalake.analytics.catalog.models.USqlAssemblyFileInfo]
:param dependencies: the list of dependencies associated with the assembly
:type dependencies: list of :class:`USqlAssemblyDependencyInfo
<azure.mgmt.datalake.analytics.catalog.models.USqlAssemblyDependencyInfo>`
:type dependencies:
list[~azure.mgmt.datalake.analytics.catalog.models.USqlAssemblyDependencyInfo]
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class USqlAssemblyDependencyInfo(Model):
"""A Data Lake Analytics catalog U-SQL dependency information item.

:param entity_id: the EntityId of the dependency.
:type entity_id: :class:`EntityId
<azure.mgmt.datalake.analytics.catalog.models.EntityId>`
:type entity_id: ~azure.mgmt.datalake.analytics.catalog.models.EntityId
"""

_attribute_map = {
'entity_id': {'key': 'entityId', 'type': 'EntityId'},
}

def __init__(self, entity_id=None):
super(USqlAssemblyDependencyInfo, self).__init__()
self.entity_id = entity_id
Loading