[ClusterController::list_operations][crate::client::ClusterController::list_operations] 调用的请求构建器。
示例
# use google_cloud_dataproc_v1::builder;
use builder::cluster_controller::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
设置所有选项,替换所有先前的值。
send
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] 的值。