#![allow(unused_imports)]
use super::builders::*;
use super::client::ExternalLocationServiceClient;
use unitycatalog_common::models::external_locations::v1::*;
#[derive(Clone)]
pub struct ExternalLocationClient {
pub(crate) external_location_name: String,
pub(crate) client: ExternalLocationServiceClient,
}
impl ExternalLocationClient {
pub fn new(
external_location_name: impl Into<String>,
client: ExternalLocationServiceClient,
) -> Self {
Self {
external_location_name: external_location_name.into(),
client,
}
}
pub fn name(&self) -> &str {
&self.external_location_name
}
pub fn full_name(&self) -> String {
self.external_location_name.clone()
}
pub fn get(&self) -> GetExternalLocationBuilder {
GetExternalLocationBuilder::new(self.client.clone(), &self.external_location_name)
}
pub fn update(&self) -> UpdateExternalLocationBuilder {
UpdateExternalLocationBuilder::new(self.client.clone(), &self.external_location_name)
}
pub fn delete(&self) -> DeleteExternalLocationBuilder {
DeleteExternalLocationBuilder::new(self.client.clone(), &self.external_location_name)
}
}