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.



1035
1036
1037
# File 'lib/google/apis/discovery_v1/classes.rb', line 1035

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:



1028
1029
1030
# File 'lib/google/apis/discovery_v1/classes.rb', line 1028

def api_methods
  @api_methods
end

#deprecatedBoolean Also known as: deprecated?

Whether this resource is deprecated. Corresponds to the JSON property deprecated

Returns:

  • (Boolean)


1022
1023
1024
# File 'lib/google/apis/discovery_v1/classes.rb', line 1022

def deprecated
  @deprecated
end

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

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

Returns:



1033
1034
1035
# File 'lib/google/apis/discovery_v1/classes.rb', line 1033

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1040
1041
1042
1043
1044
# File 'lib/google/apis/discovery_v1/classes.rb', line 1040

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