構造体 UpdateTcpRoute(0.5.0)

[NetworkServices::update_tcp_route][crate::client::NetworkServices::update_tcp_route] 呼び出しのリクエスト ビルダー。

例

# use google_cloud_networkservices_v1::builder;
use builder::network_services::UpdateTcpRoute;
# tokio_test::block_on(async {
use lro::Poller;

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

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

実装

with_request

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

リクエスト全体を設定し、以前の値を置き換えます。

with_options

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

すべてのオプションを設定し、以前の値を置き換えます。

送信

async fn send(self) -> Result<longrunning::model::Operation>

リクエストを送信します。

長時間実行オペレーション

これにより、長時間実行オペレーションが開始されますが、ポーリングは行われません。[update_tcp_route][crate::client::NetworkServices::update_tcp_route] の詳細。

ポーラー

 fn poller(self) -> impl lro::Poller<crate::model::TcpRoute, crate::model::OperationMetadata>

update_tcp_route と連携する [Poller][lro::Poller] を作成します。

set_update_mask

 fn set_update_mask<T>(self, v: T) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

[update_mask][crate::model::UpdateTcpRouteRequest::update_mask] の値を設定します。

set_or_clear_update_mask

 fn set_or_clear_update_mask<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

[update_mask][crate::model::UpdateTcpRouteRequest::update_mask] の値を設定またはクリアします。

set_tcp_route

 fn set_tcp_route<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::TcpRoute>,

[tcp_route][crate::model::UpdateTcpRouteRequest::tcp_route] の値を設定します。

これはリクエストの必須項目です。

set_or_clear_tcp_route

 fn set_or_clear_tcp_route<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::TcpRoute>,

[tcp_route][crate::model::UpdateTcpRouteRequest::tcp_route] の値を設定またはクリアします。

これはリクエストの必須項目です。