class Google::Apis::RunV1beta1::JsonSchemaProps

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (json- schema.org/).

Attributes

additional_items[RW]

JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. Corresponds to the JSON property `additionalItems` @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrBool]

additional_properties[RW]

JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. Corresponds to the JSON property `additionalProperties` @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrBool]

all_of[RW]

Corresponds to the JSON property `allOf` @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]

any_of[RW]

Corresponds to the JSON property `anyOf` @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]

default[RW]

JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface“, mapinterface“ and nil. Corresponds to the JSON property `default` @return [Google::Apis::RunV1beta1::Json]

definitions[RW]

Corresponds to the JSON property `definitions` @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]

dependencies[RW]

Corresponds to the JSON property `dependencies` @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray>]

description[RW]

Corresponds to the JSON property `description` @return [String]

enum[RW]

Corresponds to the JSON property `enum` @return [Array<String>]

example[RW]

JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface“, mapinterface“ and nil. Corresponds to the JSON property `example` @return [Google::Apis::RunV1beta1::Json]

exclusive_maximum[RW]

Corresponds to the JSON property `exclusiveMaximum` @return [Boolean]

exclusive_maximum?[RW]

Corresponds to the JSON property `exclusiveMaximum` @return [Boolean]

exclusive_minimum[RW]

Corresponds to the JSON property `exclusiveMinimum` @return [Boolean]

exclusive_minimum?[RW]

Corresponds to the JSON property `exclusiveMinimum` @return [Boolean]

external_docs[RW]

ExternalDocumentation allows referencing an external resource for extended documentation. Corresponds to the JSON property `externalDocs` @return [Google::Apis::RunV1beta1::ExternalDocumentation]

format[RW]

Corresponds to the JSON property `format` @return [String]

id[RW]

Corresponds to the JSON property `id` @return [String]

items[RW]

JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. Corresponds to the JSON property `items` @return [Google::Apis::RunV1beta1::JsonSchemaPropsOrArray]

max_items[RW]

Corresponds to the JSON property `maxItems` @return [Fixnum]

max_length[RW]

Corresponds to the JSON property `maxLength` @return [Fixnum]

max_properties[RW]

Corresponds to the JSON property `maxProperties` @return [Fixnum]

maximum[RW]

Corresponds to the JSON property `maximum` @return [Float]

min_items[RW]

Corresponds to the JSON property `minItems` @return [Fixnum]

min_length[RW]

Corresponds to the JSON property `minLength` @return [Fixnum]

min_properties[RW]

Corresponds to the JSON property `minProperties` @return [Fixnum]

minimum[RW]

Corresponds to the JSON property `minimum` @return [Float]

multiple_of[RW]

Corresponds to the JSON property `multipleOf` @return [Float]

not[RW]

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (json- schema.org/). Corresponds to the JSON property `not` @return [Google::Apis::RunV1beta1::JsonSchemaProps]

one_of[RW]

Corresponds to the JSON property `oneOf` @return [Array<Google::Apis::RunV1beta1::JsonSchemaProps>]

pattern[RW]

Corresponds to the JSON property `pattern` @return [String]

pattern_properties[RW]

Corresponds to the JSON property `patternProperties` @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]

properties[RW]

Corresponds to the JSON property `properties` @return [Hash<String,Google::Apis::RunV1beta1::JsonSchemaProps>]

ref[RW]

Corresponds to the JSON property `ref` @return [String]

required[RW]

Corresponds to the JSON property `required` @return [Array<String>]

schema[RW]

Corresponds to the JSON property `schema` @return [String]

title[RW]

Corresponds to the JSON property `title` @return [String]

type[RW]

Corresponds to the JSON property `type` @return [String]

unique_items[RW]

Corresponds to the JSON property `uniqueItems` @return [Boolean]

unique_items?[RW]

Corresponds to the JSON property `uniqueItems` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1beta1/classes.rb, line 649
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1beta1/classes.rb, line 654
def update!(**args)
  @additional_items = args[:additional_items] if args.key?(:additional_items)
  @additional_properties = args[:additional_properties] if args.key?(:additional_properties)
  @all_of = args[:all_of] if args.key?(:all_of)
  @any_of = args[:any_of] if args.key?(:any_of)
  @default = args[:default] if args.key?(:default)
  @definitions = args[:definitions] if args.key?(:definitions)
  @dependencies = args[:dependencies] if args.key?(:dependencies)
  @description = args[:description] if args.key?(:description)
  @enum = args[:enum] if args.key?(:enum)
  @example = args[:example] if args.key?(:example)
  @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
  @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
  @external_docs = args[:external_docs] if args.key?(:external_docs)
  @format = args[:format] if args.key?(:format)
  @id = args[:id] if args.key?(:id)
  @items = args[:items] if args.key?(:items)
  @max_items = args[:max_items] if args.key?(:max_items)
  @max_length = args[:max_length] if args.key?(:max_length)
  @max_properties = args[:max_properties] if args.key?(:max_properties)
  @maximum = args[:maximum] if args.key?(:maximum)
  @min_items = args[:min_items] if args.key?(:min_items)
  @min_length = args[:min_length] if args.key?(:min_length)
  @min_properties = args[:min_properties] if args.key?(:min_properties)
  @minimum = args[:minimum] if args.key?(:minimum)
  @multiple_of = args[:multiple_of] if args.key?(:multiple_of)
  @not = args[:not] if args.key?(:not)
  @one_of = args[:one_of] if args.key?(:one_of)
  @pattern = args[:pattern] if args.key?(:pattern)
  @pattern_properties = args[:pattern_properties] if args.key?(:pattern_properties)
  @properties = args[:properties] if args.key?(:properties)
  @ref = args[:ref] if args.key?(:ref)
  @required = args[:required] if args.key?(:required)
  @schema = args[:schema] if args.key?(:schema)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
  @unique_items = args[:unique_items] if args.key?(:unique_items)
end