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 @@ -48,6 +48,10 @@ class JobInnerError(Model):
:vartype source: str
:ivar description: the error message description
:vartype description: str
:ivar inner_error: the inner error of this specific job error message, if
any.
:vartype inner_error: :class:`JobInnerError
<azure.mgmt.datalake.analytics.job.models.JobInnerError>`
"""

_validation = {
Expand All @@ -62,6 +66,7 @@ class JobInnerError(Model):
'resolution': {'readonly': True},
'source': {'readonly': True},
'description': {'readonly': True},
'inner_error': {'readonly': True},
}

_attribute_map = {
Expand All @@ -76,6 +81,7 @@ class JobInnerError(Model):
'resolution': {'key': 'resolution', 'type': 'str'},
'source': {'key': 'source', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'inner_error': {'key': 'innerError', 'type': 'JobInnerError'},
}

def __init__(self):
Expand All @@ -90,3 +96,4 @@ def __init__(self):
self.resolution = None
self.source = None
self.description = None
self.inner_error = None
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class USqlJobProperties(JobProperties):
:ivar resources: the list of resources that are required by the job
:vartype resources: list of :class:`JobResource
<azure.mgmt.datalake.analytics.job.models.JobResource>`
:ivar statistics: the job specific statistics.
:vartype statistics: :class:`JobStatistics
:param statistics: the job specific statistics.
:type statistics: :class:`JobStatistics
<azure.mgmt.datalake.analytics.job.models.JobStatistics>`
:ivar debug_data: the job specific debug data locations.
:vartype debug_data: :class:`JobDataPath
:param debug_data: the job specific debug data locations.
:type debug_data: :class:`JobDataPath
<azure.mgmt.datalake.analytics.job.models.JobDataPath>`
:ivar diagnostics: the diagnostics for the job.
:vartype diagnostics: list of :class:`Diagnostics
Expand Down Expand Up @@ -75,8 +75,6 @@ class USqlJobProperties(JobProperties):
'script': {'required': True},
'type': {'required': True},
'resources': {'readonly': True},
'statistics': {'readonly': True},
'debug_data': {'readonly': True},
'diagnostics': {'readonly': True},
'algebra_file_path': {'readonly': True},
'total_compilation_time': {'readonly': True},
Expand Down Expand Up @@ -108,11 +106,11 @@ class USqlJobProperties(JobProperties):
'compile_mode': {'key': 'compileMode', 'type': 'CompileMode'},
}

def __init__(self, script, runtime_version=None):
def __init__(self, script, runtime_version=None, statistics=None, debug_data=None):
super(USqlJobProperties, self).__init__(runtime_version=runtime_version, script=script)
self.resources = None
self.statistics = None
self.debug_data = None
self.statistics = statistics
self.debug_data = debug_data
self.diagnostics = None
self.algebra_file_path = None
self.total_compilation_time = None
Expand Down