The request builder for [ApiHub::update_external_api][crate::client::ApiHub::update_external_api] calls.
Example
# use google_cloud_apihub_v1::builder;
use builder::api_hub::UpdateExternalApi;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> UpdateExternalApi {
# panic!();
// ... details omitted ...
}
Implementations
with_request
fn with_request<V: Into<crate::model::UpdateExternalApiRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
send
async fn send(self) -> Result<crate::model::ExternalApi>
Sends the request.
set_external_api
fn set_external_api<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::ExternalApi>,
Sets the value of [external_api][crate::model::UpdateExternalApiRequest::external_api].
This is a required field for requests.
set_or_clear_external_api
fn set_or_clear_external_api<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::ExternalApi>,
Sets or clears the value of [external_api][crate::model::UpdateExternalApiRequest::external_api].
This is a required field for requests.
set_update_mask
fn set_update_mask<T>(self, v: T) -> Self
where
T: std::convert::Into<wkt::FieldMask>,
Sets the value of [update_mask][crate::model::UpdateExternalApiRequest::update_mask].
This is a required field for requests.
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>,
Sets or clears the value of [update_mask][crate::model::UpdateExternalApiRequest::update_mask].
This is a required field for requests.