Class: Google::Apis::RunV1beta1::JsonSchemaPropsOrStringArray

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

JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.

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

Returns a new instance of JsonSchemaPropsOrStringArray.



783
784
785
# File 'generated/google/apis/run_v1beta1/classes.rb', line 783

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

Instance Attribute Details

#propertyArray<String>

Corresponds to the JSON property property

Returns:

  • (Array<String>)


775
776
777
# File 'generated/google/apis/run_v1beta1/classes.rb', line 775

def property
  @property
end

#schemaGoogle::Apis::RunV1beta1::JsonSchemaProps

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



781
782
783
# File 'generated/google/apis/run_v1beta1/classes.rb', line 781

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



788
789
790
791
# File 'generated/google/apis/run_v1beta1/classes.rb', line 788

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