Struct gapi_grpc::google::cloud::apigateway::v1::Gateway[][src]

pub struct Gateway {
    pub name: String,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub labels: HashMap<String, String>,
    pub display_name: String,
    pub api_config: String,
    pub state: i32,
    pub default_hostname: String,
}

A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.

Fields

name: String

Output only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway}

create_time: Option<Timestamp>

Output only. Created time.

update_time: Option<Timestamp>

Output only. Updated time.

labels: HashMap<String, String>

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

display_name: String

Optional. Display name.

api_config: String

Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}

state: i32

Output only. The current state of the Gateway.

default_hostname: String

Output only. The default API Gateway host name of the form {gateway_id}-{hash}.{region_code}.gateway.dev.

Implementations

impl Gateway[src]

pub fn state(&self) -> State[src]

Returns the enum value of state, or the default if the field is set to an invalid enum value.

pub fn set_state(&mut self, value: State)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for Gateway[src]

impl Debug for Gateway[src]

impl Default for Gateway[src]

impl Message for Gateway[src]

impl PartialEq<Gateway> for Gateway[src]

impl StructuralPartialEq for Gateway[src]

Auto Trait Implementations

impl RefUnwindSafe for Gateway

impl Send for Gateway

impl Sync for Gateway

impl Unpin for Gateway

impl UnwindSafe for Gateway

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]