aspose_cells_cloud 20.4 → 20.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_cells_cloud.rb +8 -1
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -19164
  4. data/lib/aspose_cells_cloud/api_client.rb +489 -489
  5. data/lib/aspose_cells_cloud/api_error.rb +18 -8
  6. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  7. data/lib/aspose_cells_cloud/models/{error.rb → cells_error.rb} +1 -1
  8. data/lib/aspose_cells_cloud/models/files_upload_result.rb +1 -1
  9. data/lib/aspose_cells_cloud/models/save_result.rb +8 -26
  10. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  11. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  12. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  13. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  14. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  15. data/lib/aspose_cells_cloud/models/split_result.rb +1 -1
  16. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
  17. data/lib/aspose_cells_cloud/version.rb +25 -25
  18. data/spec/api/cells_api_spec.rb +30 -29
  19. data/spec/api/cells_auto_filter_api_spec.rb +2 -1
  20. data/spec/api/cells_autoshapes_api_spec.rb +2 -1
  21. data/spec/api/cells_chart_area_api_spec.rb +2 -1
  22. data/spec/api/cells_charts_api_spec.rb +2 -1
  23. data/spec/api/cells_conditional_formattings_api_spec.rb +2 -1
  24. data/spec/api/cells_hypelinks_api_spec.rb +2 -1
  25. data/spec/api/cells_list_objects_api_spec.rb +2 -1
  26. data/spec/api/cells_ole_objects_api_spec.rb +5 -2
  27. data/spec/api/cells_page_breaks_api_spec.rb +4 -3
  28. data/spec/api/cells_page_setup_api_spec.rb +2 -1
  29. data/spec/api/cells_pictures_api_spec.rb +4 -2
  30. data/spec/api/cells_pivot_tables_api_spec.rb +37 -29
  31. data/spec/api/cells_properties_api_spec.rb +2 -1
  32. data/spec/api/cells_ranges_api_spec.rb +2 -1
  33. data/spec/api/cells_save_as_api_spec.rb +4 -3
  34. data/spec/api/cells_shapes_api_spec.rb +3 -2
  35. data/spec/api/cells_simple_spec.rb +2 -1
  36. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  37. data/spec/api/cells_storage_api_spec.rb +69 -68
  38. data/spec/api/cells_storage_spec.rb +3 -2
  39. data/spec/api/cells_task_api_spec.rb +3 -2
  40. data/spec/api/cells_workbook_api_spec.rb +32 -29
  41. data/spec/api/cells_worksheet_validations_api_spec.rb +2 -1
  42. data/spec/api/cells_worksheets_api_spec.rb +60 -58
  43. data/spec/spec_helper.rb +4 -2
  44. metadata +31 -291
  45. data/Gemfile +0 -7
  46. data/LICENSE +0 -21
  47. data/README.md +0 -104
  48. data/Rakefile +0 -8
  49. data/aspose_cells_cloud-20.2.gem +0 -0
  50. data/aspose_cells_cloud.gemspec +0 -48
  51. data/data/Book1.xlsx +0 -0
  52. data/data/ImportData.xlsx +0 -0
  53. data/data/NewCopy.xlsx +0 -0
  54. data/data/OLEDoc.docx +0 -0
  55. data/data/PivTestFile2.xlsx +0 -0
  56. data/data/ReportData.xml +0 -1
  57. data/data/TestCase.xlsx +0 -0
  58. data/data/TestImportData.xlsx +0 -0
  59. data/data/TestImportDataCSV.csv +0 -3
  60. data/data/WaterMark.png +0 -0
  61. data/data/markdowntest.md +0 -41
  62. data/data/myDocument.xlsx +0 -0
  63. data/data/word.jpg +0 -0
  64. data/docs/AboveAverage.md +0 -10
  65. data/docs/AccessTokenResponse.md +0 -15
  66. data/docs/Area.md +0 -13
  67. data/docs/AutoFilter.md +0 -11
  68. data/docs/AutoFilterResponse.md +0 -10
  69. data/docs/AutoFitterOptions.md +0 -10
  70. data/docs/AutoShape.md +0 -42
  71. data/docs/AutoShapeResponse.md +0 -10
  72. data/docs/AutoShapes.md +0 -9
  73. data/docs/AutoShapesResponse.md +0 -10
  74. data/docs/Border.md +0 -10
  75. data/docs/CalculationOptions.md +0 -11
  76. data/docs/Cell.md +0 -24
  77. data/docs/CellArea.md +0 -11
  78. data/docs/CellResponse.md +0 -10
  79. data/docs/CellValue.md +0 -12
  80. data/docs/Cells.md +0 -14
  81. data/docs/CellsApi.md +0 -14581
  82. data/docs/CellsCloudResponse.md +0 -9
  83. data/docs/CellsColor.md +0 -12
  84. data/docs/CellsDocumentProperties.md +0 -9
  85. data/docs/CellsDocumentPropertiesResponse.md +0 -10
  86. data/docs/CellsDocumentProperty.md +0 -11
  87. data/docs/CellsDocumentPropertyResponse.md +0 -10
  88. data/docs/CellsObjectOperateTaskParameter.md +0 -10
  89. data/docs/CellsResponse.md +0 -10
  90. data/docs/Chart.md +0 -51
  91. data/docs/ChartArea.md +0 -21
  92. data/docs/ChartAreaResponse.md +0 -10
  93. data/docs/ChartFrame.md +0 -21
  94. data/docs/ChartOperateParameter.md +0 -17
  95. data/docs/Charts.md +0 -9
  96. data/docs/ChartsResponse.md +0 -10
  97. data/docs/Color.md +0 -11
  98. data/docs/ColorFilter.md +0 -12
  99. data/docs/ColorFilterRequest.md +0 -10
  100. data/docs/ColorScale.md +0 -13
  101. data/docs/Column.md +0 -13
  102. data/docs/ColumnResponse.md +0 -10
  103. data/docs/Columns.md +0 -11
  104. data/docs/ColumnsResponse.md +0 -10
  105. data/docs/Comment.md +0 -19
  106. data/docs/CommentResponse.md +0 -10
  107. data/docs/Comments.md +0 -9
  108. data/docs/CommentsResponse.md +0 -10
  109. data/docs/ConditionalFormatting.md +0 -10
  110. data/docs/ConditionalFormattingIcon.md +0 -10
  111. data/docs/ConditionalFormattingResponse.md +0 -10
  112. data/docs/ConditionalFormattingValue.md +0 -10
  113. data/docs/ConditionalFormattings.md +0 -10
  114. data/docs/ConditionalFormattingsResponse.md +0 -10
  115. data/docs/ConvertTaskParameter.md +0 -10
  116. data/docs/CopyOptions.md +0 -13
  117. data/docs/CreatePivotTableRequest.md +0 -14
  118. data/docs/CustomFilter.md +0 -9
  119. data/docs/CustomParserConfig.md +0 -10
  120. data/docs/DataBar.md +0 -19
  121. data/docs/DataBarBorder.md +0 -9
  122. data/docs/DataSorter.md +0 -11
  123. data/docs/DifSaveOptions.md +0 -15
  124. data/docs/DiscUsage.md +0 -9
  125. data/docs/DynamicFilter.md +0 -10
  126. data/docs/Error.md +0 -11
  127. data/docs/ErrorDetails.md +0 -9
  128. data/docs/FileSource.md +0 -9
  129. data/docs/FileVersion.md +0 -14
  130. data/docs/FileVersions.md +0 -8
  131. data/docs/FilesList.md +0 -8
  132. data/docs/FilesUploadResult.md +0 -9
  133. data/docs/FillFormat.md +0 -13
  134. data/docs/FillFormatResponse.md +0 -10
  135. data/docs/FilterColumn.md +0 -16
  136. data/docs/Font.md +0 -17
  137. data/docs/FontSetting.md +0 -12
  138. data/docs/FormatCondition.md +0 -22
  139. data/docs/GradientFill.md +0 -11
  140. data/docs/GradientFillStop.md +0 -10
  141. data/docs/HorizontalPageBreak.md +0 -10
  142. data/docs/HorizontalPageBreakResponse.md +0 -10
  143. data/docs/HorizontalPageBreaks.md +0 -9
  144. data/docs/HorizontalPageBreaksResponse.md +0 -10
  145. data/docs/HtmlSaveOptions.md +0 -27
  146. data/docs/Hyperlink.md +0 -12
  147. data/docs/HyperlinkResponse.md +0 -10
  148. data/docs/Hyperlinks.md +0 -10
  149. data/docs/HyperlinksResponse.md +0 -10
  150. data/docs/IconFilter.md +0 -9
  151. data/docs/IconSet.md +0 -13
  152. data/docs/ImageSaveOptions.md +0 -27
  153. data/docs/ImportBatchDataOption.md +0 -12
  154. data/docs/ImportCSVDataOption.md +0 -17
  155. data/docs/ImportDataTaskParameter.md +0 -10
  156. data/docs/ImportDoubleArrayOption.md +0 -15
  157. data/docs/ImportIntArrayOption.md +0 -15
  158. data/docs/ImportOption.md +0 -11
  159. data/docs/ImportStringArrayOption.md +0 -15
  160. data/docs/Legend.md +0 -23
  161. data/docs/LegendResponse.md +0 -10
  162. data/docs/Line.md +0 -26
  163. data/docs/LineFormat.md +0 -24
  164. data/docs/LineResponse.md +0 -10
  165. data/docs/Link.md +0 -11
  166. data/docs/LinkElement.md +0 -8
  167. data/docs/ListColumn.md +0 -9
  168. data/docs/ListObject.md +0 -23
  169. data/docs/ListObjectOperateParameter.md +0 -9
  170. data/docs/ListObjectResponse.md +0 -10
  171. data/docs/ListObjects.md +0 -9
  172. data/docs/ListObjectsResponse.md +0 -10
  173. data/docs/MHtmlSaveOptions.md +0 -27
  174. data/docs/MarkdownSaveOptions.md +0 -18
  175. data/docs/MergedCell.md +0 -12
  176. data/docs/MergedCellResponse.md +0 -10
  177. data/docs/MergedCells.md +0 -10
  178. data/docs/MergedCellsResponse.md +0 -10
  179. data/docs/MultipleFilter.md +0 -7
  180. data/docs/MultipleFilters.md +0 -9
  181. data/docs/Name.md +0 -15
  182. data/docs/NameResponse.md +0 -10
  183. data/docs/Names.md +0 -10
  184. data/docs/NamesResponse.md +0 -10
  185. data/docs/NegativeBarFormat.md +0 -11
  186. data/docs/ObjectExist.md +0 -9
  187. data/docs/OdsSaveOptions.md +0 -15
  188. data/docs/OleObject.md +0 -49
  189. data/docs/OleObjectResponse.md +0 -10
  190. data/docs/OleObjects.md +0 -9
  191. data/docs/OleObjectsResponse.md +0 -10
  192. data/docs/OoxmlSaveOptions.md +0 -16
  193. data/docs/OperateObject.md +0 -9
  194. data/docs/OperateObjectPosition.md +0 -13
  195. data/docs/OperateParameter.md +0 -8
  196. data/docs/PageBreakOperateParameter.md +0 -14
  197. data/docs/PageSection.md +0 -12
  198. data/docs/PageSectionsResponse.md +0 -10
  199. data/docs/PageSetup.md +0 -42
  200. data/docs/PageSetupOperateParameter.md +0 -9
  201. data/docs/PageSetupResponse.md +0 -10
  202. data/docs/PasswordRequest.md +0 -8
  203. data/docs/PasteOptions.md +0 -11
  204. data/docs/PatternFill.md +0 -14
  205. data/docs/PdfSaveOptions.md +0 -25
  206. data/docs/PdfSecurityOptions.md +0 -17
  207. data/docs/PicFormatOption.md +0 -13
  208. data/docs/Picture.md +0 -48
  209. data/docs/PictureResponse.md +0 -10
  210. data/docs/Pictures.md +0 -9
  211. data/docs/PicturesResponse.md +0 -10
  212. data/docs/PivotField.md +0 -46
  213. data/docs/PivotFieldResponse.md +0 -10
  214. data/docs/PivotFilter.md +0 -16
  215. data/docs/PivotFilterResponse.md +0 -10
  216. data/docs/PivotFiltersResponse.md +0 -10
  217. data/docs/PivotItem.md +0 -11
  218. data/docs/PivotTable.md +0 -76
  219. data/docs/PivotTableFieldRequest.md +0 -8
  220. data/docs/PivotTableOperateParameter.md +0 -16
  221. data/docs/PivotTableResponse.md +0 -10
  222. data/docs/PivotTables.md +0 -9
  223. data/docs/PivotTablesResponse.md +0 -10
  224. data/docs/ProtectSheetParameter.md +0 -23
  225. data/docs/Range.md +0 -16
  226. data/docs/RangeCopyRequest.md +0 -11
  227. data/docs/RangeSetOutlineBorderRequest.md +0 -11
  228. data/docs/RangeSetStyleRequest.md +0 -9
  229. data/docs/RangeValueResponse.md +0 -10
  230. data/docs/Ranges.md +0 -8
  231. data/docs/RangesResponse.md +0 -10
  232. data/docs/ResultDestination.md +0 -10
  233. data/docs/Row.md +0 -15
  234. data/docs/RowResponse.md +0 -10
  235. data/docs/Rows.md +0 -11
  236. data/docs/RowsResponse.md +0 -10
  237. data/docs/SaveOptions.md +0 -15
  238. data/docs/SaveResponse.md +0 -10
  239. data/docs/SaveResult.md +0 -10
  240. data/docs/SaveResultTaskParameter.md +0 -9
  241. data/docs/ShadowEffect.md +0 -14
  242. data/docs/Shape.md +0 -42
  243. data/docs/ShapeOperateParameter.md +0 -9
  244. data/docs/ShapeResponse.md +0 -10
  245. data/docs/Shapes.md +0 -9
  246. data/docs/ShapesResponse.md +0 -10
  247. data/docs/SingleValue.md +0 -9
  248. data/docs/SingleValueResponse.md +0 -10
  249. data/docs/SmartMarkerTaskParameter.md +0 -10
  250. data/docs/SolidFill.md +0 -10
  251. data/docs/SortKey.md +0 -10
  252. data/docs/SplitResult.md +0 -8
  253. data/docs/SplitResultDocument.md +0 -9
  254. data/docs/SplitResultResponse.md +0 -10
  255. data/docs/SplitWorkbookTaskParameter.md +0 -13
  256. data/docs/SpreadsheetML2003SaveOptions.md +0 -18
  257. data/docs/StorageExist.md +0 -8
  258. data/docs/StorageFile.md +0 -12
  259. data/docs/Style.md +0 -31
  260. data/docs/StyleResponse.md +0 -10
  261. data/docs/SvgSaveOptions.md +0 -16
  262. data/docs/TaskData.md +0 -8
  263. data/docs/TaskDescription.md +0 -9
  264. data/docs/TaskParameter.md +0 -7
  265. data/docs/TextItem.md +0 -9
  266. data/docs/TextItems.md +0 -9
  267. data/docs/TextItemsResponse.md +0 -10
  268. data/docs/TextOptions.md +0 -23
  269. data/docs/TextureFill.md +0 -13
  270. data/docs/ThemeColor.md +0 -9
  271. data/docs/TilePicOption.md +0 -13
  272. data/docs/Title.md +0 -28
  273. data/docs/TitleResponse.md +0 -10
  274. data/docs/Top10.md +0 -10
  275. data/docs/Top10Filter.md +0 -11
  276. data/docs/TxtSaveOptions.md +0 -19
  277. data/docs/Validation.md +0 -24
  278. data/docs/ValidationResponse.md +0 -10
  279. data/docs/Validations.md +0 -10
  280. data/docs/ValidationsResponse.md +0 -10
  281. data/docs/ValueType.md +0 -7
  282. data/docs/VerticalPageBreak.md +0 -10
  283. data/docs/VerticalPageBreakResponse.md +0 -10
  284. data/docs/VerticalPageBreaks.md +0 -9
  285. data/docs/VerticalPageBreaksResponse.md +0 -10
  286. data/docs/Workbook.md +0 -18
  287. data/docs/WorkbookEncryptionRequest.md +0 -10
  288. data/docs/WorkbookOperateParameter.md +0 -8
  289. data/docs/WorkbookProtectionRequest.md +0 -9
  290. data/docs/WorkbookReplaceResponse.md +0 -11
  291. data/docs/WorkbookResponse.md +0 -10
  292. data/docs/WorkbookSettings.md +0 -52
  293. data/docs/WorkbookSettingsOperateParameter.md +0 -9
  294. data/docs/WorkbookSettingsResponse.md +0 -10
  295. data/docs/Worksheet.md +0 -39
  296. data/docs/WorksheetMovingRequest.md +0 -9
  297. data/docs/WorksheetReplaceResponse.md +0 -11
  298. data/docs/WorksheetResponse.md +0 -10
  299. data/docs/Worksheets.md +0 -9
  300. data/docs/WorksheetsResponse.md +0 -10
  301. data/docs/XlsSaveOptions.md +0 -15
  302. data/docs/XlsbSaveOptions.md +0 -15
  303. data/docs/XpsSaveOptions.md +0 -15
  304. data/git_push.sh +0 -55
  305. data/lib/aspose_cells_cloud/.api_client.rb.swp +0 -0
  306. data/runTest.sh +0 -4
  307. data/spec/api/cells_one_spec.rb +0 -37
  308. data/spec/api/o_auth_api_spec.rb +0 -51
  309. data/test.pdf +0 -0
  310. data/testResult.txt +0 -113
@@ -0,0 +1,200 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class SparklineGroups
28
+ attr_accessor :sparkline_group_list
29
+
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'sparkline_group_list' => :'SparklineGroupList'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'sparkline_group_list' => :'Array<SparklineGroup>'
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+
53
+ if attributes.has_key?(:'SparklineGroupList')
54
+ if (value = attributes[:'SparklineGroupList']).is_a?(Array)
55
+ self.sparkline_group_list = value
56
+ end
57
+ end
58
+
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properies with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ return invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ return true
72
+ end
73
+
74
+ # Checks equality by comparing each attribute.
75
+ # @param [Object] Object to be compared
76
+ def ==(o)
77
+ return true if self.equal?(o)
78
+ self.class == o.class &&
79
+ sparkline_group_list == o.sparkline_group_list
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Fixnum] Hash code
90
+ def hash
91
+ [sparkline_group_list].hash
92
+ end
93
+
94
+ # Builds the object from hash
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ # @return [Object] Returns the model itself
97
+ def build_from_hash(attributes)
98
+ return nil unless attributes.is_a?(Hash)
99
+ self.class.swagger_types.each_pair do |key, type|
100
+ if type =~ /\AArray<(.*)>/i
101
+ # check to ensure the input is an array given that the the attribute
102
+ # is documented as an array but the input is not
103
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
104
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
105
+ end
106
+ elsif !attributes[self.class.attribute_map[key]].nil?
107
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
108
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
109
+ end
110
+
111
+ self
112
+ end
113
+
114
+ # Deserializes the data based on type
115
+ # @param string type Data type
116
+ # @param string value Value to be deserialized
117
+ # @return [Object] Deserialized data
118
+ def _deserialize(type, value)
119
+ case type.to_sym
120
+ when :DateTime
121
+ DateTime.parse(value)
122
+ when :Date
123
+ Date.parse(value)
124
+ when :String
125
+ value.to_s
126
+ when :Integer
127
+ value.to_i
128
+ when :Float
129
+ value.to_f
130
+ when :BOOLEAN
131
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
132
+ true
133
+ else
134
+ false
135
+ end
136
+ when :Object
137
+ # generic object (usually a Hash), return directly
138
+ value
139
+ when /\AArray<(?<inner_type>.+)>\z/
140
+ inner_type = Regexp.last_match[:inner_type]
141
+ value.map { |v| _deserialize(inner_type, v) }
142
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
143
+ k_type = Regexp.last_match[:k_type]
144
+ v_type = Regexp.last_match[:v_type]
145
+ {}.tap do |hash|
146
+ value.each do |k, v|
147
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
148
+ end
149
+ end
150
+ else # model
151
+ temp_model = AsposeCellsCloud.const_get(type).new
152
+ temp_model.build_from_hash(value)
153
+ end
154
+ end
155
+
156
+ # Returns the string representation of the object
157
+ # @return [String] String presentation of the object
158
+ def to_s
159
+ to_hash.to_s
160
+ end
161
+
162
+ # to_body is an alias to to_hash (backward compatibility)
163
+ # @return [Hash] Returns the object in the form of hash
164
+ def to_body
165
+ to_hash
166
+ end
167
+
168
+ # Returns the object in the form of hash
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_hash
171
+ hash = {}
172
+ self.class.attribute_map.each_pair do |attr, param|
173
+ value = self.send(attr)
174
+ next if value.nil?
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ # Outputs non-array value in the form of hash
181
+ # For object, use to_hash. Otherwise, just return the value
182
+ # @param [Object] value Any valid value
183
+ # @return [Hash] Returns the value in the form of hash
184
+ def _to_hash(value)
185
+ if value.is_a?(Array)
186
+ value.compact.map{ |v| _to_hash(v) }
187
+ elsif value.is_a?(Hash)
188
+ {}.tap do |hash|
189
+ value.each { |k, v| hash[k] = _to_hash(v) }
190
+ end
191
+ elsif value.respond_to? :to_hash
192
+ value.to_hash
193
+ else
194
+ value
195
+ end
196
+ end
197
+
198
+ end
199
+
200
+ end
@@ -0,0 +1,221 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+
27
+ class SparklineGroupsResponse
28
+ attr_accessor :status
29
+
30
+ attr_accessor :code
31
+
32
+ attr_accessor :sparkline_groups
33
+
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'status' => :'Status',
39
+ :'code' => :'Code',
40
+ :'sparkline_groups' => :'SparklineGroups'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'status' => :'String',
48
+ :'code' => :'Integer',
49
+ :'sparkline_groups' => :'SparklineGroups'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+
61
+ if attributes.has_key?(:'Status')
62
+ self.status = attributes[:'Status']
63
+ end
64
+
65
+ if attributes.has_key?(:'Code')
66
+ self.code = attributes[:'Code']
67
+ end
68
+
69
+ if attributes.has_key?(:'SparklineGroups')
70
+ self.sparkline_groups = attributes[:'SparklineGroups']
71
+ end
72
+
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properies with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ if @code.nil?
80
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
81
+ end
82
+
83
+ return invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if @code.nil?
90
+ return true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ status == o.status &&
99
+ code == o.code &&
100
+ sparkline_groups == o.sparkline_groups
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [status, code, sparkline_groups].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ DateTime.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ temp_model = AsposeCellsCloud.const_get(type).new
173
+ temp_model.build_from_hash(value)
174
+ end
175
+ end
176
+
177
+ # Returns the string representation of the object
178
+ # @return [String] String presentation of the object
179
+ def to_s
180
+ to_hash.to_s
181
+ end
182
+
183
+ # to_body is an alias to to_hash (backward compatibility)
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_body
186
+ to_hash
187
+ end
188
+
189
+ # Returns the object in the form of hash
190
+ # @return [Hash] Returns the object in the form of hash
191
+ def to_hash
192
+ hash = {}
193
+ self.class.attribute_map.each_pair do |attr, param|
194
+ value = self.send(attr)
195
+ next if value.nil?
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map{ |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -38,7 +38,7 @@ module AsposeCellsCloud
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'documents' => :'Array<SplitResultDocument>'
41
+ :'documents' => :'Array<CellsCloudFileInfo>'
42
42
  }
43
43
  end
44
44
 
@@ -0,0 +1,239 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeCellsCloud
26
+ # Used by text water marker requests.
27
+ class TextWaterMarkerRequest
28
+ # water marker.
29
+ attr_accessor :text
30
+
31
+ # font name.
32
+ attr_accessor :font_name
33
+
34
+ # font size.
35
+ attr_accessor :font_size
36
+
37
+ # height.
38
+ attr_accessor :height
39
+
40
+ # width.
41
+ attr_accessor :width
42
+
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'text' => :'Text',
48
+ :'font_name' => :'FontName',
49
+ :'font_size' => :'FontSize',
50
+ :'height' => :'Height',
51
+ :'width' => :'Width'
52
+ }
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.swagger_types
57
+ {
58
+ :'text' => :'String',
59
+ :'font_name' => :'String',
60
+ :'font_size' => :'Integer',
61
+ :'height' => :'Integer',
62
+ :'width' => :'Integer'
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.has_key?(:'Text')
75
+ self.text = attributes[:'Text']
76
+ end
77
+
78
+ if attributes.has_key?(:'FontName')
79
+ self.font_name = attributes[:'FontName']
80
+ end
81
+
82
+ if attributes.has_key?(:'FontSize')
83
+ self.font_size = attributes[:'FontSize']
84
+ end
85
+
86
+ if attributes.has_key?(:'Height')
87
+ self.height = attributes[:'Height']
88
+ end
89
+
90
+ if attributes.has_key?(:'Width')
91
+ self.width = attributes[:'Width']
92
+ end
93
+
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properies with the reasons
98
+ def list_invalid_properties
99
+ invalid_properties = Array.new
100
+ return invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ return true
107
+ end
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ text == o.text &&
115
+ font_name == o.font_name &&
116
+ font_size == o.font_size &&
117
+ height == o.height &&
118
+ width == o.width
119
+ end
120
+
121
+ # @see the `==` method
122
+ # @param [Object] Object to be compared
123
+ def eql?(o)
124
+ self == o
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Fixnum] Hash code
129
+ def hash
130
+ [text, font_name, font_size, height, width].hash
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ self.class.swagger_types.each_pair do |key, type|
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :DateTime
160
+ DateTime.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :BOOLEAN
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ temp_model = AsposeCellsCloud.const_get(type).new
191
+ temp_model.build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ next if value.nil?
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map{ |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end