Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/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) ⇒ GoogleCloudAiplatformV1Schema

Returns a new instance of GoogleCloudAiplatformV1Schema.



18715
18716
18717
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18715

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


18666
18667
18668
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18666

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>)


18673
18674
18675
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18673

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)


18679
18680
18681
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18679

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)


18685
18686
18687
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18685

def format
  @format
end

#itemsGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema

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



18692
18693
18694
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18692

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)


18697
18698
18699
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18697

def nullable
  @nullable
end

#propertiesHash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema>

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



18703
18704
18705
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18703

def properties
  @properties
end

#requiredArray<String>

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

Returns:

  • (Array<String>)


18708
18709
18710
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18708

def required
  @required
end

#typeString

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

Returns:

  • (String)


18713
18714
18715
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18713

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18720

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