pub struct ScalewayListInstanceBuilder { /* private fields */ }
Implementations§
Source§impl ScalewayListInstanceBuilder
impl ScalewayListInstanceBuilder
pub fn new(api: ScalewayApi, zone: &str) -> Self
Sourcepub fn per_page(self, count: u32) -> ScalewayListInstanceBuilder
pub fn per_page(self, count: u32) -> ScalewayListInstanceBuilder
A positive integer lower or equal to 100 to select the number of items to return.
Sourcepub fn page(self, count: u32) -> ScalewayListInstanceBuilder
pub fn page(self, count: u32) -> ScalewayListInstanceBuilder
A positive integer to choose the page to return.
Sourcepub fn organization(self, organization: &str) -> ScalewayListInstanceBuilder
pub fn organization(self, organization: &str) -> ScalewayListInstanceBuilder
List only Instances of this Organization ID.
Sourcepub fn project(self, project: &str) -> ScalewayListInstanceBuilder
pub fn project(self, project: &str) -> ScalewayListInstanceBuilder
List only Instances of this Project ID.
Sourcepub fn name(self, name: &str) -> ScalewayListInstanceBuilder
pub fn name(self, name: &str) -> ScalewayListInstanceBuilder
Filter Instances by name (eg. “server1” will return “server100” and “server1” but not “foo”).
Sourcepub fn private_ip(self, private_ip: &str) -> ScalewayListInstanceBuilder
pub fn private_ip(self, private_ip: &str) -> ScalewayListInstanceBuilder
List Instances by private_ip. (IP address)
Sourcepub fn without_ip(self, without_ip: bool) -> ScalewayListInstanceBuilder
pub fn without_ip(self, without_ip: bool) -> ScalewayListInstanceBuilder
List Instances that are not attached to a public IP.
Sourcepub fn commercial_type(
self,
commercial_type: &str,
) -> ScalewayListInstanceBuilder
pub fn commercial_type( self, commercial_type: &str, ) -> ScalewayListInstanceBuilder
List Instances of this commercial type.
Sourcepub fn state(self, state: &str) -> ScalewayListInstanceBuilder
pub fn state(self, state: &str) -> ScalewayListInstanceBuilder
List Instances in this state.
List Instances with these exact tags (to filter with several tags, use commas to separate them).
Sourcepub fn private_network(
self,
private_network: &str,
) -> ScalewayListInstanceBuilder
pub fn private_network( self, private_network: &str, ) -> ScalewayListInstanceBuilder
List Instances in this Private Network.
Sourcepub fn order(self, order: &str) -> ScalewayListInstanceBuilder
pub fn order(self, order: &str) -> ScalewayListInstanceBuilder
Define the order of the returned servers. Default: creation_date_desc Possible values: creation_date_desc, creation_date_asc, modification_date_desc, modification_date_asc
Sourcepub fn private_networks(
self,
private_networks: &str,
) -> ScalewayListInstanceBuilder
pub fn private_networks( self, private_networks: &str, ) -> ScalewayListInstanceBuilder
List Instances from the given Private Networks (use commas to separate them).
Sourcepub fn private_nic_mac_address(
self,
private_nic_mac_address: &str,
) -> ScalewayListInstanceBuilder
pub fn private_nic_mac_address( self, private_nic_mac_address: &str, ) -> ScalewayListInstanceBuilder
List Instances associated with the given private NIC MAC address.
Sourcepub fn servers(self, servers: &str) -> ScalewayListInstanceBuilder
pub fn servers(self, servers: &str) -> ScalewayListInstanceBuilder
List Instances from these server ids (use commas to separate them).