aspose_cells_cloud 20.7 → 20.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (311) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +46 -52
  4. data/lib/aspose_cells_cloud.rb +7 -1
  5. data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -19233
  6. data/lib/aspose_cells_cloud/api_client.rb +493 -489
  7. data/lib/aspose_cells_cloud/api_error.rb +18 -8
  8. data/lib/aspose_cells_cloud/configuration.rb +4 -4
  9. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  10. data/lib/aspose_cells_cloud/models/{error.rb → cells_error.rb} +1 -1
  11. data/lib/aspose_cells_cloud/models/files_upload_result.rb +1 -1
  12. data/lib/aspose_cells_cloud/models/save_result.rb +8 -26
  13. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  14. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  15. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  16. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  17. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  18. data/lib/aspose_cells_cloud/models/split_result.rb +1 -1
  19. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -239
  20. data/lib/aspose_cells_cloud/version.rb +25 -25
  21. data/spec/api/cells_api_spec.rb +2 -1
  22. data/spec/api/cells_auto_filter_api_spec.rb +2 -1
  23. data/spec/api/cells_chart_area_api_spec.rb +2 -1
  24. data/spec/api/cells_charts_api_spec.rb +2 -1
  25. data/spec/api/cells_conditional_formattings_api_spec.rb +2 -1
  26. data/spec/api/cells_hypelinks_api_spec.rb +2 -1
  27. data/spec/api/cells_list_objects_api_spec.rb +2 -1
  28. data/spec/api/cells_ole_objects_api_spec.rb +2 -1
  29. data/spec/api/cells_page_breaks_api_spec.rb +2 -1
  30. data/spec/api/cells_page_setup_api_spec.rb +2 -1
  31. data/spec/api/cells_pictures_api_spec.rb +2 -1
  32. data/spec/api/cells_pivot_tables_api_spec.rb +33 -1
  33. data/spec/api/cells_properties_api_spec.rb +2 -1
  34. data/spec/api/cells_ranges_api_spec.rb +2 -1
  35. data/spec/api/cells_save_as_api_spec.rb +2 -1
  36. data/spec/api/cells_shapes_api_spec.rb +3 -2
  37. data/spec/api/cells_simple_spec.rb +2 -1
  38. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  39. data/spec/api/cells_storage_api_spec.rb +69 -68
  40. data/spec/api/cells_storage_spec.rb +3 -2
  41. data/spec/api/cells_task_api_spec.rb +2 -1
  42. data/spec/api/cells_workbook_api_spec.rb +3 -2
  43. data/spec/api/cells_worksheet_validations_api_spec.rb +2 -1
  44. data/spec/api/cells_worksheets_api_spec.rb +60 -58
  45. data/spec/spec_helper.rb +6 -3
  46. metadata +12 -297
  47. data/Gemfile +0 -7
  48. data/Rakefile +0 -8
  49. data/aspose_cells_cloud-20.2.gem +0 -0
  50. data/aspose_cells_cloud-20.4.gem +0 -0
  51. data/aspose_cells_cloud-20.6.gem +0 -0
  52. data/aspose_cells_cloud.gemspec +0 -48
  53. data/data/Book1.xlsx +0 -0
  54. data/data/ImportData.xlsx +0 -0
  55. data/data/NewCopy.xlsx +0 -0
  56. data/data/OLEDoc.docx +0 -0
  57. data/data/PivTestFile2.xlsx +0 -0
  58. data/data/ReportData.xml +0 -1
  59. data/data/TestCase.xlsx +0 -0
  60. data/data/TestImportData.xlsx +0 -0
  61. data/data/TestImportDataCSV.csv +0 -3
  62. data/data/WaterMark.png +0 -0
  63. data/data/markdowntest.md +0 -41
  64. data/data/myDocument.xlsx +0 -0
  65. data/data/word.jpg +0 -0
  66. data/docs/AboveAverage.md +0 -10
  67. data/docs/AccessTokenResponse.md +0 -15
  68. data/docs/Area.md +0 -13
  69. data/docs/AutoFilter.md +0 -11
  70. data/docs/AutoFilterResponse.md +0 -10
  71. data/docs/AutoFitterOptions.md +0 -10
  72. data/docs/AutoShape.md +0 -42
  73. data/docs/AutoShapeResponse.md +0 -10
  74. data/docs/AutoShapes.md +0 -9
  75. data/docs/AutoShapesResponse.md +0 -10
  76. data/docs/Border.md +0 -10
  77. data/docs/CalculationOptions.md +0 -11
  78. data/docs/Cell.md +0 -24
  79. data/docs/CellArea.md +0 -11
  80. data/docs/CellResponse.md +0 -10
  81. data/docs/CellValue.md +0 -12
  82. data/docs/Cells.md +0 -14
  83. data/docs/CellsApi.md +0 -14581
  84. data/docs/CellsCloudResponse.md +0 -9
  85. data/docs/CellsColor.md +0 -12
  86. data/docs/CellsDocumentProperties.md +0 -9
  87. data/docs/CellsDocumentPropertiesResponse.md +0 -10
  88. data/docs/CellsDocumentProperty.md +0 -11
  89. data/docs/CellsDocumentPropertyResponse.md +0 -10
  90. data/docs/CellsObjectOperateTaskParameter.md +0 -10
  91. data/docs/CellsResponse.md +0 -10
  92. data/docs/Chart.md +0 -51
  93. data/docs/ChartArea.md +0 -21
  94. data/docs/ChartAreaResponse.md +0 -10
  95. data/docs/ChartFrame.md +0 -21
  96. data/docs/ChartOperateParameter.md +0 -17
  97. data/docs/Charts.md +0 -9
  98. data/docs/ChartsResponse.md +0 -10
  99. data/docs/Color.md +0 -11
  100. data/docs/ColorFilter.md +0 -12
  101. data/docs/ColorFilterRequest.md +0 -10
  102. data/docs/ColorScale.md +0 -13
  103. data/docs/Column.md +0 -13
  104. data/docs/ColumnResponse.md +0 -10
  105. data/docs/Columns.md +0 -11
  106. data/docs/ColumnsResponse.md +0 -10
  107. data/docs/Comment.md +0 -19
  108. data/docs/CommentResponse.md +0 -10
  109. data/docs/Comments.md +0 -9
  110. data/docs/CommentsResponse.md +0 -10
  111. data/docs/ConditionalFormatting.md +0 -10
  112. data/docs/ConditionalFormattingIcon.md +0 -10
  113. data/docs/ConditionalFormattingResponse.md +0 -10
  114. data/docs/ConditionalFormattingValue.md +0 -10
  115. data/docs/ConditionalFormattings.md +0 -10
  116. data/docs/ConditionalFormattingsResponse.md +0 -10
  117. data/docs/ConvertTaskParameter.md +0 -10
  118. data/docs/CopyOptions.md +0 -13
  119. data/docs/CreatePivotTableRequest.md +0 -14
  120. data/docs/CustomFilter.md +0 -9
  121. data/docs/CustomParserConfig.md +0 -10
  122. data/docs/DataBar.md +0 -19
  123. data/docs/DataBarBorder.md +0 -9
  124. data/docs/DataSorter.md +0 -11
  125. data/docs/DifSaveOptions.md +0 -15
  126. data/docs/DiscUsage.md +0 -9
  127. data/docs/DynamicFilter.md +0 -10
  128. data/docs/Error.md +0 -11
  129. data/docs/ErrorDetails.md +0 -9
  130. data/docs/FileSource.md +0 -9
  131. data/docs/FileVersion.md +0 -14
  132. data/docs/FileVersions.md +0 -8
  133. data/docs/FilesList.md +0 -8
  134. data/docs/FilesUploadResult.md +0 -9
  135. data/docs/FillFormat.md +0 -13
  136. data/docs/FillFormatResponse.md +0 -10
  137. data/docs/FilterColumn.md +0 -16
  138. data/docs/Font.md +0 -17
  139. data/docs/FontSetting.md +0 -12
  140. data/docs/FormatCondition.md +0 -22
  141. data/docs/GradientFill.md +0 -11
  142. data/docs/GradientFillStop.md +0 -10
  143. data/docs/HorizontalPageBreak.md +0 -10
  144. data/docs/HorizontalPageBreakResponse.md +0 -10
  145. data/docs/HorizontalPageBreaks.md +0 -9
  146. data/docs/HorizontalPageBreaksResponse.md +0 -10
  147. data/docs/HtmlSaveOptions.md +0 -27
  148. data/docs/Hyperlink.md +0 -12
  149. data/docs/HyperlinkResponse.md +0 -10
  150. data/docs/Hyperlinks.md +0 -10
  151. data/docs/HyperlinksResponse.md +0 -10
  152. data/docs/IconFilter.md +0 -9
  153. data/docs/IconSet.md +0 -13
  154. data/docs/ImageSaveOptions.md +0 -27
  155. data/docs/ImportBatchDataOption.md +0 -12
  156. data/docs/ImportCSVDataOption.md +0 -17
  157. data/docs/ImportDataTaskParameter.md +0 -10
  158. data/docs/ImportDoubleArrayOption.md +0 -15
  159. data/docs/ImportIntArrayOption.md +0 -15
  160. data/docs/ImportOption.md +0 -11
  161. data/docs/ImportStringArrayOption.md +0 -15
  162. data/docs/Legend.md +0 -23
  163. data/docs/LegendResponse.md +0 -10
  164. data/docs/Line.md +0 -26
  165. data/docs/LineFormat.md +0 -24
  166. data/docs/LineResponse.md +0 -10
  167. data/docs/Link.md +0 -11
  168. data/docs/LinkElement.md +0 -8
  169. data/docs/ListColumn.md +0 -9
  170. data/docs/ListObject.md +0 -23
  171. data/docs/ListObjectOperateParameter.md +0 -9
  172. data/docs/ListObjectResponse.md +0 -10
  173. data/docs/ListObjects.md +0 -9
  174. data/docs/ListObjectsResponse.md +0 -10
  175. data/docs/MHtmlSaveOptions.md +0 -27
  176. data/docs/MarkdownSaveOptions.md +0 -18
  177. data/docs/MergedCell.md +0 -12
  178. data/docs/MergedCellResponse.md +0 -10
  179. data/docs/MergedCells.md +0 -10
  180. data/docs/MergedCellsResponse.md +0 -10
  181. data/docs/MultipleFilter.md +0 -7
  182. data/docs/MultipleFilters.md +0 -9
  183. data/docs/Name.md +0 -15
  184. data/docs/NameResponse.md +0 -10
  185. data/docs/Names.md +0 -10
  186. data/docs/NamesResponse.md +0 -10
  187. data/docs/NegativeBarFormat.md +0 -11
  188. data/docs/ObjectExist.md +0 -9
  189. data/docs/OdsSaveOptions.md +0 -15
  190. data/docs/OleObject.md +0 -49
  191. data/docs/OleObjectResponse.md +0 -10
  192. data/docs/OleObjects.md +0 -9
  193. data/docs/OleObjectsResponse.md +0 -10
  194. data/docs/OoxmlSaveOptions.md +0 -16
  195. data/docs/OperateObject.md +0 -9
  196. data/docs/OperateObjectPosition.md +0 -13
  197. data/docs/OperateParameter.md +0 -8
  198. data/docs/PageBreakOperateParameter.md +0 -14
  199. data/docs/PageSection.md +0 -12
  200. data/docs/PageSectionsResponse.md +0 -10
  201. data/docs/PageSetup.md +0 -42
  202. data/docs/PageSetupOperateParameter.md +0 -9
  203. data/docs/PageSetupResponse.md +0 -10
  204. data/docs/PasswordRequest.md +0 -8
  205. data/docs/PasteOptions.md +0 -11
  206. data/docs/PatternFill.md +0 -14
  207. data/docs/PdfSaveOptions.md +0 -25
  208. data/docs/PdfSecurityOptions.md +0 -17
  209. data/docs/PicFormatOption.md +0 -13
  210. data/docs/Picture.md +0 -48
  211. data/docs/PictureResponse.md +0 -10
  212. data/docs/Pictures.md +0 -9
  213. data/docs/PicturesResponse.md +0 -10
  214. data/docs/PivotField.md +0 -46
  215. data/docs/PivotFieldResponse.md +0 -10
  216. data/docs/PivotFilter.md +0 -16
  217. data/docs/PivotFilterResponse.md +0 -10
  218. data/docs/PivotFiltersResponse.md +0 -10
  219. data/docs/PivotItem.md +0 -11
  220. data/docs/PivotTable.md +0 -76
  221. data/docs/PivotTableFieldRequest.md +0 -8
  222. data/docs/PivotTableOperateParameter.md +0 -16
  223. data/docs/PivotTableResponse.md +0 -10
  224. data/docs/PivotTables.md +0 -9
  225. data/docs/PivotTablesResponse.md +0 -10
  226. data/docs/ProtectSheetParameter.md +0 -23
  227. data/docs/Range.md +0 -16
  228. data/docs/RangeCopyRequest.md +0 -11
  229. data/docs/RangeSetOutlineBorderRequest.md +0 -11
  230. data/docs/RangeSetStyleRequest.md +0 -9
  231. data/docs/RangeValueResponse.md +0 -10
  232. data/docs/Ranges.md +0 -8
  233. data/docs/RangesResponse.md +0 -10
  234. data/docs/ResultDestination.md +0 -10
  235. data/docs/Row.md +0 -15
  236. data/docs/RowResponse.md +0 -10
  237. data/docs/Rows.md +0 -11
  238. data/docs/RowsResponse.md +0 -10
  239. data/docs/SaveOptions.md +0 -15
  240. data/docs/SaveResponse.md +0 -10
  241. data/docs/SaveResult.md +0 -10
  242. data/docs/SaveResultTaskParameter.md +0 -9
  243. data/docs/ShadowEffect.md +0 -14
  244. data/docs/Shape.md +0 -42
  245. data/docs/ShapeOperateParameter.md +0 -9
  246. data/docs/ShapeResponse.md +0 -10
  247. data/docs/Shapes.md +0 -9
  248. data/docs/ShapesResponse.md +0 -10
  249. data/docs/SingleValue.md +0 -9
  250. data/docs/SingleValueResponse.md +0 -10
  251. data/docs/SmartMarkerTaskParameter.md +0 -10
  252. data/docs/SolidFill.md +0 -10
  253. data/docs/SortKey.md +0 -10
  254. data/docs/SplitResult.md +0 -8
  255. data/docs/SplitResultDocument.md +0 -9
  256. data/docs/SplitResultResponse.md +0 -10
  257. data/docs/SplitWorkbookTaskParameter.md +0 -13
  258. data/docs/SpreadsheetML2003SaveOptions.md +0 -18
  259. data/docs/StorageExist.md +0 -8
  260. data/docs/StorageFile.md +0 -12
  261. data/docs/Style.md +0 -31
  262. data/docs/StyleResponse.md +0 -10
  263. data/docs/SvgSaveOptions.md +0 -16
  264. data/docs/TaskData.md +0 -8
  265. data/docs/TaskDescription.md +0 -9
  266. data/docs/TaskParameter.md +0 -7
  267. data/docs/TextItem.md +0 -9
  268. data/docs/TextItems.md +0 -9
  269. data/docs/TextItemsResponse.md +0 -10
  270. data/docs/TextOptions.md +0 -23
  271. data/docs/TextureFill.md +0 -13
  272. data/docs/ThemeColor.md +0 -9
  273. data/docs/TilePicOption.md +0 -13
  274. data/docs/Title.md +0 -28
  275. data/docs/TitleResponse.md +0 -10
  276. data/docs/Top10.md +0 -10
  277. data/docs/Top10Filter.md +0 -11
  278. data/docs/TxtSaveOptions.md +0 -19
  279. data/docs/Validation.md +0 -24
  280. data/docs/ValidationResponse.md +0 -10
  281. data/docs/Validations.md +0 -10
  282. data/docs/ValidationsResponse.md +0 -10
  283. data/docs/ValueType.md +0 -7
  284. data/docs/VerticalPageBreak.md +0 -10
  285. data/docs/VerticalPageBreakResponse.md +0 -10
  286. data/docs/VerticalPageBreaks.md +0 -9
  287. data/docs/VerticalPageBreaksResponse.md +0 -10
  288. data/docs/Workbook.md +0 -18
  289. data/docs/WorkbookEncryptionRequest.md +0 -10
  290. data/docs/WorkbookOperateParameter.md +0 -8
  291. data/docs/WorkbookProtectionRequest.md +0 -9
  292. data/docs/WorkbookReplaceResponse.md +0 -11
  293. data/docs/WorkbookResponse.md +0 -10
  294. data/docs/WorkbookSettings.md +0 -52
  295. data/docs/WorkbookSettingsOperateParameter.md +0 -9
  296. data/docs/WorkbookSettingsResponse.md +0 -10
  297. data/docs/Worksheet.md +0 -39
  298. data/docs/WorksheetMovingRequest.md +0 -9
  299. data/docs/WorksheetReplaceResponse.md +0 -11
  300. data/docs/WorksheetResponse.md +0 -10
  301. data/docs/Worksheets.md +0 -9
  302. data/docs/WorksheetsResponse.md +0 -10
  303. data/docs/XlsSaveOptions.md +0 -15
  304. data/docs/XlsbSaveOptions.md +0 -15
  305. data/docs/XpsSaveOptions.md +0 -15
  306. data/git_push.sh +0 -55
  307. data/runTest.sh +0 -4
  308. data/spec/api/cells_autoshapes_api_spec.rb +0 -66
  309. data/spec/api/cells_one_spec.rb +0 -37
  310. data/test.pdf +0 -0
  311. data/testResult.txt +0 -15
@@ -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
 
@@ -25,11 +25,11 @@ require 'uri'
25
25
  module AsposeCellsCloud
26
26
  class Configuration
27
27
 
28
- # App Key
29
- attr_accessor :app_key
28
+ # Client Secret
29
+ attr_accessor :client_secret
30
30
 
31
- # App SID
32
- attr_accessor :app_sid
31
+ # Client ID
32
+ attr_accessor :client_id
33
33
 
34
34
  # Defines url scheme
35
35
  attr_accessor :scheme
@@ -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