aspose_pdf_cloud 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +41 -0
- data/aspose_pdf_cloud.gemspec +26 -0
- data/lib/aspose_pdf_cloud.rb +91 -0
- data/lib/aspose_pdf_cloud/api/pdf_api.rb +3318 -0
- data/lib/aspose_pdf_cloud/api_client.rb +335 -0
- data/lib/aspose_pdf_cloud/api_error.rb +24 -0
- data/lib/aspose_pdf_cloud/configuration.rb +166 -0
- data/lib/aspose_pdf_cloud/models/annotation.rb +87 -0
- data/lib/aspose_pdf_cloud/models/annotation_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/annotations.rb +49 -0
- data/lib/aspose_pdf_cloud/models/annotations_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/append_document.rb +53 -0
- data/lib/aspose_pdf_cloud/models/attachment.rb +95 -0
- data/lib/aspose_pdf_cloud/models/attachment_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/attachments.rb +49 -0
- data/lib/aspose_pdf_cloud/models/attachments_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/barcode_response_list.rb +45 -0
- data/lib/aspose_pdf_cloud/models/base_object.rb +86 -0
- data/lib/aspose_pdf_cloud/models/base_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/bookmarks.rb +49 -0
- data/lib/aspose_pdf_cloud/models/bookmarks_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/color.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document.rb +55 -0
- data/lib/aspose_pdf_cloud/models/document_pages_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_properties.rb +49 -0
- data/lib/aspose_pdf_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_property.rb +63 -0
- data/lib/aspose_pdf_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/document_text_replace_response.rb +69 -0
- data/lib/aspose_pdf_cloud/models/field.rb +83 -0
- data/lib/aspose_pdf_cloud/models/field_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/fields.rb +49 -0
- data/lib/aspose_pdf_cloud/models/fields_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/image.rb +55 -0
- data/lib/aspose_pdf_cloud/models/image_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/images.rb +49 -0
- data/lib/aspose_pdf_cloud/models/images_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_annotation.rb +71 -0
- data/lib/aspose_pdf_cloud/models/link_annotation_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_annotations.rb +49 -0
- data/lib/aspose_pdf_cloud/models/link_annotations_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/link_element.rb +39 -0
- data/lib/aspose_pdf_cloud/models/merge_documents.rb +39 -0
- data/lib/aspose_pdf_cloud/models/page.rb +63 -0
- data/lib/aspose_pdf_cloud/models/page_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/page_text_replace_response.rb +69 -0
- data/lib/aspose_pdf_cloud/models/page_word_count.rb +45 -0
- data/lib/aspose_pdf_cloud/models/pages.rb +49 -0
- data/lib/aspose_pdf_cloud/models/rectangle.rb +61 -0
- data/lib/aspose_pdf_cloud/models/signature.rb +109 -0
- data/lib/aspose_pdf_cloud/models/split_result.rb +39 -0
- data/lib/aspose_pdf_cloud/models/split_result_document.rb +69 -0
- data/lib/aspose_pdf_cloud/models/split_result_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/stamp.rb +205 -0
- data/lib/aspose_pdf_cloud/models/text_format.rb +63 -0
- data/lib/aspose_pdf_cloud/models/text_format_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_item.rb +55 -0
- data/lib/aspose_pdf_cloud/models/text_item_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_items.rb +49 -0
- data/lib/aspose_pdf_cloud/models/text_items_response.rb +61 -0
- data/lib/aspose_pdf_cloud/models/text_replace.rb +53 -0
- data/lib/aspose_pdf_cloud/models/text_replace_list_request.rb +39 -0
- data/lib/aspose_pdf_cloud/models/text_state.rb +69 -0
- data/lib/aspose_pdf_cloud/models/tiff_export_options.rb +157 -0
- data/lib/aspose_pdf_cloud/models/word_count.rb +39 -0
- data/lib/aspose_pdf_cloud/models/word_count_response.rb +61 -0
- data/lib/aspose_pdf_cloud/version.rb +3 -0
- data/test/data/Sample-Annotation-Property.pdf +0 -0
- data/test/data/Sample-Annotation.pdf +0 -0
- data/test/data/Sample-Bookmark.pdf +0 -0
- data/test/data/Sample.pdf +0 -0
- data/test/data/SampleAttachment.pdf +0 -0
- data/test/data/SampleBarCodeImage.pdf +0 -0
- data/test/data/SampleImage.pdf +0 -0
- data/test/data/aspose-cloud.png +0 -0
- data/test/data/pkc7-sample.pfx +0 -0
- data/test/data/sample-field.pdf +0 -0
- data/test/data/sample-home.jpg +0 -0
- data/test/data/sample-input-2.pdf +0 -0
- data/test/data/sample-input.pdf +0 -0
- data/test/data/sample-merged.pdf +0 -0
- data/test/data/sample.tiff +0 -0
- data/test/pdf_tests.rb +623 -0
- metadata +216 -0
@@ -0,0 +1,83 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class Field < BaseObject
|
4
|
+
attr_accessor :name, :type, :values, :selected_items, :rect, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'name' => :'Name',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'type' => :'Type',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'values' => :'Values',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'selected_items' => :'SelectedItems',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'rect' => :'Rect',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'links' => :'Links'
|
26
|
+
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# attribute type
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'name' => :'String',
|
34
|
+
:'type' => :'String',
|
35
|
+
:'values' => :'Array<String>',
|
36
|
+
:'selected_items' => :'Array<Integer>',
|
37
|
+
:'rect' => :'Rectangle',
|
38
|
+
:'links' => :'Array<Link>'
|
39
|
+
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
48
|
+
|
49
|
+
|
50
|
+
if attributes[:'Name']
|
51
|
+
self.name = attributes[:'Name']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'Type']
|
55
|
+
self.type = attributes[:'Type']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Values']
|
59
|
+
if (value = attributes[:'Values']).is_a?(Array)
|
60
|
+
self.values = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes[:'SelectedItems']
|
65
|
+
if (value = attributes[:'SelectedItems']).is_a?(Array)
|
66
|
+
self.selected_items = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'Rect']
|
71
|
+
self.rect = attributes[:'Rect']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'Links']
|
75
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
76
|
+
self.links = value
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class FieldResponse < BaseObject
|
4
|
+
attr_accessor :field, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'field' => :'Field',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'status' => :'Status',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'code' => :'Code'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'field' => :'Field',
|
25
|
+
:'status' => :'String',
|
26
|
+
:'code' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Field']
|
39
|
+
self.field = attributes[:'Field']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Status']
|
43
|
+
self.status = attributes[:'Status']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Code']
|
47
|
+
self.code = attributes[:'Code']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
def status=(status)
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
54
|
+
if status && !allowed_values.include?(status)
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
56
|
+
end
|
57
|
+
@status = status
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class Fields < BaseObject
|
4
|
+
attr_accessor :list, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'list' => :'List',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'links' => :'Links'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'list' => :'Array<Field>',
|
22
|
+
:'links' => :'Array<Link>'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'List']
|
35
|
+
if (value = attributes[:'List']).is_a?(Array)
|
36
|
+
self.list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'Links']
|
41
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
42
|
+
self.links = value
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class FieldsResponse < BaseObject
|
4
|
+
attr_accessor :fields, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'fields' => :'Fields',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'status' => :'Status',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'code' => :'Code'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'fields' => :'Fields',
|
25
|
+
:'status' => :'String',
|
26
|
+
:'code' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Fields']
|
39
|
+
self.fields = attributes[:'Fields']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Status']
|
43
|
+
self.status = attributes[:'Status']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Code']
|
47
|
+
self.code = attributes[:'Code']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
def status=(status)
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
54
|
+
if status && !allowed_values.include?(status)
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
56
|
+
end
|
57
|
+
@status = status
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class Image < BaseObject
|
4
|
+
attr_accessor :width, :height, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'width' => :'Width',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'height' => :'Height',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'links' => :'Links'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'width' => :'Integer',
|
25
|
+
:'height' => :'Integer',
|
26
|
+
:'links' => :'Array<Link>'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Width']
|
39
|
+
self.width = attributes[:'Width']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Height']
|
43
|
+
self.height = attributes[:'Height']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Links']
|
47
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
48
|
+
self.links = value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class ImageResponse < BaseObject
|
4
|
+
attr_accessor :image, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'image' => :'Image',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'status' => :'Status',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'code' => :'Code'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'image' => :'Image',
|
25
|
+
:'status' => :'String',
|
26
|
+
:'code' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Image']
|
39
|
+
self.image = attributes[:'Image']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Status']
|
43
|
+
self.status = attributes[:'Status']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Code']
|
47
|
+
self.code = attributes[:'Code']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
def status=(status)
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
54
|
+
if status && !allowed_values.include?(status)
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
56
|
+
end
|
57
|
+
@status = status
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class Images < BaseObject
|
4
|
+
attr_accessor :list, :links
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'list' => :'List',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'links' => :'Links'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'list' => :'Array<Image>',
|
22
|
+
:'links' => :'Array<Link>'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'List']
|
35
|
+
if (value = attributes[:'List']).is_a?(Array)
|
36
|
+
self.list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'Links']
|
41
|
+
if (value = attributes[:'Links']).is_a?(Array)
|
42
|
+
self.links = value
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposePDFCloud
|
2
|
+
#
|
3
|
+
class ImagesResponse < BaseObject
|
4
|
+
attr_accessor :images, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'images' => :'Images',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'status' => :'Status',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'code' => :'Code'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'images' => :'Images',
|
25
|
+
:'status' => :'String',
|
26
|
+
:'code' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Images']
|
39
|
+
self.images = attributes[:'Images']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Status']
|
43
|
+
self.status = attributes[:'Status']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Code']
|
47
|
+
self.code = attributes[:'Code']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
def status=(status)
|
53
|
+
allowed_values = ["Continue", "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", "HttpVersionNotSupported"]
|
54
|
+
if status && !allowed_values.include?(status)
|
55
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
56
|
+
end
|
57
|
+
@status = status
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|