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

Constructor Details

#initialize(**args) ⇒ JsonSchemaPropsOrStringArray

Returns a new instance of JsonSchemaPropsOrStringArray.



764
765
766
# File 'generated/google/apis/run_v1beta1/classes.rb', line 764

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

Instance Attribute Details

#propertyArray<String>

Corresponds to the JSON property property

Returns:

  • (Array<String>)


756
757
758
# File 'generated/google/apis/run_v1beta1/classes.rb', line 756

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



762
763
764
# File 'generated/google/apis/run_v1beta1/classes.rb', line 762

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



769
770
771
772
# File 'generated/google/apis/run_v1beta1/classes.rb', line 769

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