1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# 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 msrest.serialization import Model
class Caffe2Settings(Model):
"""Specifies the settings for Caffe2 job.
All required parameters must be populated in order to send to Azure.
:param python_script_file_path: Required. The path and file name of the
python script to execute the job.
:type python_script_file_path: str
:param python_interpreter_path: The path to python interpreter.
:type python_interpreter_path: str
:param command_line_args: Command line arguments that needs to be passed
to the python script.
:type command_line_args: str
"""
_validation = {
'python_script_file_path': {'required': True},
}
_attribute_map = {
'python_script_file_path': {'key': 'pythonScriptFilePath', 'type': 'str'},
'python_interpreter_path': {'key': 'pythonInterpreterPath', 'type': 'str'},
'command_line_args': {'key': 'commandLineArgs', 'type': 'str'},
}
def __init__(self, *, python_script_file_path: str, python_interpreter_path: str=None, command_line_args: str=None, **kwargs) -> None:
super(Caffe2Settings, self).__init__(**kwargs)
self.python_script_file_path = python_script_file_path
self.python_interpreter_path = python_interpreter_path
self.command_line_args = command_line_args
|