Class: Google::Apis::DiscoveryV1::RestMethod::Request

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

Overview

The schema for the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Request

Returns a new instance of Request.



984
985
986
# File 'lib/google/apis/discovery_v1/classes.rb', line 984

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

Instance Attribute Details

#_refString

Schema ID for the request schema. Corresponds to the JSON property $ref

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/discovery_v1/classes.rb', line 977

def _ref
  @_ref
end

#parameter_nameString

parameter name. Corresponds to the JSON property parameterName

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/discovery_v1/classes.rb', line 982

def parameter_name
  @parameter_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



989
990
991
992
# File 'lib/google/apis/discovery_v1/classes.rb', line 989

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