aspose_words_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 +48 -0
- data/aspose_words_cloud.gemspec +26 -0
- data/lib/aspose_words_cloud/api/words_api.rb +4414 -0
- data/lib/aspose_words_cloud/api_client.rb +335 -0
- data/lib/aspose_words_cloud/api_error.rb +24 -0
- data/lib/aspose_words_cloud/configuration.rb +166 -0
- data/lib/aspose_words_cloud/models/base_object.rb +86 -0
- data/lib/aspose_words_cloud/models/base_response.rb +53 -0
- data/lib/aspose_words_cloud/models/bookmark.rb +53 -0
- data/lib/aspose_words_cloud/models/bookmark_data.rb +45 -0
- data/lib/aspose_words_cloud/models/bookmark_response.rb +61 -0
- data/lib/aspose_words_cloud/models/bookmarks.rb +47 -0
- data/lib/aspose_words_cloud/models/bookmarks_response.rb +61 -0
- data/lib/aspose_words_cloud/models/border.rb +77 -0
- data/lib/aspose_words_cloud/models/color.rb +61 -0
- data/lib/aspose_words_cloud/models/comment.rb +93 -0
- data/lib/aspose_words_cloud/models/comment_response.rb +61 -0
- data/lib/aspose_words_cloud/models/comments_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/comments_response.rb +61 -0
- data/lib/aspose_words_cloud/models/document.rb +87 -0
- data/lib/aspose_words_cloud/models/document_entry.rb +45 -0
- data/lib/aspose_words_cloud/models/document_entry_list.rb +39 -0
- data/lib/aspose_words_cloud/models/document_position.rb +45 -0
- data/lib/aspose_words_cloud/models/document_properties.rb +47 -0
- data/lib/aspose_words_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_words_cloud/models/document_property.rb +61 -0
- data/lib/aspose_words_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_words_cloud/models/document_response.rb +61 -0
- data/lib/aspose_words_cloud/models/document_stat_data.rb +63 -0
- data/lib/aspose_words_cloud/models/drawing_object.rb +79 -0
- data/lib/aspose_words_cloud/models/drawing_object_response.rb +61 -0
- data/lib/aspose_words_cloud/models/drawing_objects.rb +47 -0
- data/lib/aspose_words_cloud/models/drawing_objects_response.rb +61 -0
- data/lib/aspose_words_cloud/models/field.rb +61 -0
- data/lib/aspose_words_cloud/models/field_names.rb +47 -0
- data/lib/aspose_words_cloud/models/field_names_response.rb +61 -0
- data/lib/aspose_words_cloud/models/field_response.rb +61 -0
- data/lib/aspose_words_cloud/models/font.rb +381 -0
- data/lib/aspose_words_cloud/models/font_response.rb +61 -0
- data/lib/aspose_words_cloud/models/form_field.rb +117 -0
- data/lib/aspose_words_cloud/models/form_field_response.rb +61 -0
- data/lib/aspose_words_cloud/models/hyperlink.rb +53 -0
- data/lib/aspose_words_cloud/models/hyperlink_response.rb +61 -0
- data/lib/aspose_words_cloud/models/hyperlinks.rb +47 -0
- data/lib/aspose_words_cloud/models/hyperlinks_response.rb +61 -0
- data/lib/aspose_words_cloud/models/link.rb +61 -0
- data/lib/aspose_words_cloud/models/link_element.rb +37 -0
- data/lib/aspose_words_cloud/models/load_web_document_data.rb +45 -0
- data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +53 -0
- data/lib/aspose_words_cloud/models/modification_operation_result.rb +45 -0
- data/lib/aspose_words_cloud/models/node_link.rb +45 -0
- data/lib/aspose_words_cloud/models/page_number.rb +61 -0
- data/lib/aspose_words_cloud/models/page_setup.rb +333 -0
- data/lib/aspose_words_cloud/models/page_stat_data.rb +53 -0
- data/lib/aspose_words_cloud/models/paragraph.rb +55 -0
- data/lib/aspose_words_cloud/models/paragraph_link.rb +45 -0
- data/lib/aspose_words_cloud/models/paragraph_link_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/paragraph_link_collection_response.rb +61 -0
- data/lib/aspose_words_cloud/models/paragraph_response.rb +61 -0
- data/lib/aspose_words_cloud/models/protection_data.rb +37 -0
- data/lib/aspose_words_cloud/models/protection_data_response.rb +69 -0
- data/lib/aspose_words_cloud/models/protection_request.rb +53 -0
- data/lib/aspose_words_cloud/models/rectangle.rb +61 -0
- data/lib/aspose_words_cloud/models/replace_text_request.rb +61 -0
- data/lib/aspose_words_cloud/models/replace_text_response.rb +69 -0
- data/lib/aspose_words_cloud/models/response_message.rb +45 -0
- data/lib/aspose_words_cloud/models/revisions_modification_response.rb +61 -0
- data/lib/aspose_words_cloud/models/run.rb +53 -0
- data/lib/aspose_words_cloud/models/run_response.rb +61 -0
- data/lib/aspose_words_cloud/models/save_options_data.rb +69 -0
- data/lib/aspose_words_cloud/models/save_response.rb +61 -0
- data/lib/aspose_words_cloud/models/save_result.rb +55 -0
- data/lib/aspose_words_cloud/models/search_response.rb +69 -0
- data/lib/aspose_words_cloud/models/search_result.rb +45 -0
- data/lib/aspose_words_cloud/models/search_results_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/section.rb +53 -0
- data/lib/aspose_words_cloud/models/section_link.rb +37 -0
- data/lib/aspose_words_cloud/models/section_link_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/section_link_collection_response.rb +61 -0
- data/lib/aspose_words_cloud/models/section_page_setup_response.rb +61 -0
- data/lib/aspose_words_cloud/models/section_response.rb +61 -0
- data/lib/aspose_words_cloud/models/split_document_response.rb +61 -0
- data/lib/aspose_words_cloud/models/split_document_result.rb +55 -0
- data/lib/aspose_words_cloud/models/stat_data_response.rb +69 -0
- data/lib/aspose_words_cloud/models/story_child_nodes.rb +39 -0
- data/lib/aspose_words_cloud/models/text_item.rb +45 -0
- data/lib/aspose_words_cloud/models/text_items.rb +47 -0
- data/lib/aspose_words_cloud/models/text_items_response.rb +61 -0
- data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +189 -0
- data/lib/aspose_words_cloud/models/watermark_text.rb +45 -0
- data/lib/aspose_words_cloud/version.rb +3 -0
- data/lib/aspose_words_cloud.rb +114 -0
- data/test/data/AppendWordDocumentsExample-TestFile-Destination.doc +0 -0
- data/test/data/AppendWordDocumentsExample-TestFile-Source.doc +0 -0
- data/test/data/Customers.txt +6 -0
- data/test/data/FormFilled.docx +0 -0
- data/test/data/SampleAppendDoc.docx +0 -0
- data/test/data/SampleAppendDoc2.docx +0 -0
- data/test/data/SampleBlankWatermarkDocument.docx +0 -0
- data/test/data/SampleBlankWordDocument.docx +0 -0
- data/test/data/SampleExecuteTemplate.doc +0 -0
- data/test/data/SampleExecuteTemplate.docx +0 -0
- data/test/data/SampleExecuteTemplateData.txt +49 -0
- data/test/data/SampleHeaderFooterWordDocument.docx +0 -0
- data/test/data/SampleInvoiceTemplate.doc +0 -0
- data/test/data/SampleInvoiceTemplateData.txt +24 -0
- data/test/data/SampleMailMergeTemplate.docx +0 -0
- data/test/data/SampleMailMergeTemplateData.txt +7 -0
- data/test/data/SampleMailMergeTemplateImage.doc +0 -0
- data/test/data/SampleMailMergeTemplateImageData.txt +12 -0
- data/test/data/SampleOlePdfData.docx +0 -0
- data/test/data/SampleProtectedBlankWordDocument.docx +0 -0
- data/test/data/SampleWordDocument.docx +0 -0
- data/test/data/Sample_EmbeddedOLE.docx +0 -0
- data/test/data/WordFormatConverterExampleTest.doc +0 -0
- data/test/data/aspose-cloud.png +0 -0
- data/test/data/header-logo.png +0 -0
- data/test/words_tests.rb +773 -0
- metadata +256 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Bookmark < BaseObject
|
4
|
+
attr_accessor :name, :text, :link
|
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
|
+
:'text' => :'Text',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'link' => :'link'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'name' => :'String',
|
25
|
+
:'text' => :'String',
|
26
|
+
:'link' => :'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[:'Name']
|
39
|
+
self.name = attributes[:'Name']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Text']
|
43
|
+
self.text = attributes[:'Text']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'link']
|
47
|
+
self.link = attributes[:'link']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class BookmarkData < BaseObject
|
4
|
+
attr_accessor :name, :text
|
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
|
+
:'text' => :'Text'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'name' => :'String',
|
22
|
+
:'text' => :'String'
|
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[:'Name']
|
35
|
+
self.name = attributes[:'Name']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'Text']
|
39
|
+
self.text = attributes[:'Text']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class BookmarkResponse < BaseObject
|
4
|
+
attr_accessor :bookmark, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'bookmark' => :'Bookmark',
|
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
|
+
:'bookmark' => :'Bookmark',
|
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[:'Bookmark']
|
39
|
+
self.bookmark = attributes[:'Bookmark']
|
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,47 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Bookmarks < BaseObject
|
4
|
+
attr_accessor :bookmark_list, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'bookmark_list' => :'BookmarkList',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'link' => :'link'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'bookmark_list' => :'Array<Bookmark>',
|
22
|
+
:'link' => :'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[:'BookmarkList']
|
35
|
+
if (value = attributes[:'BookmarkList']).is_a?(Array)
|
36
|
+
self.bookmark_list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'link']
|
41
|
+
self.link = attributes[:'link']
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class BookmarksResponse < BaseObject
|
4
|
+
attr_accessor :bookmarks, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'bookmarks' => :'Bookmarks',
|
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
|
+
:'bookmarks' => :'Bookmarks',
|
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[:'Bookmarks']
|
39
|
+
self.bookmarks = attributes[:'Bookmarks']
|
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,77 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Border < BaseObject
|
4
|
+
attr_accessor :line_style, :line_width, :color, :distance_from_text, :shadow
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'line_style' => :'LineStyle',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'line_width' => :'LineWidth',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'color' => :'Color',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'distance_from_text' => :'DistanceFromText',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'shadow' => :'Shadow'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# attribute type
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'line_style' => :'String',
|
31
|
+
:'line_width' => :'Float',
|
32
|
+
:'color' => :'Color',
|
33
|
+
:'distance_from_text' => :'Float',
|
34
|
+
:'shadow' => :'BOOLEAN'
|
35
|
+
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
44
|
+
|
45
|
+
|
46
|
+
if attributes[:'LineStyle']
|
47
|
+
self.line_style = attributes[:'LineStyle']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes[:'LineWidth']
|
51
|
+
self.line_width = attributes[:'LineWidth']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'Color']
|
55
|
+
self.color = attributes[:'Color']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'DistanceFromText']
|
59
|
+
self.distance_from_text = attributes[:'DistanceFromText']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'Shadow']
|
63
|
+
self.shadow = attributes[:'Shadow']
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
def line_style=(line_style)
|
69
|
+
allowed_values = ["None", "Single", "Thick", "Double", "Hairline", "Dot", "DashLargeGap", "DotDash", "DotDotDash", "Triple", "ThinThickSmallGap", "ThickThinSmallGap", "ThinThickThinSmallGap", "ThinThickMediumGap", "ThickThinMediumGap", "ThinThickThinMediumGap", "ThinThickLargeGap", "ThickThinLargeGap", "ThinThickThinLargeGap", "Wave", "DoubleWave", "DashSmallGap", "DashDotStroker", "Emboss3D", "Engrave3D", "Outset", "Inset"]
|
70
|
+
if line_style && !allowed_values.include?(line_style)
|
71
|
+
fail "invalid value for 'line_style', must be one of #{allowed_values}"
|
72
|
+
end
|
73
|
+
@line_style = line_style
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Color < BaseObject
|
4
|
+
attr_accessor :a, :r, :g, :b
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'a' => :'A',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'r' => :'R',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'g' => :'G',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'b' => :'B'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'a' => :'String',
|
28
|
+
:'r' => :'String',
|
29
|
+
:'g' => :'String',
|
30
|
+
:'b' => :'String'
|
31
|
+
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
40
|
+
|
41
|
+
|
42
|
+
if attributes[:'A']
|
43
|
+
self.a = attributes[:'A']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'R']
|
47
|
+
self.r = attributes[:'R']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes[:'G']
|
51
|
+
self.g = attributes[:'G']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'B']
|
55
|
+
self.b = attributes[:'B']
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Comment < BaseObject
|
4
|
+
attr_accessor :range_start, :range_end, :author, :initial, :date_time, :text, :content, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'range_start' => :'RangeStart',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'range_end' => :'RangeEnd',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'author' => :'Author',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'initial' => :'Initial',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'date_time' => :'DateTime',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'text' => :'Text',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'content' => :'Content',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'link' => :'link'
|
32
|
+
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# attribute type
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'range_start' => :'DocumentPosition',
|
40
|
+
:'range_end' => :'DocumentPosition',
|
41
|
+
:'author' => :'String',
|
42
|
+
:'initial' => :'String',
|
43
|
+
:'date_time' => :'String',
|
44
|
+
:'text' => :'String',
|
45
|
+
:'content' => :'StoryChildNodes',
|
46
|
+
:'link' => :'Link'
|
47
|
+
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
56
|
+
|
57
|
+
|
58
|
+
if attributes[:'RangeStart']
|
59
|
+
self.range_start = attributes[:'RangeStart']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'RangeEnd']
|
63
|
+
self.range_end = attributes[:'RangeEnd']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'Author']
|
67
|
+
self.author = attributes[:'Author']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'Initial']
|
71
|
+
self.initial = attributes[:'Initial']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes[:'DateTime']
|
75
|
+
self.date_time = attributes[:'DateTime']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes[:'Text']
|
79
|
+
self.text = attributes[:'Text']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'Content']
|
83
|
+
self.content = attributes[:'Content']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'link']
|
87
|
+
self.link = attributes[:'link']
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class CommentResponse < BaseObject
|
4
|
+
attr_accessor :comment, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'comment' => :'Comment',
|
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
|
+
:'comment' => :'Comment',
|
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[:'Comment']
|
39
|
+
self.comment = attributes[:'Comment']
|
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,47 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class CommentsCollection < BaseObject
|
4
|
+
attr_accessor :comment_list, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'comment_list' => :'CommentList',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'link' => :'link'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'comment_list' => :'Array<Comment>',
|
22
|
+
:'link' => :'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[:'CommentList']
|
35
|
+
if (value = attributes[:'CommentList']).is_a?(Array)
|
36
|
+
self.comment_list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'link']
|
41
|
+
self.link = attributes[:'link']
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class CommentsResponse < BaseObject
|
4
|
+
attr_accessor :comments, :status, :code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'comments' => :'Comments',
|
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
|
+
:'comments' => :'CommentsCollection',
|
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[:'Comments']
|
39
|
+
self.comments = attributes[:'Comments']
|
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
|