[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
모든 옵션을 설정하여 이전 값을 대체합니다.
보내기
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] 값을 설정합니다.