Class: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool

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

JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.

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

Returns a new instance of JsonSchemaPropsOrBool.



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

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

Instance Attribute Details

#allowsBoolean Also known as: allows?

Corresponds to the JSON property allows

Returns:

  • (Boolean)


748
749
750
# File 'generated/google/apis/run_v1beta1/classes.rb', line 748

def allows
  @allows
end

#schemaGoogle::Apis::RunV1beta1::JsonSchemaProps

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



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

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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