pub struct Routers { /* private fields */ }routers only.Expand description
Implements a client for the Google Compute Engine API.
§Example
let client = Routers::builder().build().await?;
// use `client` to make requests to the Google Compute Engine API.§Service Description
Service for the routers resource.
§Configuration
To configure Routers use the with_* methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://compute.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
Routers holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Routers in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl Routers
impl Routers
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for Routers.
let client = Routers::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Routers + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Routers + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn aggregated_list(&self) -> AggregatedList
pub fn aggregated_list(&self) -> AggregatedList
Retrieves an aggregated list of routers.
To prevent failure, Google recommends that you set the
returnPartialSuccess parameter to true.
Sourcepub fn delete_route_policy(&self) -> DeleteRoutePolicy
pub fn delete_route_policy(&self) -> DeleteRoutePolicy
Deletes Route Policy
Sourcepub fn get_nat_ip_info(&self) -> GetNatIpInfo
pub fn get_nat_ip_info(&self) -> GetNatIpInfo
Retrieves runtime NAT IP information.
Sourcepub fn get_nat_mapping_info(&self) -> GetNatMappingInfo
pub fn get_nat_mapping_info(&self) -> GetNatMappingInfo
Retrieves runtime Nat mapping information of VM endpoints.
Sourcepub fn get_route_policy(&self) -> GetRoutePolicy
pub fn get_route_policy(&self) -> GetRoutePolicy
Returns specified Route Policy
Sourcepub fn get_router_status(&self) -> GetRouterStatus
pub fn get_router_status(&self) -> GetRouterStatus
Retrieves runtime information of the specified router.
Sourcepub fn insert(&self) -> Insert
pub fn insert(&self) -> Insert
Creates a Router resource in the specified project and region using the data included in the request.
Sourcepub fn list(&self) -> List
pub fn list(&self) -> List
Retrieves a list of Router resources available to the specified project.
Sourcepub fn list_bgp_routes(&self) -> ListBgpRoutes
pub fn list_bgp_routes(&self) -> ListBgpRoutes
Retrieves a list of router bgp routes available to the specified project.
Sourcepub fn list_route_policies(&self) -> ListRoutePolicies
pub fn list_route_policies(&self) -> ListRoutePolicies
Retrieves a list of router route policy subresources available to the specified project.
Sourcepub fn patch(&self) -> Patch
pub fn patch(&self) -> Patch
Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.
Sourcepub fn patch_route_policy(&self) -> PatchRoutePolicy
pub fn patch_route_policy(&self) -> PatchRoutePolicy
Patches Route Policy
Sourcepub fn preview(&self) -> Preview
pub fn preview(&self) -> Preview
Preview fields auto-generated during router create andupdate operations. Calling this method does NOT create or update the router.
Sourcepub fn update(&self) -> Update
pub fn update(&self) -> Update
Updates the specified Router resource with the data included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.
Sourcepub fn update_route_policy(&self) -> UpdateRoutePolicy
pub fn update_route_policy(&self) -> UpdateRoutePolicy
Updates or creates new Route Policy
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Retrieves the specified region-specific Operations resource.