Struct openstack_sdk::api::compute::v2::server::create_263::OsSchHntSchedulerHintsBuilder
source · pub struct OsSchHntSchedulerHintsBuilder<'a> { /* private fields */ }Expand description
Builder for OsSchHntSchedulerHints.
Implementations§
source§impl<'a> OsSchHntSchedulerHintsBuilder<'a>
impl<'a> OsSchHntSchedulerHintsBuilder<'a>
sourcepub fn group<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn group<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The server group UUID. Schedule the server according to a policy of the
server group (anti-affinity, affinity, soft-anti-affinity or
soft-affinity). It is available when ServerGroupAffinityFilter,
ServerGroupAntiAffinityFilter, ServerGroupSoftAntiAffinityWeigher,
ServerGroupSoftAffinityWeigher are available on cloud side.
sourcepub fn different_host<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn different_host<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
A list of server UUIDs or a server UUID. Schedule the server on a
different host from a set of servers. It is available when
DifferentHostFilter is available on cloud side.
sourcepub fn same_host<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn same_host<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
A list of server UUIDs or a server UUID. Schedule the server on the
same host as another server in a set of servers. It is available when
SameHostFilter is available on cloud side.
sourcepub fn query<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn query<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
Schedule the server by using a custom filter in JSON format. For example:
"query": "[\">=\",\"$free_ram_mb\",1024]"
It is available when JsonFilter is available on cloud side.
sourcepub fn target_cell<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn target_cell<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
A target cell name. Schedule the server in a host in the cell
specified. It is available when TargetCellFilter is available on
cloud side that is cell v1 environment.
sourcepub fn different_cell<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn different_cell<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE ) -> &mut Self
A list of cell routes or a cell route (string). Schedule the server in
a cell that is not specified. It is available when
DifferentCellFilter is available on cloud side that is cell v1
environment.
sourcepub fn build_near_host_ip<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn build_near_host_ip<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
Schedule the server on a host in the network specified with this
parameter and a cidr (os:scheduler_hints.cidr). It is available when
SimpleCIDRAffinityFilter is available on cloud side.
sourcepub fn cidr<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn cidr<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Schedule the server on a host in the network specified with an IP
address (os:scheduler_hints:build_near_host_ip) and this parameter.
If os:scheduler_hints:build_near_host_ip is specified and this
parameter is omitted, /24 is used. It is available when
SimpleCIDRAffinityFilter is available on cloud side.
sourcepub fn build(
&self
) -> Result<OsSchHntSchedulerHints<'a>, OsSchHntSchedulerHintsBuilderError>
pub fn build( &self ) -> Result<OsSchHntSchedulerHints<'a>, OsSchHntSchedulerHintsBuilderError>
Trait Implementations§
source§impl<'a> Clone for OsSchHntSchedulerHintsBuilder<'a>
impl<'a> Clone for OsSchHntSchedulerHintsBuilder<'a>
source§fn clone(&self) -> OsSchHntSchedulerHintsBuilder<'a>
fn clone(&self) -> OsSchHntSchedulerHintsBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more