Skip to content

Commit

Permalink
CodeGen from PR 11941 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add datashare track2 config (Azure#11941)
  • Loading branch information
SDKAuto committed Dec 8, 2020
1 parent e1f2009 commit c9b7038
Show file tree
Hide file tree
Showing 13 changed files with 874 additions and 802 deletions.
Expand Up @@ -138,16 +138,16 @@
from ._data_share_management_client_enums import (
Type,
ProvisioningState,
Status,
DataSetMappingStatus,
OutputType,
InvitationStatus,
ShareKind,
SynchronizationMode,
DataSetType,
Status,
ShareSubscriptionStatus,
RecurrenceInterval,
SynchronizationMode,
TriggerStatus,
DataSetMappingStatus,
OutputType,
ShareKind,
)

__all__ = [
Expand Down Expand Up @@ -211,26 +211,26 @@
'DataSetMappingPaged',
'InvitationPaged',
'OperationModelPaged',
'SharePaged',
'ShareSynchronizationPaged',
'SynchronizationDetailsPaged',
'ShareSynchronizationPaged',
'SharePaged',
'ProviderShareSubscriptionPaged',
'ShareSubscriptionPaged',
'SourceShareSynchronizationSettingPaged',
'ShareSubscriptionSynchronizationPaged',
'ShareSubscriptionPaged',
'ConsumerSourceDataSetPaged',
'SynchronizationSettingPaged',
'TriggerPaged',
'Type',
'ProvisioningState',
'Status',
'DataSetMappingStatus',
'OutputType',
'InvitationStatus',
'ShareKind',
'SynchronizationMode',
'DataSetType',
'Status',
'ShareSubscriptionStatus',
'RecurrenceInterval',
'SynchronizationMode',
'TriggerStatus',
'DataSetMappingStatus',
'OutputType',
'ShareKind',
]
Expand Up @@ -26,14 +26,16 @@ class ProvisioningState(str, Enum):
failed = "Failed"


class Status(str, Enum):
class DataSetMappingStatus(str, Enum):

accepted = "Accepted"
in_progress = "InProgress"
transient_failure = "TransientFailure"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"
ok = "Ok"
broken = "Broken"


class OutputType(str, Enum):

csv = "Csv"
parquet = "Parquet"


class InvitationStatus(str, Enum):
Expand All @@ -44,18 +46,6 @@ class InvitationStatus(str, Enum):
withdrawn = "Withdrawn"


class ShareKind(str, Enum):

copy_based = "CopyBased"
in_place = "InPlace"


class SynchronizationMode(str, Enum):

incremental = "Incremental"
full_sync = "FullSync"


class DataSetType(str, Enum):

blob = "Blob"
Expand All @@ -72,6 +62,16 @@ class DataSetType(str, Enum):
sql_dw_table = "SqlDWTable"


class Status(str, Enum):

accepted = "Accepted"
in_progress = "InProgress"
transient_failure = "TransientFailure"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"


class ShareSubscriptionStatus(str, Enum):

active = "Active"
Expand All @@ -86,20 +86,20 @@ class RecurrenceInterval(str, Enum):
day = "Day"


class SynchronizationMode(str, Enum):

incremental = "Incremental"
full_sync = "FullSync"


class TriggerStatus(str, Enum):

active = "Active"
inactive = "Inactive"
source_synchronization_setting_deleted = "SourceSynchronizationSettingDeleted"


class DataSetMappingStatus(str, Enum):

ok = "Ok"
broken = "Broken"


class OutputType(str, Enum):
class ShareKind(str, Enum):

csv = "Csv"
parquet = "Parquet"
copy_based = "CopyBased"
in_place = "InPlace"
Expand Up @@ -172,10 +172,10 @@ class DataSet(ProxyDto):
"""A DataSet data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSet, BlobFolderDataSet, BlobContainerDataSet,
ADLSGen2FileDataSet, ADLSGen2FolderDataSet, ADLSGen2FileSystemDataSet,
ADLSGen1FolderDataSet, ADLSGen1FileDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDWTableDataSet, SqlDBTableDataSet
sub-classes are: ADLSGen1FileDataSet, ADLSGen1FolderDataSet,
ADLSGen2FileDataSet, ADLSGen2FileSystemDataSet, ADLSGen2FolderDataSet,
BlobContainerDataSet, BlobDataSet, BlobFolderDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDBTableDataSet, SqlDWTableDataSet
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -207,7 +207,7 @@ class DataSet(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen1File': 'ADLSGen1FileDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDWTable': 'SqlDWTableDataSet', 'SqlDBTable': 'SqlDBTableDataSet'}
'kind': {'AdlsGen1File': 'ADLSGen1FileDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'Container': 'BlobContainerDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDBTableDataSet', 'SqlDWTable': 'SqlDWTableDataSet'}
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -417,11 +417,11 @@ class DataSetMapping(ProxyDto):
"""A data set mapping data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSetMapping, BlobFolderDataSetMapping,
BlobContainerDataSetMapping, ADLSGen2FileDataSetMapping,
ADLSGen2FolderDataSetMapping, ADLSGen2FileSystemDataSetMapping,
sub-classes are: ADLSGen2FileDataSetMapping,
ADLSGen2FileSystemDataSetMapping, ADLSGen2FolderDataSetMapping,
BlobContainerDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping,
KustoClusterDataSetMapping, KustoDatabaseDataSetMapping,
SqlDWTableDataSetMapping, SqlDBTableDataSetMapping
SqlDBTableDataSetMapping, SqlDWTableDataSetMapping
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -453,7 +453,7 @@ class DataSetMapping(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping'}
'kind': {'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping'}
}

def __init__(self, **kwargs):
Expand Down
Expand Up @@ -172,10 +172,10 @@ class DataSet(ProxyDto):
"""A DataSet data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSet, BlobFolderDataSet, BlobContainerDataSet,
ADLSGen2FileDataSet, ADLSGen2FolderDataSet, ADLSGen2FileSystemDataSet,
ADLSGen1FolderDataSet, ADLSGen1FileDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDWTableDataSet, SqlDBTableDataSet
sub-classes are: ADLSGen1FileDataSet, ADLSGen1FolderDataSet,
ADLSGen2FileDataSet, ADLSGen2FileSystemDataSet, ADLSGen2FolderDataSet,
BlobContainerDataSet, BlobDataSet, BlobFolderDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDBTableDataSet, SqlDWTableDataSet
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -207,7 +207,7 @@ class DataSet(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen1File': 'ADLSGen1FileDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDWTable': 'SqlDWTableDataSet', 'SqlDBTable': 'SqlDBTableDataSet'}
'kind': {'AdlsGen1File': 'ADLSGen1FileDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'Container': 'BlobContainerDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDBTableDataSet', 'SqlDWTable': 'SqlDWTableDataSet'}
}

def __init__(self, **kwargs) -> None:
Expand Down Expand Up @@ -417,11 +417,11 @@ class DataSetMapping(ProxyDto):
"""A data set mapping data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSetMapping, BlobFolderDataSetMapping,
BlobContainerDataSetMapping, ADLSGen2FileDataSetMapping,
ADLSGen2FolderDataSetMapping, ADLSGen2FileSystemDataSetMapping,
sub-classes are: ADLSGen2FileDataSetMapping,
ADLSGen2FileSystemDataSetMapping, ADLSGen2FolderDataSetMapping,
BlobContainerDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping,
KustoClusterDataSetMapping, KustoDatabaseDataSetMapping,
SqlDWTableDataSetMapping, SqlDBTableDataSetMapping
SqlDBTableDataSetMapping, SqlDWTableDataSetMapping
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -453,7 +453,7 @@ class DataSetMapping(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping'}
'kind': {'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping'}
}

def __init__(self, **kwargs) -> None:
Expand Down
Expand Up @@ -90,19 +90,19 @@ class OperationModelPaged(Paged):
def __init__(self, *args, **kwargs):

super(OperationModelPaged, self).__init__(*args, **kwargs)
class SharePaged(Paged):
class SynchronizationDetailsPaged(Paged):
"""
A paging container for iterating over a list of :class:`Share <azure.mgmt.datashare.models.Share>` object
A paging container for iterating over a list of :class:`SynchronizationDetails <azure.mgmt.datashare.models.SynchronizationDetails>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Share]'}
'current_page': {'key': 'value', 'type': '[SynchronizationDetails]'}
}

def __init__(self, *args, **kwargs):

super(SharePaged, self).__init__(*args, **kwargs)
super(SynchronizationDetailsPaged, self).__init__(*args, **kwargs)
class ShareSynchronizationPaged(Paged):
"""
A paging container for iterating over a list of :class:`ShareSynchronization <azure.mgmt.datashare.models.ShareSynchronization>` object
Expand All @@ -116,19 +116,19 @@ class ShareSynchronizationPaged(Paged):
def __init__(self, *args, **kwargs):

super(ShareSynchronizationPaged, self).__init__(*args, **kwargs)
class SynchronizationDetailsPaged(Paged):
class SharePaged(Paged):
"""
A paging container for iterating over a list of :class:`SynchronizationDetails <azure.mgmt.datashare.models.SynchronizationDetails>` object
A paging container for iterating over a list of :class:`Share <azure.mgmt.datashare.models.Share>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[SynchronizationDetails]'}
'current_page': {'key': 'value', 'type': '[Share]'}
}

def __init__(self, *args, **kwargs):

super(SynchronizationDetailsPaged, self).__init__(*args, **kwargs)
super(SharePaged, self).__init__(*args, **kwargs)
class ProviderShareSubscriptionPaged(Paged):
"""
A paging container for iterating over a list of :class:`ProviderShareSubscription <azure.mgmt.datashare.models.ProviderShareSubscription>` object
Expand All @@ -142,45 +142,45 @@ class ProviderShareSubscriptionPaged(Paged):
def __init__(self, *args, **kwargs):

super(ProviderShareSubscriptionPaged, self).__init__(*args, **kwargs)
class ShareSubscriptionPaged(Paged):
class SourceShareSynchronizationSettingPaged(Paged):
"""
A paging container for iterating over a list of :class:`ShareSubscription <azure.mgmt.datashare.models.ShareSubscription>` object
A paging container for iterating over a list of :class:`SourceShareSynchronizationSetting <azure.mgmt.datashare.models.SourceShareSynchronizationSetting>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ShareSubscription]'}
'current_page': {'key': 'value', 'type': '[SourceShareSynchronizationSetting]'}
}

def __init__(self, *args, **kwargs):

super(ShareSubscriptionPaged, self).__init__(*args, **kwargs)
class SourceShareSynchronizationSettingPaged(Paged):
super(SourceShareSynchronizationSettingPaged, self).__init__(*args, **kwargs)
class ShareSubscriptionSynchronizationPaged(Paged):
"""
A paging container for iterating over a list of :class:`SourceShareSynchronizationSetting <azure.mgmt.datashare.models.SourceShareSynchronizationSetting>` object
A paging container for iterating over a list of :class:`ShareSubscriptionSynchronization <azure.mgmt.datashare.models.ShareSubscriptionSynchronization>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[SourceShareSynchronizationSetting]'}
'current_page': {'key': 'value', 'type': '[ShareSubscriptionSynchronization]'}
}

def __init__(self, *args, **kwargs):

super(SourceShareSynchronizationSettingPaged, self).__init__(*args, **kwargs)
class ShareSubscriptionSynchronizationPaged(Paged):
super(ShareSubscriptionSynchronizationPaged, self).__init__(*args, **kwargs)
class ShareSubscriptionPaged(Paged):
"""
A paging container for iterating over a list of :class:`ShareSubscriptionSynchronization <azure.mgmt.datashare.models.ShareSubscriptionSynchronization>` object
A paging container for iterating over a list of :class:`ShareSubscription <azure.mgmt.datashare.models.ShareSubscription>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ShareSubscriptionSynchronization]'}
'current_page': {'key': 'value', 'type': '[ShareSubscription]'}
}

def __init__(self, *args, **kwargs):

super(ShareSubscriptionSynchronizationPaged, self).__init__(*args, **kwargs)
super(ShareSubscriptionPaged, self).__init__(*args, **kwargs)
class ConsumerSourceDataSetPaged(Paged):
"""
A paging container for iterating over a list of :class:`ConsumerSourceDataSet <azure.mgmt.datashare.models.ConsumerSourceDataSet>` object
Expand Down

0 comments on commit c9b7038

Please sign in to comment.