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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#requiredArray<String>

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

Returns:

  • (Array<String>)


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