Der Anfrage-Builder für [DlpService::create_connection][crate::client::DlpService::create_connection]-Aufrufe.
Beispiel
# use google_cloud_privacy_dlp_v2::builder;
use builder::dlp_service::CreateConnection;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> CreateConnection {
# panic!();
// ... details omitted ...
}
Implementierungen
with_request
fn with_request<V: Into<crate::model::CreateConnectionRequest>>(self, v: V) -> Self
Legt die vollständige Anfrage fest und ersetzt alle vorherigen Werte.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Legt alle Optionen fest und ersetzt alle vorherigen Werte.
senden
async fn send(self) -> Result<crate::model::Connection>
Sendet die Anfrage.
set_parent
fn set_parent<T: Into<std::string::String>>(self, v: T) -> Self
Legt den Wert von [parent][crate::model::CreateConnectionRequest::parent] fest.
Dies ist ein Pflichtfeld für Anfragen.
set_connection
fn set_connection<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::Connection>,
Legt den Wert von [connection][crate::model::CreateConnectionRequest::connection] fest.
Dies ist ein Pflichtfeld für Anfragen.
set_or_clear_connection
fn set_or_clear_connection<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::Connection>,
Legt den Wert von [connection][crate::model::CreateConnectionRequest::connection] fest oder löscht ihn.
Dies ist ein Pflichtfeld für Anfragen.