NodeSourceViaImageDetails¶
- class oci.container_engine.models.NodeSourceViaImageDetails(**kwargs)¶
Bases:
NodeSourceDetailsDetails of the image running on the node.
Attributes:
A constant which can be used with the source_type property of a NodeSourceDetails.
Gets the boot_volume_size_in_gbs of this NodeSourceViaImageDetails.
[Required] Gets the image_id of this NodeSourceViaImageDetails.
[Required] Gets the source_type of this NodeSourceDetails.
Methods:
__init__(**kwargs)Initializes a new NodeSourceViaImageDetails 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.
- SOURCE_TYPE_IMAGE = 'IMAGE'¶
A constant which can be used with the source_type property of a NodeSourceDetails. This constant has a value of “IMAGE”
- __init__(**kwargs)¶
Initializes a new NodeSourceViaImageDetails object with values from keyword arguments. The default value of the
source_typeattribute of this class isIMAGEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
source_type (str) – The value to assign to the source_type property of this NodeSourceViaImageDetails. Allowed values for this property are: “IMAGE”
image_id (str) – The value to assign to the image_id property of this NodeSourceViaImageDetails.
boot_volume_size_in_gbs (int) – The value to assign to the boot_volume_size_in_gbs property of this NodeSourceViaImageDetails.
- property boot_volume_size_in_gbs¶
Gets the boot_volume_size_in_gbs of this NodeSourceViaImageDetails. The size of the boot volume in GBs. Minimum value is 50 GB. See here for max custom boot volume sizing and OS-specific requirements.
- Returns
The boot_volume_size_in_gbs of this NodeSourceViaImageDetails.
- Return type
int
- 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 image_id¶
[Required] Gets the image_id of this NodeSourceViaImageDetails. The OCID of the image used to boot the node.
- Returns
The image_id of this NodeSourceViaImageDetails.
- Return type
str
- property source_type¶
[Required] Gets the source_type of this NodeSourceDetails. The source type for the node. Use IMAGE when specifying an OCID of an image.
Allowed values for this property are: “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The source_type of this NodeSourceDetails.
- Return type
str