pub fn replace(
        &self,
        name: &str,
        pp: &PostParams,
        data: Vec<u8>,
    ) -> Result<http::Request<Vec<u8>>> {
        let base_url = self.make_url() + "/" + name + "?";
        let mut qp = url::form_urlencoded::Serializer::new(base_url);
        if pp.dry_run {
            qp.append_pair("dryRun", "All");
        }
        let urlstr = qp.finish();
        let req = http::Request::put(urlstr);
        req.body(data).map_err(Error::HttpError)
    }
/// Replace an instance of a resource
///
/// Requires metadata.resourceVersion set in data
Replace an instance of a resource
Requires metadata.resourceVersion set in data
Replace an instance of a resource Requires metadata . resourceVersion set in data
pub fn replace(
        &self,
        name: &str,
        pp: &PostParams,
        data: Vec<u8>,
    ) -> Result<http::Request<Vec<u8>>> {
        let base_url = self.make_url() + "/" + name + "?";
        let mut qp = url::form_urlencoded::Serializer::new(base_url);
        if pp.dry_run {
            qp.append_pair("dryRun", "All");
        }
        let urlstr = qp.finish();
        let req = http::Request::put(urlstr);
        req.body(data).map_err(Error::HttpError)
    }
pub fn replace ( & self , name : & str , pp : & PostParams , data : Vec < u8 > , ) -> Result < http :: Request < Vec < u8 > > > { let base_url = self . make_url ( ) + " " + name + " " ; let mut qp = url :: form_urlencoded :: Serializer :: new ( base_url ) ; if pp . dry_run { qp . append_pair ( " " , " " ) ; } let urlstr = qp . finish ( ) ; let req = http :: Request :: put ( urlstr ) ; req . body ( data ) . map_err ( Error :: HttpError ) }
Replace an instance of a resource
Requires metadata.resourceVersion set in data
Replace an instance of a resource Requires metadata . resourceVersion set in data
&self
name
&str
pp
&PostParams
data
Vec<u8>