google_api_cloud_run v0.1.0 GoogleApi.CloudRun.V1alpha1.Model.IntOrString View Source

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.

Attributes

  • intVal (integer()): The int value. Defaults to nil.
  • strVal (String.t): The string value. Defaults to nil.
  • type (String.t): The type of the value. Defaults to nil.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.CloudRun.V1alpha1.Model.IntOrString{
  intVal: integer(),
  strVal: String.t(),
  type: String.t()
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.