google_api_cloud_run v0.15.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 (type: integer(), default: nil) - The int value.
  • strVal (type: String.t, default: nil) - The string value.
  • type (type: integer(), default: nil) - The type of the value.

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: integer()
}

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.