Shape

class oci.core.models.Shape(**kwargs)

Bases: object

A compute instance shape that can be used in launch_instance(). For more information, see Overview of the Compute Service.

Methods

__init__(**kwargs) Initializes a new Shape object with values from keyword arguments.

Attributes

gpu_description Gets the gpu_description of this Shape.
gpus Gets the gpus of this Shape.
local_disk_description Gets the local_disk_description of this Shape.
local_disks Gets the local_disks of this Shape.
local_disks_total_size_in_gbs Gets the local_disks_total_size_in_gbs of this Shape.
max_vnic_attachment_options Gets the max_vnic_attachment_options of this Shape.
max_vnic_attachments Gets the max_vnic_attachments of this Shape.
memory_in_gbs Gets the memory_in_gbs of this Shape.
memory_options Gets the memory_options of this Shape.
networking_bandwidth_in_gbps Gets the networking_bandwidth_in_gbps of this Shape.
networking_bandwidth_options Gets the networking_bandwidth_options of this Shape.
ocpu_options Gets the ocpu_options of this Shape.
ocpus Gets the ocpus of this Shape.
processor_description Gets the processor_description of this Shape.
shape [Required] Gets the shape of this Shape.
__init__(**kwargs)

Initializes a new Shape object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • shape (str) – The value to assign to the shape property of this Shape.
  • processor_description (str) – The value to assign to the processor_description property of this Shape.
  • ocpus (float) – The value to assign to the ocpus property of this Shape.
  • memory_in_gbs (float) – The value to assign to the memory_in_gbs property of this Shape.
  • networking_bandwidth_in_gbps (float) – The value to assign to the networking_bandwidth_in_gbps property of this Shape.
  • max_vnic_attachments (int) – The value to assign to the max_vnic_attachments property of this Shape.
  • gpus (int) – The value to assign to the gpus property of this Shape.
  • gpu_description (str) – The value to assign to the gpu_description property of this Shape.
  • local_disks (int) – The value to assign to the local_disks property of this Shape.
  • local_disks_total_size_in_gbs (float) – The value to assign to the local_disks_total_size_in_gbs property of this Shape.
  • local_disk_description (str) – The value to assign to the local_disk_description property of this Shape.
  • ocpu_options (ShapeOcpuOptions) – The value to assign to the ocpu_options property of this Shape.
  • memory_options (ShapeMemoryOptions) – The value to assign to the memory_options property of this Shape.
  • networking_bandwidth_options (ShapeNetworkingBandwidthOptions) – The value to assign to the networking_bandwidth_options property of this Shape.
  • max_vnic_attachment_options (ShapeMaxVnicAttachmentOptions) – The value to assign to the max_vnic_attachment_options property of this Shape.
gpu_description

Gets the gpu_description of this Shape. A short description of the GPUs available to instances of this shape. This field is null if gpus is 0.

Returns:The gpu_description of this Shape.
Return type:str
gpus

Gets the gpus of this Shape. The number of GPUs available to an instance of this shape.

Returns:The gpus of this Shape.
Return type:int
local_disk_description

Gets the local_disk_description of this Shape. A short description of the local disks available to instances of this shape. This field is null if localDisks is equal to 0.

Returns:The local_disk_description of this Shape.
Return type:str
local_disks

Gets the local_disks of this Shape. The number of local disks available to the instance.

Returns:The local_disks of this Shape.
Return type:int
local_disks_total_size_in_gbs

Gets the local_disks_total_size_in_gbs of this Shape. The size of the local disks, aggregated, in gigabytes. This field is null if localDisks is equal to 0.

Returns:The local_disks_total_size_in_gbs of this Shape.
Return type:float
max_vnic_attachment_options

Gets the max_vnic_attachment_options of this Shape.

Returns:The max_vnic_attachment_options of this Shape.
Return type:ShapeMaxVnicAttachmentOptions
max_vnic_attachments

Gets the max_vnic_attachments of this Shape. The maximum number of VNIC attachments available to an instance of this shape.

Returns:The max_vnic_attachments of this Shape.
Return type:int
memory_in_gbs

Gets the memory_in_gbs of this Shape. The default amount of memory, in gigabytes, available to an instance of this shape.

Returns:The memory_in_gbs of this Shape.
Return type:float
memory_options

Gets the memory_options of this Shape.

Returns:The memory_options of this Shape.
Return type:ShapeMemoryOptions
networking_bandwidth_in_gbps

Gets the networking_bandwidth_in_gbps of this Shape. The networking bandwidth, in gigabits per second, available to an instance of this shape.

Returns:The networking_bandwidth_in_gbps of this Shape.
Return type:float
networking_bandwidth_options

Gets the networking_bandwidth_options of this Shape.

Returns:The networking_bandwidth_options of this Shape.
Return type:ShapeNetworkingBandwidthOptions
ocpu_options

Gets the ocpu_options of this Shape.

Returns:The ocpu_options of this Shape.
Return type:ShapeOcpuOptions
ocpus

Gets the ocpus of this Shape. The default number of OCPUs available to an instance of this shape.

Returns:The ocpus of this Shape.
Return type:float
processor_description

Gets the processor_description of this Shape. A short description of the processors available to an instance of this shape.

Returns:The processor_description of this Shape.
Return type:str
shape

[Required] Gets the shape of this Shape. The name of the shape. You can enumerate all available shapes by calling list_shapes().

Returns:The shape of this Shape.
Return type:str