AttachVnicDetails¶
-
class
oci.core.models.
AttachVnicDetails
(**kwargs)¶ Bases:
object
AttachVnicDetails model.
Methods
__init__
(**kwargs)Initializes a new AttachVnicDetails object with values from keyword arguments. Attributes
create_vnic_details
[Required] Gets the create_vnic_details of this AttachVnicDetails. display_name
Gets the display_name of this AttachVnicDetails. instance_id
[Required] Gets the instance_id of this AttachVnicDetails. nic_index
Gets the nic_index of this AttachVnicDetails. -
__init__
(**kwargs)¶ Initializes a new AttachVnicDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - create_vnic_details (oci.core.models.CreateVnicDetails) – The value to assign to the create_vnic_details property of this AttachVnicDetails.
- display_name (str) – The value to assign to the display_name property of this AttachVnicDetails.
- instance_id (str) – The value to assign to the instance_id property of this AttachVnicDetails.
- nic_index (int) – The value to assign to the nic_index property of this AttachVnicDetails.
-
create_vnic_details
¶ [Required] Gets the create_vnic_details of this AttachVnicDetails.
Returns: The create_vnic_details of this AttachVnicDetails. Return type: oci.core.models.CreateVnicDetails
-
display_name
¶ Gets the display_name of this AttachVnicDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Returns: The display_name of this AttachVnicDetails. Return type: str
-
instance_id
¶ [Required] Gets the instance_id of this AttachVnicDetails. The OCID of the instance.
Returns: The instance_id of this AttachVnicDetails. Return type: str
-
nic_index
¶ Gets the nic_index of this AttachVnicDetails. Which physical network interface card (NIC) the VNIC will use. Defaults to 0. Certain bare metal instance shapes have two active physical NICs (0 and 1). If you add a secondary VNIC to one of these instances, you can specify which NIC the VNIC will use. For more information, see Virtual Network Interface Cards (VNICs).
Returns: The nic_index of this AttachVnicDetails. Return type: int
-