Skip to content

Commit 9279edd

Browse files
committed
20211226 update : add new apis and test case.
1 parent 04a68ca commit 9279edd

13 files changed

+793
-22
lines changed

lib/aspose_cells_cloud.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
require 'aspose_cells_cloud/models/split_result'
114114
require 'aspose_cells_cloud/models/storage_exist'
115115
require 'aspose_cells_cloud/models/storage_file'
116+
require 'aspose_cells_cloud/models/table_total_request'
116117
require 'aspose_cells_cloud/models/task_data'
117118
require 'aspose_cells_cloud/models/task_description'
118119
require 'aspose_cells_cloud/models/task_parameter'

lib/aspose_cells_cloud/api/cells_api.rb

Lines changed: 332 additions & 3 deletions
Large diffs are not rendered by default.

lib/aspose_cells_cloud/api/lite_cells_api.rb

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,81 @@ def post_replace_with_http_info(file, text, newtext, opts = {})
10981098
:auth_names => auth_names,
10991099
:return_type => 'FilesResult')
11001100
if @api_client.config.debugging
1101-
@api_client.config.logger.debug "API called: LiteCellsApi#post_watermark\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1101+
@api_client.config.logger.debug "API called: LiteCellsApi#post_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11021102
end
11031103
return data, status_code, headers
11041104
end
1105+
#
1106+
#
1107+
# @param file File to upload
1108+
# @param rotate_type
1109+
# @param format
1110+
# @return [FilesResult]
1111+
def post_reverse(file, rotate_type, format, opts = {})
1112+
data, _status_code, _headers = post_reverse_with_http_info(file, rotate_type, format, opts)
1113+
return data
1114+
end
1115+
1116+
#
1117+
#
1118+
# @param file File to upload
1119+
# @param rotate_type
1120+
# @param format
1121+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
1122+
def post_reverse_with_http_info(file, rotate_type, format, opts = {})
1123+
if @api_client.config.debugging
1124+
@api_client.config.logger.debug "Calling API: LiteCellsApi.post_reverse ..."
1125+
end
1126+
@api_client.request_token_if_needed
1127+
# verify the required parameter 'file' is set
1128+
if @api_client.config.client_side_validation && file.nil?
1129+
fail ArgumentError, "Missing the required parameter 'file' when calling LiteCellsApi.post_reverse"
1130+
end
1131+
# verify the required parameter 'rotate_type' is set
1132+
if @api_client.config.client_side_validation && rotate_type.nil?
1133+
fail ArgumentError, "Missing the required parameter 'rotate_type' when calling LiteCellsApi.post_reverse"
1134+
end
1135+
# verify the required parameter 'color' is set
1136+
if @api_client.config.client_side_validation && format.nil?
1137+
fail ArgumentError, "Missing the required parameter 'format' when calling LiteCellsApi.post_reverse"
1138+
end
1139+
# resource path
1140+
local_var_path = "/cells/reverse"
1141+
1142+
# query parameters
1143+
query_params = {}
1144+
query_params[:'rotateType'] = rotate_type
1145+
query_params[:'format'] = format
1146+
# header parameters
1147+
header_params = {}
1148+
# HTTP header 'Accept' (if needed)
1149+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1150+
# HTTP header 'Content-Type'
1151+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1152+
1153+
# form parameters
1154+
form_params = {}
1155+
file.each do |filename , context|
1156+
form_params[filename] = context
1157+
end
1158+
1159+
# http body (model)
1160+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
1161+
post_body = ""
1162+
#auth_names = []
1163+
auth_names = ['JWT']
1164+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1165+
:header_params => header_params,
1166+
:query_params => query_params,
1167+
:form_params => form_params,
1168+
:body => post_body,
1169+
:auth_names => auth_names,
1170+
:return_type => 'FilesResult')
1171+
if @api_client.config.debugging
1172+
@api_client.config.logger.debug "API called: LiteCellsApi#post_reverse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1173+
end
1174+
return data, status_code, headers
1175+
end
1176+
11051177
end
11061178
end

lib/aspose_cells_cloud/models/cell_value.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class CellValue
3535

3636
attr_accessor :value
3737

38+
attr_accessor :formula
39+
3840

3941
# Attribute mapping from ruby-style variable name to JSON key.
4042
def self.attribute_map
@@ -43,7 +45,8 @@ def self.attribute_map
4345
:'column_index' => :'columnIndex',
4446
:'style' => :'style',
4547
:'type' => :'type',
46-
:'value' => :'value'
48+
:'value' => :'value',
49+
:'formula' => :'formula'
4750
}
4851
end
4952

@@ -54,7 +57,8 @@ def self.swagger_types
5457
:'column_index' => :'Integer',
5558
:'style' => :'Style',
5659
:'type' => :'String',
57-
:'value' => :'String'
60+
:'value' => :'String',
61+
:'formula' => :'String'
5862
}
5963
end
6064

@@ -86,6 +90,10 @@ def initialize(attributes = {})
8690
self.value = attributes[:'value']
8791
end
8892

93+
if attributes.has_key?(:'formula')
94+
self.formula = attributes[:'formula']
95+
end
96+
8997
end
9098

9199
# Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +118,8 @@ def ==(o)
110118
column_index == o.column_index &&
111119
style == o.style &&
112120
type == o.type &&
113-
value == o.value
121+
value == o.value &&
122+
formula == o.formula
114123
end
115124

116125
# @see the `==` method
@@ -122,7 +131,7 @@ def eql?(o)
122131
# Calculates hash code according to all attributes.
123132
# @return [Fixnum] Hash code
124133
def hash
125-
[row_index, column_index, style, type, value].hash
134+
[row_index, column_index, style, type, value, formula].hash
126135
end
127136

128137
# Builds the object from hash

lib/aspose_cells_cloud/models/list_column.rb

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,30 @@ class ListColumn
3131
# Gets and sets the name of the column.
3232
attr_accessor :name
3333

34+
# Gets and sets the formula of the list column.
35+
attr_accessor :formula
36+
37+
# Gets and sets the formula of the list column.
38+
attr_accessor :range
39+
3440

3541
# Attribute mapping from ruby-style variable name to JSON key.
3642
def self.attribute_map
3743
{
3844
:'totals_calculation' => :'TotalsCalculation',
39-
:'name' => :'Name'
45+
:'name' => :'Name',
46+
:'formula' => :'Formula',
47+
:'range' => :'Range'
4048
}
4149
end
4250

4351
# Attribute type mapping.
4452
def self.swagger_types
4553
{
4654
:'totals_calculation' => :'String',
47-
:'name' => :'String'
55+
:'name' => :'String',
56+
:'formula' => :'String',
57+
:'range' => :'Range'
4858
}
4959
end
5060

@@ -64,6 +74,14 @@ def initialize(attributes = {})
6474
self.name = attributes[:'Name']
6575
end
6676

77+
if attributes.has_key?(:'Formula')
78+
self.formula = attributes[:'Formula']
79+
end
80+
81+
if attributes.has_key?(:'Range')
82+
self.range = attributes[:'Range']
83+
end
84+
6785
end
6886

6987
# Show invalid properties with the reasons. Usually used together with valid?
@@ -85,7 +103,9 @@ def ==(o)
85103
return true if self.equal?(o)
86104
self.class == o.class &&
87105
totals_calculation == o.totals_calculation &&
88-
name == o.name
106+
name == o.name &&
107+
formula == o.formula &&
108+
range == o.range
89109
end
90110

91111
# @see the `==` method
@@ -97,7 +117,7 @@ def eql?(o)
97117
# Calculates hash code according to all attributes.
98118
# @return [Fixnum] Hash code
99119
def hash
100-
[totals_calculation, name].hash
120+
[totals_calculation, name, formula, range].hash
101121
end
102122

103123
# Builds the object from hash

lib/aspose_cells_cloud/models/sort_key.rb

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,34 @@ class SortKey
3131

3232
attr_accessor :key
3333

34+
attr_accessor :order
35+
36+
attr_accessor :type
37+
38+
attr_accessor :index
39+
3440

3541
# Attribute mapping from ruby-style variable name to JSON key.
3642
def self.attribute_map
3743
{
3844
:'custom_list' => :'CustomList',
3945
:'sort_order' => :'SortOrder',
40-
:'key' => :'Key'
46+
:'key' => :'Key',
47+
:'order' => :'Order',
48+
:'type' => :'Type',
49+
:'index' => :'Index'
4150
}
4251
end
4352

4453
# Attribute type mapping.
4554
def self.swagger_types
4655
{
47-
:'custom_list' => :'String',
56+
:'custom_list' => :'Array<String>',
4857
:'sort_order' => :'String',
49-
:'key' => :'Integer'
58+
:'key' => :'Integer',
59+
:'order' => :'String',
60+
:'type' => :'String',
61+
:'index' => :'Integer'
5062
}
5163
end
5264

@@ -59,7 +71,9 @@ def initialize(attributes = {})
5971
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
6072

6173
if attributes.has_key?(:'CustomList')
62-
self.custom_list = attributes[:'CustomList']
74+
if (value = attributes[:'CustomList']).is_a?(Array)
75+
self.custom_list = value
76+
end
6377
end
6478

6579
if attributes.has_key?(:'SortOrder')
@@ -70,6 +84,18 @@ def initialize(attributes = {})
7084
self.key = attributes[:'Key']
7185
end
7286

87+
if attributes.has_key?(:'Order')
88+
self.order = attributes[:'Order']
89+
end
90+
91+
if attributes.has_key?(:'Type')
92+
self.type = attributes[:'Type']
93+
end
94+
95+
if attributes.has_key?(:'Index')
96+
self.index = attributes[:'Index']
97+
end
98+
7399
end
74100

75101
# Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +123,10 @@ def ==(o)
97123
self.class == o.class &&
98124
custom_list == o.custom_list &&
99125
sort_order == o.sort_order &&
100-
key == o.key
126+
key == o.key &&
127+
order == o.order &&
128+
type == o.type &&
129+
index == o.index
101130
end
102131

103132
# @see the `==` method
@@ -109,7 +138,7 @@ def eql?(o)
109138
# Calculates hash code according to all attributes.
110139
# @return [Fixnum] Hash code
111140
def hash
112-
[custom_list, sort_order, key].hash
141+
[custom_list, sort_order, key, order, type, index].hash
113142
end
114143

115144
# Builds the object from hash

0 commit comments

Comments
 (0)