Class: Google::Apis::RunV1beta1::JsonSchemaPropsOrArray

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1beta1/classes.rb,
generated/google/apis/run_v1beta1/representations.rb,
generated/google/apis/run_v1beta1/representations.rb

Overview

JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ JsonSchemaPropsOrArray

Returns a new instance of JsonSchemaPropsOrArray.



729
730
731
# File 'generated/google/apis/run_v1beta1/classes.rb', line 729

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

Instance Attribute Details

#json_schemasArray<Google::Apis::RunV1beta1::JsonSchemaProps>

Corresponds to the JSON property jsonSchemas



721
722
723
# File 'generated/google/apis/run_v1beta1/classes.rb', line 721

def json_schemas
  @json_schemas
end

#schemaGoogle::Apis::RunV1beta1::JsonSchemaProps

JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). Corresponds to the JSON property schema



727
728
729
# File 'generated/google/apis/run_v1beta1/classes.rb', line 727

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



734
735
736
737
# File 'generated/google/apis/run_v1beta1/classes.rb', line 734

def update!(**args)
  @json_schemas = args[:json_schemas] if args.key?(:json_schemas)
  @schema = args[:schema] if args.key?(:schema)
end