pub mod get;
pub mod query;
use openlark_core::config::Config;
#[derive(Debug, Clone)]
pub struct EnvironmentVariableService {
config: Config,
namespace: String,
}
impl EnvironmentVariableService {
pub fn new(config: Config, namespace: impl Into<String>) -> Self {
Self {
config,
namespace: namespace.into(),
}
}
pub fn query(&self) -> query::EnvironmentVariableQueryRequestBuilder {
query::EnvironmentVariableQueryRequestBuilder::new(
self.config.clone(),
self.namespace.clone(),
)
}
pub fn get(
&self,
env_var_api_name: impl Into<String>,
) -> get::EnvironmentVariableGetRequestBuilder {
get::EnvironmentVariableGetRequestBuilder::new(
self.config.clone(),
self.namespace.clone(),
env_var_api_name,
)
}
}