#![allow(rustdoc::bare_urls)]
#![allow(rustdoc::broken_intra_doc_links)]
#![allow(rustdoc::invalid_html_tags)]
#![allow(rustdoc::redundant_explicit_links)]
#[derive(Clone, Debug)]
pub struct Changes {
inner: std::sync::Arc<dyn super::stub::dynamic::Changes>,
}
impl Changes {
pub fn builder() -> super::builder::changes::ClientBuilder {
crate::new_client_builder(super::builder::changes::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Changes + 'static,
{
Self { inner: stub.into() }
}
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::Changes>> {
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::Changes> {
super::transport::Changes::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Changes> {
Self::build_transport(conf)
.await
.map(super::tracing::Changes::new)
}
pub fn create(&self) -> super::builder::changes::Create {
super::builder::changes::Create::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::changes::Get {
super::builder::changes::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::changes::List {
super::builder::changes::List::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct DnsKeys {
inner: std::sync::Arc<dyn super::stub::dynamic::DnsKeys>,
}
impl DnsKeys {
pub fn builder() -> super::builder::dns_keys::ClientBuilder {
crate::new_client_builder(super::builder::dns_keys::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DnsKeys + 'static,
{
Self { inner: stub.into() }
}
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::DnsKeys>> {
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::DnsKeys> {
super::transport::DnsKeys::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DnsKeys> {
Self::build_transport(conf)
.await
.map(super::tracing::DnsKeys::new)
}
pub fn get(&self) -> super::builder::dns_keys::Get {
super::builder::dns_keys::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::dns_keys::List {
super::builder::dns_keys::List::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ManagedZoneOperations {
inner: std::sync::Arc<dyn super::stub::dynamic::ManagedZoneOperations>,
}
impl ManagedZoneOperations {
pub fn builder() -> super::builder::managed_zone_operations::ClientBuilder {
crate::new_client_builder(super::builder::managed_zone_operations::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ManagedZoneOperations + 'static,
{
Self { inner: stub.into() }
}
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::ManagedZoneOperations>>
{
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::ManagedZoneOperations> {
super::transport::ManagedZoneOperations::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ManagedZoneOperations> {
Self::build_transport(conf)
.await
.map(super::tracing::ManagedZoneOperations::new)
}
pub fn get(&self) -> super::builder::managed_zone_operations::Get {
super::builder::managed_zone_operations::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::managed_zone_operations::List {
super::builder::managed_zone_operations::List::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ManagedZones {
inner: std::sync::Arc<dyn super::stub::dynamic::ManagedZones>,
}
impl ManagedZones {
pub fn builder() -> super::builder::managed_zones::ClientBuilder {
crate::new_client_builder(super::builder::managed_zones::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ManagedZones + 'static,
{
Self { inner: stub.into() }
}
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::ManagedZones>> {
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::ManagedZones> {
super::transport::ManagedZones::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ManagedZones> {
Self::build_transport(conf)
.await
.map(super::tracing::ManagedZones::new)
}
pub fn create(&self) -> super::builder::managed_zones::Create {
super::builder::managed_zones::Create::new(self.inner.clone())
}
pub fn delete(&self) -> super::builder::managed_zones::Delete {
super::builder::managed_zones::Delete::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::managed_zones::Get {
super::builder::managed_zones::Get::new(self.inner.clone())
}
pub fn get_iam_policy(&self) -> super::builder::managed_zones::GetIamPolicy {
super::builder::managed_zones::GetIamPolicy::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::managed_zones::List {
super::builder::managed_zones::List::new(self.inner.clone())
}
pub fn patch(&self) -> super::builder::managed_zones::Patch {
super::builder::managed_zones::Patch::new(self.inner.clone())
}
pub fn set_iam_policy(&self) -> super::builder::managed_zones::SetIamPolicy {
super::builder::managed_zones::SetIamPolicy::new(self.inner.clone())
}
pub fn test_iam_permissions(&self) -> super::builder::managed_zones::TestIamPermissions {
super::builder::managed_zones::TestIamPermissions::new(self.inner.clone())
}
pub fn update(&self) -> super::builder::managed_zones::Update {
super::builder::managed_zones::Update::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::managed_zones::GetOperation {
super::builder::managed_zones::GetOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct Policies {
inner: std::sync::Arc<dyn super::stub::dynamic::Policies>,
}
impl Policies {
pub fn builder() -> super::builder::policies::ClientBuilder {
crate::new_client_builder(super::builder::policies::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Policies + 'static,
{
Self { inner: stub.into() }
}
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::Policies>> {
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::Policies> {
super::transport::Policies::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Policies> {
Self::build_transport(conf)
.await
.map(super::tracing::Policies::new)
}
pub fn create(&self) -> super::builder::policies::Create {
super::builder::policies::Create::new(self.inner.clone())
}
pub fn delete(&self) -> super::builder::policies::Delete {
super::builder::policies::Delete::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::policies::Get {
super::builder::policies::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::policies::List {
super::builder::policies::List::new(self.inner.clone())
}
pub fn patch(&self) -> super::builder::policies::Patch {
super::builder::policies::Patch::new(self.inner.clone())
}
pub fn update(&self) -> super::builder::policies::Update {
super::builder::policies::Update::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: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Projects + 'static,
{
Self { inner: stub.into() }
}
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(&self) -> super::builder::projects::Get {
super::builder::projects::Get::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ResourceRecordSets {
inner: std::sync::Arc<dyn super::stub::dynamic::ResourceRecordSets>,
}
impl ResourceRecordSets {
pub fn builder() -> super::builder::resource_record_sets::ClientBuilder {
crate::new_client_builder(super::builder::resource_record_sets::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ResourceRecordSets + 'static,
{
Self { inner: stub.into() }
}
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::ResourceRecordSets>>
{
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::ResourceRecordSets> {
super::transport::ResourceRecordSets::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ResourceRecordSets> {
Self::build_transport(conf)
.await
.map(super::tracing::ResourceRecordSets::new)
}
pub fn create(&self) -> super::builder::resource_record_sets::Create {
super::builder::resource_record_sets::Create::new(self.inner.clone())
}
pub fn delete(&self) -> super::builder::resource_record_sets::Delete {
super::builder::resource_record_sets::Delete::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::resource_record_sets::Get {
super::builder::resource_record_sets::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::resource_record_sets::List {
super::builder::resource_record_sets::List::new(self.inner.clone())
}
pub fn patch(&self) -> super::builder::resource_record_sets::Patch {
super::builder::resource_record_sets::Patch::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ResponsePolicies {
inner: std::sync::Arc<dyn super::stub::dynamic::ResponsePolicies>,
}
impl ResponsePolicies {
pub fn builder() -> super::builder::response_policies::ClientBuilder {
crate::new_client_builder(super::builder::response_policies::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ResponsePolicies + 'static,
{
Self { inner: stub.into() }
}
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::ResponsePolicies>>
{
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::ResponsePolicies> {
super::transport::ResponsePolicies::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ResponsePolicies> {
Self::build_transport(conf)
.await
.map(super::tracing::ResponsePolicies::new)
}
pub fn create(&self) -> super::builder::response_policies::Create {
super::builder::response_policies::Create::new(self.inner.clone())
}
pub fn delete(&self) -> super::builder::response_policies::Delete {
super::builder::response_policies::Delete::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::response_policies::Get {
super::builder::response_policies::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::response_policies::List {
super::builder::response_policies::List::new(self.inner.clone())
}
pub fn patch(&self) -> super::builder::response_policies::Patch {
super::builder::response_policies::Patch::new(self.inner.clone())
}
pub fn update(&self) -> super::builder::response_policies::Update {
super::builder::response_policies::Update::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ResponsePolicyRules {
inner: std::sync::Arc<dyn super::stub::dynamic::ResponsePolicyRules>,
}
impl ResponsePolicyRules {
pub fn builder() -> super::builder::response_policy_rules::ClientBuilder {
crate::new_client_builder(super::builder::response_policy_rules::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ResponsePolicyRules + 'static,
{
Self { inner: stub.into() }
}
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::ResponsePolicyRules>>
{
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::ResponsePolicyRules> {
super::transport::ResponsePolicyRules::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ResponsePolicyRules> {
Self::build_transport(conf)
.await
.map(super::tracing::ResponsePolicyRules::new)
}
pub fn create(&self) -> super::builder::response_policy_rules::Create {
super::builder::response_policy_rules::Create::new(self.inner.clone())
}
pub fn delete(&self) -> super::builder::response_policy_rules::Delete {
super::builder::response_policy_rules::Delete::new(self.inner.clone())
}
pub fn get(&self) -> super::builder::response_policy_rules::Get {
super::builder::response_policy_rules::Get::new(self.inner.clone())
}
pub fn list(&self) -> super::builder::response_policy_rules::List {
super::builder::response_policy_rules::List::new(self.inner.clone())
}
pub fn patch(&self) -> super::builder::response_policy_rules::Patch {
super::builder::response_policy_rules::Patch::new(self.inner.clone())
}
pub fn update(&self) -> super::builder::response_policy_rules::Update {
super::builder::response_policy_rules::Update::new(self.inner.clone())
}
}