InstanceConfiguration¶
-
class
oci.data_science.models.InstanceConfiguration(**kwargs)¶ Bases:
objectThe model deployment instance configuration.
Attributes
NETWORK_ACCESS_TYPE_CUSTOM_NETWORKINGA constant which can be used with the network_access_type property of a InstanceConfiguration. NETWORK_ACCESS_TYPE_MANAGED_NETWORKING_INTERNET_ACCESSA constant which can be used with the network_access_type property of a InstanceConfiguration. NETWORK_ACCESS_TYPE_MANAGED_NETWORKING_NO_INTERNET_ACCESSA constant which can be used with the network_access_type property of a InstanceConfiguration. instance_shape_name[Required] Gets the instance_shape_name of this InstanceConfiguration. model_deployment_instance_shape_config_detailsGets the model_deployment_instance_shape_config_details of this InstanceConfiguration. network_access_typeGets the network_access_type of this InstanceConfiguration. private_endpoint_idGets the private_endpoint_id of this InstanceConfiguration. subnet_idGets the subnet_id of this InstanceConfiguration. Methods
__init__(**kwargs)Initializes a new InstanceConfiguration object with values from keyword arguments. -
NETWORK_ACCESS_TYPE_CUSTOM_NETWORKING= 'CUSTOM_NETWORKING'¶ A constant which can be used with the network_access_type property of a InstanceConfiguration. This constant has a value of “CUSTOM_NETWORKING”
-
NETWORK_ACCESS_TYPE_MANAGED_NETWORKING_INTERNET_ACCESS= 'MANAGED_NETWORKING_INTERNET_ACCESS'¶ A constant which can be used with the network_access_type property of a InstanceConfiguration. This constant has a value of “MANAGED_NETWORKING_INTERNET_ACCESS”
-
NETWORK_ACCESS_TYPE_MANAGED_NETWORKING_NO_INTERNET_ACCESS= 'MANAGED_NETWORKING_NO_INTERNET_ACCESS'¶ A constant which can be used with the network_access_type property of a InstanceConfiguration. This constant has a value of “MANAGED_NETWORKING_NO_INTERNET_ACCESS”
-
__init__(**kwargs)¶ Initializes a new InstanceConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - instance_shape_name (str) – The value to assign to the instance_shape_name property of this InstanceConfiguration.
- model_deployment_instance_shape_config_details (oci.data_science.models.ModelDeploymentInstanceShapeConfigDetails) – The value to assign to the model_deployment_instance_shape_config_details property of this InstanceConfiguration.
- subnet_id (str) – The value to assign to the subnet_id property of this InstanceConfiguration.
- private_endpoint_id (str) – The value to assign to the private_endpoint_id property of this InstanceConfiguration.
- network_access_type (str) – The value to assign to the network_access_type property of this InstanceConfiguration. Allowed values for this property are: “MANAGED_NETWORKING_NO_INTERNET_ACCESS”, “MANAGED_NETWORKING_INTERNET_ACCESS”, “CUSTOM_NETWORKING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
instance_shape_name¶ [Required] Gets the instance_shape_name of this InstanceConfiguration. The shape used to launch the model deployment instances. When using service managed open source foundation model, the supported shapes can be retrieved using get model api /models/{modelId}/definedMetadata/deploymentConfiguration/artifact/content.
Returns: The instance_shape_name of this InstanceConfiguration. Return type: str
-
model_deployment_instance_shape_config_details¶ Gets the model_deployment_instance_shape_config_details of this InstanceConfiguration.
Returns: The model_deployment_instance_shape_config_details of this InstanceConfiguration. Return type: oci.data_science.models.ModelDeploymentInstanceShapeConfigDetails
-
network_access_type¶ Gets the network_access_type of this InstanceConfiguration. Network Access type of model deployment.
Allowed values for this property are: “MANAGED_NETWORKING_NO_INTERNET_ACCESS”, “MANAGED_NETWORKING_INTERNET_ACCESS”, “CUSTOM_NETWORKING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The network_access_type of this InstanceConfiguration. Return type: str
-
private_endpoint_id¶ Gets the private_endpoint_id of this InstanceConfiguration. The OCID of a Data Science private endpoint.
Returns: The private_endpoint_id of this InstanceConfiguration. Return type: str
-
subnet_id¶ Gets the subnet_id of this InstanceConfiguration. A model deployment instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT/SGW gateway for egress.
Returns: The subnet_id of this InstanceConfiguration. Return type: str
-