[][src]Struct google_run1::TrafficTarget

pub struct TrafficTarget {
    pub latest_revision: Option<bool>,
    pub configuration_name: Option<String>,
    pub tag: Option<String>,
    pub url: Option<String>,
    pub percent: Option<i32>,
    pub revision_name: Option<String>,
}

TrafficTarget holds a single entry of the routing table for a Route.

This type is not used in any activity, and only used as part of another schema.

Fields

latest_revision: Option<bool>

LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty.

+optional

configuration_name: Option<String>

ConfigurationName of a configuration to whose latest revision we will send this portion of traffic. When the "status.latestReadyRevisionName" of the referenced configuration changes, we will automatically migrate traffic from the prior "latest ready" revision to the new one. This field is never set in Route's status, only its spec. This is mutually exclusive with RevisionName.

Cloud Run currently supports a single ConfigurationName.

tag: Option<String>

Tag is optionally used to expose a dedicated url for referencing this target exclusively.

Not currently supported in Cloud Run. +optional

url: Option<String>

Output only. URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.

Not currently supported in Cloud Run.

percent: Option<i32>

Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.

Cloud Run currently requires 100 percent for a single ConfigurationName TrafficTarget entry.

revision_name: Option<String>

RevisionName of a specific revision to which to send this portion of traffic. This is mutually exclusive with ConfigurationName.

Providing RevisionName in spec is not currently supported by Cloud Run.

Trait Implementations

impl Clone for TrafficTarget[src]

impl Debug for TrafficTarget[src]

impl Default for TrafficTarget[src]

impl<'de> Deserialize<'de> for TrafficTarget[src]

impl Part for TrafficTarget[src]

impl Serialize for TrafficTarget[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<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<T> Typeable for T where
    T: Any