#![allow(unused_imports)]
use super::builders::*;
use super::client::RecipientServiceClient;
use unitycatalog_common::models::recipients::v1::*;
#[derive(Clone)]
pub struct RecipientClient {
pub(crate) recipient_name: String,
pub(crate) client: RecipientServiceClient,
}
impl RecipientClient {
pub fn new(recipient_name: impl Into<String>, client: RecipientServiceClient) -> Self {
Self {
recipient_name: recipient_name.into(),
client,
}
}
pub fn name(&self) -> &str {
&self.recipient_name
}
pub fn full_name(&self) -> String {
self.recipient_name.clone()
}
pub fn get(&self) -> GetRecipientBuilder {
GetRecipientBuilder::new(self.client.clone(), &self.recipient_name)
}
pub fn update(&self) -> UpdateRecipientBuilder {
UpdateRecipientBuilder::new(self.client.clone(), &self.recipient_name)
}
pub fn delete(&self) -> DeleteRecipientBuilder {
DeleteRecipientBuilder::new(self.client.clone(), &self.recipient_name)
}
}