ModelDeployWorkloadConfigurationDetails¶
- class oci.data_science.models.ModelDeployWorkloadConfigurationDetails(**kwargs)¶
Bases:
WorkloadConfigurationDetailsThe model deployment workload configuration.
Attributes:
A constant which can be used with the workload_type property of a WorkloadConfigurationDetails.
A constant which can be used with the workload_type property of a WorkloadConfigurationDetails.
Gets the additional_configurations of this ModelDeployWorkloadConfigurationDetails.
[Required] Gets the cmd of this ModelDeployWorkloadConfigurationDetails.
[Required] Gets the health_check_port of this ModelDeployWorkloadConfigurationDetails.
[Required] Gets the server_port of this ModelDeployWorkloadConfigurationDetails.
[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'¶
A constant which can be used with the workload_type property of a WorkloadConfigurationDetails. This constant has a value of “JOB_RUN”
- WORKLOAD_TYPE_MODEL_DEPLOYMENT = 'MODEL_DEPLOYMENT'¶
A constant which can be used with the workload_type property of a WorkloadConfigurationDetails. This constant has a value of “MODEL_DEPLOYMENT”
- __init__(**kwargs)¶
Initializes a new ModelDeployWorkloadConfigurationDetails object with values from keyword arguments. The default value of the
workload_typeattribute of this class isMODEL_DEPLOYMENTand 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.
- property additional_configurations¶
Gets the additional_configurations of this ModelDeployWorkloadConfigurationDetails. The additional configurations
- Returns
The additional_configurations of this ModelDeployWorkloadConfigurationDetails.
- Return type
dict(str, str)
- property 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.
- property 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
- property 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
- property 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