[InstanceAdmin::list_operations][crate::client::InstanceAdmin::list_operations] 呼び出しのリクエスト ビルダー。
例
# use google_cloud_spanner_admin_instance_v1::builder;
use builder::instance_admin::ListOperations;
# tokio_test::block_on(async {
use gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> ListOperations {
# panic!();
// ... details omitted ...
}
実装
with_request
fn with_request<V: Into<longrunning::model::ListOperationsRequest>>(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::ListOperationsResponse>
リクエストを送信します。
by_page
fn by_page(self) -> impl gax::paginator::Paginator<longrunning::model::ListOperationsResponse, gax::error::Error>
コレクション内の各ページをストリーミングします。
by_item
fn by_item(self) -> impl gax::paginator::ItemPaginator<longrunning::model::ListOperationsResponse, gax::error::Error>
コレクション内の各アイテムをストリーミングします。
set_name
fn set_name<T: Into<std::string::String>>(self, v: T) -> Self
[name][longrunning::model::ListOperationsRequest::name] の値を設定します。
set_filter
fn set_filter<T: Into<std::string::String>>(self, v: T) -> Self
[filter][longrunning::model::ListOperationsRequest::filter] の値を設定します。
set_page_size
fn set_page_size<T: Into<i32>>(self, v: T) -> Self
[page_size][longrunning::model::ListOperationsRequest::page_size] の値を設定します。
set_page_token
fn set_page_token<T: Into<std::string::String>>(self, v: T) -> Self
[page_token][longrunning::model::ListOperationsRequest::page_token] の値を設定します。