#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]
#[derive(Clone, Debug)]
pub struct Folders {
inner: std::sync::Arc<dyn super::stub::dynamic::Folders>,
}
impl Folders {
pub fn builder() -> super::builder::folders::ClientBuilder {
crate::new_client_builder(super::builder::folders::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::Folders + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::Folders>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Folders> {
super::transport::Folders::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Folders> {
Self::build_transport(conf)
.await
.map(super::tracing::Folders::new)
}
pub fn get_folder(&self) -> super::builder::folders::GetFolder {
super::builder::folders::GetFolder::new(self.inner.clone())
}
pub fn list_folders(&self) -> super::builder::folders::ListFolders {
super::builder::folders::ListFolders::new(self.inner.clone())
}
pub fn search_folders(&self) -> super::builder::folders::SearchFolders {
super::builder::folders::SearchFolders::new(self.inner.clone())
}
pub fn create_folder(&self) -> super::builder::folders::CreateFolder {
super::builder::folders::CreateFolder::new(self.inner.clone())
}
pub fn update_folder(&self) -> super::builder::folders::UpdateFolder {
super::builder::folders::UpdateFolder::new(self.inner.clone())
}
pub fn move_folder(&self) -> super::builder::folders::MoveFolder {
super::builder::folders::MoveFolder::new(self.inner.clone())
}
pub fn delete_folder(&self) -> super::builder::folders::DeleteFolder {
super::builder::folders::DeleteFolder::new(self.inner.clone())
}
pub fn undelete_folder(&self) -> super::builder::folders::UndeleteFolder {
super::builder::folders::UndeleteFolder::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::folders::GetIamPolicy {
super::builder::folders::GetIamPolicy::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::folders::SetIamPolicy {
super::builder::folders::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::folders::TestIamPermissions {
super::builder::folders::TestIamPermissions::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::folders::GetOperation {
super::builder::folders::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct Organizations {
inner: std::sync::Arc<dyn super::stub::dynamic::Organizations>,
}
impl Organizations {
pub fn builder() -> super::builder::organizations::ClientBuilder {
crate::new_client_builder(super::builder::organizations::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::Organizations + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::Organizations>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Organizations> {
super::transport::Organizations::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Organizations> {
Self::build_transport(conf)
.await
.map(super::tracing::Organizations::new)
}
pub fn get_organization(&self) -> super::builder::organizations::GetOrganization {
super::builder::organizations::GetOrganization::new(self.inner.clone())
}
pub fn search_organizations(&self) -> super::builder::organizations::SearchOrganizations {
super::builder::organizations::SearchOrganizations::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::organizations::GetIamPolicy {
super::builder::organizations::GetIamPolicy::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::organizations::SetIamPolicy {
super::builder::organizations::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::organizations::TestIamPermissions {
super::builder::organizations::TestIamPermissions::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::organizations::GetOperation {
super::builder::organizations::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct Projects {
inner: std::sync::Arc<dyn super::stub::dynamic::Projects>,
}
impl Projects {
pub fn builder() -> super::builder::projects::ClientBuilder {
crate::new_client_builder(super::builder::projects::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::Projects + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::Projects>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Projects> {
super::transport::Projects::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Projects> {
Self::build_transport(conf)
.await
.map(super::tracing::Projects::new)
}
pub fn get_project(&self) -> super::builder::projects::GetProject {
super::builder::projects::GetProject::new(self.inner.clone())
}
pub fn list_projects(&self) -> super::builder::projects::ListProjects {
super::builder::projects::ListProjects::new(self.inner.clone())
}
pub fn search_projects(&self) -> super::builder::projects::SearchProjects {
super::builder::projects::SearchProjects::new(self.inner.clone())
}
pub fn create_project(&self) -> super::builder::projects::CreateProject {
super::builder::projects::CreateProject::new(self.inner.clone())
}
pub fn update_project(&self) -> super::builder::projects::UpdateProject {
super::builder::projects::UpdateProject::new(self.inner.clone())
}
pub fn move_project(&self) -> super::builder::projects::MoveProject {
super::builder::projects::MoveProject::new(self.inner.clone())
}
pub fn delete_project(&self) -> super::builder::projects::DeleteProject {
super::builder::projects::DeleteProject::new(self.inner.clone())
}
pub fn undelete_project(&self) -> super::builder::projects::UndeleteProject {
super::builder::projects::UndeleteProject::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::projects::GetIamPolicy {
super::builder::projects::GetIamPolicy::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::projects::SetIamPolicy {
super::builder::projects::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::projects::TestIamPermissions {
super::builder::projects::TestIamPermissions::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::projects::GetOperation {
super::builder::projects::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct TagBindings {
inner: std::sync::Arc<dyn super::stub::dynamic::TagBindings>,
}
impl TagBindings {
pub fn builder() -> super::builder::tag_bindings::ClientBuilder {
crate::new_client_builder(super::builder::tag_bindings::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::TagBindings + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::TagBindings>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagBindings> {
super::transport::TagBindings::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagBindings> {
Self::build_transport(conf)
.await
.map(super::tracing::TagBindings::new)
}
pub fn list_tag_bindings(&self) -> super::builder::tag_bindings::ListTagBindings {
super::builder::tag_bindings::ListTagBindings::new(self.inner.clone())
}
pub fn create_tag_binding(&self) -> super::builder::tag_bindings::CreateTagBinding {
super::builder::tag_bindings::CreateTagBinding::new(self.inner.clone())
}
pub fn delete_tag_binding(&self) -> super::builder::tag_bindings::DeleteTagBinding {
super::builder::tag_bindings::DeleteTagBinding::new(self.inner.clone())
}
pub fn list_effective_tags(&self) -> super::builder::tag_bindings::ListEffectiveTags {
super::builder::tag_bindings::ListEffectiveTags::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::tag_bindings::GetOperation {
super::builder::tag_bindings::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct TagHolds {
inner: std::sync::Arc<dyn super::stub::dynamic::TagHolds>,
}
impl TagHolds {
pub fn builder() -> super::builder::tag_holds::ClientBuilder {
crate::new_client_builder(super::builder::tag_holds::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::TagHolds + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::TagHolds>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagHolds> {
super::transport::TagHolds::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagHolds> {
Self::build_transport(conf)
.await
.map(super::tracing::TagHolds::new)
}
pub fn create_tag_hold(&self) -> super::builder::tag_holds::CreateTagHold {
super::builder::tag_holds::CreateTagHold::new(self.inner.clone())
}
pub fn delete_tag_hold(&self) -> super::builder::tag_holds::DeleteTagHold {
super::builder::tag_holds::DeleteTagHold::new(self.inner.clone())
}
pub fn list_tag_holds(&self) -> super::builder::tag_holds::ListTagHolds {
super::builder::tag_holds::ListTagHolds::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::tag_holds::GetOperation {
super::builder::tag_holds::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct TagKeys {
inner: std::sync::Arc<dyn super::stub::dynamic::TagKeys>,
}
impl TagKeys {
pub fn builder() -> super::builder::tag_keys::ClientBuilder {
crate::new_client_builder(super::builder::tag_keys::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::TagKeys + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::TagKeys>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagKeys> {
super::transport::TagKeys::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagKeys> {
Self::build_transport(conf)
.await
.map(super::tracing::TagKeys::new)
}
pub fn list_tag_keys(&self) -> super::builder::tag_keys::ListTagKeys {
super::builder::tag_keys::ListTagKeys::new(self.inner.clone())
}
pub fn get_tag_key(&self) -> super::builder::tag_keys::GetTagKey {
super::builder::tag_keys::GetTagKey::new(self.inner.clone())
}
pub fn get_namespaced_tag_key(&self) -> super::builder::tag_keys::GetNamespacedTagKey {
super::builder::tag_keys::GetNamespacedTagKey::new(self.inner.clone())
}
pub fn create_tag_key(&self) -> super::builder::tag_keys::CreateTagKey {
super::builder::tag_keys::CreateTagKey::new(self.inner.clone())
}
pub fn update_tag_key(&self) -> super::builder::tag_keys::UpdateTagKey {
super::builder::tag_keys::UpdateTagKey::new(self.inner.clone())
}
pub fn delete_tag_key(&self) -> super::builder::tag_keys::DeleteTagKey {
super::builder::tag_keys::DeleteTagKey::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::tag_keys::GetIamPolicy {
super::builder::tag_keys::GetIamPolicy::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::tag_keys::SetIamPolicy {
super::builder::tag_keys::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::tag_keys::TestIamPermissions {
super::builder::tag_keys::TestIamPermissions::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::tag_keys::GetOperation {
super::builder::tag_keys::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct TagValues {
inner: std::sync::Arc<dyn super::stub::dynamic::TagValues>,
}
impl TagValues {
pub fn builder() -> super::builder::tag_values::ClientBuilder {
crate::new_client_builder(super::builder::tag_values::client::Factory)
}
pub fn from_stub<T>(stub: T) -> Self
where
T: super::stub::TagValues + 'static,
{
Self {
inner: std::sync::Arc::new(stub),
}
}
pub(crate) async fn new(
config: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<Self> {
let inner = Self::build_inner(config).await?;
Ok(Self { inner })
}
async fn build_inner(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<std::sync::Arc<dyn super::stub::dynamic::TagValues>> {
if gaxi::options::tracing_enabled(&conf) {
return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
}
Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
}
async fn build_transport(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagValues> {
super::transport::TagValues::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::TagValues> {
Self::build_transport(conf)
.await
.map(super::tracing::TagValues::new)
}
pub fn list_tag_values(&self) -> super::builder::tag_values::ListTagValues {
super::builder::tag_values::ListTagValues::new(self.inner.clone())
}
pub fn get_tag_value(&self) -> super::builder::tag_values::GetTagValue {
super::builder::tag_values::GetTagValue::new(self.inner.clone())
}
pub fn get_namespaced_tag_value(&self) -> super::builder::tag_values::GetNamespacedTagValue {
super::builder::tag_values::GetNamespacedTagValue::new(self.inner.clone())
}
pub fn create_tag_value(&self) -> super::builder::tag_values::CreateTagValue {
super::builder::tag_values::CreateTagValue::new(self.inner.clone())
}
pub fn update_tag_value(&self) -> super::builder::tag_values::UpdateTagValue {
super::builder::tag_values::UpdateTagValue::new(self.inner.clone())
}
pub fn delete_tag_value(&self) -> super::builder::tag_values::DeleteTagValue {
super::builder::tag_values::DeleteTagValue::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::tag_values::GetIamPolicy {
super::builder::tag_values::GetIamPolicy::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::tag_values::SetIamPolicy {
super::builder::tag_values::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::tag_values::TestIamPermissions {
super::builder::tag_values::TestIamPermissions::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::tag_values::GetOperation {
super::builder::tag_values::GetOperation::new(self.inner.clone())
}
}