Struct google_compute1::api::TargetTcpProxyMethods
source · pub struct TargetTcpProxyMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on targetTcpProxy resources.
It is not used directly, but through the Compute
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_compute1 as compute1;
use std::default::Default;
use compute1::{Compute, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Compute::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `aggregated_list(...)`, `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `set_backend_service(...)` and `set_proxy_header(...)`
// to build up your call.
let rb = hub.target_tcp_proxies();
Implementations§
source§impl<'a, S> TargetTcpProxyMethods<'a, S>
impl<'a, S> TargetTcpProxyMethods<'a, S>
sourcepub fn aggregated_list(
&self,
project: &str
) -> TargetTcpProxyAggregatedListCall<'a, S>
pub fn aggregated_list( &self, project: &str ) -> TargetTcpProxyAggregatedListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
§Arguments
project
- Name of the project scoping this request.
sourcepub fn delete(
&self,
project: &str,
target_tcp_proxy: &str
) -> TargetTcpProxyDeleteCall<'a, S>
pub fn delete( &self, project: &str, target_tcp_proxy: &str ) -> TargetTcpProxyDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes the specified TargetTcpProxy resource.
§Arguments
project
- Project ID for this request.targetTcpProxy
- Name of the TargetTcpProxy resource to delete.
sourcepub fn get(
&self,
project: &str,
target_tcp_proxy: &str
) -> TargetTcpProxyGetCall<'a, S>
pub fn get( &self, project: &str, target_tcp_proxy: &str ) -> TargetTcpProxyGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the specified TargetTcpProxy resource.
§Arguments
project
- Project ID for this request.targetTcpProxy
- Name of the TargetTcpProxy resource to return.
sourcepub fn insert(
&self,
request: TargetTcpProxy,
project: &str
) -> TargetTcpProxyInsertCall<'a, S>
pub fn insert( &self, request: TargetTcpProxy, project: &str ) -> TargetTcpProxyInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
§Arguments
request
- No description provided.project
- Project ID for this request.
sourcepub fn list(&self, project: &str) -> TargetTcpProxyListCall<'a, S>
pub fn list(&self, project: &str) -> TargetTcpProxyListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves the list of TargetTcpProxy resources available to the specified project.
§Arguments
project
- Project ID for this request.
sourcepub fn set_backend_service(
&self,
request: TargetTcpProxiesSetBackendServiceRequest,
project: &str,
target_tcp_proxy: &str
) -> TargetTcpProxySetBackendServiceCall<'a, S>
pub fn set_backend_service( &self, request: TargetTcpProxiesSetBackendServiceRequest, project: &str, target_tcp_proxy: &str ) -> TargetTcpProxySetBackendServiceCall<'a, S>
Create a builder to help you perform the following task:
Changes the BackendService for TargetTcpProxy.
§Arguments
request
- No description provided.project
- Project ID for this request.targetTcpProxy
- Name of the TargetTcpProxy resource whose BackendService resource is to be set.
sourcepub fn set_proxy_header(
&self,
request: TargetTcpProxiesSetProxyHeaderRequest,
project: &str,
target_tcp_proxy: &str
) -> TargetTcpProxySetProxyHeaderCall<'a, S>
pub fn set_proxy_header( &self, request: TargetTcpProxiesSetProxyHeaderRequest, project: &str, target_tcp_proxy: &str ) -> TargetTcpProxySetProxyHeaderCall<'a, S>
Create a builder to help you perform the following task:
Changes the ProxyHeaderType for TargetTcpProxy.
§Arguments
request
- No description provided.project
- Project ID for this request.targetTcpProxy
- Name of the TargetTcpProxy resource whose ProxyHeader is to be set.