google_api_cloud_run v0.0.1 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: null.
  • strVal (String.t): The string value. Defaults to: null.
  • type (String.t): The type of the value. Defaults to: null.

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: any(),
  strVal: any(),
  type: any()
}

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.