GoogleApi.NetworkServices.V1.Model.HttpRouteRouteRule (google_api_network_services v0.11.0)

View Source

Specifies how to match traffic and how to route traffic when traffic is matched.

Attributes

  • action (type: GoogleApi.NetworkServices.V1.Model.HttpRouteRouteAction.t, default: nil) - The detailed rule defining how to route matched traffic.
  • matches (type: list(GoogleApi.NetworkServices.V1.Model.HttpRouteRouteMatch.t), default: nil) - A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.NetworkServices.V1.Model.HttpRouteRouteRule{
  action: GoogleApi.NetworkServices.V1.Model.HttpRouteRouteAction.t() | nil,
  matches: [GoogleApi.NetworkServices.V1.Model.HttpRouteRouteMatch.t()] | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.