Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Schema

Returns a new instance of GoogleCloudAiplatformV1beta1Schema.



19702
19703
19704
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19702

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Optional. The description of the data. Corresponds to the JSON property description

Returns:

  • (String)


19653
19654
19655
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19653

def description
  @description
end

#enumArray<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

Returns:

  • (Array<String>)


19660
19661
19662
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19660

def enum
  @enum
end

#exampleObject

Optional. Example of the object. Will only populated when the object is the root. Corresponds to the JSON property example

Returns:

  • (Object)


19666
19667
19668
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19666

def example
  @example
end

#formatString

Optional. The format of the data. Supported formats: for NUMBER type: float, double for INTEGER type: int32, int64 Corresponds to the JSON property format

Returns:

  • (String)


19672
19673
19674
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19672

def format
  @format
end

#itemsGoogle::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



19679
19680
19681
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19679

def items
  @items
end

#nullableBoolean Also known as: nullable?

Optional. Indicates if the value may be null. Corresponds to the JSON property nullable

Returns:

  • (Boolean)


19684
19685
19686
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19684

def nullable
  @nullable
end

#propertiesHash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema>

Optional. Properties of Type.OBJECT. Corresponds to the JSON property properties



19690
19691
19692
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19690

def properties
  @properties
end

#requiredArray<String>

Optional. Required properties of Type.OBJECT. Corresponds to the JSON property required

Returns:

  • (Array<String>)


19695
19696
19697
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19695

def required
  @required
end

#typeString

Optional. The type of the data. Corresponds to the JSON property type

Returns:

  • (String)


19700
19701
19702
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19700

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19707

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