Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#enum ⇒ Array<String>
Optional.
-
#example ⇒ Object
Optional.
-
#format ⇒ String
Optional.
-
#items ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
Schema is used to define the format of input/output data.
-
#nullable ⇒ Boolean
(also: #nullable?)
Optional.
-
#properties ⇒ Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema>
Optional.
-
#required ⇒ Array<String>
Optional.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Schema
constructor
A new instance of GoogleCloudAiplatformV1beta1Schema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Schema
Returns a new instance of GoogleCloudAiplatformV1beta1Schema.
19170 19171 19172 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. The description of the data.
Corresponds to the JSON property description
19121 19122 19123 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19121 def description @description end |
#enum ⇒ Array<String>
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"]
Corresponds to the JSON property enum
19128 19129 19130 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19128 def enum @enum end |
#example ⇒ Object
Optional. Example of the object. Will only populated when the object is the
root.
Corresponds to the JSON property example
19134 19135 19136 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19134 def example @example end |
#format ⇒ String
Optional. The format of the data. Supported formats: for NUMBER type: float,
double for INTEGER type: int32, int64
Corresponds to the JSON property format
19140 19141 19142 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19140 def format @format end |
#items ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema
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.
Corresponds to the JSON property items
19147 19148 19149 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19147 def items @items end |
#nullable ⇒ Boolean Also known as: nullable?
Optional. Indicates if the value may be null.
Corresponds to the JSON property nullable
19152 19153 19154 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19152 def nullable @nullable end |
#properties ⇒ Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema>
Optional. Properties of Type.OBJECT.
Corresponds to the JSON property properties
19158 19159 19160 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19158 def properties @properties end |
#required ⇒ Array<String>
Optional. Required properties of Type.OBJECT.
Corresponds to the JSON property required
19163 19164 19165 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19163 def required @required end |
#type ⇒ String
Optional. The type of the data.
Corresponds to the JSON property type
19168 19169 19170 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19168 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19175 def update!(**args) @description = args[:description] if args.key?(:description) @enum = args[:enum] if args.key?(:enum) @example = args[:example] if args.key?(:example) @format = args[:format] if args.key?(:format) @items = args[:items] if args.key?(:items) @nullable = args[:nullable] if args.key?(:nullable) @properties = args[:properties] if args.key?(:properties) @required = args[:required] if args.key?(:required) @type = args[:type] if args.key?(:type) end |