Class: AsposeEmailCloud::HttpRequest

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

Overview

Http request data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Initializes a new instance.

Parameters:

  • resource_path (String)

    Path to method endpoint.

  • header_params (Hash) (defaults to: nil)

    Header parameters to be placed in the request header.

  • query_params (Hash) (defaults to: nil)

    Query parameters in the url.

  • form_params (Hash) (defaults to: nil)

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

  • body (Object) (defaults to: nil)

    Request body.

  • auth_names (Array)

    Auth Settings names for the request.



36
37
38
39
40
41
42
43
# File 'lib/aspose-email-cloud/models/http_request.rb', line 36

def initialize(resource_path:, header_params: nil, query_params: nil, form_params: nil, body: nil, 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.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def auth_names
  @auth_names
end

#bodyObject (readonly)

Returns the value of attribute body.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def body
  @body
end

#form_paramsObject (readonly)

Returns the value of attribute form_params.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def form_params
  @form_params
end

#header_paramsObject (readonly)

Returns the value of attribute header_params.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def header_params
  @header_params
end

#query_paramsObject (readonly)

Returns the value of attribute query_params.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def query_params
  @query_params
end

#resource_pathObject (readonly)

Returns the value of attribute resource_path.



45
46
47
# File 'lib/aspose-email-cloud/models/http_request.rb', line 45

def resource_path
  @resource_path
end