# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .base_job_parameters_py3 import BaseJobParameters
[docs]class CreateJobParameters(BaseJobParameters):
"""The parameters used to submit a new Data Lake Analytics job.
All required parameters must be populated in order to send to Azure.
:param type: Required. The job type of the current job (Hive, USql, or
Scope (for internal use only)). Possible values include: 'USql', 'Hive',
'Scope'
:type type: str or ~azure.mgmt.datalake.analytics.job.models.JobType
:param properties: Required. The job specific properties.
:type properties:
~azure.mgmt.datalake.analytics.job.models.CreateJobProperties
:param name: Required. The friendly name of the job to submit.
:type name: str
:param degree_of_parallelism: The degree of parallelism to use for this
job. This must be greater than 0, if set to less than 0 it will default to
1. Default value: 1 .
:type degree_of_parallelism: int
:param priority: The priority value to use for the current job. Lower
numbers have a higher priority. By default, a job has a priority of 1000.
This must be greater than 0.
:type priority: int
:param log_file_patterns: The list of log file name patterns to find in
the logFolder. '*' is the only matching character allowed. Example format:
jobExecution*.log or *mylog*.txt
:type log_file_patterns: list[str]
:param related: The recurring job relationship information properties.
:type related:
~azure.mgmt.datalake.analytics.job.models.JobRelationshipProperties
"""
_validation = {
'type': {'required': True},
'properties': {'required': True},
'name': {'required': True},
}
_attribute_map = {
'type': {'key': 'type', 'type': 'JobType'},
'properties': {'key': 'properties', 'type': 'CreateJobProperties'},
'name': {'key': 'name', 'type': 'str'},
'degree_of_parallelism': {'key': 'degreeOfParallelism', 'type': 'int'},
'priority': {'key': 'priority', 'type': 'int'},
'log_file_patterns': {'key': 'logFilePatterns', 'type': '[str]'},
'related': {'key': 'related', 'type': 'JobRelationshipProperties'},
}
def __init__(self, *, type, properties, name: str, degree_of_parallelism: int=1, priority: int=None, log_file_patterns=None, related=None, **kwargs) -> None:
super(CreateJobParameters, self).__init__(type=type, properties=properties, **kwargs)
self.name = name
self.degree_of_parallelism = degree_of_parallelism
self.priority = priority
self.log_file_patterns = log_file_patterns
self.related = related