#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]
#[cfg(feature = "agents")]
#[cfg_attr(docsrs, doc(cfg(feature = "agents")))]
#[derive(Clone, Debug)]
pub struct Agents {
inner: std::sync::Arc<dyn super::stub::dynamic::Agents>,
}
#[cfg(feature = "agents")]
impl Agents {
pub fn builder() -> super::builder::agents::ClientBuilder {
crate::new_client_builder(super::builder::agents::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Agents + '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::Agents>> {
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::Agents> {
super::transport::Agents::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Agents> {
Self::build_transport(conf)
.await
.map(super::tracing::Agents::new)
}
pub fn get_agent(&self) -> super::builder::agents::GetAgent {
super::builder::agents::GetAgent::new(self.inner.clone())
}
pub fn set_agent(&self) -> super::builder::agents::SetAgent {
super::builder::agents::SetAgent::new(self.inner.clone())
}
pub fn delete_agent(&self) -> super::builder::agents::DeleteAgent {
super::builder::agents::DeleteAgent::new(self.inner.clone())
}
pub fn search_agents(&self) -> super::builder::agents::SearchAgents {
super::builder::agents::SearchAgents::new(self.inner.clone())
}
pub fn train_agent(&self) -> super::builder::agents::TrainAgent {
super::builder::agents::TrainAgent::new(self.inner.clone())
}
pub fn export_agent(&self) -> super::builder::agents::ExportAgent {
super::builder::agents::ExportAgent::new(self.inner.clone())
}
pub fn import_agent(&self) -> super::builder::agents::ImportAgent {
super::builder::agents::ImportAgent::new(self.inner.clone())
}
pub fn restore_agent(&self) -> super::builder::agents::RestoreAgent {
super::builder::agents::RestoreAgent::new(self.inner.clone())
}
pub fn get_validation_result(&self) -> super::builder::agents::GetValidationResult {
super::builder::agents::GetValidationResult::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::agents::ListLocations {
super::builder::agents::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::agents::GetLocation {
super::builder::agents::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::agents::ListOperations {
super::builder::agents::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::agents::GetOperation {
super::builder::agents::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::agents::CancelOperation {
super::builder::agents::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "answer-records")]
#[cfg_attr(docsrs, doc(cfg(feature = "answer-records")))]
#[derive(Clone, Debug)]
pub struct AnswerRecords {
inner: std::sync::Arc<dyn super::stub::dynamic::AnswerRecords>,
}
#[cfg(feature = "answer-records")]
impl AnswerRecords {
pub fn builder() -> super::builder::answer_records::ClientBuilder {
crate::new_client_builder(super::builder::answer_records::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::AnswerRecords + '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::AnswerRecords>> {
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::AnswerRecords> {
super::transport::AnswerRecords::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::AnswerRecords> {
Self::build_transport(conf)
.await
.map(super::tracing::AnswerRecords::new)
}
pub fn list_answer_records(&self) -> super::builder::answer_records::ListAnswerRecords {
super::builder::answer_records::ListAnswerRecords::new(self.inner.clone())
}
pub fn update_answer_record(&self) -> super::builder::answer_records::UpdateAnswerRecord {
super::builder::answer_records::UpdateAnswerRecord::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::answer_records::ListLocations {
super::builder::answer_records::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::answer_records::GetLocation {
super::builder::answer_records::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::answer_records::ListOperations {
super::builder::answer_records::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::answer_records::GetOperation {
super::builder::answer_records::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::answer_records::CancelOperation {
super::builder::answer_records::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "contexts")]
#[cfg_attr(docsrs, doc(cfg(feature = "contexts")))]
#[derive(Clone, Debug)]
pub struct Contexts {
inner: std::sync::Arc<dyn super::stub::dynamic::Contexts>,
}
#[cfg(feature = "contexts")]
impl Contexts {
pub fn builder() -> super::builder::contexts::ClientBuilder {
crate::new_client_builder(super::builder::contexts::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Contexts + '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::Contexts>> {
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::Contexts> {
super::transport::Contexts::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Contexts> {
Self::build_transport(conf)
.await
.map(super::tracing::Contexts::new)
}
pub fn list_contexts(&self) -> super::builder::contexts::ListContexts {
super::builder::contexts::ListContexts::new(self.inner.clone())
}
pub fn get_context(&self) -> super::builder::contexts::GetContext {
super::builder::contexts::GetContext::new(self.inner.clone())
}
pub fn create_context(&self) -> super::builder::contexts::CreateContext {
super::builder::contexts::CreateContext::new(self.inner.clone())
}
pub fn update_context(&self) -> super::builder::contexts::UpdateContext {
super::builder::contexts::UpdateContext::new(self.inner.clone())
}
pub fn delete_context(&self) -> super::builder::contexts::DeleteContext {
super::builder::contexts::DeleteContext::new(self.inner.clone())
}
pub fn delete_all_contexts(&self) -> super::builder::contexts::DeleteAllContexts {
super::builder::contexts::DeleteAllContexts::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::contexts::ListLocations {
super::builder::contexts::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::contexts::GetLocation {
super::builder::contexts::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::contexts::ListOperations {
super::builder::contexts::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::contexts::GetOperation {
super::builder::contexts::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::contexts::CancelOperation {
super::builder::contexts::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "conversations")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversations")))]
#[derive(Clone, Debug)]
pub struct Conversations {
inner: std::sync::Arc<dyn super::stub::dynamic::Conversations>,
}
#[cfg(feature = "conversations")]
impl Conversations {
pub fn builder() -> super::builder::conversations::ClientBuilder {
crate::new_client_builder(super::builder::conversations::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Conversations + '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::Conversations>> {
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::Conversations> {
super::transport::Conversations::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Conversations> {
Self::build_transport(conf)
.await
.map(super::tracing::Conversations::new)
}
pub fn create_conversation(&self) -> super::builder::conversations::CreateConversation {
super::builder::conversations::CreateConversation::new(self.inner.clone())
}
pub fn list_conversations(&self) -> super::builder::conversations::ListConversations {
super::builder::conversations::ListConversations::new(self.inner.clone())
}
pub fn get_conversation(&self) -> super::builder::conversations::GetConversation {
super::builder::conversations::GetConversation::new(self.inner.clone())
}
pub fn complete_conversation(&self) -> super::builder::conversations::CompleteConversation {
super::builder::conversations::CompleteConversation::new(self.inner.clone())
}
pub fn ingest_context_references(
&self,
) -> super::builder::conversations::IngestContextReferences {
super::builder::conversations::IngestContextReferences::new(self.inner.clone())
}
pub fn list_messages(&self) -> super::builder::conversations::ListMessages {
super::builder::conversations::ListMessages::new(self.inner.clone())
}
pub fn suggest_conversation_summary(
&self,
) -> super::builder::conversations::SuggestConversationSummary {
super::builder::conversations::SuggestConversationSummary::new(self.inner.clone())
}
pub fn generate_stateless_summary(
&self,
) -> super::builder::conversations::GenerateStatelessSummary {
super::builder::conversations::GenerateStatelessSummary::new(self.inner.clone())
}
pub fn generate_stateless_suggestion(
&self,
) -> super::builder::conversations::GenerateStatelessSuggestion {
super::builder::conversations::GenerateStatelessSuggestion::new(self.inner.clone())
}
pub fn search_knowledge(&self) -> super::builder::conversations::SearchKnowledge {
super::builder::conversations::SearchKnowledge::new(self.inner.clone())
}
pub fn generate_suggestions(&self) -> super::builder::conversations::GenerateSuggestions {
super::builder::conversations::GenerateSuggestions::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::conversations::ListLocations {
super::builder::conversations::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::conversations::GetLocation {
super::builder::conversations::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::conversations::ListOperations {
super::builder::conversations::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::conversations::GetOperation {
super::builder::conversations::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::conversations::CancelOperation {
super::builder::conversations::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "conversation-datasets")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversation-datasets")))]
#[derive(Clone, Debug)]
pub struct ConversationDatasets {
inner: std::sync::Arc<dyn super::stub::dynamic::ConversationDatasets>,
}
#[cfg(feature = "conversation-datasets")]
impl ConversationDatasets {
pub fn builder() -> super::builder::conversation_datasets::ClientBuilder {
crate::new_client_builder(super::builder::conversation_datasets::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ConversationDatasets + '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::ConversationDatasets>>
{
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::ConversationDatasets> {
super::transport::ConversationDatasets::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ConversationDatasets> {
Self::build_transport(conf)
.await
.map(super::tracing::ConversationDatasets::new)
}
pub fn create_conversation_dataset(
&self,
) -> super::builder::conversation_datasets::CreateConversationDataset {
super::builder::conversation_datasets::CreateConversationDataset::new(self.inner.clone())
}
pub fn get_conversation_dataset(
&self,
) -> super::builder::conversation_datasets::GetConversationDataset {
super::builder::conversation_datasets::GetConversationDataset::new(self.inner.clone())
}
pub fn list_conversation_datasets(
&self,
) -> super::builder::conversation_datasets::ListConversationDatasets {
super::builder::conversation_datasets::ListConversationDatasets::new(self.inner.clone())
}
pub fn delete_conversation_dataset(
&self,
) -> super::builder::conversation_datasets::DeleteConversationDataset {
super::builder::conversation_datasets::DeleteConversationDataset::new(self.inner.clone())
}
pub fn import_conversation_data(
&self,
) -> super::builder::conversation_datasets::ImportConversationData {
super::builder::conversation_datasets::ImportConversationData::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::conversation_datasets::ListLocations {
super::builder::conversation_datasets::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::conversation_datasets::GetLocation {
super::builder::conversation_datasets::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::conversation_datasets::ListOperations {
super::builder::conversation_datasets::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::conversation_datasets::GetOperation {
super::builder::conversation_datasets::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::conversation_datasets::CancelOperation {
super::builder::conversation_datasets::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "conversation-models")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversation-models")))]
#[derive(Clone, Debug)]
pub struct ConversationModels {
inner: std::sync::Arc<dyn super::stub::dynamic::ConversationModels>,
}
#[cfg(feature = "conversation-models")]
impl ConversationModels {
pub fn builder() -> super::builder::conversation_models::ClientBuilder {
crate::new_client_builder(super::builder::conversation_models::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ConversationModels + '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::ConversationModels>>
{
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::ConversationModels> {
super::transport::ConversationModels::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ConversationModels> {
Self::build_transport(conf)
.await
.map(super::tracing::ConversationModels::new)
}
pub fn create_conversation_model(
&self,
) -> super::builder::conversation_models::CreateConversationModel {
super::builder::conversation_models::CreateConversationModel::new(self.inner.clone())
}
pub fn get_conversation_model(
&self,
) -> super::builder::conversation_models::GetConversationModel {
super::builder::conversation_models::GetConversationModel::new(self.inner.clone())
}
pub fn list_conversation_models(
&self,
) -> super::builder::conversation_models::ListConversationModels {
super::builder::conversation_models::ListConversationModels::new(self.inner.clone())
}
pub fn delete_conversation_model(
&self,
) -> super::builder::conversation_models::DeleteConversationModel {
super::builder::conversation_models::DeleteConversationModel::new(self.inner.clone())
}
pub fn deploy_conversation_model(
&self,
) -> super::builder::conversation_models::DeployConversationModel {
super::builder::conversation_models::DeployConversationModel::new(self.inner.clone())
}
pub fn undeploy_conversation_model(
&self,
) -> super::builder::conversation_models::UndeployConversationModel {
super::builder::conversation_models::UndeployConversationModel::new(self.inner.clone())
}
pub fn get_conversation_model_evaluation(
&self,
) -> super::builder::conversation_models::GetConversationModelEvaluation {
super::builder::conversation_models::GetConversationModelEvaluation::new(self.inner.clone())
}
pub fn list_conversation_model_evaluations(
&self,
) -> super::builder::conversation_models::ListConversationModelEvaluations {
super::builder::conversation_models::ListConversationModelEvaluations::new(
self.inner.clone(),
)
}
pub fn create_conversation_model_evaluation(
&self,
) -> super::builder::conversation_models::CreateConversationModelEvaluation {
super::builder::conversation_models::CreateConversationModelEvaluation::new(
self.inner.clone(),
)
}
pub fn list_locations(&self) -> super::builder::conversation_models::ListLocations {
super::builder::conversation_models::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::conversation_models::GetLocation {
super::builder::conversation_models::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::conversation_models::ListOperations {
super::builder::conversation_models::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::conversation_models::GetOperation {
super::builder::conversation_models::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::conversation_models::CancelOperation {
super::builder::conversation_models::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "conversation-profiles")]
#[cfg_attr(docsrs, doc(cfg(feature = "conversation-profiles")))]
#[derive(Clone, Debug)]
pub struct ConversationProfiles {
inner: std::sync::Arc<dyn super::stub::dynamic::ConversationProfiles>,
}
#[cfg(feature = "conversation-profiles")]
impl ConversationProfiles {
pub fn builder() -> super::builder::conversation_profiles::ClientBuilder {
crate::new_client_builder(super::builder::conversation_profiles::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::ConversationProfiles + '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::ConversationProfiles>>
{
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::ConversationProfiles> {
super::transport::ConversationProfiles::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::ConversationProfiles> {
Self::build_transport(conf)
.await
.map(super::tracing::ConversationProfiles::new)
}
pub fn list_conversation_profiles(
&self,
) -> super::builder::conversation_profiles::ListConversationProfiles {
super::builder::conversation_profiles::ListConversationProfiles::new(self.inner.clone())
}
pub fn get_conversation_profile(
&self,
) -> super::builder::conversation_profiles::GetConversationProfile {
super::builder::conversation_profiles::GetConversationProfile::new(self.inner.clone())
}
pub fn create_conversation_profile(
&self,
) -> super::builder::conversation_profiles::CreateConversationProfile {
super::builder::conversation_profiles::CreateConversationProfile::new(self.inner.clone())
}
pub fn update_conversation_profile(
&self,
) -> super::builder::conversation_profiles::UpdateConversationProfile {
super::builder::conversation_profiles::UpdateConversationProfile::new(self.inner.clone())
}
pub fn delete_conversation_profile(
&self,
) -> super::builder::conversation_profiles::DeleteConversationProfile {
super::builder::conversation_profiles::DeleteConversationProfile::new(self.inner.clone())
}
pub fn set_suggestion_feature_config(
&self,
) -> super::builder::conversation_profiles::SetSuggestionFeatureConfig {
super::builder::conversation_profiles::SetSuggestionFeatureConfig::new(self.inner.clone())
}
pub fn clear_suggestion_feature_config(
&self,
) -> super::builder::conversation_profiles::ClearSuggestionFeatureConfig {
super::builder::conversation_profiles::ClearSuggestionFeatureConfig::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::conversation_profiles::ListLocations {
super::builder::conversation_profiles::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::conversation_profiles::GetLocation {
super::builder::conversation_profiles::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::conversation_profiles::ListOperations {
super::builder::conversation_profiles::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::conversation_profiles::GetOperation {
super::builder::conversation_profiles::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::conversation_profiles::CancelOperation {
super::builder::conversation_profiles::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "documents")]
#[cfg_attr(docsrs, doc(cfg(feature = "documents")))]
#[derive(Clone, Debug)]
pub struct Documents {
inner: std::sync::Arc<dyn super::stub::dynamic::Documents>,
}
#[cfg(feature = "documents")]
impl Documents {
pub fn builder() -> super::builder::documents::ClientBuilder {
crate::new_client_builder(super::builder::documents::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Documents + '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::Documents>> {
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::Documents> {
super::transport::Documents::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Documents> {
Self::build_transport(conf)
.await
.map(super::tracing::Documents::new)
}
pub fn list_documents(&self) -> super::builder::documents::ListDocuments {
super::builder::documents::ListDocuments::new(self.inner.clone())
}
pub fn get_document(&self) -> super::builder::documents::GetDocument {
super::builder::documents::GetDocument::new(self.inner.clone())
}
pub fn create_document(&self) -> super::builder::documents::CreateDocument {
super::builder::documents::CreateDocument::new(self.inner.clone())
}
pub fn import_documents(&self) -> super::builder::documents::ImportDocuments {
super::builder::documents::ImportDocuments::new(self.inner.clone())
}
pub fn delete_document(&self) -> super::builder::documents::DeleteDocument {
super::builder::documents::DeleteDocument::new(self.inner.clone())
}
pub fn update_document(&self) -> super::builder::documents::UpdateDocument {
super::builder::documents::UpdateDocument::new(self.inner.clone())
}
pub fn reload_document(&self) -> super::builder::documents::ReloadDocument {
super::builder::documents::ReloadDocument::new(self.inner.clone())
}
pub fn export_document(&self) -> super::builder::documents::ExportDocument {
super::builder::documents::ExportDocument::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::documents::ListLocations {
super::builder::documents::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::documents::GetLocation {
super::builder::documents::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::documents::ListOperations {
super::builder::documents::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::documents::GetOperation {
super::builder::documents::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::documents::CancelOperation {
super::builder::documents::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "encryption-spec-service")]
#[cfg_attr(docsrs, doc(cfg(feature = "encryption-spec-service")))]
#[derive(Clone, Debug)]
pub struct EncryptionSpecService {
inner: std::sync::Arc<dyn super::stub::dynamic::EncryptionSpecService>,
}
#[cfg(feature = "encryption-spec-service")]
impl EncryptionSpecService {
pub fn builder() -> super::builder::encryption_spec_service::ClientBuilder {
crate::new_client_builder(super::builder::encryption_spec_service::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::EncryptionSpecService + '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::EncryptionSpecService>>
{
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::EncryptionSpecService> {
super::transport::EncryptionSpecService::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::EncryptionSpecService> {
Self::build_transport(conf)
.await
.map(super::tracing::EncryptionSpecService::new)
}
pub fn get_encryption_spec(
&self,
) -> super::builder::encryption_spec_service::GetEncryptionSpec {
super::builder::encryption_spec_service::GetEncryptionSpec::new(self.inner.clone())
}
pub fn initialize_encryption_spec(
&self,
) -> super::builder::encryption_spec_service::InitializeEncryptionSpec {
super::builder::encryption_spec_service::InitializeEncryptionSpec::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::encryption_spec_service::ListLocations {
super::builder::encryption_spec_service::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::encryption_spec_service::GetLocation {
super::builder::encryption_spec_service::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::encryption_spec_service::ListOperations {
super::builder::encryption_spec_service::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::encryption_spec_service::GetOperation {
super::builder::encryption_spec_service::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::encryption_spec_service::CancelOperation {
super::builder::encryption_spec_service::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "entity-types")]
#[cfg_attr(docsrs, doc(cfg(feature = "entity-types")))]
#[derive(Clone, Debug)]
pub struct EntityTypes {
inner: std::sync::Arc<dyn super::stub::dynamic::EntityTypes>,
}
#[cfg(feature = "entity-types")]
impl EntityTypes {
pub fn builder() -> super::builder::entity_types::ClientBuilder {
crate::new_client_builder(super::builder::entity_types::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::EntityTypes + '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::EntityTypes>> {
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::EntityTypes> {
super::transport::EntityTypes::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::EntityTypes> {
Self::build_transport(conf)
.await
.map(super::tracing::EntityTypes::new)
}
pub fn list_entity_types(&self) -> super::builder::entity_types::ListEntityTypes {
super::builder::entity_types::ListEntityTypes::new(self.inner.clone())
}
pub fn get_entity_type(&self) -> super::builder::entity_types::GetEntityType {
super::builder::entity_types::GetEntityType::new(self.inner.clone())
}
pub fn create_entity_type(&self) -> super::builder::entity_types::CreateEntityType {
super::builder::entity_types::CreateEntityType::new(self.inner.clone())
}
pub fn update_entity_type(&self) -> super::builder::entity_types::UpdateEntityType {
super::builder::entity_types::UpdateEntityType::new(self.inner.clone())
}
pub fn delete_entity_type(&self) -> super::builder::entity_types::DeleteEntityType {
super::builder::entity_types::DeleteEntityType::new(self.inner.clone())
}
pub fn batch_update_entity_types(
&self,
) -> super::builder::entity_types::BatchUpdateEntityTypes {
super::builder::entity_types::BatchUpdateEntityTypes::new(self.inner.clone())
}
pub fn batch_delete_entity_types(
&self,
) -> super::builder::entity_types::BatchDeleteEntityTypes {
super::builder::entity_types::BatchDeleteEntityTypes::new(self.inner.clone())
}
pub fn batch_create_entities(&self) -> super::builder::entity_types::BatchCreateEntities {
super::builder::entity_types::BatchCreateEntities::new(self.inner.clone())
}
pub fn batch_update_entities(&self) -> super::builder::entity_types::BatchUpdateEntities {
super::builder::entity_types::BatchUpdateEntities::new(self.inner.clone())
}
pub fn batch_delete_entities(&self) -> super::builder::entity_types::BatchDeleteEntities {
super::builder::entity_types::BatchDeleteEntities::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::entity_types::ListLocations {
super::builder::entity_types::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::entity_types::GetLocation {
super::builder::entity_types::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::entity_types::ListOperations {
super::builder::entity_types::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::entity_types::GetOperation {
super::builder::entity_types::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::entity_types::CancelOperation {
super::builder::entity_types::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "environments")]
#[cfg_attr(docsrs, doc(cfg(feature = "environments")))]
#[derive(Clone, Debug)]
pub struct Environments {
inner: std::sync::Arc<dyn super::stub::dynamic::Environments>,
}
#[cfg(feature = "environments")]
impl Environments {
pub fn builder() -> super::builder::environments::ClientBuilder {
crate::new_client_builder(super::builder::environments::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Environments + '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::Environments>> {
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::Environments> {
super::transport::Environments::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Environments> {
Self::build_transport(conf)
.await
.map(super::tracing::Environments::new)
}
pub fn list_environments(&self) -> super::builder::environments::ListEnvironments {
super::builder::environments::ListEnvironments::new(self.inner.clone())
}
pub fn get_environment(&self) -> super::builder::environments::GetEnvironment {
super::builder::environments::GetEnvironment::new(self.inner.clone())
}
pub fn create_environment(&self) -> super::builder::environments::CreateEnvironment {
super::builder::environments::CreateEnvironment::new(self.inner.clone())
}
pub fn update_environment(&self) -> super::builder::environments::UpdateEnvironment {
super::builder::environments::UpdateEnvironment::new(self.inner.clone())
}
pub fn delete_environment(&self) -> super::builder::environments::DeleteEnvironment {
super::builder::environments::DeleteEnvironment::new(self.inner.clone())
}
pub fn get_environment_history(&self) -> super::builder::environments::GetEnvironmentHistory {
super::builder::environments::GetEnvironmentHistory::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::environments::ListLocations {
super::builder::environments::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::environments::GetLocation {
super::builder::environments::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::environments::ListOperations {
super::builder::environments::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::environments::GetOperation {
super::builder::environments::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::environments::CancelOperation {
super::builder::environments::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "fulfillments")]
#[cfg_attr(docsrs, doc(cfg(feature = "fulfillments")))]
#[derive(Clone, Debug)]
pub struct Fulfillments {
inner: std::sync::Arc<dyn super::stub::dynamic::Fulfillments>,
}
#[cfg(feature = "fulfillments")]
impl Fulfillments {
pub fn builder() -> super::builder::fulfillments::ClientBuilder {
crate::new_client_builder(super::builder::fulfillments::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Fulfillments + '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::Fulfillments>> {
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::Fulfillments> {
super::transport::Fulfillments::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Fulfillments> {
Self::build_transport(conf)
.await
.map(super::tracing::Fulfillments::new)
}
pub fn get_fulfillment(&self) -> super::builder::fulfillments::GetFulfillment {
super::builder::fulfillments::GetFulfillment::new(self.inner.clone())
}
pub fn update_fulfillment(&self) -> super::builder::fulfillments::UpdateFulfillment {
super::builder::fulfillments::UpdateFulfillment::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::fulfillments::ListLocations {
super::builder::fulfillments::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::fulfillments::GetLocation {
super::builder::fulfillments::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::fulfillments::ListOperations {
super::builder::fulfillments::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::fulfillments::GetOperation {
super::builder::fulfillments::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::fulfillments::CancelOperation {
super::builder::fulfillments::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "generators")]
#[cfg_attr(docsrs, doc(cfg(feature = "generators")))]
#[derive(Clone, Debug)]
pub struct Generators {
inner: std::sync::Arc<dyn super::stub::dynamic::Generators>,
}
#[cfg(feature = "generators")]
impl Generators {
pub fn builder() -> super::builder::generators::ClientBuilder {
crate::new_client_builder(super::builder::generators::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Generators + '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::Generators>> {
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::Generators> {
super::transport::Generators::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Generators> {
Self::build_transport(conf)
.await
.map(super::tracing::Generators::new)
}
pub fn create_generator(&self) -> super::builder::generators::CreateGenerator {
super::builder::generators::CreateGenerator::new(self.inner.clone())
}
pub fn get_generator(&self) -> super::builder::generators::GetGenerator {
super::builder::generators::GetGenerator::new(self.inner.clone())
}
pub fn list_generators(&self) -> super::builder::generators::ListGenerators {
super::builder::generators::ListGenerators::new(self.inner.clone())
}
pub fn delete_generator(&self) -> super::builder::generators::DeleteGenerator {
super::builder::generators::DeleteGenerator::new(self.inner.clone())
}
pub fn update_generator(&self) -> super::builder::generators::UpdateGenerator {
super::builder::generators::UpdateGenerator::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::generators::ListLocations {
super::builder::generators::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::generators::GetLocation {
super::builder::generators::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::generators::ListOperations {
super::builder::generators::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::generators::GetOperation {
super::builder::generators::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::generators::CancelOperation {
super::builder::generators::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "generator-evaluations")]
#[cfg_attr(docsrs, doc(cfg(feature = "generator-evaluations")))]
#[derive(Clone, Debug)]
pub struct GeneratorEvaluations {
inner: std::sync::Arc<dyn super::stub::dynamic::GeneratorEvaluations>,
}
#[cfg(feature = "generator-evaluations")]
impl GeneratorEvaluations {
pub fn builder() -> super::builder::generator_evaluations::ClientBuilder {
crate::new_client_builder(super::builder::generator_evaluations::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::GeneratorEvaluations + '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::GeneratorEvaluations>>
{
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::GeneratorEvaluations> {
super::transport::GeneratorEvaluations::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::GeneratorEvaluations> {
Self::build_transport(conf)
.await
.map(super::tracing::GeneratorEvaluations::new)
}
pub fn create_generator_evaluation(
&self,
) -> super::builder::generator_evaluations::CreateGeneratorEvaluation {
super::builder::generator_evaluations::CreateGeneratorEvaluation::new(self.inner.clone())
}
pub fn get_generator_evaluation(
&self,
) -> super::builder::generator_evaluations::GetGeneratorEvaluation {
super::builder::generator_evaluations::GetGeneratorEvaluation::new(self.inner.clone())
}
pub fn list_generator_evaluations(
&self,
) -> super::builder::generator_evaluations::ListGeneratorEvaluations {
super::builder::generator_evaluations::ListGeneratorEvaluations::new(self.inner.clone())
}
pub fn delete_generator_evaluation(
&self,
) -> super::builder::generator_evaluations::DeleteGeneratorEvaluation {
super::builder::generator_evaluations::DeleteGeneratorEvaluation::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::generator_evaluations::ListLocations {
super::builder::generator_evaluations::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::generator_evaluations::GetLocation {
super::builder::generator_evaluations::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::generator_evaluations::ListOperations {
super::builder::generator_evaluations::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::generator_evaluations::GetOperation {
super::builder::generator_evaluations::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::generator_evaluations::CancelOperation {
super::builder::generator_evaluations::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "intents")]
#[cfg_attr(docsrs, doc(cfg(feature = "intents")))]
#[derive(Clone, Debug)]
pub struct Intents {
inner: std::sync::Arc<dyn super::stub::dynamic::Intents>,
}
#[cfg(feature = "intents")]
impl Intents {
pub fn builder() -> super::builder::intents::ClientBuilder {
crate::new_client_builder(super::builder::intents::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Intents + '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::Intents>> {
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::Intents> {
super::transport::Intents::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Intents> {
Self::build_transport(conf)
.await
.map(super::tracing::Intents::new)
}
pub fn list_intents(&self) -> super::builder::intents::ListIntents {
super::builder::intents::ListIntents::new(self.inner.clone())
}
pub fn get_intent(&self) -> super::builder::intents::GetIntent {
super::builder::intents::GetIntent::new(self.inner.clone())
}
pub fn create_intent(&self) -> super::builder::intents::CreateIntent {
super::builder::intents::CreateIntent::new(self.inner.clone())
}
pub fn update_intent(&self) -> super::builder::intents::UpdateIntent {
super::builder::intents::UpdateIntent::new(self.inner.clone())
}
pub fn delete_intent(&self) -> super::builder::intents::DeleteIntent {
super::builder::intents::DeleteIntent::new(self.inner.clone())
}
pub fn batch_update_intents(&self) -> super::builder::intents::BatchUpdateIntents {
super::builder::intents::BatchUpdateIntents::new(self.inner.clone())
}
pub fn batch_delete_intents(&self) -> super::builder::intents::BatchDeleteIntents {
super::builder::intents::BatchDeleteIntents::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::intents::ListLocations {
super::builder::intents::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::intents::GetLocation {
super::builder::intents::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::intents::ListOperations {
super::builder::intents::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::intents::GetOperation {
super::builder::intents::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::intents::CancelOperation {
super::builder::intents::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "knowledge-bases")]
#[cfg_attr(docsrs, doc(cfg(feature = "knowledge-bases")))]
#[derive(Clone, Debug)]
pub struct KnowledgeBases {
inner: std::sync::Arc<dyn super::stub::dynamic::KnowledgeBases>,
}
#[cfg(feature = "knowledge-bases")]
impl KnowledgeBases {
pub fn builder() -> super::builder::knowledge_bases::ClientBuilder {
crate::new_client_builder(super::builder::knowledge_bases::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::KnowledgeBases + '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::KnowledgeBases>> {
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::KnowledgeBases> {
super::transport::KnowledgeBases::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::KnowledgeBases> {
Self::build_transport(conf)
.await
.map(super::tracing::KnowledgeBases::new)
}
pub fn list_knowledge_bases(&self) -> super::builder::knowledge_bases::ListKnowledgeBases {
super::builder::knowledge_bases::ListKnowledgeBases::new(self.inner.clone())
}
pub fn get_knowledge_base(&self) -> super::builder::knowledge_bases::GetKnowledgeBase {
super::builder::knowledge_bases::GetKnowledgeBase::new(self.inner.clone())
}
pub fn create_knowledge_base(&self) -> super::builder::knowledge_bases::CreateKnowledgeBase {
super::builder::knowledge_bases::CreateKnowledgeBase::new(self.inner.clone())
}
pub fn delete_knowledge_base(&self) -> super::builder::knowledge_bases::DeleteKnowledgeBase {
super::builder::knowledge_bases::DeleteKnowledgeBase::new(self.inner.clone())
}
pub fn update_knowledge_base(&self) -> super::builder::knowledge_bases::UpdateKnowledgeBase {
super::builder::knowledge_bases::UpdateKnowledgeBase::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::knowledge_bases::ListLocations {
super::builder::knowledge_bases::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::knowledge_bases::GetLocation {
super::builder::knowledge_bases::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::knowledge_bases::ListOperations {
super::builder::knowledge_bases::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::knowledge_bases::GetOperation {
super::builder::knowledge_bases::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::knowledge_bases::CancelOperation {
super::builder::knowledge_bases::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "participants")]
#[cfg_attr(docsrs, doc(cfg(feature = "participants")))]
#[derive(Clone, Debug)]
pub struct Participants {
inner: std::sync::Arc<dyn super::stub::dynamic::Participants>,
}
#[cfg(feature = "participants")]
impl Participants {
pub fn builder() -> super::builder::participants::ClientBuilder {
crate::new_client_builder(super::builder::participants::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Participants + '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::Participants>> {
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::Participants> {
super::transport::Participants::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Participants> {
Self::build_transport(conf)
.await
.map(super::tracing::Participants::new)
}
pub fn create_participant(&self) -> super::builder::participants::CreateParticipant {
super::builder::participants::CreateParticipant::new(self.inner.clone())
}
pub fn get_participant(&self) -> super::builder::participants::GetParticipant {
super::builder::participants::GetParticipant::new(self.inner.clone())
}
pub fn list_participants(&self) -> super::builder::participants::ListParticipants {
super::builder::participants::ListParticipants::new(self.inner.clone())
}
pub fn update_participant(&self) -> super::builder::participants::UpdateParticipant {
super::builder::participants::UpdateParticipant::new(self.inner.clone())
}
pub fn analyze_content(&self) -> super::builder::participants::AnalyzeContent {
super::builder::participants::AnalyzeContent::new(self.inner.clone())
}
pub fn suggest_articles(&self) -> super::builder::participants::SuggestArticles {
super::builder::participants::SuggestArticles::new(self.inner.clone())
}
pub fn suggest_faq_answers(&self) -> super::builder::participants::SuggestFaqAnswers {
super::builder::participants::SuggestFaqAnswers::new(self.inner.clone())
}
pub fn suggest_smart_replies(&self) -> super::builder::participants::SuggestSmartReplies {
super::builder::participants::SuggestSmartReplies::new(self.inner.clone())
}
pub fn suggest_knowledge_assist(&self) -> super::builder::participants::SuggestKnowledgeAssist {
super::builder::participants::SuggestKnowledgeAssist::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::participants::ListLocations {
super::builder::participants::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::participants::GetLocation {
super::builder::participants::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::participants::ListOperations {
super::builder::participants::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::participants::GetOperation {
super::builder::participants::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::participants::CancelOperation {
super::builder::participants::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "sessions")]
#[cfg_attr(docsrs, doc(cfg(feature = "sessions")))]
#[derive(Clone, Debug)]
pub struct Sessions {
inner: std::sync::Arc<dyn super::stub::dynamic::Sessions>,
}
#[cfg(feature = "sessions")]
impl Sessions {
pub fn builder() -> super::builder::sessions::ClientBuilder {
crate::new_client_builder(super::builder::sessions::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Sessions + '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::Sessions>> {
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::Sessions> {
super::transport::Sessions::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Sessions> {
Self::build_transport(conf)
.await
.map(super::tracing::Sessions::new)
}
pub fn detect_intent(&self) -> super::builder::sessions::DetectIntent {
super::builder::sessions::DetectIntent::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::sessions::ListLocations {
super::builder::sessions::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::sessions::GetLocation {
super::builder::sessions::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::sessions::ListOperations {
super::builder::sessions::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::sessions::GetOperation {
super::builder::sessions::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::sessions::CancelOperation {
super::builder::sessions::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "session-entity-types")]
#[cfg_attr(docsrs, doc(cfg(feature = "session-entity-types")))]
#[derive(Clone, Debug)]
pub struct SessionEntityTypes {
inner: std::sync::Arc<dyn super::stub::dynamic::SessionEntityTypes>,
}
#[cfg(feature = "session-entity-types")]
impl SessionEntityTypes {
pub fn builder() -> super::builder::session_entity_types::ClientBuilder {
crate::new_client_builder(super::builder::session_entity_types::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::SessionEntityTypes + '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::SessionEntityTypes>>
{
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::SessionEntityTypes> {
super::transport::SessionEntityTypes::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::SessionEntityTypes> {
Self::build_transport(conf)
.await
.map(super::tracing::SessionEntityTypes::new)
}
pub fn list_session_entity_types(
&self,
) -> super::builder::session_entity_types::ListSessionEntityTypes {
super::builder::session_entity_types::ListSessionEntityTypes::new(self.inner.clone())
}
pub fn get_session_entity_type(
&self,
) -> super::builder::session_entity_types::GetSessionEntityType {
super::builder::session_entity_types::GetSessionEntityType::new(self.inner.clone())
}
pub fn create_session_entity_type(
&self,
) -> super::builder::session_entity_types::CreateSessionEntityType {
super::builder::session_entity_types::CreateSessionEntityType::new(self.inner.clone())
}
pub fn update_session_entity_type(
&self,
) -> super::builder::session_entity_types::UpdateSessionEntityType {
super::builder::session_entity_types::UpdateSessionEntityType::new(self.inner.clone())
}
pub fn delete_session_entity_type(
&self,
) -> super::builder::session_entity_types::DeleteSessionEntityType {
super::builder::session_entity_types::DeleteSessionEntityType::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::session_entity_types::ListLocations {
super::builder::session_entity_types::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::session_entity_types::GetLocation {
super::builder::session_entity_types::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::session_entity_types::ListOperations {
super::builder::session_entity_types::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::session_entity_types::GetOperation {
super::builder::session_entity_types::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::session_entity_types::CancelOperation {
super::builder::session_entity_types::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "sip-trunks")]
#[cfg_attr(docsrs, doc(cfg(feature = "sip-trunks")))]
#[derive(Clone, Debug)]
pub struct SipTrunks {
inner: std::sync::Arc<dyn super::stub::dynamic::SipTrunks>,
}
#[cfg(feature = "sip-trunks")]
impl SipTrunks {
pub fn builder() -> super::builder::sip_trunks::ClientBuilder {
crate::new_client_builder(super::builder::sip_trunks::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::SipTrunks + '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::SipTrunks>> {
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::SipTrunks> {
super::transport::SipTrunks::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::SipTrunks> {
Self::build_transport(conf)
.await
.map(super::tracing::SipTrunks::new)
}
pub fn create_sip_trunk(&self) -> super::builder::sip_trunks::CreateSipTrunk {
super::builder::sip_trunks::CreateSipTrunk::new(self.inner.clone())
}
pub fn delete_sip_trunk(&self) -> super::builder::sip_trunks::DeleteSipTrunk {
super::builder::sip_trunks::DeleteSipTrunk::new(self.inner.clone())
}
pub fn list_sip_trunks(&self) -> super::builder::sip_trunks::ListSipTrunks {
super::builder::sip_trunks::ListSipTrunks::new(self.inner.clone())
}
pub fn get_sip_trunk(&self) -> super::builder::sip_trunks::GetSipTrunk {
super::builder::sip_trunks::GetSipTrunk::new(self.inner.clone())
}
pub fn update_sip_trunk(&self) -> super::builder::sip_trunks::UpdateSipTrunk {
super::builder::sip_trunks::UpdateSipTrunk::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::sip_trunks::ListLocations {
super::builder::sip_trunks::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::sip_trunks::GetLocation {
super::builder::sip_trunks::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::sip_trunks::ListOperations {
super::builder::sip_trunks::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::sip_trunks::GetOperation {
super::builder::sip_trunks::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::sip_trunks::CancelOperation {
super::builder::sip_trunks::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "tools")]
#[cfg_attr(docsrs, doc(cfg(feature = "tools")))]
#[derive(Clone, Debug)]
pub struct Tools {
inner: std::sync::Arc<dyn super::stub::dynamic::Tools>,
}
#[cfg(feature = "tools")]
impl Tools {
pub fn builder() -> super::builder::tools::ClientBuilder {
crate::new_client_builder(super::builder::tools::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Tools + '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::Tools>> {
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::Tools> {
super::transport::Tools::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Tools> {
Self::build_transport(conf)
.await
.map(super::tracing::Tools::new)
}
pub fn create_tool(&self) -> super::builder::tools::CreateTool {
super::builder::tools::CreateTool::new(self.inner.clone())
}
pub fn get_tool(&self) -> super::builder::tools::GetTool {
super::builder::tools::GetTool::new(self.inner.clone())
}
pub fn list_tools(&self) -> super::builder::tools::ListTools {
super::builder::tools::ListTools::new(self.inner.clone())
}
pub fn delete_tool(&self) -> super::builder::tools::DeleteTool {
super::builder::tools::DeleteTool::new(self.inner.clone())
}
pub fn update_tool(&self) -> super::builder::tools::UpdateTool {
super::builder::tools::UpdateTool::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::tools::ListLocations {
super::builder::tools::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::tools::GetLocation {
super::builder::tools::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::tools::ListOperations {
super::builder::tools::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::tools::GetOperation {
super::builder::tools::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::tools::CancelOperation {
super::builder::tools::CancelOperation::new(self.inner.clone())
}
}
#[cfg(feature = "versions")]
#[cfg_attr(docsrs, doc(cfg(feature = "versions")))]
#[derive(Clone, Debug)]
pub struct Versions {
inner: std::sync::Arc<dyn super::stub::dynamic::Versions>,
}
#[cfg(feature = "versions")]
impl Versions {
pub fn builder() -> super::builder::versions::ClientBuilder {
crate::new_client_builder(super::builder::versions::client::Factory)
}
pub fn from_stub<T>(stub: impl Into<std::sync::Arc<T>>) -> Self
where
T: super::stub::Versions + '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::Versions>> {
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::Versions> {
super::transport::Versions::new(conf).await
}
async fn build_with_tracing(
conf: gaxi::options::ClientConfig,
) -> crate::ClientBuilderResult<impl super::stub::Versions> {
Self::build_transport(conf)
.await
.map(super::tracing::Versions::new)
}
pub fn list_versions(&self) -> super::builder::versions::ListVersions {
super::builder::versions::ListVersions::new(self.inner.clone())
}
pub fn get_version(&self) -> super::builder::versions::GetVersion {
super::builder::versions::GetVersion::new(self.inner.clone())
}
pub fn create_version(&self) -> super::builder::versions::CreateVersion {
super::builder::versions::CreateVersion::new(self.inner.clone())
}
pub fn update_version(&self) -> super::builder::versions::UpdateVersion {
super::builder::versions::UpdateVersion::new(self.inner.clone())
}
pub fn delete_version(&self) -> super::builder::versions::DeleteVersion {
super::builder::versions::DeleteVersion::new(self.inner.clone())
}
pub fn list_locations(&self) -> super::builder::versions::ListLocations {
super::builder::versions::ListLocations::new(self.inner.clone())
}
pub fn get_location(&self) -> super::builder::versions::GetLocation {
super::builder::versions::GetLocation::new(self.inner.clone())
}
pub fn list_operations(&self) -> super::builder::versions::ListOperations {
super::builder::versions::ListOperations::new(self.inner.clone())
}
pub fn get_operation(&self) -> super::builder::versions::GetOperation {
super::builder::versions::GetOperation::new(self.inner.clone())
}
pub fn cancel_operation(&self) -> super::builder::versions::CancelOperation {
super::builder::versions::CancelOperation::new(self.inner.clone())
}
}