Skip to content

Commit

Permalink
Generated from af2b72334f7829e4d9c19f0fe66a255e74af10e6
Browse files Browse the repository at this point in the history
Merge pull request #5 from hosunmsft/add_hq_node_to_adla_job_contract

add hierarchyQueueNode to JobInformation(Basic)
  • Loading branch information
AutorestCI committed Sep 18, 2018
1 parent 8223d70 commit ec1dd38
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class JobInformation(JobInformationBasic):
:param tags: The key-value pairs used to add additional metadata to the
job information. (Only for use internally with Scope job type.)
:type tags: dict[str, str]
:ivar hierarchy_queue_node: the name of hierarchy queue node this job is
assigned to, null if job has not been assigned yet or the account doesn't
have hierarchy queue.
:vartype hierarchy_queue_node: str
:ivar error_message: The error message details for the job, if the job
failed.
:vartype error_message:
Expand All @@ -94,6 +98,7 @@ class JobInformation(JobInformationBasic):
'state': {'readonly': True},
'result': {'readonly': True},
'log_folder': {'readonly': True},
'hierarchy_queue_node': {'readonly': True},
'error_message': {'readonly': True},
'state_audit_records': {'readonly': True},
'properties': {'required': True},
Expand All @@ -116,6 +121,7 @@ class JobInformation(JobInformationBasic):
'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'},
'related': {'key': 'related', 'type': 'JobRelationshipProperties'},
'tags': {'key': 'tags', 'type': '{str}'},
'hierarchy_queue_node': {'key': 'hierarchyQueueNode', 'type': 'str'},
'error_message': {'key': 'errorMessage', 'type': '[JobErrorDetails]'},
'state_audit_records': {'key': 'stateAuditRecords', 'type': '[JobStateAuditRecord]'},
'properties': {'key': 'properties', 'type': 'JobProperties'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class JobInformationBasic(Model):
:param tags: The key-value pairs used to add additional metadata to the
job information. (Only for use internally with Scope job type.)
:type tags: dict[str, str]
:ivar hierarchy_queue_node: the name of hierarchy queue node this job is
assigned to, null if job has not been assigned yet or the account doesn't
have hierarchy queue.
:vartype hierarchy_queue_node: str
"""

_validation = {
Expand All @@ -83,6 +87,7 @@ class JobInformationBasic(Model):
'state': {'readonly': True},
'result': {'readonly': True},
'log_folder': {'readonly': True},
'hierarchy_queue_node': {'readonly': True},
}

_attribute_map = {
Expand All @@ -102,6 +107,7 @@ class JobInformationBasic(Model):
'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'},
'related': {'key': 'related', 'type': 'JobRelationshipProperties'},
'tags': {'key': 'tags', 'type': '{str}'},
'hierarchy_queue_node': {'key': 'hierarchyQueueNode', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -122,3 +128,4 @@ def __init__(self, **kwargs):
self.log_file_patterns = kwargs.get('log_file_patterns', None)
self.related = kwargs.get('related', None)
self.tags = kwargs.get('tags', None)
self.hierarchy_queue_node = None
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ class JobInformationBasic(Model):
:param tags: The key-value pairs used to add additional metadata to the
job information. (Only for use internally with Scope job type.)
:type tags: dict[str, str]
:ivar hierarchy_queue_node: the name of hierarchy queue node this job is
assigned to, null if job has not been assigned yet or the account doesn't
have hierarchy queue.
:vartype hierarchy_queue_node: str
"""

_validation = {
Expand All @@ -83,6 +87,7 @@ class JobInformationBasic(Model):
'state': {'readonly': True},
'result': {'readonly': True},
'log_folder': {'readonly': True},
'hierarchy_queue_node': {'readonly': True},
}

_attribute_map = {
Expand All @@ -102,6 +107,7 @@ class JobInformationBasic(Model):
'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'},
'related': {'key': 'related', 'type': 'JobRelationshipProperties'},
'tags': {'key': 'tags', 'type': '{str}'},
'hierarchy_queue_node': {'key': 'hierarchyQueueNode', 'type': 'str'},
}

def __init__(self, *, name: str, type, degree_of_parallelism: int=1, priority: int=None, log_file_patterns=None, related=None, tags=None, **kwargs) -> None:
Expand All @@ -122,3 +128,4 @@ def __init__(self, *, name: str, type, degree_of_parallelism: int=1, priority: i
self.log_file_patterns = log_file_patterns
self.related = related
self.tags = tags
self.hierarchy_queue_node = None
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class JobInformation(JobInformationBasic):
:param tags: The key-value pairs used to add additional metadata to the
job information. (Only for use internally with Scope job type.)
:type tags: dict[str, str]
:ivar hierarchy_queue_node: the name of hierarchy queue node this job is
assigned to, null if job has not been assigned yet or the account doesn't
have hierarchy queue.
:vartype hierarchy_queue_node: str
:ivar error_message: The error message details for the job, if the job
failed.
:vartype error_message:
Expand All @@ -94,6 +98,7 @@ class JobInformation(JobInformationBasic):
'state': {'readonly': True},
'result': {'readonly': True},
'log_folder': {'readonly': True},
'hierarchy_queue_node': {'readonly': True},
'error_message': {'readonly': True},
'state_audit_records': {'readonly': True},
'properties': {'required': True},
Expand All @@ -116,6 +121,7 @@ class JobInformation(JobInformationBasic):
'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'},
'related': {'key': 'related', 'type': 'JobRelationshipProperties'},
'tags': {'key': 'tags', 'type': '{str}'},
'hierarchy_queue_node': {'key': 'hierarchyQueueNode', 'type': 'str'},
'error_message': {'key': 'errorMessage', 'type': '[JobErrorDetails]'},
'state_audit_records': {'key': 'stateAuditRecords', 'type': '[JobStateAuditRecord]'},
'properties': {'key': 'properties', 'type': 'JobProperties'},
Expand Down

0 comments on commit ec1dd38

Please sign in to comment.