Class: Google::Apis::DiscoveryV1::JsonSchema::Annotations
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::JsonSchema::Annotations
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discovery_v1/classes.rb,
lib/google/apis/discovery_v1/representations.rb,
lib/google/apis/discovery_v1/representations.rb
Overview
Additional information about this property.
Instance Attribute Summary collapse
-
#required ⇒ Array<String>
A list of methods for which this property is required on requests.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotations
constructor
A new instance of Annotations.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Annotations
Returns a new instance of Annotations.
338 339 340 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 338 def initialize(**args) update!(**args) end |
Instance Attribute Details
#required ⇒ Array<String>
A list of methods for which this property is required on requests.
Corresponds to the JSON property required
336 337 338 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 336 def required @required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
343 344 345 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 343 def update!(**args) @required = args[:required] if args.key?(:required) end |