Struct DeleteCachedContent (0.5.0)

The request builder for [GenAiCacheService::delete_cached_content][crate::client::GenAiCacheService::delete_cached_content] calls.

Example

# use google_cloud_aiplatform_v1::builder;
use builder::gen_ai_cache_service::DeleteCachedContent;
# tokio_test::block_on(async {

let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> DeleteCachedContent {
  # panic!();
  // ... details omitted ...
}

Implementations

with_request

 fn with_request<V: Into<crate::model::DeleteCachedContentRequest>>(self, v: V) -> Self

Sets the full request, replacing any prior values.

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

Sets all the options, replacing any prior values.

send

async fn send(self) -> Result<>

Sends the request.

set_name

 fn set_name<T: Into<std::string::String>>(self, v: T) -> Self

Sets the value of [name][crate::model::DeleteCachedContentRequest::name].

This is a required field for requests.