Class: Google::Apis::DiscoveryV1::RestResource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestResource

Returns a new instance of RestResource.



949
950
951
# File 'generated/google/apis/discovery_v1/classes.rb', line 949

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#api_methodsHash<String,Google::Apis::DiscoveryV1::RestMethod>

Methods on this resource. Corresponds to the JSON property methods

Returns:



942
943
944
# File 'generated/google/apis/discovery_v1/classes.rb', line 942

def api_methods
  @api_methods
end

#resourcesHash<String,Google::Apis::DiscoveryV1::RestResource>

Sub-resources on this resource. Corresponds to the JSON property resources

Returns:



947
948
949
# File 'generated/google/apis/discovery_v1/classes.rb', line 947

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



954
955
956
957
# File 'generated/google/apis/discovery_v1/classes.rb', line 954

def update!(**args)
  @api_methods = args[:api_methods] if args.key?(:api_methods)
  @resources = args[:resources] if args.key?(:resources)
end