aspose_words_cloud 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,69 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class ProtectionDataResponse < BaseObject
|
|
4
|
+
attr_accessor :protection_data, :document_link, :status, :code
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'protection_data' => :'ProtectionData',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'document_link' => :'DocumentLink',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'status' => :'Status',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'code' => :'Code'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'protection_data' => :'ProtectionData',
|
|
28
|
+
:'document_link' => :'Link',
|
|
29
|
+
:'status' => :'String',
|
|
30
|
+
:'code' => :'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[:'ProtectionData']
|
|
43
|
+
self.protection_data = attributes[:'ProtectionData']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'DocumentLink']
|
|
47
|
+
self.document_link = attributes[:'DocumentLink']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'Status']
|
|
51
|
+
self.status = attributes[:'Status']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes[:'Code']
|
|
55
|
+
self.code = attributes[:'Code']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def status=(status)
|
|
61
|
+
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"]
|
|
62
|
+
if status && !allowed_values.include?(status)
|
|
63
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
|
64
|
+
end
|
|
65
|
+
@status = status
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class ProtectionRequest < BaseObject
|
|
4
|
+
attr_accessor :password, :new_password, :protection_type
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'password' => :'Password',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'new_password' => :'NewPassword',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'protection_type' => :'ProtectionType'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'password' => :'String',
|
|
25
|
+
:'new_password' => :'String',
|
|
26
|
+
:'protection_type' => :'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[:'Password']
|
|
39
|
+
self.password = attributes[:'Password']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
if attributes[:'NewPassword']
|
|
43
|
+
self.new_password = attributes[:'NewPassword']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'ProtectionType']
|
|
47
|
+
self.protection_type = attributes[:'ProtectionType']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class Rectangle < BaseObject
|
|
4
|
+
attr_accessor :x, :y, :width, :height
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'x' => :'X',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'y' => :'Y',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'width' => :'Width',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'height' => :'Height'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'x' => :'Integer',
|
|
28
|
+
:'y' => :'Integer',
|
|
29
|
+
:'width' => :'Integer',
|
|
30
|
+
:'height' => :'Integer'
|
|
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[:'X']
|
|
43
|
+
self.x = attributes[:'X']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'Y']
|
|
47
|
+
self.y = attributes[:'Y']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'Width']
|
|
51
|
+
self.width = attributes[:'Width']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes[:'Height']
|
|
55
|
+
self.height = attributes[:'Height']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class ReplaceTextRequest < BaseObject
|
|
4
|
+
attr_accessor :old_value, :current_value, :is_match_case, :is_match_whole_word
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'old_value' => :'OldValue',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'current_value' => :'CurrentValue',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'is_match_case' => :'IsMatchCase',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'is_match_whole_word' => :'IsMatchWholeWord'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'old_value' => :'String',
|
|
28
|
+
:'current_value' => :'String',
|
|
29
|
+
:'is_match_case' => :'BOOLEAN',
|
|
30
|
+
:'is_match_whole_word' => :'BOOLEAN'
|
|
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[:'OldValue']
|
|
43
|
+
self.old_value = attributes[:'OldValue']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'CurrentValue']
|
|
47
|
+
self.current_value = attributes[:'CurrentValue']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'IsMatchCase']
|
|
51
|
+
self.is_match_case = attributes[:'IsMatchCase']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes[:'IsMatchWholeWord']
|
|
55
|
+
self.is_match_whole_word = attributes[:'IsMatchWholeWord']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class ReplaceTextResponse < BaseObject
|
|
4
|
+
attr_accessor :matches, :document_link, :status, :code
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'matches' => :'Matches',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'document_link' => :'DocumentLink',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'status' => :'Status',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'code' => :'Code'
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# attribute type
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
:'matches' => :'Integer',
|
|
28
|
+
:'document_link' => :'Link',
|
|
29
|
+
:'status' => :'String',
|
|
30
|
+
:'code' => :'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[:'Matches']
|
|
43
|
+
self.matches = attributes[:'Matches']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
if attributes[:'DocumentLink']
|
|
47
|
+
self.document_link = attributes[:'DocumentLink']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'Status']
|
|
51
|
+
self.status = attributes[:'Status']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes[:'Code']
|
|
55
|
+
self.code = attributes[:'Code']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def status=(status)
|
|
61
|
+
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"]
|
|
62
|
+
if status && !allowed_values.include?(status)
|
|
63
|
+
fail "invalid value for 'status', must be one of #{allowed_values}"
|
|
64
|
+
end
|
|
65
|
+
@status = status
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class ResponseMessage < BaseObject
|
|
4
|
+
attr_accessor :code, :message
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'code' => :'Code',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'message' => :'Message'
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# attribute type
|
|
19
|
+
def self.swagger_types
|
|
20
|
+
{
|
|
21
|
+
:'code' => :'Integer',
|
|
22
|
+
:'message' => :'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[:'Code']
|
|
35
|
+
self.code = attributes[:'Code']
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
if attributes[:'Message']
|
|
39
|
+
self.message = attributes[:'Message']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class RevisionsModificationResponse < BaseObject
|
|
4
|
+
attr_accessor :result, :status, :code
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'result' => :'Result',
|
|
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
|
+
:'result' => :'ModificationOperationResult',
|
|
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[:'Result']
|
|
39
|
+
self.result = attributes[:'Result']
|
|
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,53 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class Run < BaseObject
|
|
4
|
+
attr_accessor :text, :node_id, :link
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'text' => :'Text',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'node_id' => :'NodeId',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'link' => :'link'
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# attribute type
|
|
22
|
+
def self.swagger_types
|
|
23
|
+
{
|
|
24
|
+
:'text' => :'String',
|
|
25
|
+
:'node_id' => :'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[:'Text']
|
|
39
|
+
self.text = attributes[:'Text']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
if attributes[:'NodeId']
|
|
43
|
+
self.node_id = attributes[:'NodeId']
|
|
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,61 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class RunResponse < BaseObject
|
|
4
|
+
attr_accessor :run, :status, :code
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'run' => :'Run',
|
|
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
|
+
:'run' => :'Run',
|
|
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[:'Run']
|
|
39
|
+
self.run = attributes[:'Run']
|
|
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,69 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class SaveOptionsData < BaseObject
|
|
4
|
+
attr_accessor :save_format, :file_name, :dml_rendering_mode, :dml_effects_rendering_mode, :zip_output
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'save_format' => :'SaveFormat',
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
:'file_name' => :'FileName',
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
:'dml_rendering_mode' => :'DmlRenderingMode',
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
:'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
|
|
20
|
+
|
|
21
|
+
#
|
|
22
|
+
:'zip_output' => :'ZipOutput'
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# attribute type
|
|
28
|
+
def self.swagger_types
|
|
29
|
+
{
|
|
30
|
+
:'save_format' => :'String',
|
|
31
|
+
:'file_name' => :'String',
|
|
32
|
+
:'dml_rendering_mode' => :'String',
|
|
33
|
+
:'dml_effects_rendering_mode' => :'String',
|
|
34
|
+
:'zip_output' => :'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[:'SaveFormat']
|
|
47
|
+
self.save_format = attributes[:'SaveFormat']
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
if attributes[:'FileName']
|
|
51
|
+
self.file_name = attributes[:'FileName']
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
if attributes[:'DmlRenderingMode']
|
|
55
|
+
self.dml_rendering_mode = attributes[:'DmlRenderingMode']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if attributes[:'DmlEffectsRenderingMode']
|
|
59
|
+
self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes[:'ZipOutput']
|
|
63
|
+
self.zip_output = attributes[:'ZipOutput']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module AsposeWordsCloud
|
|
2
|
+
#
|
|
3
|
+
class SaveResponse < BaseObject
|
|
4
|
+
attr_accessor :save_result, :status, :code
|
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
|
|
9
|
+
#
|
|
10
|
+
:'save_result' => :'SaveResult',
|
|
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
|
+
:'save_result' => :'SaveResult',
|
|
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[:'SaveResult']
|
|
39
|
+
self.save_result = attributes[:'SaveResult']
|
|
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
|