Class Schema (1.48.0)

Schema(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object <https://spec.openapis.org/oas/v3.0.3#schema>__. More fields may be added in the future as needed.

Attributes

NameDescription
type_ google.cloud.aiplatform_v1.types.Type
Optional. The type of the data.
format_ str
Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc
title str
Optional. The title of the Schema.
description str
Optional. The description of the data.
nullable bool
Optional. Indicates if the value may be null.
default google.protobuf.struct_pb2.Value
Optional. Default value of the data.
items google.cloud.aiplatform_v1.types.Schema
Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
min_items int
Optional. Minimum number of the elements for Type.ARRAY.
max_items int
Optional. Maximum number of the elements for Type.ARRAY.
enum MutableSequence[str]
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"]}
properties MutableMapping[str, google.cloud.aiplatform_v1.types.Schema]
Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
required MutableSequence[str]
Optional. Required properties of Type.OBJECT.
min_properties int
Optional. Minimum number of the properties for Type.OBJECT.
max_properties int
Optional. Maximum number of the properties for Type.OBJECT.
minimum float
Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
maximum float
Optional. Maximum value of the Type.INTEGER and Type.NUMBER
min_length int
Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
max_length int
Optional. Maximum length of the Type.STRING
pattern str
Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
example google.protobuf.struct_pb2.Value
Optional. Example of the object. Will only populated when the object is the root.

Classes

PropertiesEntry

PropertiesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Methods

Schema

Schema(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object <https://spec.openapis.org/oas/v3.0.3#schema>__. More fields may be added in the future as needed.