Class: Google::Apis::DiscoveryV1::RestResource
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryV1::RestResource
- 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
-
#api_methods ⇒ Hash<String,Google::Apis::DiscoveryV1::RestMethod>
Methods on this resource.
-
#resources ⇒ Hash<String,Google::Apis::DiscoveryV1::RestResource>
Sub-resources on this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RestResource
constructor
A new instance of RestResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_methods ⇒ Hash<String,Google::Apis::DiscoveryV1::RestMethod>
Methods on this resource.
Corresponds to the JSON property methods
949 950 951 |
# File 'lib/google/apis/discovery_v1/classes.rb', line 949 def api_methods @api_methods end |
#resources ⇒ Hash<String,Google::Apis::DiscoveryV1::RestResource>
Sub-resources on this resource.
Corresponds to the JSON property resources
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 |