1# coding=utf-8 2# -------------------------------------------------------------------------- 3# Copyright (c) Microsoft Corporation. All rights reserved. 4# Licensed under the MIT License. See License.txt in the project root for 5# license information. 6# 7# Code generated by Microsoft (R) AutoRest Code Generator. 8# Changes may cause incorrect behavior and will be lost if the code is 9# regenerated. 10# -------------------------------------------------------------------------- 11 12from .job_properties import JobProperties 13 14 15class HiveJobProperties(JobProperties): 16 """Hive job properties used when retrieving Hive jobs. 17 18 Variables are only populated by the server, and will be ignored when 19 sending a request. 20 21 All required parameters must be populated in order to send to Azure. 22 23 :param runtime_version: The runtime version of the Data Lake Analytics 24 engine to use for the specific type of job being run. 25 :type runtime_version: str 26 :param script: Required. The script to run. Please note that the maximum 27 script size is 3 MB. 28 :type script: str 29 :param type: Required. Constant filled by server. 30 :type type: str 31 :ivar logs_location: The Hive logs location. 32 :vartype logs_location: str 33 :ivar output_location: The location of Hive job output files (both 34 execution output and results). 35 :vartype output_location: str 36 :ivar statement_count: The number of statements that will be run based on 37 the script. 38 :vartype statement_count: int 39 :ivar executed_statement_count: The number of statements that have been 40 run based on the script. 41 :vartype executed_statement_count: int 42 """ 43 44 _validation = { 45 'script': {'required': True}, 46 'type': {'required': True}, 47 'logs_location': {'readonly': True}, 48 'output_location': {'readonly': True}, 49 'statement_count': {'readonly': True}, 50 'executed_statement_count': {'readonly': True}, 51 } 52 53 _attribute_map = { 54 'runtime_version': {'key': 'runtimeVersion', 'type': 'str'}, 55 'script': {'key': 'script', 'type': 'str'}, 56 'type': {'key': 'type', 'type': 'str'}, 57 'logs_location': {'key': 'logsLocation', 'type': 'str'}, 58 'output_location': {'key': 'outputLocation', 'type': 'str'}, 59 'statement_count': {'key': 'statementCount', 'type': 'int'}, 60 'executed_statement_count': {'key': 'executedStatementCount', 'type': 'int'}, 61 } 62 63 def __init__(self, **kwargs): 64 super(HiveJobProperties, self).__init__(**kwargs) 65 self.logs_location = None 66 self.output_location = None 67 self.statement_count = None 68 self.executed_statement_count = None 69 self.type = 'Hive' 70