Class: Google::Apis::DiscoveryV1::JsonSchema::Annotations
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::JsonSchema::Annotations
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/discovery_v1/classes.rb,
generated/google/apis/discovery_v1/representations.rb,
generated/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.
324 325 326 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 324 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
322 323 324 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 322 def required @required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
329 330 331 |
# File 'generated/google/apis/discovery_v1/classes.rb', line 329 def update!(**args) @required = args[:required] if args.key?(:required) end |