aspose_cells_cloud 20.4 → 20.10

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.
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
@@ -1,12 +1,22 @@
1
1
  =begin
2
- #Web API Swagger specification
3
-
4
- #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.0-SNAPSHOT
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
+ --------------------------------------------------------------------------------------------------------------------
10
20
 
11
21
  =end
12
22
 
@@ -0,0 +1,230 @@
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 CellsCloudFileInfo
28
+ attr_accessor :name
29
+
30
+ attr_accessor :size
31
+
32
+ attr_accessor :folder
33
+
34
+ attr_accessor :storage
35
+
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'name' => :'Name',
41
+ :'size' => :'Size',
42
+ :'folder' => :'Folder',
43
+ :'storage' => :'Storage'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'name' => :'String',
51
+ :'size' => :'Integer',
52
+ :'folder' => :'String',
53
+ :'storage' => :'String'
54
+ }
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ return unless attributes.is_a?(Hash)
61
+
62
+ # convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
64
+
65
+ if attributes.has_key?(:'Name')
66
+ self.name = attributes[:'Name']
67
+ end
68
+
69
+ if attributes.has_key?(:'Size')
70
+ self.size = attributes[:'Size']
71
+ end
72
+
73
+ if attributes.has_key?(:'Folder')
74
+ self.folder = attributes[:'Folder']
75
+ end
76
+
77
+ if attributes.has_key?(:'Storage')
78
+ self.storage = attributes[:'Storage']
79
+ end
80
+
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properies with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = Array.new
87
+ if @size.nil?
88
+ invalid_properties.push("invalid value for 'size', size cannot be nil.")
89
+ end
90
+
91
+ return invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ return false if @size.nil?
98
+ return true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ name == o.name &&
107
+ size == o.size &&
108
+ folder == o.folder &&
109
+ storage == o.storage
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [name, size, folder, storage].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :DateTime
151
+ DateTime.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :BOOLEAN
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ temp_model = AsposeCellsCloud.const_get(type).new
182
+ temp_model.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ next if value.nil?
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map{ |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeCellsCloud
26
26
  # Error
27
- class Error
27
+ class CellsError
28
28
  # Code
29
29
  attr_accessor :code
30
30
 
@@ -44,7 +44,7 @@ module AsposeCellsCloud
44
44
  def self.swagger_types
45
45
  {
46
46
  :'uploaded' => :'Array<String>',
47
- :'errors' => :'Array<Error>'
47
+ :'errors' => :'Array<CellsError>'
48
48
  }
49
49
  end
50
50
 
@@ -25,28 +25,20 @@ require 'date'
25
25
  module AsposeCellsCloud
26
26
 
27
27
  class SaveResult
28
- attr_accessor :source_document
29
-
30
- attr_accessor :dest_document
31
-
32
- attr_accessor :additional_items
28
+ attr_accessor :documents
33
29
 
34
30
 
35
31
  # Attribute mapping from ruby-style variable name to JSON key.
36
32
  def self.attribute_map
37
33
  {
38
- :'source_document' => :'SourceDocument',
39
- :'dest_document' => :'DestDocument',
40
- :'additional_items' => :'AdditionalItems'
34
+ :'documents' => :'Documents'
41
35
  }
42
36
  end
43
37
 
44
38
  # Attribute type mapping.
45
39
  def self.swagger_types
46
40
  {
47
- :'source_document' => :'Link',
48
- :'dest_document' => :'Link',
49
- :'additional_items' => :'Array<Link>'
41
+ :'documents' => :'Array<CellsCloudFileInfo>'
50
42
  }
51
43
  end
52
44
 
@@ -58,17 +50,9 @@ module AsposeCellsCloud
58
50
  # convert string to symbol for hash key
59
51
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
52
 
61
- if attributes.has_key?(:'SourceDocument')
62
- self.source_document = attributes[:'SourceDocument']
63
- end
64
-
65
- if attributes.has_key?(:'DestDocument')
66
- self.dest_document = attributes[:'DestDocument']
67
- end
68
-
69
- if attributes.has_key?(:'AdditionalItems')
70
- if (value = attributes[:'AdditionalItems']).is_a?(Array)
71
- self.additional_items = value
53
+ if attributes.has_key?(:'Documents')
54
+ if (value = attributes[:'Documents']).is_a?(Array)
55
+ self.documents = value
72
56
  end
73
57
  end
74
58
 
@@ -92,9 +76,7 @@ module AsposeCellsCloud
92
76
  def ==(o)
93
77
  return true if self.equal?(o)
94
78
  self.class == o.class &&
95
- source_document == o.source_document &&
96
- dest_document == o.dest_document &&
97
- additional_items == o.additional_items
79
+ documents == o.documents
98
80
  end
99
81
 
100
82
  # @see the `==` method
@@ -106,7 +88,7 @@ module AsposeCellsCloud
106
88
  # Calculates hash code according to all attributes.
107
89
  # @return [Fixnum] Hash code
108
90
  def hash
109
- [source_document, dest_document, additional_items].hash
91
+ [documents].hash
110
92
  end
111
93
 
112
94
  # Builds the object from hash
@@ -0,0 +1,226 @@
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 Sparkline
28
+ attr_accessor :column
29
+
30
+ attr_accessor :data_range
31
+
32
+ attr_accessor :row
33
+
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'column' => :'Column',
39
+ :'data_range' => :'DataRange',
40
+ :'row' => :'Row'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'column' => :'Integer',
48
+ :'data_range' => :'String',
49
+ :'row' => :'Integer'
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?(:'Column')
62
+ self.column = attributes[:'Column']
63
+ end
64
+
65
+ if attributes.has_key?(:'DataRange')
66
+ self.data_range = attributes[:'DataRange']
67
+ end
68
+
69
+ if attributes.has_key?(:'Row')
70
+ self.row = attributes[:'Row']
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 @column.nil?
80
+ invalid_properties.push("invalid value for 'column', column cannot be nil.")
81
+ end
82
+
83
+ if @row.nil?
84
+ invalid_properties.push("invalid value for 'row', row cannot be nil.")
85
+ end
86
+
87
+ return invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ return false if @column.nil?
94
+ return false if @row.nil?
95
+ return true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ column == o.column &&
104
+ data_range == o.data_range &&
105
+ row == o.row
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Fixnum] Hash code
116
+ def hash
117
+ [column, data_range, row].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def build_from_hash(attributes)
124
+ return nil unless attributes.is_a?(Hash)
125
+ self.class.swagger_types.each_pair do |key, type|
126
+ if type =~ /\AArray<(.*)>/i
127
+ # check to ensure the input is an array given that the the attribute
128
+ # is documented as an array but the input is not
129
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
130
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
131
+ end
132
+ elsif !attributes[self.class.attribute_map[key]].nil?
133
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
135
+ end
136
+
137
+ self
138
+ end
139
+
140
+ # Deserializes the data based on type
141
+ # @param string type Data type
142
+ # @param string value Value to be deserialized
143
+ # @return [Object] Deserialized data
144
+ def _deserialize(type, value)
145
+ case type.to_sym
146
+ when :DateTime
147
+ DateTime.parse(value)
148
+ when :Date
149
+ Date.parse(value)
150
+ when :String
151
+ value.to_s
152
+ when :Integer
153
+ value.to_i
154
+ when :Float
155
+ value.to_f
156
+ when :BOOLEAN
157
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
158
+ true
159
+ else
160
+ false
161
+ end
162
+ when :Object
163
+ # generic object (usually a Hash), return directly
164
+ value
165
+ when /\AArray<(?<inner_type>.+)>\z/
166
+ inner_type = Regexp.last_match[:inner_type]
167
+ value.map { |v| _deserialize(inner_type, v) }
168
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
169
+ k_type = Regexp.last_match[:k_type]
170
+ v_type = Regexp.last_match[:v_type]
171
+ {}.tap do |hash|
172
+ value.each do |k, v|
173
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
174
+ end
175
+ end
176
+ else # model
177
+ temp_model = AsposeCellsCloud.const_get(type).new
178
+ temp_model.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ next if value.nil?
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map{ |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end