View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema (google_api_ai_platform v0.13.0)

Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.

Attributes

  • default (type: any(), default: nil) - Optional. Default value of the data.
  • description (type: String.t, default: nil) - Optional. The description of the data.
  • enum (type: list(String.t), default: nil) - Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
  • example (type: any(), default: nil) - Optional. Example of the object. Will only populated when the object is the root.
  • format (type: String.t, default: nil) - Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc
  • items (type: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t, default: nil) - Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
  • maxItems (type: String.t, default: nil) - Optional. Maximum number of the elements for Type.ARRAY.
  • maxLength (type: String.t, default: nil) - Optional. Maximum length of the Type.STRING
  • maxProperties (type: String.t, default: nil) - Optional. Maximum number of the properties for Type.OBJECT.
  • maximum (type: float(), default: nil) - Optional. Maximum value of the Type.INTEGER and Type.NUMBER
  • minItems (type: String.t, default: nil) - Optional. Minimum number of the elements for Type.ARRAY.
  • minLength (type: String.t, default: nil) - Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
  • minProperties (type: String.t, default: nil) - Optional. Minimum number of the properties for Type.OBJECT.
  • minimum (type: float(), default: nil) - Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
  • nullable (type: boolean(), default: nil) - Optional. Indicates if the value may be null.
  • pattern (type: String.t, default: nil) - Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
  • properties (type: %{optional(String.t) => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t}, default: nil) - Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
  • required (type: list(String.t), default: nil) - Optional. Required properties of Type.OBJECT.
  • title (type: String.t, default: nil) - Optional. The title of the Schema.
  • type (type: String.t, default: nil) - Optional. The type of the data.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema{
  default: any() | nil,
  description: String.t() | nil,
  enum: [String.t()] | nil,
  example: any() | nil,
  format: String.t() | nil,
  items: t() | nil,
  maxItems: String.t() | nil,
  maxLength: String.t() | nil,
  maxProperties: String.t() | nil,
  maximum: float() | nil,
  minItems: String.t() | nil,
  minLength: String.t() | nil,
  minProperties: String.t() | nil,
  minimum: float() | nil,
  nullable: boolean() | nil,
  pattern: String.t() | nil,
  properties: %{optional(String.t()) => t()} | nil,
  required: [String.t()] | nil,
  title: String.t() | nil,
  type: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.