Skip to main content

Shape

Struct Shape 

Source
pub struct Shape {
Show 29 fields pub shape: String, pub baseline_ocpu_utilizations: Option<Vec<ShapeBaselineOcpuUtilizations>>, pub min_total_baseline_ocpus_required: Option<i64>, pub processor_description: Option<String>, pub ocpus: Option<i64>, pub memory_in_gbs: Option<i64>, pub network_ports: Option<i64>, pub networking_bandwidth_in_gbps: Option<i64>, pub max_vnic_attachments: Option<i64>, pub gpus: Option<i64>, pub gpu_description: Option<String>, pub local_disks: Option<i64>, pub local_disks_total_size_in_gbs: Option<i64>, pub local_disk_description: Option<String>, pub rdma_ports: Option<i64>, pub rdma_bandwidth_in_gbps: Option<i64>, pub is_live_migration_supported: Option<bool>, pub ocpu_options: Option<ShapeOcpuOptions>, pub memory_options: Option<ShapeMemoryOptions>, pub networking_bandwidth_options: Option<ShapeNetworkingBandwidthOptions>, pub max_vnic_attachment_options: Option<ShapeMaxVnicAttachmentOptions>, pub platform_config_options: Option<ShapePlatformConfigOptions>, pub is_billed_for_stopped_instance: Option<bool>, pub billing_type: Option<ShapeBillingType>, pub quota_names: Option<Vec<String>>, pub is_subcore: Option<bool>, pub is_flexible: Option<bool>, pub resize_compatible_shapes: Option<Vec<String>>, pub recommended_alternatives: Option<Vec<ShapeAlternativeObject>>,
}
Expand description

A compute instance shape that can be used in {@link #launchInstance(LaunchInstanceRequest) launchInstance}. For more information, see Overview of the Compute Service and Compute Shapes.

Fields§

§shape: String

The name of the shape. You can enumerate all available shapes by calling {@link #listShapes(ListShapesRequest) listShapes}.

§baseline_ocpu_utilizations: Option<Vec<ShapeBaselineOcpuUtilizations>>

For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.

§min_total_baseline_ocpus_required: Option<i64>

For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§processor_description: Option<String>

A short description of the shape’s processor (CPU).

§ocpus: Option<i64>

The default number of OCPUs available for this shape. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§memory_in_gbs: Option<i64>

The default amount of memory available for this shape, in gigabytes. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§network_ports: Option<i64>

The number of physical network interface card (NIC) ports available for this shape. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§networking_bandwidth_in_gbps: Option<i64>

The networking bandwidth available for this shape, in gigabits per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§max_vnic_attachments: Option<i64>

The maximum number of VNIC attachments available for this shape. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§gpus: Option<i64>

The number of GPUs available for this shape. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§gpu_description: Option<String>

A short description of the graphics processing unit (GPU) available for this shape.

If the shape does not have any GPUs, this field is {@code null}.

§local_disks: Option<i64>

The number of local disks available for this shape. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§local_disks_total_size_in_gbs: Option<i64>

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 {@code null}. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§local_disk_description: Option<String>

A short description of the local disks available for this shape.

If the shape does not have any local disks, this field is {@code null}.

§rdma_ports: Option<i64>

The number of networking ports available for the remote direct memory access (RDMA) network between nodes in a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this value is {@code 0}. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§rdma_bandwidth_in_gbps: Option<i64>

The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in gigabits per second. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

§is_live_migration_supported: Option<bool>

Whether live migration is supported for this shape.

§ocpu_options: Option<ShapeOcpuOptions>§memory_options: Option<ShapeMemoryOptions>§networking_bandwidth_options: Option<ShapeNetworkingBandwidthOptions>§max_vnic_attachment_options: Option<ShapeMaxVnicAttachmentOptions>§platform_config_options: Option<ShapePlatformConfigOptions>§is_billed_for_stopped_instance: Option<bool>

Whether billing continues when the instances that use this shape are in the stopped state.

§billing_type: Option<ShapeBillingType>

How instances that use this shape are charged.

§quota_names: Option<Vec<String>>

The list of of compartment quotas for the shape.

§is_subcore: Option<bool>

Whether the shape supports creating subcore or burstable instances. A burstable instance is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional spikes in usage.

§is_flexible: Option<bool>

Whether the shape supports creating flexible instances. A flexible shape is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance.

§resize_compatible_shapes: Option<Vec<String>>

The list of compatible shapes that this shape can be changed to. For more information, see Changing the Shape of an Instance.

§recommended_alternatives: Option<Vec<ShapeAlternativeObject>>

The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape.

Implementations§

Source§

impl Shape

Source

pub fn new(required: ShapeRequired) -> Self

Create a new Shape with required fields

Source

pub fn set_baseline_ocpu_utilizations( self, value: Option<Vec<ShapeBaselineOcpuUtilizations>>, ) -> Self

Set baseline_ocpu_utilizations

Source

pub fn set_min_total_baseline_ocpus_required(self, value: Option<i64>) -> Self

Set min_total_baseline_ocpus_required

Source

pub fn set_shape(self, value: String) -> Self

Set shape

Source

pub fn set_processor_description(self, value: Option<String>) -> Self

Set processor_description

Source

pub fn set_ocpus(self, value: Option<i64>) -> Self

Set ocpus

Source

pub fn set_memory_in_gbs(self, value: Option<i64>) -> Self

Set memory_in_gbs

Source

pub fn set_network_ports(self, value: Option<i64>) -> Self

Set network_ports

Source

pub fn set_networking_bandwidth_in_gbps(self, value: Option<i64>) -> Self

Set networking_bandwidth_in_gbps

Source

pub fn set_max_vnic_attachments(self, value: Option<i64>) -> Self

Set max_vnic_attachments

Source

pub fn set_gpus(self, value: Option<i64>) -> Self

Set gpus

Source

pub fn set_gpu_description(self, value: Option<String>) -> Self

Set gpu_description

Source

pub fn set_local_disks(self, value: Option<i64>) -> Self

Set local_disks

Source

pub fn set_local_disks_total_size_in_gbs(self, value: Option<i64>) -> Self

Set local_disks_total_size_in_gbs

Source

pub fn set_local_disk_description(self, value: Option<String>) -> Self

Set local_disk_description

Source

pub fn set_rdma_ports(self, value: Option<i64>) -> Self

Set rdma_ports

Source

pub fn set_rdma_bandwidth_in_gbps(self, value: Option<i64>) -> Self

Set rdma_bandwidth_in_gbps

Source

pub fn set_is_live_migration_supported(self, value: Option<bool>) -> Self

Set is_live_migration_supported

Source

pub fn set_ocpu_options(self, value: Option<ShapeOcpuOptions>) -> Self

Set ocpu_options

Source

pub fn set_memory_options(self, value: Option<ShapeMemoryOptions>) -> Self

Set memory_options

Source

pub fn set_networking_bandwidth_options( self, value: Option<ShapeNetworkingBandwidthOptions>, ) -> Self

Set networking_bandwidth_options

Source

pub fn set_max_vnic_attachment_options( self, value: Option<ShapeMaxVnicAttachmentOptions>, ) -> Self

Set max_vnic_attachment_options

Source

pub fn set_platform_config_options( self, value: Option<ShapePlatformConfigOptions>, ) -> Self

Set platform_config_options

Source

pub fn set_is_billed_for_stopped_instance(self, value: Option<bool>) -> Self

Set is_billed_for_stopped_instance

Source

pub fn set_billing_type(self, value: Option<ShapeBillingType>) -> Self

Set billing_type

Source

pub fn set_quota_names(self, value: Option<Vec<String>>) -> Self

Set quota_names

Source

pub fn set_is_subcore(self, value: Option<bool>) -> Self

Set is_subcore

Source

pub fn set_is_flexible(self, value: Option<bool>) -> Self

Set is_flexible

Source

pub fn set_resize_compatible_shapes(self, value: Option<Vec<String>>) -> Self

Set resize_compatible_shapes

Set recommended_alternatives

Source

pub fn with_baseline_ocpu_utilizations( self, value: Vec<ShapeBaselineOcpuUtilizations>, ) -> Self

Set baseline_ocpu_utilizations (unwraps Option)

Source

pub fn with_min_total_baseline_ocpus_required(self, value: i64) -> Self

Set min_total_baseline_ocpus_required (unwraps Option)

Source

pub fn with_processor_description(self, value: impl Into<String>) -> Self

Set processor_description (unwraps Option)

Source

pub fn with_ocpus(self, value: i64) -> Self

Set ocpus (unwraps Option)

Source

pub fn with_memory_in_gbs(self, value: i64) -> Self

Set memory_in_gbs (unwraps Option)

Source

pub fn with_network_ports(self, value: i64) -> Self

Set network_ports (unwraps Option)

Source

pub fn with_networking_bandwidth_in_gbps(self, value: i64) -> Self

Set networking_bandwidth_in_gbps (unwraps Option)

Source

pub fn with_max_vnic_attachments(self, value: i64) -> Self

Set max_vnic_attachments (unwraps Option)

Source

pub fn with_gpus(self, value: i64) -> Self

Set gpus (unwraps Option)

Source

pub fn with_gpu_description(self, value: impl Into<String>) -> Self

Set gpu_description (unwraps Option)

Source

pub fn with_local_disks(self, value: i64) -> Self

Set local_disks (unwraps Option)

Source

pub fn with_local_disks_total_size_in_gbs(self, value: i64) -> Self

Set local_disks_total_size_in_gbs (unwraps Option)

Source

pub fn with_local_disk_description(self, value: impl Into<String>) -> Self

Set local_disk_description (unwraps Option)

Source

pub fn with_rdma_ports(self, value: i64) -> Self

Set rdma_ports (unwraps Option)

Source

pub fn with_rdma_bandwidth_in_gbps(self, value: i64) -> Self

Set rdma_bandwidth_in_gbps (unwraps Option)

Source

pub fn with_is_live_migration_supported(self, value: bool) -> Self

Set is_live_migration_supported (unwraps Option)

Source

pub fn with_ocpu_options(self, value: ShapeOcpuOptions) -> Self

Set ocpu_options (unwraps Option)

Source

pub fn with_memory_options(self, value: ShapeMemoryOptions) -> Self

Set memory_options (unwraps Option)

Source

pub fn with_networking_bandwidth_options( self, value: ShapeNetworkingBandwidthOptions, ) -> Self

Set networking_bandwidth_options (unwraps Option)

Source

pub fn with_max_vnic_attachment_options( self, value: ShapeMaxVnicAttachmentOptions, ) -> Self

Set max_vnic_attachment_options (unwraps Option)

Source

pub fn with_platform_config_options( self, value: ShapePlatformConfigOptions, ) -> Self

Set platform_config_options (unwraps Option)

Source

pub fn with_is_billed_for_stopped_instance(self, value: bool) -> Self

Set is_billed_for_stopped_instance (unwraps Option)

Source

pub fn with_billing_type(self, value: ShapeBillingType) -> Self

Set billing_type (unwraps Option)

Source

pub fn with_quota_names(self, value: Vec<String>) -> Self

Set quota_names (unwraps Option)

Source

pub fn with_is_subcore(self, value: bool) -> Self

Set is_subcore (unwraps Option)

Source

pub fn with_is_flexible(self, value: bool) -> Self

Set is_flexible (unwraps Option)

Source

pub fn with_resize_compatible_shapes(self, value: Vec<String>) -> Self

Set resize_compatible_shapes (unwraps Option)

Set recommended_alternatives (unwraps Option)

Trait Implementations§

Source§

impl Clone for Shape

Source§

fn clone(&self) -> Shape

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Shape

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Shape

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Shape

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Shape

§

impl RefUnwindSafe for Shape

§

impl Send for Shape

§

impl Sync for Shape

§

impl Unpin for Shape

§

impl UnsafeUnpin for Shape

§

impl UnwindSafe for Shape

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,