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

Constructor Details

#initialize(**args) ⇒ JsonSchemaPropsOrBool

Returns a new instance of JsonSchemaPropsOrBool.



738
739
740
# File 'generated/google/apis/run_v1beta1/classes.rb', line 738

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

Instance Attribute Details

#allowsBoolean Also known as: allows?

Corresponds to the JSON property allows

Returns:

  • (Boolean)


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

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



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

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



743
744
745
746
# File 'generated/google/apis/run_v1beta1/classes.rb', line 743

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