groupdocs_annotation_cloud 19.5 → 22.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +107 -263
  3. data/lib/groupdocs_annotation_cloud/api/file_api.rb +7 -7
  4. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +7 -7
  5. data/lib/groupdocs_annotation_cloud/api/info_api.rb +11 -22
  6. data/lib/groupdocs_annotation_cloud/api/license_api.rb +169 -0
  7. data/lib/groupdocs_annotation_cloud/api/preview_api.rb +23 -90
  8. data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_annotation_cloud/api_error.rb +18 -5
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/{row_info.rb → annotate_options.rb} +65 -72
  13. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  14. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +184 -61
  15. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +41 -26
  16. data/lib/groupdocs_annotation_cloud/models/consumption_result.rb +234 -0
  17. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  21. data/lib/groupdocs_annotation_cloud/models/file_info.rb +244 -0
  22. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  29. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  31. data/lib/groupdocs_annotation_cloud/models/page_image.rb +2 -2
  32. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/page_info.rb +5 -32
  34. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  35. data/lib/groupdocs_annotation_cloud/models/preview_options.rb +364 -0
  36. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  37. data/lib/groupdocs_annotation_cloud/models/remove_options.rb +236 -0
  38. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  39. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  40. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  41. data/lib/groupdocs_annotation_cloud.rb +7 -2
  42. metadata +8 -17
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="row_info.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
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
- # Describes text row information
32
- class RowInfo
31
+ # Defines options for annotating documents
32
+ class AnnotateOptions
33
33
 
34
- # Gets or sets the list of character coordinates
35
- attr_accessor :character_coordinates
34
+ # Input document description
35
+ attr_accessor :file_info
36
36
 
37
- # Gets or sets the text line height
38
- attr_accessor :line_height
37
+ # List of annotations to add to the document
38
+ attr_accessor :annotations
39
39
 
40
- # Gets or sets the x coordinate of the text line upper left corner
41
- attr_accessor :line_left
40
+ # First page number when saving page range
41
+ attr_accessor :first_page
42
42
 
43
- # Gets or sets the y coordinate of the text line upper left corner
44
- attr_accessor :line_top
43
+ # Last page number when saving page range
44
+ attr_accessor :last_page
45
45
 
46
- # Gets or sets the text line width
47
- attr_accessor :line_width
46
+ # Indicates whether to save only annotated pages
47
+ attr_accessor :only_annotated_pages
48
48
 
49
- # Gets or sets the text
50
- attr_accessor :text
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
- # Gets or sets the list of text coordinates
53
- attr_accessor :text_coordinates
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
- :'character_coordinates' => :'CharacterCoordinates',
59
- :'line_height' => :'LineHeight',
60
- :'line_left' => :'LineLeft',
61
- :'line_top' => :'LineTop',
62
- :'line_width' => :'LineWidth',
63
- :'text' => :'Text',
64
- :'text_coordinates' => :'TextCoordinates'
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
- :'character_coordinates' => :'Array<Float>',
72
- :'line_height' => :'Float',
73
- :'line_left' => :'Float',
74
- :'line_top' => :'Float',
75
- :'line_width' => :'Float',
76
- :'text' => :'String',
77
- :'text_coordinates' => :'Array<Float>'
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?(:'CharacterCoordinates')
90
- if (value = attributes[:'CharacterCoordinates']).is_a?(Array)
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?(:'LineHeight')
96
- self.line_height = attributes[:'LineHeight']
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?(:'LineLeft')
100
- self.line_left = attributes[:'LineLeft']
99
+ if attributes.key?(:'FirstPage')
100
+ self.first_page = attributes[:'FirstPage']
101
101
  end
102
102
 
103
- if attributes.key?(:'LineTop')
104
- self.line_top = attributes[:'LineTop']
103
+ if attributes.key?(:'LastPage')
104
+ self.last_page = attributes[:'LastPage']
105
105
  end
106
106
 
107
- if attributes.key?(:'LineWidth')
108
- self.line_width = attributes[:'LineWidth']
107
+ if attributes.key?(:'OnlyAnnotatedPages')
108
+ self.only_annotated_pages = attributes[:'OnlyAnnotatedPages']
109
109
  end
110
110
 
111
- if attributes.key?(:'Text')
112
- self.text = attributes[:'Text']
111
+ if attributes.key?(:'OutputPath')
112
+ self.output_path = attributes[:'OutputPath']
113
113
  end
114
114
 
115
- if attributes.key?(:'TextCoordinates')
116
- if (value = attributes[:'TextCoordinates']).is_a?(Array)
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 @line_height.nil?
128
- invalid_properties.push("invalid value for 'line_height', line_height cannot be nil.")
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 @line_top.nil?
136
- invalid_properties.push("invalid value for 'line_top', line_top cannot be nil.")
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 @line_width.nil?
140
- invalid_properties.push("invalid value for 'line_width', line_width cannot be nil.")
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 @line_height.nil?
150
- return false if @line_left.nil?
151
- return false if @line_top.nil?
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
- character_coordinates == other.character_coordinates &&
162
- line_height == other.line_height &&
163
- line_left == other.line_left &&
164
- line_top == other.line_top &&
165
- line_width == other.line_width &&
166
- text == other.text &&
167
- text_coordinates == other.text_coordinates
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
- [character_coordinates, line_height, line_left, line_top, line_width, text, text_coordinates].hash
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-2019 Aspose Pty Ltd
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