use crate::Client;
use crate::ClientResult;
pub struct Operations {
pub client: Client,
}
impl Operations {
#[doc(hidden)]
pub fn new(client: Client) -> Self {
Operations { client }
}
pub async fn get(&self, name: &str) -> ClientResult<crate::Response<crate::types::Operation>> {
let url = self.client.url(
&format!("/v1/{}", crate::progenitor_support::encode_path(name),),
None,
);
self.client
.get(
&url,
crate::Message {
body: None,
content_type: None,
},
)
.await
}
}