View Source GoogleApi.Run.V2.Model.GoogleCloudRunV2TrafficTarget (google_api_run v0.30.0)

Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

Attributes

  • percent (type: integer(), default: nil) - Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
  • revision (type: String.t, default: nil) - Revision to which to send this portion of traffic, if traffic allocation is by revision.
  • tag (type: String.t, default: nil) - Indicates a string to be part of the URI to exclusively reference this target.
  • type (type: String.t, default: nil) - The allocation type for this traffic target.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Run.V2.Model.GoogleCloudRunV2TrafficTarget{
  percent: integer() | nil,
  revision: String.t() | nil,
  tag: String.t() | nil,
  type: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.