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 and Compute Shapes.

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 graphics processing unit (GPU) available for this shape.

If the shape does not have any GPUs, this field is null.

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

Gets the gpus of this Shape. The number of GPUs available for 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 for this shape.

If the shape does not have any local disks, this field is null.

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 for this shape.

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 aggregate size of the local disks available for this shape, in gigabytes.

If the shape does not have any local disks, this field is null.

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 for 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 available for this shape, in gigabytes.

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 available for this shape, in gigabits per second.

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 for 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 shape’s processor (CPU).

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