Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from ee70850679e3171b01674bc23820b1270ae444f9
delete treatEmptyAsNull
  • Loading branch information
AutorestCI committed May 29, 2019
commit dc06667ef7c091270064cd374327e719d5b2a5a8
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ class DelimitedTextReadSetting(FormatReadSetting):
when reading data from input files. Type: integer (or Expression with
resultType integer).
:type skip_line_count: object
:param treat_empty_as_null: Specify whether to treat null or empty string
as a null value when reading data from an input file.
:type treat_empty_as_null: bool
"""

_validation = {
Expand All @@ -39,10 +36,8 @@ class DelimitedTextReadSetting(FormatReadSetting):
'additional_properties': {'key': '', 'type': '{object}'},
'type': {'key': 'type', 'type': 'str'},
'skip_line_count': {'key': 'skipLineCount', 'type': 'object'},
'treat_empty_as_null': {'key': 'treatEmptyAsNull', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(DelimitedTextReadSetting, self).__init__(**kwargs)
self.skip_line_count = kwargs.get('skip_line_count', None)
self.treat_empty_as_null = kwargs.get('treat_empty_as_null', None)
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ class DelimitedTextReadSetting(FormatReadSetting):
when reading data from input files. Type: integer (or Expression with
resultType integer).
:type skip_line_count: object
:param treat_empty_as_null: Specify whether to treat null or empty string
as a null value when reading data from an input file.
:type treat_empty_as_null: bool
"""

_validation = {
Expand All @@ -39,10 +36,8 @@ class DelimitedTextReadSetting(FormatReadSetting):
'additional_properties': {'key': '', 'type': '{object}'},
'type': {'key': 'type', 'type': 'str'},
'skip_line_count': {'key': 'skipLineCount', 'type': 'object'},
'treat_empty_as_null': {'key': 'treatEmptyAsNull', 'type': 'bool'},
}

def __init__(self, *, type: str, additional_properties=None, skip_line_count=None, treat_empty_as_null: bool=None, **kwargs) -> None:
def __init__(self, *, type: str, additional_properties=None, skip_line_count=None, **kwargs) -> None:
super(DelimitedTextReadSetting, self).__init__(additional_properties=additional_properties, type=type, **kwargs)
self.skip_line_count = skip_line_count
self.treat_empty_as_null = treat_empty_as_null