Class: AsposeImagingCloud::HttpRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose-imaging-cloud/models/requests/http_request.rb

Overview

Http request data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_path, header_params, query_params, form_params, body, auth_names) ⇒ HttpRequest

Initializes a new instance.

Parameters:

  • resource_path (String)

    Path to method endpoint.

  • header_params (Hash)

    Header parameters to be placed in the request header.

  • query_params (Hash)

    Query parameters in the url.

  • form_params (Hash)

    Request post form parameters, for ‘application/x-www-form-urlencoded`, `multipart/form-data`.

  • body (Object)

    Request body.

  • auth_names (Array)

    Auth Settings names for the request.



39
40
41
42
43
44
45
46
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 39

def initialize(resource_path, header_params, query_params, form_params, body, auth_names)
  @resource_path = resource_path
  @query_params = query_params
  @header_params = header_params
  @form_params = form_params
  @body = body
  @auth_names = auth_names
end

Instance Attribute Details

#auth_namesObject (readonly)

Returns the value of attribute auth_names.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def auth_names
  @auth_names
end

#bodyObject (readonly)

Returns the value of attribute body.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def body
  @body
end

#form_paramsObject (readonly)

Returns the value of attribute form_params.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def form_params
  @form_params
end

#header_paramsObject (readonly)

Returns the value of attribute header_params.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def header_params
  @header_params
end

#query_paramsObject (readonly)

Returns the value of attribute query_params.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def query_params
  @query_params
end

#resource_pathObject (readonly)

Returns the value of attribute resource_path.



48
49
50
# File 'lib/aspose-imaging-cloud/models/requests/http_request.rb', line 48

def resource_path
  @resource_path
end