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
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@
SybaseAuthenticationType,
DynamicsDeploymentType,
DynamicsAuthenticationType,
OrcCompressionCodec,
AvroCompressionCodec,
AzureFunctionActivityMethod,
WebActivityMethod,
Expand Down Expand Up @@ -1848,6 +1849,7 @@
'SybaseAuthenticationType',
'DynamicsDeploymentType',
'DynamicsAuthenticationType',
'OrcCompressionCodec',
'AvroCompressionCodec',
'AzureFunctionActivityMethod',
'WebActivityMethod',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ class DynamicsAuthenticationType(str, Enum):
ifd = "Ifd"


class OrcCompressionCodec(str, Enum):

none = "none"
zlib = "zlib"
snappy = "snappy"


class AvroCompressionCodec(str, Enum):

none = "none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21368,6 +21368,10 @@ class OrcDataset(Dataset):
:type type: str
:param location: Required. The location of the ORC data storage.
:type location: ~azure.mgmt.datafactory.models.DatasetLocation
:param orc_compression_codec: Possible values include: 'none', 'zlib',
'snappy'
:type orc_compression_codec: str or
~azure.mgmt.datafactory.models.OrcCompressionCodec
"""

_validation = {
Expand All @@ -21387,11 +21391,13 @@ class OrcDataset(Dataset):
'folder': {'key': 'folder', 'type': 'DatasetFolder'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'typeProperties.location', 'type': 'DatasetLocation'},
'orc_compression_codec': {'key': 'typeProperties.orcCompressionCodec', 'type': 'str'},
}

def __init__(self, **kwargs):
super(OrcDataset, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.orc_compression_codec = kwargs.get('orc_compression_codec', None)
self.type = 'Orc'


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21368,6 +21368,10 @@ class OrcDataset(Dataset):
:type type: str
:param location: Required. The location of the ORC data storage.
:type location: ~azure.mgmt.datafactory.models.DatasetLocation
:param orc_compression_codec: Possible values include: 'none', 'zlib',
'snappy'
:type orc_compression_codec: str or
~azure.mgmt.datafactory.models.OrcCompressionCodec
"""

_validation = {
Expand All @@ -21387,11 +21391,13 @@ class OrcDataset(Dataset):
'folder': {'key': 'folder', 'type': 'DatasetFolder'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'typeProperties.location', 'type': 'DatasetLocation'},
'orc_compression_codec': {'key': 'typeProperties.orcCompressionCodec', 'type': 'str'},
}

def __init__(self, *, linked_service_name, location, additional_properties=None, description: str=None, structure=None, schema=None, parameters=None, annotations=None, folder=None, **kwargs) -> None:
def __init__(self, *, linked_service_name, location, additional_properties=None, description: str=None, structure=None, schema=None, parameters=None, annotations=None, folder=None, orc_compression_codec=None, **kwargs) -> None:
super(OrcDataset, self).__init__(additional_properties=additional_properties, description=description, structure=structure, schema=schema, linked_service_name=linked_service_name, parameters=parameters, annotations=annotations, folder=folder, **kwargs)
self.location = location
self.orc_compression_codec = orc_compression_codec
self.type = 'Orc'


Expand Down