View Source GoogleApi.Run.V1.Model.ServiceSpec (google_api_run v0.30.0)

ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s).

Attributes

  • template (type: GoogleApi.Run.V1.Model.RevisionTemplate.t, default: nil) - Holds the latest specification for the Revision to be stamped out.
  • traffic (type: list(GoogleApi.Run.V1.Model.TrafficTarget.t), default: nil) - Specifies how to distribute traffic over a collection of Knative Revisions and Configurations to the Service's main URL.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Run.V1.Model.ServiceSpec{
  template: GoogleApi.Run.V1.Model.RevisionTemplate.t() | nil,
  traffic: [GoogleApi.Run.V1.Model.TrafficTarget.t()] | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.