Class: Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
- Inherits:
-
Object
- Object
- Google::Apis::RunV1beta1::JsonSchemaPropsOrBool
- 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
-
#allows ⇒ Boolean
(also: #allows?)
Corresponds to the JSON property
allows
. -
#schema ⇒ Google::Apis::RunV1beta1::JsonSchemaProps
JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json- schema.org/).
Instance Method Summary collapse
-
#initialize(**args) ⇒ JsonSchemaPropsOrBool
constructor
A new instance of JsonSchemaPropsOrBool.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#allows ⇒ Boolean Also known as: allows?
Corresponds to the JSON property allows
729 730 731 |
# File 'generated/google/apis/run_v1beta1/classes.rb', line 729 def allows @allows end |
#schema ⇒ Google::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 |