ModelDeployWorkloadConfigurationDetails¶
-
class
oci.data_science.models.
ModelDeployWorkloadConfigurationDetails
(**kwargs)¶ Bases:
oci.data_science.models.workload_configuration_details.WorkloadConfigurationDetails
The model deployment workload configuration.
Attributes
WORKLOAD_TYPE_JOB_RUN
str(object=’’) -> str WORKLOAD_TYPE_MODEL_DEPLOYMENT
str(object=’’) -> str additional_configurations
Gets the additional_configurations of this ModelDeployWorkloadConfigurationDetails. cmd
[Required] Gets the cmd of this ModelDeployWorkloadConfigurationDetails. health_check_port
[Required] Gets the health_check_port of this ModelDeployWorkloadConfigurationDetails. server_port
[Required] Gets the server_port of this ModelDeployWorkloadConfigurationDetails. workload_type
[Required] Gets the workload_type of this WorkloadConfigurationDetails. Methods
__init__
(**kwargs)Initializes a new ModelDeployWorkloadConfigurationDetails object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
WORKLOAD_TYPE_JOB_RUN
= 'JOB_RUN'¶
-
WORKLOAD_TYPE_MODEL_DEPLOYMENT
= 'MODEL_DEPLOYMENT'¶
-
__init__
(**kwargs)¶ Initializes a new ModelDeployWorkloadConfigurationDetails object with values from keyword arguments. The default value of the
workload_type
attribute of this class isMODEL_DEPLOYMENT
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - workload_type (str) – The value to assign to the workload_type property of this ModelDeployWorkloadConfigurationDetails. Allowed values for this property are: “MODEL_DEPLOYMENT”, “JOB_RUN”
- cmd (str) – The value to assign to the cmd property of this ModelDeployWorkloadConfigurationDetails.
- server_port (int) – The value to assign to the server_port property of this ModelDeployWorkloadConfigurationDetails.
- health_check_port (int) – The value to assign to the health_check_port property of this ModelDeployWorkloadConfigurationDetails.
- additional_configurations (dict(str, str)) – The value to assign to the additional_configurations property of this ModelDeployWorkloadConfigurationDetails.
-
additional_configurations
¶ Gets the additional_configurations of this ModelDeployWorkloadConfigurationDetails. The additional configurations
Returns: The additional_configurations of this ModelDeployWorkloadConfigurationDetails. Return type: dict(str, str)
-
cmd
¶ [Required] Gets the cmd of this ModelDeployWorkloadConfigurationDetails. The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
Returns: The cmd of this ModelDeployWorkloadConfigurationDetails. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
health_check_port
¶ [Required] Gets the health_check_port of this ModelDeployWorkloadConfigurationDetails. The port on which the container HEALTHCHECK would listen. The port can be anything between 1024 and 65535. The following ports cannot be used 24224, 8446, 8447.
Returns: The health_check_port of this ModelDeployWorkloadConfigurationDetails. Return type: int
-
server_port
¶ [Required] Gets the server_port of this ModelDeployWorkloadConfigurationDetails. The port on which the web server serving the inference is running. The port can be anything between 1024 and 65535. The following ports cannot be used 24224, 8446, 8447.
Returns: The server_port of this ModelDeployWorkloadConfigurationDetails. Return type: int
-
workload_type
¶ [Required] Gets the workload_type of this WorkloadConfigurationDetails. The workload use case.
Allowed values for this property are: “MODEL_DEPLOYMENT”, “JOB_RUN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The workload_type of this WorkloadConfigurationDetails. Return type: str
-