Class: Google::Apis::DiscoveryV1::JsonSchema::Annotations

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#requiredArray<String>

A list of methods for which this property is required on requests. Corresponds to the JSON property required

Returns:

  • (Array<String>)


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