groupdocs_annotation_cloud 18.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/groupdocs_annotation_cloud/api/annotation_api.rb +344 -0
- data/lib/groupdocs_annotation_cloud/api/image_info_api.rb +218 -0
- data/lib/groupdocs_annotation_cloud/api/image_pages_api.rb +395 -0
- data/lib/groupdocs_annotation_cloud/api/pdf_file_api.rb +281 -0
- data/lib/groupdocs_annotation_cloud/api_client.rb +390 -0
- data/lib/groupdocs_annotation_cloud/api_error.rb +56 -0
- data/lib/groupdocs_annotation_cloud/configuration.rb +95 -0
- data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +236 -0
- data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +504 -0
- data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +271 -0
- data/lib/groupdocs_annotation_cloud/models/document_info.rb +264 -0
- data/lib/groupdocs_annotation_cloud/models/image_page.rb +214 -0
- data/lib/groupdocs_annotation_cloud/models/image_pages.rb +219 -0
- data/lib/groupdocs_annotation_cloud/models/link.rb +236 -0
- data/lib/groupdocs_annotation_cloud/models/link_element.rb +206 -0
- data/lib/groupdocs_annotation_cloud/models/page_info.rb +258 -0
- data/lib/groupdocs_annotation_cloud/models/point.rb +216 -0
- data/lib/groupdocs_annotation_cloud/models/rectangle.rb +236 -0
- data/lib/groupdocs_annotation_cloud/models/requests/delete_clean_document_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/delete_pages_request.rb +49 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_import_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_info_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_page_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_pages_request.rb +49 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_pdf_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/get_pdf_stream_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/post_pages_request.rb +53 -0
- data/lib/groupdocs_annotation_cloud/models/requests/put_export_request.rb +57 -0
- data/lib/groupdocs_annotation_cloud/models/row_info.rb +276 -0
- data/lib/groupdocs_annotation_cloud/models/value_type.rb +196 -0
- data/lib/groupdocs_annotation_cloud/version.rb +29 -0
- data/lib/groupdocs_annotation_cloud.rb +80 -0
- metadata +164 -0
@@ -0,0 +1,236 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="rectangle.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
require 'date'
|
29
|
+
|
30
|
+
module GroupDocsAnnotationCloud
|
31
|
+
|
32
|
+
class Rectangle
|
33
|
+
|
34
|
+
# Gets or sets the x.
|
35
|
+
attr_accessor :x
|
36
|
+
|
37
|
+
# Gets or sets the y.
|
38
|
+
attr_accessor :y
|
39
|
+
|
40
|
+
# Gets or sets the width.
|
41
|
+
attr_accessor :width
|
42
|
+
|
43
|
+
# Gets or sets the height.
|
44
|
+
attr_accessor :height
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'x' => :'x',
|
50
|
+
:'y' => :'y',
|
51
|
+
:'width' => :'width',
|
52
|
+
:'height' => :'height'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
:'x' => :'Float',
|
60
|
+
:'y' => :'Float',
|
61
|
+
:'width' => :'Float',
|
62
|
+
:'height' => :'Float'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
return unless attributes.is_a?(Hash)
|
70
|
+
|
71
|
+
# convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
|
+
|
74
|
+
if attributes.key?(:'X')
|
75
|
+
self.x = attributes[:'X']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'Y')
|
79
|
+
self.y = attributes[:'Y']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'Width')
|
83
|
+
self.width = attributes[:'Width']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'Height')
|
87
|
+
self.height = attributes[:'Height']
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properies with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = []
|
96
|
+
return invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Checks equality by comparing each attribute.
|
106
|
+
# @param [Object] Object to be compared
|
107
|
+
def ==(other)
|
108
|
+
return true if self.equal?(other)
|
109
|
+
self.class == other.class &&
|
110
|
+
x == other.x &&
|
111
|
+
y == other.y &&
|
112
|
+
width == other.width &&
|
113
|
+
height == other.height
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(other)
|
119
|
+
self == other
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Fixnum] Hash code
|
124
|
+
def hash
|
125
|
+
[x, y, width, height].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def build_from_hash(attributes)
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
133
|
+
self.class.swagger_types.each_pair do |key, type|
|
134
|
+
if type =~ /\AArray<(.*)>/i
|
135
|
+
# check to ensure the input is an array given that the the attribute
|
136
|
+
# is documented as an array but the input is not
|
137
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
138
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
139
|
+
end
|
140
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
141
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
142
|
+
end
|
143
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
144
|
+
end
|
145
|
+
|
146
|
+
self
|
147
|
+
end
|
148
|
+
|
149
|
+
# Deserializes the data based on type
|
150
|
+
# @param string type Data type
|
151
|
+
# @param string value Value to be deserialized
|
152
|
+
# @return [Object] Deserialized data
|
153
|
+
def _deserialize(type, value)
|
154
|
+
case type.to_sym
|
155
|
+
when :DateTime
|
156
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
157
|
+
when :Date
|
158
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
159
|
+
when :String
|
160
|
+
value.to_s
|
161
|
+
when :Integer
|
162
|
+
value.to_i
|
163
|
+
when :Float
|
164
|
+
value.to_f
|
165
|
+
when :BOOLEAN
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
+
true
|
168
|
+
else
|
169
|
+
false
|
170
|
+
end
|
171
|
+
when :Object
|
172
|
+
# generic object (usually a Hash), return directly
|
173
|
+
value
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each do |k, v|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
+
end
|
184
|
+
end
|
185
|
+
else
|
186
|
+
# model
|
187
|
+
temp_model = GroupDocsAnnotationCloud.const_get(type).new
|
188
|
+
temp_model.build_from_hash(value)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the string representation of the object
|
193
|
+
# @return [String] String presentation of the object
|
194
|
+
def to_s
|
195
|
+
to_hash.to_s
|
196
|
+
end
|
197
|
+
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_body
|
201
|
+
to_hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the object in the form of hash
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_hash
|
207
|
+
hash = {}
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
209
|
+
value = self.send(attr)
|
210
|
+
next if value.nil?
|
211
|
+
hash[param] = _to_hash(value)
|
212
|
+
end
|
213
|
+
hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Outputs non-array value in the form of hash
|
217
|
+
# For object, use to_hash. Otherwise, just return the value
|
218
|
+
# @param [Object] value Any valid value
|
219
|
+
# @return [Hash] Returns the value in the form of hash
|
220
|
+
def _to_hash(value)
|
221
|
+
if value.is_a?(Array)
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
223
|
+
elsif value.is_a?(Hash)
|
224
|
+
{}.tap do |hash|
|
225
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
226
|
+
end
|
227
|
+
elsif value.respond_to? :to_hash
|
228
|
+
value.to_hash
|
229
|
+
else
|
230
|
+
value
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="delete_clean_document_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_clean_document operation.
|
32
|
+
#
|
33
|
+
class DeleteCleanDocumentRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
# Gets or sets password
|
40
|
+
attr_accessor :password
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param folder The folder name.
|
46
|
+
# @param password
|
47
|
+
def initialize(name, folder = nil, password = nil)
|
48
|
+
self.name = name
|
49
|
+
self.folder = folder
|
50
|
+
self.password = password
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="delete_pages_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_pages operation.
|
32
|
+
#
|
33
|
+
class DeletePagesRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
|
40
|
+
#
|
41
|
+
# Initializes a new instance.
|
42
|
+
# @param name The document name.
|
43
|
+
# @param folder The folder name.
|
44
|
+
def initialize(name, folder = nil)
|
45
|
+
self.name = name
|
46
|
+
self.folder = folder
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_import_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_import operation.
|
32
|
+
#
|
33
|
+
class GetImportRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
# The document password.
|
40
|
+
attr_accessor :password
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param folder The folder name.
|
46
|
+
# @param password The document password.
|
47
|
+
def initialize(name, folder = nil, password = nil)
|
48
|
+
self.name = name
|
49
|
+
self.folder = folder
|
50
|
+
self.password = password
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_info operation.
|
32
|
+
#
|
33
|
+
class GetInfoRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
# The document password.
|
40
|
+
attr_accessor :password
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param folder The folder name.
|
46
|
+
# @param password The document password.
|
47
|
+
def initialize(name, folder = nil, password = nil)
|
48
|
+
self.name = name
|
49
|
+
self.folder = folder
|
50
|
+
self.password = password
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_page_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_page operation.
|
32
|
+
#
|
33
|
+
class GetPageRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The page number.
|
38
|
+
attr_accessor :page_number
|
39
|
+
# The folder name.
|
40
|
+
attr_accessor :folder
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param page_number The page number.
|
46
|
+
# @param folder The folder name.
|
47
|
+
def initialize(name, page_number, folder = nil)
|
48
|
+
self.name = name
|
49
|
+
self.page_number = page_number
|
50
|
+
self.folder = folder
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_pages_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_pages operation.
|
32
|
+
#
|
33
|
+
class GetPagesRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
|
40
|
+
#
|
41
|
+
# Initializes a new instance.
|
42
|
+
# @param name The document name.
|
43
|
+
# @param folder The folder name.
|
44
|
+
def initialize(name, folder = nil)
|
45
|
+
self.name = name
|
46
|
+
self.folder = folder
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_pdf_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_pdf operation.
|
32
|
+
#
|
33
|
+
class GetPdfRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
# The document password.
|
40
|
+
attr_accessor :password
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param folder The folder name.
|
46
|
+
# @param password The document password.
|
47
|
+
def initialize(name, folder = nil, password = nil)
|
48
|
+
self.name = name
|
49
|
+
self.folder = folder
|
50
|
+
self.password = password
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_pdf_stream_request.rb">
|
4
|
+
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module GroupDocsAnnotationCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_pdf_stream operation.
|
32
|
+
#
|
33
|
+
class GetPdfStreamRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# The folder name.
|
38
|
+
attr_accessor :folder
|
39
|
+
# The document password.
|
40
|
+
attr_accessor :password
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param name The document name.
|
45
|
+
# @param folder The folder name.
|
46
|
+
# @param password The document password.
|
47
|
+
def initialize(name, folder = nil, password = nil)
|
48
|
+
self.name = name
|
49
|
+
self.folder = folder
|
50
|
+
self.password = password
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|