/// creates a vm under the group `group_name` and returns the associated
/// IpAddr
creates a vm under the group `group_name` and returns the associated
IpAddr
creates a vm under the group ` group_name ` and returns the associated IpAddr
pub fn create_vm(&self, group_name: &str, vm: CreateVmRequest) -> FarmResult<IpAddr> {
        let path = format!("group/{}/vm/{}", group_name, vm.name);
        let rb = Self::json(self.post(&path), &vm);
        let resp = self.retry_until_success(rb)?;
        let created_vm = resp.json::<VMCreateResponse>()?;
        Ok(created_vm.ipv6.parse()?)
    }
pub fn create_vm ( & self , group_name : & str , vm : CreateVmRequest ) -> FarmResult < IpAddr > { let path = format ! ( " " group_name vm name ) ; let rb = Self :: json ( self . post ( & path ) , & vm ) ; let resp = self . retry_until_success ( rb ) ? ; let created_vm = resp . json :: < VMCreateResponse > ( ) ? ; Ok ( created_vm . ipv6 . parse ( ) ? ) }
creates a vm under the group `group_name` and returns the associated
IpAddr
creates a vm under the group ` group_name ` and returns the associated IpAddr
&self
group_name
&str
vm
CreateVmRequest