use crate::Result;
#[derive(Clone, Debug)]
pub struct Changes<T>
where
T: super::stub::Changes + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Changes<T>
where
T: super::stub::Changes + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Changes for Changes<T>
where
T: super::stub::Changes + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::changes::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Change>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::changes::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Change>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::changes::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ChangesListResponse>> {
self.inner.list(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct DnsKeys<T>
where
T: super::stub::DnsKeys + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> DnsKeys<T>
where
T: super::stub::DnsKeys + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::DnsKeys for DnsKeys<T>
where
T: super::stub::DnsKeys + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::dns_keys::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::DnsKey>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::dns_keys::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::DnsKeysListResponse>> {
self.inner.list(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ManagedZoneOperations<T>
where
T: super::stub::ManagedZoneOperations + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ManagedZoneOperations<T>
where
T: super::stub::ManagedZoneOperations + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ManagedZoneOperations for ManagedZoneOperations<T>
where
T: super::stub::ManagedZoneOperations + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::managed_zone_operations::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Operation>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::managed_zone_operations::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ManagedZoneOperationsListResponse>> {
self.inner.list(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ManagedZones<T>
where
T: super::stub::ManagedZones + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ManagedZones<T>
where
T: super::stub::ManagedZones + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ManagedZones for ManagedZones<T>
where
T: super::stub::ManagedZones + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::managed_zones::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ManagedZone>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn delete(
&self,
req: crate::model::managed_zones::DeleteRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::managed_zones::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ManagedZone>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn get_iam_policy(
&self,
req: crate::model::managed_zones::GetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GoogleIamV1Policy>> {
self.inner.get_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::managed_zones::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ManagedZonesListResponse>> {
self.inner.list(req, options).await
}
#[tracing::instrument(ret)]
async fn patch(
&self,
req: crate::model::managed_zones::PatchRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Operation>> {
self.inner.patch(req, options).await
}
#[tracing::instrument(ret)]
async fn set_iam_policy(
&self,
req: crate::model::managed_zones::SetIamPolicyRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GoogleIamV1Policy>> {
self.inner.set_iam_policy(req, options).await
}
#[tracing::instrument(ret)]
async fn test_iam_permissions(
&self,
req: crate::model::managed_zones::TestIamPermissionsRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::GoogleIamV1TestIamPermissionsResponse>> {
self.inner.test_iam_permissions(req, options).await
}
#[tracing::instrument(ret)]
async fn update(
&self,
req: crate::model::managed_zones::UpdateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Operation>> {
self.inner.update(req, options).await
}
#[tracing::instrument(ret)]
async fn get_operation(
&self,
req: crate::model::managed_zone_operations::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Operation>> {
self.inner.get_operation(req, options).await
}
fn get_polling_error_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
self.inner.get_polling_error_policy(options)
}
fn get_polling_backoff_policy(
&self,
options: &crate::RequestOptions,
) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
self.inner.get_polling_backoff_policy(options)
}
}
#[derive(Clone, Debug)]
pub struct Policies<T>
where
T: super::stub::Policies + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Policies<T>
where
T: super::stub::Policies + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Policies for Policies<T>
where
T: super::stub::Policies + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::policies::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Policy>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn delete(
&self,
req: crate::model::policies::DeleteRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::policies::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Policy>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::policies::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::PoliciesListResponse>> {
self.inner.list(req, options).await
}
#[tracing::instrument(ret)]
async fn patch(
&self,
req: crate::model::policies::PatchRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::PoliciesPatchResponse>> {
self.inner.patch(req, options).await
}
#[tracing::instrument(ret)]
async fn update(
&self,
req: crate::model::policies::UpdateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::PoliciesUpdateResponse>> {
self.inner.update(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::Projects for Projects<T>
where
T: super::stub::Projects + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::projects::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::Project>> {
self.inner.get(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ResourceRecordSets<T>
where
T: super::stub::ResourceRecordSets + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ResourceRecordSets<T>
where
T: super::stub::ResourceRecordSets + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ResourceRecordSets for ResourceRecordSets<T>
where
T: super::stub::ResourceRecordSets + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::resource_record_sets::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResourceRecordSet>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn delete(
&self,
req: crate::model::resource_record_sets::DeleteRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResourceRecordSetsDeleteResponse>> {
self.inner.delete(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::resource_record_sets::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResourceRecordSet>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::resource_record_sets::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResourceRecordSetsListResponse>> {
self.inner.list(req, options).await
}
#[tracing::instrument(ret)]
async fn patch(
&self,
req: crate::model::resource_record_sets::PatchRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResourceRecordSet>> {
self.inner.patch(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ResponsePolicies<T>
where
T: super::stub::ResponsePolicies + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ResponsePolicies<T>
where
T: super::stub::ResponsePolicies + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ResponsePolicies for ResponsePolicies<T>
where
T: super::stub::ResponsePolicies + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::response_policies::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicy>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn delete(
&self,
req: crate::model::response_policies::DeleteRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::response_policies::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicy>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::response_policies::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePoliciesListResponse>> {
self.inner.list(req, options).await
}
#[tracing::instrument(ret)]
async fn patch(
&self,
req: crate::model::response_policies::PatchRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePoliciesPatchResponse>> {
self.inner.patch(req, options).await
}
#[tracing::instrument(ret)]
async fn update(
&self,
req: crate::model::response_policies::UpdateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePoliciesUpdateResponse>> {
self.inner.update(req, options).await
}
}
#[derive(Clone, Debug)]
pub struct ResponsePolicyRules<T>
where
T: super::stub::ResponsePolicyRules + std::fmt::Debug + Send + Sync,
{
inner: T,
}
impl<T> ResponsePolicyRules<T>
where
T: super::stub::ResponsePolicyRules + std::fmt::Debug + Send + Sync,
{
pub fn new(inner: T) -> Self {
Self { inner }
}
}
impl<T> super::stub::ResponsePolicyRules for ResponsePolicyRules<T>
where
T: super::stub::ResponsePolicyRules + std::fmt::Debug + Send + Sync,
{
#[tracing::instrument(ret)]
async fn create(
&self,
req: crate::model::response_policy_rules::CreateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicyRule>> {
self.inner.create(req, options).await
}
#[tracing::instrument(ret)]
async fn delete(
&self,
req: crate::model::response_policy_rules::DeleteRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<()>> {
self.inner.delete(req, options).await
}
#[tracing::instrument(ret)]
async fn get(
&self,
req: crate::model::response_policy_rules::GetRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicyRule>> {
self.inner.get(req, options).await
}
#[tracing::instrument(ret)]
async fn list(
&self,
req: crate::model::response_policy_rules::ListRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicyRulesListResponse>> {
self.inner.list(req, options).await
}
#[tracing::instrument(ret)]
async fn patch(
&self,
req: crate::model::response_policy_rules::PatchRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicyRulesPatchResponse>> {
self.inner.patch(req, options).await
}
#[tracing::instrument(ret)]
async fn update(
&self,
req: crate::model::response_policy_rules::UpdateRequest,
options: crate::RequestOptions,
) -> Result<crate::Response<crate::model::ResponsePolicyRulesUpdateResponse>> {
self.inner.update(req, options).await
}
}