groupdocs_annotation_cloud 19.5 → 22.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +107 -263
- data/lib/groupdocs_annotation_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_annotation_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_annotation_cloud/api/info_api.rb +11 -22
- data/lib/groupdocs_annotation_cloud/api/license_api.rb +169 -0
- data/lib/groupdocs_annotation_cloud/api/preview_api.rb +23 -90
- data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
- data/lib/groupdocs_annotation_cloud/api_error.rb +18 -5
- data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/{row_info.rb → annotate_options.rb} +65 -72
- data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +184 -61
- data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +41 -26
- data/lib/groupdocs_annotation_cloud/models/consumption_result.rb +234 -0
- data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/file_info.rb +244 -0
- data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/page_image.rb +2 -2
- data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/page_info.rb +5 -32
- data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/preview_options.rb +364 -0
- data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/remove_options.rb +236 -0
- data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_annotation_cloud/version.rb +2 -2
- data/lib/groupdocs_annotation_cloud.rb +7 -2
- metadata +8 -17
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="annotate_options.rb">
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,53 +28,53 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsAnnotationCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Defines options for annotating documents
|
32
|
+
class AnnotateOptions
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# Input document description
|
35
|
+
attr_accessor :file_info
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# List of annotations to add to the document
|
38
|
+
attr_accessor :annotations
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# First page number when saving page range
|
41
|
+
attr_accessor :first_page
|
42
42
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
43
|
+
# Last page number when saving page range
|
44
|
+
attr_accessor :last_page
|
45
45
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
46
|
+
# Indicates whether to save only annotated pages
|
47
|
+
attr_accessor :only_annotated_pages
|
48
48
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
49
|
+
# Path to output document in the cloud storage. Required for Add method. Not required if Annotate (with file result) method used.
|
50
|
+
attr_accessor :output_path
|
51
51
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
52
|
+
# The path to directory containing custom fonts in storage
|
53
|
+
attr_accessor :fonts_path
|
54
54
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'
|
58
|
+
:'file_info' => :'FileInfo',
|
59
|
+
:'annotations' => :'Annotations',
|
60
|
+
:'first_page' => :'FirstPage',
|
61
|
+
:'last_page' => :'LastPage',
|
62
|
+
:'only_annotated_pages' => :'OnlyAnnotatedPages',
|
63
|
+
:'output_path' => :'OutputPath',
|
64
|
+
:'fonts_path' => :'FontsPath'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.swagger_types
|
70
70
|
{
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'
|
77
|
-
:'
|
71
|
+
:'file_info' => :'FileInfo',
|
72
|
+
:'annotations' => :'Array<AnnotationInfo>',
|
73
|
+
:'first_page' => :'Integer',
|
74
|
+
:'last_page' => :'Integer',
|
75
|
+
:'only_annotated_pages' => :'BOOLEAN',
|
76
|
+
:'output_path' => :'String',
|
77
|
+
:'fonts_path' => :'String'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -86,36 +86,34 @@ module GroupDocsAnnotationCloud
|
|
86
86
|
# convert string to symbol for hash key
|
87
87
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
|
91
|
-
self.character_coordinates = value
|
92
|
-
end
|
89
|
+
if attributes.key?(:'FileInfo')
|
90
|
+
self.file_info = attributes[:'FileInfo']
|
93
91
|
end
|
94
92
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
|
93
|
+
if attributes.key?(:'Annotations')
|
94
|
+
if (value = attributes[:'Annotations']).is_a?(Array)
|
95
|
+
self.annotations = value
|
96
|
+
end
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'FirstPage')
|
100
|
+
self.first_page = attributes[:'FirstPage']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'LastPage')
|
104
|
+
self.last_page = attributes[:'LastPage']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
107
|
+
if attributes.key?(:'OnlyAnnotatedPages')
|
108
|
+
self.only_annotated_pages = attributes[:'OnlyAnnotatedPages']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
111
|
+
if attributes.key?(:'OutputPath')
|
112
|
+
self.output_path = attributes[:'OutputPath']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
|
117
|
-
self.text_coordinates = value
|
118
|
-
end
|
115
|
+
if attributes.key?(:'FontsPath')
|
116
|
+
self.fonts_path = attributes[:'FontsPath']
|
119
117
|
end
|
120
118
|
|
121
119
|
end
|
@@ -124,20 +122,16 @@ module GroupDocsAnnotationCloud
|
|
124
122
|
# @return Array for valid properies with the reasons
|
125
123
|
def list_invalid_properties
|
126
124
|
invalid_properties = []
|
127
|
-
if @
|
128
|
-
invalid_properties.push("invalid value for '
|
129
|
-
end
|
130
|
-
|
131
|
-
if @line_left.nil?
|
132
|
-
invalid_properties.push("invalid value for 'line_left', line_left cannot be nil.")
|
125
|
+
if @first_page.nil?
|
126
|
+
invalid_properties.push("invalid value for 'first_page', first_page cannot be nil.")
|
133
127
|
end
|
134
128
|
|
135
|
-
if @
|
136
|
-
invalid_properties.push("invalid value for '
|
129
|
+
if @last_page.nil?
|
130
|
+
invalid_properties.push("invalid value for 'last_page', last_page cannot be nil.")
|
137
131
|
end
|
138
132
|
|
139
|
-
if @
|
140
|
-
invalid_properties.push("invalid value for '
|
133
|
+
if @only_annotated_pages.nil?
|
134
|
+
invalid_properties.push("invalid value for 'only_annotated_pages', only_annotated_pages cannot be nil.")
|
141
135
|
end
|
142
136
|
|
143
137
|
return invalid_properties
|
@@ -146,10 +140,9 @@ module GroupDocsAnnotationCloud
|
|
146
140
|
# Check to see if the all the properties in the model are valid
|
147
141
|
# @return true if the model is valid
|
148
142
|
def valid?
|
149
|
-
return false if @
|
150
|
-
return false if @
|
151
|
-
return false if @
|
152
|
-
return false if @line_width.nil?
|
143
|
+
return false if @first_page.nil?
|
144
|
+
return false if @last_page.nil?
|
145
|
+
return false if @only_annotated_pages.nil?
|
153
146
|
return true
|
154
147
|
end
|
155
148
|
|
@@ -158,13 +151,13 @@ module GroupDocsAnnotationCloud
|
|
158
151
|
def ==(other)
|
159
152
|
return true if self.equal?(other)
|
160
153
|
self.class == other.class &&
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
154
|
+
file_info == other.file_info &&
|
155
|
+
annotations == other.annotations &&
|
156
|
+
first_page == other.first_page &&
|
157
|
+
last_page == other.last_page &&
|
158
|
+
only_annotated_pages == other.only_annotated_pages &&
|
159
|
+
output_path == other.output_path &&
|
160
|
+
fonts_path == other.fonts_path
|
168
161
|
end
|
169
162
|
|
170
163
|
# @see the `==` method
|
@@ -176,7 +169,7 @@ module GroupDocsAnnotationCloud
|
|
176
169
|
# Calculates hash code according to all attributes.
|
177
170
|
# @return [Fixnum] Hash code
|
178
171
|
def hash
|
179
|
-
[
|
172
|
+
[file_info, annotations, first_page, last_page, only_annotated_pages, output_path, fonts_path].hash
|
180
173
|
end
|
181
174
|
|
182
175
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="annotation_api_link.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|