class Google::Apis::DiscoveryV1::RestResource
Attributes
api_methods[RW]
Methods on this resource. Corresponds to the JSON property `methods` @return [Hash<String,Google::Apis::DiscoveryV1::RestMethod>]
parent[RW]
resources[RW]
Sub-resources on this resource. Corresponds to the JSON property `resources` @return [Hash<String,Google::Apis::DiscoveryV1::RestResource>]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/discovery_v1/classes.rb, line 949 def initialize(**args) update!(**args) end
Public Instance Methods
all_methods()
click to toggle source
# File lib/google/apis/generator/model.rb, line 93 def all_methods m = [] m << api_methods.values unless api_methods.nil? m << resources.map { |_k, r| r.all_methods } unless resources.nil? m.flatten end
update!(**args)
click to toggle source
Update properties of this object
# 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