Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::Schema.
Represents a select subset of an OpenAPI 3.0 schema object.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#additional_properties
def additional_properties() -> ::Google::Cloud::Ces::V1beta::Schema- (::Google::Cloud::Ces::V1beta::Schema) — Optional. Can either be a boolean or an object, controls the presence of additional properties.
#additional_properties=
def additional_properties=(value) -> ::Google::Cloud::Ces::V1beta::Schema- value (::Google::Cloud::Ces::V1beta::Schema) — Optional. Can either be a boolean or an object, controls the presence of additional properties.
- (::Google::Cloud::Ces::V1beta::Schema) — Optional. Can either be a boolean or an object, controls the presence of additional properties.
#any_of
def any_of() -> ::Array<::Google::Cloud::Ces::V1beta::Schema>- (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. The value should be validated against any (one or more) of the subschemas in the list.
#any_of=
def any_of=(value) -> ::Array<::Google::Cloud::Ces::V1beta::Schema>- value (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. The value should be validated against any (one or more) of the subschemas in the list.
- (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. The value should be validated against any (one or more) of the subschemas in the list.
#default
def default() -> ::Google::Protobuf::Value- (::Google::Protobuf::Value) — Optional. Default value of the data.
#default=
def default=(value) -> ::Google::Protobuf::Value- value (::Google::Protobuf::Value) — Optional. Default value of the data.
- (::Google::Protobuf::Value) — Optional. Default value of the data.
#defs
def defs() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. A map of definitions for use by
ref. Only allowed at the root of the schema.
#defs=
def defs=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}-
value (::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. A map of definitions for use by
ref. Only allowed at the root of the schema.
-
(::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. A map of definitions for use by
ref. Only allowed at the root of the schema.
#description
def description() -> ::String- (::String) — Optional. The description of the data.
#description=
def description=(value) -> ::String- value (::String) — Optional. The description of the data.
- (::String) — Optional. The description of the data.
#enum
def enum() -> ::Array<::String>-
(::Array<::String>) —
Optional. Possible values of the element of primitive type with enum format. Examples:
- We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
- We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
#enum=
def enum=(value) -> ::Array<::String>-
value (::Array<::String>) —
Optional. Possible values of the element of primitive type with enum format. Examples:
- We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
- We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
-
(::Array<::String>) —
Optional. Possible values of the element of primitive type with enum format. Examples:
- We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
- We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
#items
def items() -> ::Google::Cloud::Ces::V1beta::Schema- (::Google::Cloud::Ces::V1beta::Schema) — Optional. Schema of the elements of Type.ARRAY.
#items=
def items=(value) -> ::Google::Cloud::Ces::V1beta::Schema- value (::Google::Cloud::Ces::V1beta::Schema) — Optional. Schema of the elements of Type.ARRAY.
- (::Google::Cloud::Ces::V1beta::Schema) — Optional. Schema of the elements of Type.ARRAY.
#max_items
def max_items() -> ::Integer- (::Integer) — Optional. Maximum number of the elements for Type.ARRAY.
#max_items=
def max_items=(value) -> ::Integer- value (::Integer) — Optional. Maximum number of the elements for Type.ARRAY.
- (::Integer) — Optional. Maximum number of the elements for Type.ARRAY.
#maximum
def maximum() -> ::Float- (::Float) — Optional. Maximum value for Type.INTEGER and Type.NUMBER.
#maximum=
def maximum=(value) -> ::Float- value (::Float) — Optional. Maximum value for Type.INTEGER and Type.NUMBER.
- (::Float) — Optional. Maximum value for Type.INTEGER and Type.NUMBER.
#min_items
def min_items() -> ::Integer- (::Integer) — Optional. Minimum number of the elements for Type.ARRAY.
#min_items=
def min_items=(value) -> ::Integer- value (::Integer) — Optional. Minimum number of the elements for Type.ARRAY.
- (::Integer) — Optional. Minimum number of the elements for Type.ARRAY.
#minimum
def minimum() -> ::Float- (::Float) — Optional. Minimum value for Type.INTEGER and Type.NUMBER.
#minimum=
def minimum=(value) -> ::Float- value (::Float) — Optional. Minimum value for Type.INTEGER and Type.NUMBER.
- (::Float) — Optional. Minimum value for Type.INTEGER and Type.NUMBER.
#nullable
def nullable() -> ::Boolean- (::Boolean) — Optional. Indicates if the value may be null.
#nullable=
def nullable=(value) -> ::Boolean- value (::Boolean) — Optional. Indicates if the value may be null.
- (::Boolean) — Optional. Indicates if the value may be null.
#prefix_items
def prefix_items() -> ::Array<::Google::Cloud::Ces::V1beta::Schema>- (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. Schemas of initial elements of Type.ARRAY.
#prefix_items=
def prefix_items=(value) -> ::Array<::Google::Cloud::Ces::V1beta::Schema>- value (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. Schemas of initial elements of Type.ARRAY.
- (::Array<::Google::Cloud::Ces::V1beta::Schema>) — Optional. Schemas of initial elements of Type.ARRAY.
#properties
def properties() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}- (::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. Properties of Type.OBJECT.
#properties=
def properties=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}- value (::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. Properties of Type.OBJECT.
- (::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::Schema}) — Optional. Properties of Type.OBJECT.
#ref
def ref() -> ::String-
(::String) — Optional. Allows indirect references between schema nodes. The value should
be a valid reference to a child of the root
defs.For example, the following schema defines a reference to a schema node named "Pet":
type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: stringThe value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
#ref=
def ref=(value) -> ::String-
value (::String) — Optional. Allows indirect references between schema nodes. The value should
be a valid reference to a child of the root
defs.For example, the following schema defines a reference to a schema node named "Pet":
type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: stringThe value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
-
(::String) — Optional. Allows indirect references between schema nodes. The value should
be a valid reference to a child of the root
defs.For example, the following schema defines a reference to a schema node named "Pet":
type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: stringThe value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring.
#required
def required() -> ::Array<::String>- (::Array<::String>) — Optional. Required properties of Type.OBJECT.
#required=
def required=(value) -> ::Array<::String>- value (::Array<::String>) — Optional. Required properties of Type.OBJECT.
- (::Array<::String>) — Optional. Required properties of Type.OBJECT.
#title
def title() -> ::String- (::String) — Optional. The title of the schema.
#title=
def title=(value) -> ::String- value (::String) — Optional. The title of the schema.
- (::String) — Optional. The title of the schema.
#type
def type() -> ::Google::Cloud::Ces::V1beta::Schema::Type- (::Google::Cloud::Ces::V1beta::Schema::Type) — Required. The type of the data.
#type=
def type=(value) -> ::Google::Cloud::Ces::V1beta::Schema::Type- value (::Google::Cloud::Ces::V1beta::Schema::Type) — Required. The type of the data.
- (::Google::Cloud::Ces::V1beta::Schema::Type) — Required. The type of the data.
#unique_items
def unique_items() -> ::Boolean- (::Boolean) — Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
#unique_items=
def unique_items=(value) -> ::Boolean- value (::Boolean) — Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.
- (::Boolean) — Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY.