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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestResource

Returns a new instance of RestResource.



956
957
958
# File 'lib/google/apis/discovery_v1/classes.rb', line 956

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:



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

def api_methods
  @api_methods
end

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

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

Returns:



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

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



961
962
963
964
# File 'lib/google/apis/discovery_v1/classes.rb', line 961

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