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

Constructor Details

#initialize(**args) ⇒ JsonSchemaPropsOrArray

Returns a new instance of JsonSchemaPropsOrArray.



710
711
712
# File 'generated/google/apis/run_v1beta1/classes.rb', line 710

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

Instance Attribute Details

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

Corresponds to the JSON property jsonSchemas



702
703
704
# File 'generated/google/apis/run_v1beta1/classes.rb', line 702

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



708
709
710
# File 'generated/google/apis/run_v1beta1/classes.rb', line 708

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



715
716
717
718
# File 'generated/google/apis/run_v1beta1/classes.rb', line 715

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