InstanceConfiguration¶
- class oci.data_science.models.InstanceConfiguration(**kwargs)¶
Bases:
objectThe model deployment instance configuration.
Attributes:
A constant which can be used with the network_access_type property of a InstanceConfiguration.
A constant which can be used with the network_access_type property of a InstanceConfiguration.
A constant which can be used with the network_access_type property of a InstanceConfiguration.
Gets the capacity_reservation_ids of this InstanceConfiguration.
[Required] Gets the instance_shape_name of this InstanceConfiguration.
Gets the model_deployment_instance_shape_config_details of this InstanceConfiguration.
Gets the network_access_type of this InstanceConfiguration.
Gets the private_endpoint_id of this InstanceConfiguration.
Gets 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’.
capacity_reservation_ids (list[str]) – The value to assign to the capacity_reservation_ids property of this InstanceConfiguration.
- property capacity_reservation_ids¶
Gets the capacity_reservation_ids of this InstanceConfiguration. This specifies the list of OCID of the customer-managed capacity reservation to be used for launching model deployment instances.
- Returns
The capacity_reservation_ids of this InstanceConfiguration.
- Return type
list[str]
- property 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
- property 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
- property 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
- property 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
- property 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