#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]
#[derive(Clone, Debug)]
pub struct BigQueryExportService {
inner: std::sync::Arc<dyn super::stub::dynamic::BigQueryExportService>,
}
impl BigQueryExportService {
pub fn builder() -> super::builder::big_query_export_service::ClientBuilder {
crate::new_client_builder(super::builder::big_query_export_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::BigQueryExportService + '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::BigQueryExportService>>
{
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::BigQueryExportService> {
super::transport::BigQueryExportService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::BigQueryExportService> {
Self::build_transport(conf)
.await
.map(super::tracing::BigQueryExportService::new)
}
pub fn get_big_query_export(
&self,
) -> super::builder::big_query_export_service::GetBigQueryExport {
super::builder::big_query_export_service::GetBigQueryExport::new(self.inner.clone())
}
pub fn update_big_query_export(
&self,
) -> super::builder::big_query_export_service::UpdateBigQueryExport {
super::builder::big_query_export_service::UpdateBigQueryExport::new(self.inner.clone())
}
pub fn provision_big_query_export(
&self,
) -> super::builder::big_query_export_service::ProvisionBigQueryExport {
super::builder::big_query_export_service::ProvisionBigQueryExport::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::big_query_export_service::ListOperations {
super::builder::big_query_export_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::big_query_export_service::GetOperation {
super::builder::big_query_export_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::big_query_export_service::DeleteOperation {
super::builder::big_query_export_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::big_query_export_service::CancelOperation {
super::builder::big_query_export_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct DashboardChartService {
inner: std::sync::Arc<dyn super::stub::dynamic::DashboardChartService>,
}
impl DashboardChartService {
pub fn builder() -> super::builder::dashboard_chart_service::ClientBuilder {
crate::new_client_builder(super::builder::dashboard_chart_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DashboardChartService + '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::DashboardChartService>>
{
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::DashboardChartService> {
super::transport::DashboardChartService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DashboardChartService> {
Self::build_transport(conf)
.await
.map(super::tracing::DashboardChartService::new)
}
pub fn get_dashboard_chart(
&self,
) -> super::builder::dashboard_chart_service::GetDashboardChart {
super::builder::dashboard_chart_service::GetDashboardChart::new(self.inner.clone())
}
pub fn batch_get_dashboard_charts(
&self,
) -> super::builder::dashboard_chart_service::BatchGetDashboardCharts {
super::builder::dashboard_chart_service::BatchGetDashboardCharts::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::dashboard_chart_service::ListOperations {
super::builder::dashboard_chart_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::dashboard_chart_service::GetOperation {
super::builder::dashboard_chart_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::dashboard_chart_service::DeleteOperation {
super::builder::dashboard_chart_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::dashboard_chart_service::CancelOperation {
super::builder::dashboard_chart_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct DashboardQueryService {
inner: std::sync::Arc<dyn super::stub::dynamic::DashboardQueryService>,
}
impl DashboardQueryService {
pub fn builder() -> super::builder::dashboard_query_service::ClientBuilder {
crate::new_client_builder(super::builder::dashboard_query_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DashboardQueryService + '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::DashboardQueryService>>
{
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::DashboardQueryService> {
super::transport::DashboardQueryService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DashboardQueryService> {
Self::build_transport(conf)
.await
.map(super::tracing::DashboardQueryService::new)
}
pub fn get_dashboard_query(
&self,
) -> super::builder::dashboard_query_service::GetDashboardQuery {
super::builder::dashboard_query_service::GetDashboardQuery::new(self.inner.clone())
}
pub fn execute_dashboard_query(
&self,
) -> super::builder::dashboard_query_service::ExecuteDashboardQuery {
super::builder::dashboard_query_service::ExecuteDashboardQuery::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::dashboard_query_service::ListOperations {
super::builder::dashboard_query_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::dashboard_query_service::GetOperation {
super::builder::dashboard_query_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::dashboard_query_service::DeleteOperation {
super::builder::dashboard_query_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::dashboard_query_service::CancelOperation {
super::builder::dashboard_query_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct DataAccessControlService {
inner: std::sync::Arc<dyn super::stub::dynamic::DataAccessControlService>,
}
impl DataAccessControlService {
pub fn builder() -> super::builder::data_access_control_service::ClientBuilder {
crate::new_client_builder(super::builder::data_access_control_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DataAccessControlService + '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::DataAccessControlService>,
> {
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::DataAccessControlService> {
super::transport::DataAccessControlService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DataAccessControlService> {
Self::build_transport(conf)
.await
.map(super::tracing::DataAccessControlService::new)
}
pub fn create_data_access_label(
&self,
) -> super::builder::data_access_control_service::CreateDataAccessLabel {
super::builder::data_access_control_service::CreateDataAccessLabel::new(self.inner.clone())
}
pub fn get_data_access_label(
&self,
) -> super::builder::data_access_control_service::GetDataAccessLabel {
super::builder::data_access_control_service::GetDataAccessLabel::new(self.inner.clone())
}
pub fn list_data_access_labels(
&self,
) -> super::builder::data_access_control_service::ListDataAccessLabels {
super::builder::data_access_control_service::ListDataAccessLabels::new(self.inner.clone())
}
pub fn update_data_access_label(
&self,
) -> super::builder::data_access_control_service::UpdateDataAccessLabel {
super::builder::data_access_control_service::UpdateDataAccessLabel::new(self.inner.clone())
}
pub fn delete_data_access_label(
&self,
) -> super::builder::data_access_control_service::DeleteDataAccessLabel {
super::builder::data_access_control_service::DeleteDataAccessLabel::new(self.inner.clone())
}
pub fn create_data_access_scope(
&self,
) -> super::builder::data_access_control_service::CreateDataAccessScope {
super::builder::data_access_control_service::CreateDataAccessScope::new(self.inner.clone())
}
pub fn get_data_access_scope(
&self,
) -> super::builder::data_access_control_service::GetDataAccessScope {
super::builder::data_access_control_service::GetDataAccessScope::new(self.inner.clone())
}
pub fn list_data_access_scopes(
&self,
) -> super::builder::data_access_control_service::ListDataAccessScopes {
super::builder::data_access_control_service::ListDataAccessScopes::new(self.inner.clone())
}
pub fn update_data_access_scope(
&self,
) -> super::builder::data_access_control_service::UpdateDataAccessScope {
super::builder::data_access_control_service::UpdateDataAccessScope::new(self.inner.clone())
}
pub fn delete_data_access_scope(
&self,
) -> super::builder::data_access_control_service::DeleteDataAccessScope {
super::builder::data_access_control_service::DeleteDataAccessScope::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::data_access_control_service::ListOperations {
super::builder::data_access_control_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::data_access_control_service::GetOperation {
super::builder::data_access_control_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::data_access_control_service::DeleteOperation {
super::builder::data_access_control_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::data_access_control_service::CancelOperation {
super::builder::data_access_control_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct DataTableService {
inner: std::sync::Arc<dyn super::stub::dynamic::DataTableService>,
}
impl DataTableService {
pub fn builder() -> super::builder::data_table_service::ClientBuilder {
crate::new_client_builder(super::builder::data_table_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::DataTableService + '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::DataTableService>>
{
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::DataTableService> {
super::transport::DataTableService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::DataTableService> {
Self::build_transport(conf)
.await
.map(super::tracing::DataTableService::new)
}
pub fn create_data_table(&self) -> super::builder::data_table_service::CreateDataTable {
super::builder::data_table_service::CreateDataTable::new(self.inner.clone())
}
pub fn list_data_tables(&self) -> super::builder::data_table_service::ListDataTables {
super::builder::data_table_service::ListDataTables::new(self.inner.clone())
}
pub fn get_data_table(&self) -> super::builder::data_table_service::GetDataTable {
super::builder::data_table_service::GetDataTable::new(self.inner.clone())
}
pub fn update_data_table(&self) -> super::builder::data_table_service::UpdateDataTable {
super::builder::data_table_service::UpdateDataTable::new(self.inner.clone())
}
pub fn delete_data_table(&self) -> super::builder::data_table_service::DeleteDataTable {
super::builder::data_table_service::DeleteDataTable::new(self.inner.clone())
}
pub fn create_data_table_row(&self) -> super::builder::data_table_service::CreateDataTableRow {
super::builder::data_table_service::CreateDataTableRow::new(self.inner.clone())
}
pub fn update_data_table_row(&self) -> super::builder::data_table_service::UpdateDataTableRow {
super::builder::data_table_service::UpdateDataTableRow::new(self.inner.clone())
}
pub fn list_data_table_rows(&self) -> super::builder::data_table_service::ListDataTableRows {
super::builder::data_table_service::ListDataTableRows::new(self.inner.clone())
}
pub fn get_data_table_row(&self) -> super::builder::data_table_service::GetDataTableRow {
super::builder::data_table_service::GetDataTableRow::new(self.inner.clone())
}
pub fn delete_data_table_row(&self) -> super::builder::data_table_service::DeleteDataTableRow {
super::builder::data_table_service::DeleteDataTableRow::new(self.inner.clone())
}
pub fn bulk_create_data_table_rows(
&self,
) -> super::builder::data_table_service::BulkCreateDataTableRows {
super::builder::data_table_service::BulkCreateDataTableRows::new(self.inner.clone())
}
pub fn bulk_get_data_table_rows(
&self,
) -> super::builder::data_table_service::BulkGetDataTableRows {
super::builder::data_table_service::BulkGetDataTableRows::new(self.inner.clone())
}
pub fn bulk_replace_data_table_rows(
&self,
) -> super::builder::data_table_service::BulkReplaceDataTableRows {
super::builder::data_table_service::BulkReplaceDataTableRows::new(self.inner.clone())
}
pub fn bulk_update_data_table_rows(
&self,
) -> super::builder::data_table_service::BulkUpdateDataTableRows {
super::builder::data_table_service::BulkUpdateDataTableRows::new(self.inner.clone())
}
pub fn get_data_table_operation_errors(
&self,
) -> super::builder::data_table_service::GetDataTableOperationErrors {
super::builder::data_table_service::GetDataTableOperationErrors::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::data_table_service::ListOperations {
super::builder::data_table_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::data_table_service::GetOperation {
super::builder::data_table_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::data_table_service::DeleteOperation {
super::builder::data_table_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::data_table_service::CancelOperation {
super::builder::data_table_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct EntityService {
inner: std::sync::Arc<dyn super::stub::dynamic::EntityService>,
}
impl EntityService {
pub fn builder() -> super::builder::entity_service::ClientBuilder {
crate::new_client_builder(super::builder::entity_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::EntityService + '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::EntityService>> {
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::EntityService> {
super::transport::EntityService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::EntityService> {
Self::build_transport(conf)
.await
.map(super::tracing::EntityService::new)
}
pub fn get_watchlist(&self) -> super::builder::entity_service::GetWatchlist {
super::builder::entity_service::GetWatchlist::new(self.inner.clone())
}
pub fn list_watchlists(&self) -> super::builder::entity_service::ListWatchlists {
super::builder::entity_service::ListWatchlists::new(self.inner.clone())
}
pub fn create_watchlist(&self) -> super::builder::entity_service::CreateWatchlist {
super::builder::entity_service::CreateWatchlist::new(self.inner.clone())
}
pub fn update_watchlist(&self) -> super::builder::entity_service::UpdateWatchlist {
super::builder::entity_service::UpdateWatchlist::new(self.inner.clone())
}
pub fn delete_watchlist(&self) -> super::builder::entity_service::DeleteWatchlist {
super::builder::entity_service::DeleteWatchlist::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::entity_service::ListOperations {
super::builder::entity_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::entity_service::GetOperation {
super::builder::entity_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::entity_service::DeleteOperation {
super::builder::entity_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::entity_service::CancelOperation {
super::builder::entity_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct FeaturedContentNativeDashboardService {
inner: std::sync::Arc<dyn super::stub::dynamic::FeaturedContentNativeDashboardService>,
}
impl FeaturedContentNativeDashboardService {
pub fn builder() -> super::builder::featured_content_native_dashboard_service::ClientBuilder {
crate::new_client_builder(
super::builder::featured_content_native_dashboard_service::client::Factory,
)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::FeaturedContentNativeDashboardService + '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::FeaturedContentNativeDashboardService>,
> {
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::FeaturedContentNativeDashboardService> {
super::transport::FeaturedContentNativeDashboardService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::FeaturedContentNativeDashboardService> {
Self::build_transport(conf)
.await
.map(super::tracing::FeaturedContentNativeDashboardService::new)
}
pub fn get_featured_content_native_dashboard(
&self,
) -> super::builder::featured_content_native_dashboard_service::GetFeaturedContentNativeDashboard
{
super::builder::featured_content_native_dashboard_service::GetFeaturedContentNativeDashboard::new(self.inner.clone())
}
pub fn list_featured_content_native_dashboards(&self) -> super::builder::featured_content_native_dashboard_service::ListFeaturedContentNativeDashboards
{
super::builder::featured_content_native_dashboard_service::ListFeaturedContentNativeDashboards::new(self.inner.clone())
}
pub fn install_featured_content_native_dashboard(&self) -> super::builder::featured_content_native_dashboard_service::InstallFeaturedContentNativeDashboard
{
super::builder::featured_content_native_dashboard_service::InstallFeaturedContentNativeDashboard::new(self.inner.clone())
}
pub fn list_operations(
&self,
) -> super::builder::featured_content_native_dashboard_service::ListOperations {
super::builder::featured_content_native_dashboard_service::ListOperations::new(
self.inner.clone(),
)
}
pub fn get_operation(
&self,
) -> super::builder::featured_content_native_dashboard_service::GetOperation {
super::builder::featured_content_native_dashboard_service::GetOperation::new(
self.inner.clone(),
)
}
pub fn delete_operation(
&self,
) -> super::builder::featured_content_native_dashboard_service::DeleteOperation {
super::builder::featured_content_native_dashboard_service::DeleteOperation::new(
self.inner.clone(),
)
}
pub fn cancel_operation(
&self,
) -> super::builder::featured_content_native_dashboard_service::CancelOperation {
super::builder::featured_content_native_dashboard_service::CancelOperation::new(
self.inner.clone(),
)
}
}
#[derive(Clone, Debug)]
pub struct InstanceService {
inner: std::sync::Arc<dyn super::stub::dynamic::InstanceService>,
}
impl InstanceService {
pub fn builder() -> super::builder::instance_service::ClientBuilder {
crate::new_client_builder(super::builder::instance_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::InstanceService + '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::InstanceService>> {
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::InstanceService> {
super::transport::InstanceService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::InstanceService> {
Self::build_transport(conf)
.await
.map(super::tracing::InstanceService::new)
}
pub fn get_instance(&self) -> super::builder::instance_service::GetInstance {
super::builder::instance_service::GetInstance::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::instance_service::ListOperations {
super::builder::instance_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::instance_service::GetOperation {
super::builder::instance_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::instance_service::DeleteOperation {
super::builder::instance_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::instance_service::CancelOperation {
super::builder::instance_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct NativeDashboardService {
inner: std::sync::Arc<dyn super::stub::dynamic::NativeDashboardService>,
}
impl NativeDashboardService {
pub fn builder() -> super::builder::native_dashboard_service::ClientBuilder {
crate::new_client_builder(super::builder::native_dashboard_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::NativeDashboardService + '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::NativeDashboardService>>
{
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::NativeDashboardService> {
super::transport::NativeDashboardService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::NativeDashboardService> {
Self::build_transport(conf)
.await
.map(super::tracing::NativeDashboardService::new)
}
pub fn create_native_dashboard(
&self,
) -> super::builder::native_dashboard_service::CreateNativeDashboard {
super::builder::native_dashboard_service::CreateNativeDashboard::new(self.inner.clone())
}
pub fn get_native_dashboard(
&self,
) -> super::builder::native_dashboard_service::GetNativeDashboard {
super::builder::native_dashboard_service::GetNativeDashboard::new(self.inner.clone())
}
pub fn list_native_dashboards(
&self,
) -> super::builder::native_dashboard_service::ListNativeDashboards {
super::builder::native_dashboard_service::ListNativeDashboards::new(self.inner.clone())
}
pub fn update_native_dashboard(
&self,
) -> super::builder::native_dashboard_service::UpdateNativeDashboard {
super::builder::native_dashboard_service::UpdateNativeDashboard::new(self.inner.clone())
}
pub fn duplicate_native_dashboard(
&self,
) -> super::builder::native_dashboard_service::DuplicateNativeDashboard {
super::builder::native_dashboard_service::DuplicateNativeDashboard::new(self.inner.clone())
}
pub fn delete_native_dashboard(
&self,
) -> super::builder::native_dashboard_service::DeleteNativeDashboard {
super::builder::native_dashboard_service::DeleteNativeDashboard::new(self.inner.clone())
}
pub fn add_chart(&self) -> super::builder::native_dashboard_service::AddChart {
super::builder::native_dashboard_service::AddChart::new(self.inner.clone())
}
pub fn remove_chart(&self) -> super::builder::native_dashboard_service::RemoveChart {
super::builder::native_dashboard_service::RemoveChart::new(self.inner.clone())
}
pub fn edit_chart(&self) -> super::builder::native_dashboard_service::EditChart {
super::builder::native_dashboard_service::EditChart::new(self.inner.clone())
}
pub fn duplicate_chart(&self) -> super::builder::native_dashboard_service::DuplicateChart {
super::builder::native_dashboard_service::DuplicateChart::new(self.inner.clone())
}
pub fn export_native_dashboards(
&self,
) -> super::builder::native_dashboard_service::ExportNativeDashboards {
super::builder::native_dashboard_service::ExportNativeDashboards::new(self.inner.clone())
}
pub fn import_native_dashboards(
&self,
) -> super::builder::native_dashboard_service::ImportNativeDashboards {
super::builder::native_dashboard_service::ImportNativeDashboards::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::native_dashboard_service::ListOperations {
super::builder::native_dashboard_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::native_dashboard_service::GetOperation {
super::builder::native_dashboard_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::native_dashboard_service::DeleteOperation {
super::builder::native_dashboard_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::native_dashboard_service::CancelOperation {
super::builder::native_dashboard_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct ReferenceListService {
inner: std::sync::Arc<dyn super::stub::dynamic::ReferenceListService>,
}
impl ReferenceListService {
pub fn builder() -> super::builder::reference_list_service::ClientBuilder {
crate::new_client_builder(super::builder::reference_list_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ReferenceListService + '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::ReferenceListService>>
{
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::ReferenceListService> {
super::transport::ReferenceListService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ReferenceListService> {
Self::build_transport(conf)
.await
.map(super::tracing::ReferenceListService::new)
}
pub fn get_reference_list(&self) -> super::builder::reference_list_service::GetReferenceList {
super::builder::reference_list_service::GetReferenceList::new(self.inner.clone())
}
pub fn list_reference_lists(
&self,
) -> super::builder::reference_list_service::ListReferenceLists {
super::builder::reference_list_service::ListReferenceLists::new(self.inner.clone())
}
pub fn create_reference_list(
&self,
) -> super::builder::reference_list_service::CreateReferenceList {
super::builder::reference_list_service::CreateReferenceList::new(self.inner.clone())
}
pub fn update_reference_list(
&self,
) -> super::builder::reference_list_service::UpdateReferenceList {
super::builder::reference_list_service::UpdateReferenceList::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::reference_list_service::ListOperations {
super::builder::reference_list_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::reference_list_service::GetOperation {
super::builder::reference_list_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::reference_list_service::DeleteOperation {
super::builder::reference_list_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::reference_list_service::CancelOperation {
super::builder::reference_list_service::CancelOperation::new(self.inner.clone())
}
}
#[derive(Clone, Debug)]
pub struct RuleService {
inner: std::sync::Arc<dyn super::stub::dynamic::RuleService>,
}
impl RuleService {
pub fn builder() -> super::builder::rule_service::ClientBuilder {
crate::new_client_builder(super::builder::rule_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::RuleService + '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::RuleService>> {
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::RuleService> {
super::transport::RuleService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::RuleService> {
Self::build_transport(conf)
.await
.map(super::tracing::RuleService::new)
}
pub fn create_rule(&self) -> super::builder::rule_service::CreateRule {
super::builder::rule_service::CreateRule::new(self.inner.clone())
}
pub fn get_rule(&self) -> super::builder::rule_service::GetRule {
super::builder::rule_service::GetRule::new(self.inner.clone())
}
pub fn list_rules(&self) -> super::builder::rule_service::ListRules {
super::builder::rule_service::ListRules::new(self.inner.clone())
}
pub fn update_rule(&self) -> super::builder::rule_service::UpdateRule {
super::builder::rule_service::UpdateRule::new(self.inner.clone())
}
pub fn delete_rule(&self) -> super::builder::rule_service::DeleteRule {
super::builder::rule_service::DeleteRule::new(self.inner.clone())
}
pub fn list_rule_revisions(&self) -> super::builder::rule_service::ListRuleRevisions {
super::builder::rule_service::ListRuleRevisions::new(self.inner.clone())
}
pub fn create_retrohunt(&self) -> super::builder::rule_service::CreateRetrohunt {
super::builder::rule_service::CreateRetrohunt::new(self.inner.clone())
}
pub fn get_retrohunt(&self) -> super::builder::rule_service::GetRetrohunt {
super::builder::rule_service::GetRetrohunt::new(self.inner.clone())
}
pub fn list_retrohunts(&self) -> super::builder::rule_service::ListRetrohunts {
super::builder::rule_service::ListRetrohunts::new(self.inner.clone())
}
pub fn get_rule_deployment(&self) -> super::builder::rule_service::GetRuleDeployment {
super::builder::rule_service::GetRuleDeployment::new(self.inner.clone())
}
pub fn list_rule_deployments(&self) -> super::builder::rule_service::ListRuleDeployments {
super::builder::rule_service::ListRuleDeployments::new(self.inner.clone())
}
pub fn update_rule_deployment(&self) -> super::builder::rule_service::UpdateRuleDeployment {
super::builder::rule_service::UpdateRuleDeployment::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::rule_service::ListOperations {
super::builder::rule_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::rule_service::GetOperation {
super::builder::rule_service::GetOperation::new(self.inner.clone())
}
pub fn delete_operation(&self) -> super::builder::rule_service::DeleteOperation {
super::builder::rule_service::DeleteOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::rule_service::CancelOperation {
super::builder::rule_service::CancelOperation::new(self.inner.clone())
}
}