GoogleApi.CloudRun.V1alpha1.Model.IntOrString (google_api_cloud_run v0.42.0) 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

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.