aspose_cells_cloud 22.10 → 22.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +1074 -101
- data/lib/aspose_cells_cloud/models/axis.rb +516 -0
- data/lib/aspose_cells_cloud/models/axis_response.rb +221 -0
- data/lib/aspose_cells_cloud/models/tick_labels.rb +298 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +3 -0
- data/spec/api/cells_chart_axis_api_spec.rb +248 -0
- data/spec/api/cells_convert_spec.rb +15 -1
- metadata +6 -2
@@ -1891,55 +1891,648 @@ module AsposeCellsCloud
|
|
1891
1891
|
end
|
1892
1892
|
return data, status_code, headers
|
1893
1893
|
end
|
1894
|
+
# Get chart Category Axis
|
1895
|
+
#
|
1896
|
+
# @param name
|
1897
|
+
# @param sheet_name
|
1898
|
+
# @param chart_index
|
1899
|
+
# @param [Hash] opts the optional parameters
|
1900
|
+
# @option opts [String] :folder
|
1901
|
+
# @option opts [String] :storage_name
|
1902
|
+
# @return [AxisResponse]
|
1903
|
+
def cells_charts_get_chart_category_axis(name, sheet_name, chart_index, opts = {})
|
1904
|
+
data, _status_code, _headers = cells_charts_get_chart_category_axis_with_http_info(name, sheet_name, chart_index, opts)
|
1905
|
+
return data
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
# Get chart Category Axis
|
1909
|
+
#
|
1910
|
+
# @param name
|
1911
|
+
# @param sheet_name
|
1912
|
+
# @param chart_index
|
1913
|
+
# @param [Hash] opts the optional parameters
|
1914
|
+
# @option opts [String] :folder
|
1915
|
+
# @option opts [String] :storage_name
|
1916
|
+
# @return [Array<(AxisResponse, Fixnum, Hash)>] AxisResponse data, response status code and response headers
|
1917
|
+
def cells_charts_get_chart_category_axis_with_http_info(name, sheet_name, chart_index, opts = {})
|
1918
|
+
if @api_client.config.debugging
|
1919
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_chart_category_axis ..."
|
1920
|
+
end
|
1921
|
+
@api_client.request_token_if_needed
|
1922
|
+
# verify the required parameter 'name' is set
|
1923
|
+
if @api_client.config.client_side_validation && name.nil?
|
1924
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_chart_category_axis"
|
1925
|
+
end
|
1926
|
+
# verify the required parameter 'sheet_name' is set
|
1927
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
1928
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_chart_category_axis"
|
1929
|
+
end
|
1930
|
+
# verify the required parameter 'chart_index' is set
|
1931
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
1932
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_chart_category_axis"
|
1933
|
+
end
|
1934
|
+
# resource path
|
1935
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/categoryaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
1936
|
+
|
1937
|
+
# query parameters
|
1938
|
+
query_params = {}
|
1939
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
1940
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
1941
|
+
|
1942
|
+
# header parameters
|
1943
|
+
header_params = {}
|
1944
|
+
# HTTP header 'Accept' (if needed)
|
1945
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1946
|
+
# HTTP header 'Content-Type'
|
1947
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1948
|
+
|
1949
|
+
# form parameters
|
1950
|
+
form_params = {}
|
1951
|
+
|
1952
|
+
# http body (model)
|
1953
|
+
post_body = nil
|
1954
|
+
#auth_names = []
|
1955
|
+
auth_names = ['JWT']
|
1956
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1957
|
+
:header_params => header_params,
|
1958
|
+
:query_params => query_params,
|
1959
|
+
:form_params => form_params,
|
1960
|
+
:body => post_body,
|
1961
|
+
:auth_names => auth_names,
|
1962
|
+
:return_type => 'AxisResponse')
|
1963
|
+
if @api_client.config.debugging
|
1964
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_chart_category_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1965
|
+
end
|
1966
|
+
return data, status_code, headers
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
# Get chart second category axis
|
1970
|
+
#
|
1971
|
+
# @param name
|
1972
|
+
# @param sheet_name
|
1973
|
+
# @param chart_index
|
1974
|
+
# @param [Hash] opts the optional parameters
|
1975
|
+
# @option opts [String] :folder
|
1976
|
+
# @option opts [String] :storage_name
|
1977
|
+
# @return [AxisResponse]
|
1978
|
+
def cells_charts_get_chart_second_category_axis(name, sheet_name, chart_index, opts = {})
|
1979
|
+
data, _status_code, _headers = cells_charts_get_chart_second_category_axis_with_http_info(name, sheet_name, chart_index, opts)
|
1980
|
+
return data
|
1981
|
+
end
|
1982
|
+
|
1983
|
+
# Get chart second category axis
|
1984
|
+
#
|
1985
|
+
# @param name
|
1986
|
+
# @param sheet_name
|
1987
|
+
# @param chart_index
|
1988
|
+
# @param [Hash] opts the optional parameters
|
1989
|
+
# @option opts [String] :folder
|
1990
|
+
# @option opts [String] :storage_name
|
1991
|
+
# @return [Array<(AxisResponse, Fixnum, Hash)>] AxisResponse data, response status code and response headers
|
1992
|
+
def cells_charts_get_chart_second_category_axis_with_http_info(name, sheet_name, chart_index, opts = {})
|
1993
|
+
if @api_client.config.debugging
|
1994
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_chart_second_category_axis ..."
|
1995
|
+
end
|
1996
|
+
@api_client.request_token_if_needed
|
1997
|
+
# verify the required parameter 'name' is set
|
1998
|
+
if @api_client.config.client_side_validation && name.nil?
|
1999
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_chart_second_category_axis"
|
2000
|
+
end
|
2001
|
+
# verify the required parameter 'sheet_name' is set
|
2002
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2003
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_chart_second_category_axis"
|
2004
|
+
end
|
2005
|
+
# verify the required parameter 'chart_index' is set
|
2006
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2007
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_chart_second_category_axis"
|
2008
|
+
end
|
2009
|
+
# resource path
|
2010
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/secondcategoryaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2011
|
+
|
2012
|
+
# query parameters
|
2013
|
+
query_params = {}
|
2014
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2015
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2016
|
+
|
2017
|
+
# header parameters
|
2018
|
+
header_params = {}
|
2019
|
+
# HTTP header 'Accept' (if needed)
|
2020
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2021
|
+
# HTTP header 'Content-Type'
|
2022
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2023
|
+
|
2024
|
+
# form parameters
|
2025
|
+
form_params = {}
|
2026
|
+
|
2027
|
+
# http body (model)
|
2028
|
+
post_body = nil
|
2029
|
+
#auth_names = []
|
2030
|
+
auth_names = ['JWT']
|
2031
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2032
|
+
:header_params => header_params,
|
2033
|
+
:query_params => query_params,
|
2034
|
+
:form_params => form_params,
|
2035
|
+
:body => post_body,
|
2036
|
+
:auth_names => auth_names,
|
2037
|
+
:return_type => 'AxisResponse')
|
2038
|
+
if @api_client.config.debugging
|
2039
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_chart_second_category_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2040
|
+
end
|
2041
|
+
return data, status_code, headers
|
2042
|
+
end
|
2043
|
+
|
2044
|
+
# Get chart second value axis
|
2045
|
+
#
|
2046
|
+
# @param name
|
2047
|
+
# @param sheet_name
|
2048
|
+
# @param chart_index
|
2049
|
+
# @param [Hash] opts the optional parameters
|
2050
|
+
# @option opts [String] :folder
|
2051
|
+
# @option opts [String] :storage_name
|
2052
|
+
# @return [AxisResponse]
|
2053
|
+
def cells_charts_get_chart_second_value_axis(name, sheet_name, chart_index, opts = {})
|
2054
|
+
data, _status_code, _headers = cells_charts_get_chart_second_value_axis_with_http_info(name, sheet_name, chart_index, opts)
|
2055
|
+
return data
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
# Get chart second value axis
|
2059
|
+
#
|
2060
|
+
# @param name
|
2061
|
+
# @param sheet_name
|
2062
|
+
# @param chart_index
|
2063
|
+
# @param [Hash] opts the optional parameters
|
2064
|
+
# @option opts [String] :folder
|
2065
|
+
# @option opts [String] :storage_name
|
2066
|
+
# @return [Array<(AxisResponse, Fixnum, Hash)>] AxisResponse data, response status code and response headers
|
2067
|
+
def cells_charts_get_chart_second_value_axis_with_http_info(name, sheet_name, chart_index, opts = {})
|
2068
|
+
if @api_client.config.debugging
|
2069
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_chart_second_value_axis ..."
|
2070
|
+
end
|
2071
|
+
@api_client.request_token_if_needed
|
2072
|
+
# verify the required parameter 'name' is set
|
2073
|
+
if @api_client.config.client_side_validation && name.nil?
|
2074
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_chart_second_value_axis"
|
2075
|
+
end
|
2076
|
+
# verify the required parameter 'sheet_name' is set
|
2077
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2078
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_chart_second_value_axis"
|
2079
|
+
end
|
2080
|
+
# verify the required parameter 'chart_index' is set
|
2081
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2082
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_chart_second_value_axis"
|
2083
|
+
end
|
2084
|
+
# resource path
|
2085
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/secondvalueaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2086
|
+
|
2087
|
+
# query parameters
|
2088
|
+
query_params = {}
|
2089
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2090
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2091
|
+
|
2092
|
+
# header parameters
|
2093
|
+
header_params = {}
|
2094
|
+
# HTTP header 'Accept' (if needed)
|
2095
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2096
|
+
# HTTP header 'Content-Type'
|
2097
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2098
|
+
|
2099
|
+
# form parameters
|
2100
|
+
form_params = {}
|
2101
|
+
|
2102
|
+
# http body (model)
|
2103
|
+
post_body = nil
|
2104
|
+
#auth_names = []
|
2105
|
+
auth_names = ['JWT']
|
2106
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2107
|
+
:header_params => header_params,
|
2108
|
+
:query_params => query_params,
|
2109
|
+
:form_params => form_params,
|
2110
|
+
:body => post_body,
|
2111
|
+
:auth_names => auth_names,
|
2112
|
+
:return_type => 'AxisResponse')
|
2113
|
+
if @api_client.config.debugging
|
2114
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_chart_second_value_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2115
|
+
end
|
2116
|
+
return data, status_code, headers
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
# Get chart Series Axis
|
2120
|
+
#
|
2121
|
+
# @param name
|
2122
|
+
# @param sheet_name
|
2123
|
+
# @param chart_index
|
2124
|
+
# @param [Hash] opts the optional parameters
|
2125
|
+
# @option opts [String] :folder
|
2126
|
+
# @option opts [String] :storage_name
|
2127
|
+
# @return [AxisResponse]
|
2128
|
+
def cells_charts_get_chart_series_axis(name, sheet_name, chart_index, opts = {})
|
2129
|
+
data, _status_code, _headers = cells_charts_get_chart_series_axis_with_http_info(name, sheet_name, chart_index, opts)
|
2130
|
+
return data
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
# Get chart Series Axis
|
2134
|
+
#
|
2135
|
+
# @param name
|
2136
|
+
# @param sheet_name
|
2137
|
+
# @param chart_index
|
2138
|
+
# @param [Hash] opts the optional parameters
|
2139
|
+
# @option opts [String] :folder
|
2140
|
+
# @option opts [String] :storage_name
|
2141
|
+
# @return [Array<(AxisResponse, Fixnum, Hash)>] AxisResponse data, response status code and response headers
|
2142
|
+
def cells_charts_get_chart_series_axis_with_http_info(name, sheet_name, chart_index, opts = {})
|
2143
|
+
if @api_client.config.debugging
|
2144
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_chart_series_axis ..."
|
2145
|
+
end
|
2146
|
+
@api_client.request_token_if_needed
|
2147
|
+
# verify the required parameter 'name' is set
|
2148
|
+
if @api_client.config.client_side_validation && name.nil?
|
2149
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_chart_series_axis"
|
2150
|
+
end
|
2151
|
+
# verify the required parameter 'sheet_name' is set
|
2152
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2153
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_chart_series_axis"
|
2154
|
+
end
|
2155
|
+
# verify the required parameter 'chart_index' is set
|
2156
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2157
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_chart_series_axis"
|
2158
|
+
end
|
2159
|
+
# resource path
|
2160
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/seriesaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2161
|
+
|
2162
|
+
# query parameters
|
2163
|
+
query_params = {}
|
2164
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2165
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2166
|
+
|
2167
|
+
# header parameters
|
2168
|
+
header_params = {}
|
2169
|
+
# HTTP header 'Accept' (if needed)
|
2170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2171
|
+
# HTTP header 'Content-Type'
|
2172
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2173
|
+
|
2174
|
+
# form parameters
|
2175
|
+
form_params = {}
|
2176
|
+
|
2177
|
+
# http body (model)
|
2178
|
+
post_body = nil
|
2179
|
+
#auth_names = []
|
2180
|
+
auth_names = ['JWT']
|
2181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2182
|
+
:header_params => header_params,
|
2183
|
+
:query_params => query_params,
|
2184
|
+
:form_params => form_params,
|
2185
|
+
:body => post_body,
|
2186
|
+
:auth_names => auth_names,
|
2187
|
+
:return_type => 'AxisResponse')
|
2188
|
+
if @api_client.config.debugging
|
2189
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_chart_series_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2190
|
+
end
|
2191
|
+
return data, status_code, headers
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
# Get chart Value Axis
|
2195
|
+
#
|
2196
|
+
# @param name
|
2197
|
+
# @param sheet_name
|
2198
|
+
# @param chart_index
|
2199
|
+
# @param [Hash] opts the optional parameters
|
2200
|
+
# @option opts [String] :folder
|
2201
|
+
# @option opts [String] :storage_name
|
2202
|
+
# @return [AxisResponse]
|
2203
|
+
def cells_charts_get_chart_value_axis(name, sheet_name, chart_index, opts = {})
|
2204
|
+
data, _status_code, _headers = cells_charts_get_chart_value_axis_with_http_info(name, sheet_name, chart_index, opts)
|
2205
|
+
return data
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
# Get chart Value Axis
|
2209
|
+
#
|
2210
|
+
# @param name
|
2211
|
+
# @param sheet_name
|
2212
|
+
# @param chart_index
|
2213
|
+
# @param [Hash] opts the optional parameters
|
2214
|
+
# @option opts [String] :folder
|
2215
|
+
# @option opts [String] :storage_name
|
2216
|
+
# @return [Array<(AxisResponse, Fixnum, Hash)>] AxisResponse data, response status code and response headers
|
2217
|
+
def cells_charts_get_chart_value_axis_with_http_info(name, sheet_name, chart_index, opts = {})
|
2218
|
+
if @api_client.config.debugging
|
2219
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_chart_value_axis ..."
|
2220
|
+
end
|
2221
|
+
@api_client.request_token_if_needed
|
2222
|
+
# verify the required parameter 'name' is set
|
2223
|
+
if @api_client.config.client_side_validation && name.nil?
|
2224
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_chart_value_axis"
|
2225
|
+
end
|
2226
|
+
# verify the required parameter 'sheet_name' is set
|
2227
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2228
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_chart_value_axis"
|
2229
|
+
end
|
2230
|
+
# verify the required parameter 'chart_index' is set
|
2231
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2232
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_chart_value_axis"
|
2233
|
+
end
|
2234
|
+
# resource path
|
2235
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/valueaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2236
|
+
|
2237
|
+
# query parameters
|
2238
|
+
query_params = {}
|
2239
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2240
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2241
|
+
|
2242
|
+
# header parameters
|
2243
|
+
header_params = {}
|
2244
|
+
# HTTP header 'Accept' (if needed)
|
2245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2246
|
+
# HTTP header 'Content-Type'
|
2247
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2248
|
+
|
2249
|
+
# form parameters
|
2250
|
+
form_params = {}
|
2251
|
+
|
2252
|
+
# http body (model)
|
2253
|
+
post_body = nil
|
2254
|
+
#auth_names = []
|
2255
|
+
auth_names = ['JWT']
|
2256
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2257
|
+
:header_params => header_params,
|
2258
|
+
:query_params => query_params,
|
2259
|
+
:form_params => form_params,
|
2260
|
+
:body => post_body,
|
2261
|
+
:auth_names => auth_names,
|
2262
|
+
:return_type => 'AxisResponse')
|
2263
|
+
if @api_client.config.debugging
|
2264
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_chart_value_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2265
|
+
end
|
2266
|
+
return data, status_code, headers
|
2267
|
+
end
|
2268
|
+
|
2269
|
+
# Get chart info.
|
2270
|
+
#
|
2271
|
+
# @param name Document name.
|
2272
|
+
# @param sheet_name Worksheet name.
|
2273
|
+
# @param chart_number The chart number.
|
2274
|
+
# @param [Hash] opts the optional parameters
|
2275
|
+
# @option opts [String] :format The exported file format.
|
2276
|
+
# @option opts [String] :folder The document folder.
|
2277
|
+
# @option opts [String] :storage_name storage name.
|
2278
|
+
# @return [File]
|
2279
|
+
def cells_charts_get_worksheet_chart(name, sheet_name, chart_number, opts = {})
|
2280
|
+
data, _status_code, _headers = cells_charts_get_worksheet_chart_with_http_info(name, sheet_name, chart_number, opts)
|
2281
|
+
return data
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
# Get chart info.
|
2285
|
+
#
|
2286
|
+
# @param name Document name.
|
2287
|
+
# @param sheet_name Worksheet name.
|
2288
|
+
# @param chart_number The chart number.
|
2289
|
+
# @param [Hash] opts the optional parameters
|
2290
|
+
# @option opts [String] :format The exported file format.
|
2291
|
+
# @option opts [String] :folder The document folder.
|
2292
|
+
# @option opts [String] :storage_name storage name.
|
2293
|
+
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
2294
|
+
def cells_charts_get_worksheet_chart_with_http_info(name, sheet_name, chart_number, opts = {})
|
2295
|
+
if @api_client.config.debugging
|
2296
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_worksheet_chart ..."
|
2297
|
+
end
|
2298
|
+
@api_client.request_token_if_needed
|
2299
|
+
# verify the required parameter 'name' is set
|
2300
|
+
if @api_client.config.client_side_validation && name.nil?
|
2301
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_worksheet_chart"
|
2302
|
+
end
|
2303
|
+
# verify the required parameter 'sheet_name' is set
|
2304
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2305
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_worksheet_chart"
|
2306
|
+
end
|
2307
|
+
# verify the required parameter 'chart_number' is set
|
2308
|
+
if @api_client.config.client_side_validation && chart_number.nil?
|
2309
|
+
fail ArgumentError, "Missing the required parameter 'chart_number' when calling CellsApi.cells_charts_get_worksheet_chart"
|
2310
|
+
end
|
2311
|
+
# resource path
|
2312
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartNumber}".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartNumber' + '}', chart_number.to_s)
|
2313
|
+
|
2314
|
+
# query parameters
|
2315
|
+
query_params = {}
|
2316
|
+
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
2317
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2318
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2319
|
+
|
2320
|
+
# header parameters
|
2321
|
+
header_params = {}
|
2322
|
+
# HTTP header 'Accept' (if needed)
|
2323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2324
|
+
# HTTP header 'Content-Type'
|
2325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2326
|
+
|
2327
|
+
# form parameters
|
2328
|
+
form_params = {}
|
2329
|
+
|
2330
|
+
# http body (model)
|
2331
|
+
post_body = nil
|
2332
|
+
#auth_names = []
|
2333
|
+
auth_names = ['JWT']
|
2334
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2335
|
+
:header_params => header_params,
|
2336
|
+
:query_params => query_params,
|
2337
|
+
:form_params => form_params,
|
2338
|
+
:body => post_body,
|
2339
|
+
:auth_names => auth_names,
|
2340
|
+
:return_type => 'File')
|
2341
|
+
if @api_client.config.debugging
|
2342
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_worksheet_chart\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2343
|
+
end
|
2344
|
+
return data, status_code, headers
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
# Get chart legend
|
2348
|
+
#
|
2349
|
+
# @param name Workbook name.
|
2350
|
+
# @param sheet_name Worksheet name.
|
2351
|
+
# @param chart_index The chart index.
|
2352
|
+
# @param [Hash] opts the optional parameters
|
2353
|
+
# @option opts [String] :folder The workbook folder.
|
2354
|
+
# @option opts [String] :storage_name storage name.
|
2355
|
+
# @return [LegendResponse]
|
2356
|
+
def cells_charts_get_worksheet_chart_legend(name, sheet_name, chart_index, opts = {})
|
2357
|
+
data, _status_code, _headers = cells_charts_get_worksheet_chart_legend_with_http_info(name, sheet_name, chart_index, opts)
|
2358
|
+
return data
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
# Get chart legend
|
2362
|
+
#
|
2363
|
+
# @param name Workbook name.
|
2364
|
+
# @param sheet_name Worksheet name.
|
2365
|
+
# @param chart_index The chart index.
|
2366
|
+
# @param [Hash] opts the optional parameters
|
2367
|
+
# @option opts [String] :folder The workbook folder.
|
2368
|
+
# @option opts [String] :storage_name storage name.
|
2369
|
+
# @return [Array<(LegendResponse, Fixnum, Hash)>] LegendResponse data, response status code and response headers
|
2370
|
+
def cells_charts_get_worksheet_chart_legend_with_http_info(name, sheet_name, chart_index, opts = {})
|
2371
|
+
if @api_client.config.debugging
|
2372
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_worksheet_chart_legend ..."
|
2373
|
+
end
|
2374
|
+
@api_client.request_token_if_needed
|
2375
|
+
# verify the required parameter 'name' is set
|
2376
|
+
if @api_client.config.client_side_validation && name.nil?
|
2377
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_worksheet_chart_legend"
|
2378
|
+
end
|
2379
|
+
# verify the required parameter 'sheet_name' is set
|
2380
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2381
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_worksheet_chart_legend"
|
2382
|
+
end
|
2383
|
+
# verify the required parameter 'chart_index' is set
|
2384
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2385
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_worksheet_chart_legend"
|
2386
|
+
end
|
2387
|
+
# resource path
|
2388
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/legend".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2389
|
+
|
2390
|
+
# query parameters
|
2391
|
+
query_params = {}
|
2392
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2393
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2394
|
+
|
2395
|
+
# header parameters
|
2396
|
+
header_params = {}
|
2397
|
+
# HTTP header 'Accept' (if needed)
|
2398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2399
|
+
# HTTP header 'Content-Type'
|
2400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2401
|
+
|
2402
|
+
# form parameters
|
2403
|
+
form_params = {}
|
2404
|
+
|
2405
|
+
# http body (model)
|
2406
|
+
post_body = nil
|
2407
|
+
#auth_names = []
|
2408
|
+
auth_names = ['JWT']
|
2409
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2410
|
+
:header_params => header_params,
|
2411
|
+
:query_params => query_params,
|
2412
|
+
:form_params => form_params,
|
2413
|
+
:body => post_body,
|
2414
|
+
:auth_names => auth_names,
|
2415
|
+
:return_type => 'LegendResponse')
|
2416
|
+
if @api_client.config.debugging
|
2417
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_worksheet_chart_legend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2418
|
+
end
|
2419
|
+
return data, status_code, headers
|
2420
|
+
end
|
2421
|
+
|
2422
|
+
# Get chart title
|
2423
|
+
#
|
2424
|
+
# @param name Workbook name.
|
2425
|
+
# @param sheet_name Worksheet name.
|
2426
|
+
# @param chart_index The chart index.
|
2427
|
+
# @param [Hash] opts the optional parameters
|
2428
|
+
# @option opts [String] :folder The workbook folder.
|
2429
|
+
# @option opts [String] :storage_name storage name.
|
2430
|
+
# @return [TitleResponse]
|
2431
|
+
def cells_charts_get_worksheet_chart_title(name, sheet_name, chart_index, opts = {})
|
2432
|
+
data, _status_code, _headers = cells_charts_get_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts)
|
2433
|
+
return data
|
2434
|
+
end
|
2435
|
+
|
2436
|
+
# Get chart title
|
2437
|
+
#
|
2438
|
+
# @param name Workbook name.
|
2439
|
+
# @param sheet_name Worksheet name.
|
2440
|
+
# @param chart_index The chart index.
|
2441
|
+
# @param [Hash] opts the optional parameters
|
2442
|
+
# @option opts [String] :folder The workbook folder.
|
2443
|
+
# @option opts [String] :storage_name storage name.
|
2444
|
+
# @return [Array<(TitleResponse, Fixnum, Hash)>] TitleResponse data, response status code and response headers
|
2445
|
+
def cells_charts_get_worksheet_chart_title_with_http_info(name, sheet_name, chart_index, opts = {})
|
2446
|
+
if @api_client.config.debugging
|
2447
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_worksheet_chart_title ..."
|
2448
|
+
end
|
2449
|
+
@api_client.request_token_if_needed
|
2450
|
+
# verify the required parameter 'name' is set
|
2451
|
+
if @api_client.config.client_side_validation && name.nil?
|
2452
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_worksheet_chart_title"
|
2453
|
+
end
|
2454
|
+
# verify the required parameter 'sheet_name' is set
|
2455
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2456
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_worksheet_chart_title"
|
2457
|
+
end
|
2458
|
+
# verify the required parameter 'chart_index' is set
|
2459
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2460
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_get_worksheet_chart_title"
|
2461
|
+
end
|
2462
|
+
# resource path
|
2463
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/title".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
1894
2464
|
|
1895
|
-
|
2465
|
+
# query parameters
|
2466
|
+
query_params = {}
|
2467
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2468
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2469
|
+
|
2470
|
+
# header parameters
|
2471
|
+
header_params = {}
|
2472
|
+
# HTTP header 'Accept' (if needed)
|
2473
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2474
|
+
# HTTP header 'Content-Type'
|
2475
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2476
|
+
|
2477
|
+
# form parameters
|
2478
|
+
form_params = {}
|
2479
|
+
|
2480
|
+
# http body (model)
|
2481
|
+
post_body = nil
|
2482
|
+
#auth_names = []
|
2483
|
+
auth_names = ['JWT']
|
2484
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2485
|
+
:header_params => header_params,
|
2486
|
+
:query_params => query_params,
|
2487
|
+
:form_params => form_params,
|
2488
|
+
:body => post_body,
|
2489
|
+
:auth_names => auth_names,
|
2490
|
+
:return_type => 'TitleResponse')
|
2491
|
+
if @api_client.config.debugging
|
2492
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_worksheet_chart_title\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2493
|
+
end
|
2494
|
+
return data, status_code, headers
|
2495
|
+
end
|
2496
|
+
|
2497
|
+
# Get worksheet charts info.
|
1896
2498
|
#
|
1897
2499
|
# @param name Document name.
|
1898
|
-
# @param sheet_name
|
1899
|
-
# @param chart_number The chart number.
|
2500
|
+
# @param sheet_name The worksheet name.
|
1900
2501
|
# @param [Hash] opts the optional parameters
|
1901
|
-
# @option opts [String] :
|
1902
|
-
# @option opts [String] :folder The document folder.
|
2502
|
+
# @option opts [String] :folder Document's folder.
|
1903
2503
|
# @option opts [String] :storage_name storage name.
|
1904
|
-
# @return [
|
1905
|
-
def
|
1906
|
-
data, _status_code, _headers =
|
2504
|
+
# @return [ChartsResponse]
|
2505
|
+
def cells_charts_get_worksheet_charts(name, sheet_name, opts = {})
|
2506
|
+
data, _status_code, _headers = cells_charts_get_worksheet_charts_with_http_info(name, sheet_name, opts)
|
1907
2507
|
return data
|
1908
2508
|
end
|
1909
2509
|
|
1910
|
-
# Get
|
2510
|
+
# Get worksheet charts info.
|
1911
2511
|
#
|
1912
2512
|
# @param name Document name.
|
1913
|
-
# @param sheet_name
|
1914
|
-
# @param chart_number The chart number.
|
2513
|
+
# @param sheet_name The worksheet name.
|
1915
2514
|
# @param [Hash] opts the optional parameters
|
1916
|
-
# @option opts [String] :
|
1917
|
-
# @option opts [String] :folder The document folder.
|
2515
|
+
# @option opts [String] :folder Document's folder.
|
1918
2516
|
# @option opts [String] :storage_name storage name.
|
1919
|
-
# @return [Array<(
|
1920
|
-
def
|
2517
|
+
# @return [Array<(ChartsResponse, Fixnum, Hash)>] ChartsResponse data, response status code and response headers
|
2518
|
+
def cells_charts_get_worksheet_charts_with_http_info(name, sheet_name, opts = {})
|
1921
2519
|
if @api_client.config.debugging
|
1922
|
-
@api_client.config.logger.debug "Calling API: CellsApi.
|
2520
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_get_worksheet_charts ..."
|
1923
2521
|
end
|
1924
2522
|
@api_client.request_token_if_needed
|
1925
2523
|
# verify the required parameter 'name' is set
|
1926
2524
|
if @api_client.config.client_side_validation && name.nil?
|
1927
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.
|
2525
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_get_worksheet_charts"
|
1928
2526
|
end
|
1929
2527
|
# verify the required parameter 'sheet_name' is set
|
1930
2528
|
if @api_client.config.client_side_validation && sheet_name.nil?
|
1931
|
-
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.
|
1932
|
-
end
|
1933
|
-
# verify the required parameter 'chart_number' is set
|
1934
|
-
if @api_client.config.client_side_validation && chart_number.nil?
|
1935
|
-
fail ArgumentError, "Missing the required parameter 'chart_number' when calling CellsApi.cells_charts_get_worksheet_chart"
|
2529
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_get_worksheet_charts"
|
1936
2530
|
end
|
1937
2531
|
# resource path
|
1938
|
-
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts
|
2532
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
|
1939
2533
|
|
1940
2534
|
# query parameters
|
1941
2535
|
query_params = {}
|
1942
|
-
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
1943
2536
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
1944
2537
|
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
1945
2538
|
|
@@ -1963,55 +2556,141 @@ module AsposeCellsCloud
|
|
1963
2556
|
:form_params => form_params,
|
1964
2557
|
:body => post_body,
|
1965
2558
|
:auth_names => auth_names,
|
1966
|
-
:return_type => '
|
2559
|
+
:return_type => 'ChartsResponse')
|
1967
2560
|
if @api_client.config.debugging
|
1968
|
-
@api_client.config.logger.debug "API called: CellsApi#
|
2561
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_get_worksheet_charts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1969
2562
|
end
|
1970
2563
|
return data, status_code, headers
|
1971
2564
|
end
|
2565
|
+
# Update chart Category Axis
|
2566
|
+
#
|
2567
|
+
# @param name
|
2568
|
+
# @param sheet_name
|
2569
|
+
# @param chart_index
|
2570
|
+
# @param axis
|
2571
|
+
# @param [Hash] opts the optional parameters
|
2572
|
+
# @option opts [String] :folder
|
2573
|
+
# @option opts [String] :storage_name
|
2574
|
+
# @return [CellsCloudResponse]
|
2575
|
+
def cells_charts_post_chart_category_axis(name, sheet_name, chart_index, axis, opts = {})
|
2576
|
+
data, _status_code, _headers = cells_charts_post_chart_category_axis_with_http_info(name, sheet_name, chart_index, axis, opts)
|
2577
|
+
return data
|
2578
|
+
end
|
1972
2579
|
|
1973
|
-
#
|
2580
|
+
# Update chart Category Axis
|
1974
2581
|
#
|
1975
|
-
# @param name
|
1976
|
-
# @param sheet_name
|
1977
|
-
# @param chart_index
|
2582
|
+
# @param name
|
2583
|
+
# @param sheet_name
|
2584
|
+
# @param chart_index
|
2585
|
+
# @param axis
|
1978
2586
|
# @param [Hash] opts the optional parameters
|
1979
|
-
# @option opts [String] :folder
|
1980
|
-
# @option opts [String] :storage_name
|
1981
|
-
# @return [
|
1982
|
-
def
|
1983
|
-
|
2587
|
+
# @option opts [String] :folder
|
2588
|
+
# @option opts [String] :storage_name
|
2589
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
2590
|
+
def cells_charts_post_chart_category_axis_with_http_info(name, sheet_name, chart_index, axis, opts = {})
|
2591
|
+
if @api_client.config.debugging
|
2592
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_chart_category_axis ..."
|
2593
|
+
end
|
2594
|
+
@api_client.request_token_if_needed
|
2595
|
+
# verify the required parameter 'name' is set
|
2596
|
+
if @api_client.config.client_side_validation && name.nil?
|
2597
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_post_chart_category_axis"
|
2598
|
+
end
|
2599
|
+
# verify the required parameter 'sheet_name' is set
|
2600
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2601
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_post_chart_category_axis"
|
2602
|
+
end
|
2603
|
+
# verify the required parameter 'chart_index' is set
|
2604
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2605
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_post_chart_category_axis"
|
2606
|
+
end
|
2607
|
+
# verify the required parameter 'axis' is set
|
2608
|
+
if @api_client.config.client_side_validation && axis.nil?
|
2609
|
+
fail ArgumentError, "Missing the required parameter 'axis' when calling CellsApi.cells_charts_post_chart_category_axis"
|
2610
|
+
end
|
2611
|
+
# resource path
|
2612
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/categoryaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2613
|
+
|
2614
|
+
# query parameters
|
2615
|
+
query_params = {}
|
2616
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2617
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2618
|
+
|
2619
|
+
# header parameters
|
2620
|
+
header_params = {}
|
2621
|
+
# HTTP header 'Accept' (if needed)
|
2622
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2623
|
+
# HTTP header 'Content-Type'
|
2624
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2625
|
+
|
2626
|
+
# form parameters
|
2627
|
+
form_params = {}
|
2628
|
+
|
2629
|
+
# http body (model)
|
2630
|
+
post_body = @api_client.object_to_http_body(axis)
|
2631
|
+
#auth_names = []
|
2632
|
+
auth_names = ['JWT']
|
2633
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2634
|
+
:header_params => header_params,
|
2635
|
+
:query_params => query_params,
|
2636
|
+
:form_params => form_params,
|
2637
|
+
:body => post_body,
|
2638
|
+
:auth_names => auth_names,
|
2639
|
+
:return_type => 'CellsCloudResponse')
|
2640
|
+
if @api_client.config.debugging
|
2641
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_post_chart_category_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2642
|
+
end
|
2643
|
+
return data, status_code, headers
|
2644
|
+
end
|
2645
|
+
|
2646
|
+
# Update chart second category axis
|
2647
|
+
#
|
2648
|
+
# @param name
|
2649
|
+
# @param sheet_name
|
2650
|
+
# @param chart_index
|
2651
|
+
# @param axis
|
2652
|
+
# @param [Hash] opts the optional parameters
|
2653
|
+
# @option opts [String] :folder
|
2654
|
+
# @option opts [String] :storage_name
|
2655
|
+
# @return [CellsCloudResponse]
|
2656
|
+
def cells_charts_post_chart_second_category_axis(name, sheet_name, chart_index, axis, opts = {})
|
2657
|
+
data, _status_code, _headers = cells_charts_post_chart_second_category_axis_with_http_info(name, sheet_name, chart_index, axis, opts)
|
1984
2658
|
return data
|
1985
2659
|
end
|
1986
2660
|
|
1987
|
-
#
|
2661
|
+
# Update chart second category axis
|
1988
2662
|
#
|
1989
|
-
# @param name
|
1990
|
-
# @param sheet_name
|
1991
|
-
# @param chart_index
|
2663
|
+
# @param name
|
2664
|
+
# @param sheet_name
|
2665
|
+
# @param chart_index
|
2666
|
+
# @param axis
|
1992
2667
|
# @param [Hash] opts the optional parameters
|
1993
|
-
# @option opts [String] :folder
|
1994
|
-
# @option opts [String] :storage_name
|
1995
|
-
# @return [Array<(
|
1996
|
-
def
|
2668
|
+
# @option opts [String] :folder
|
2669
|
+
# @option opts [String] :storage_name
|
2670
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
2671
|
+
def cells_charts_post_chart_second_category_axis_with_http_info(name, sheet_name, chart_index, axis, opts = {})
|
1997
2672
|
if @api_client.config.debugging
|
1998
|
-
@api_client.config.logger.debug "Calling API: CellsApi.
|
2673
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_chart_second_category_axis ..."
|
1999
2674
|
end
|
2000
2675
|
@api_client.request_token_if_needed
|
2001
2676
|
# verify the required parameter 'name' is set
|
2002
2677
|
if @api_client.config.client_side_validation && name.nil?
|
2003
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.
|
2678
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_post_chart_second_category_axis"
|
2004
2679
|
end
|
2005
2680
|
# verify the required parameter 'sheet_name' is set
|
2006
2681
|
if @api_client.config.client_side_validation && sheet_name.nil?
|
2007
|
-
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.
|
2682
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_post_chart_second_category_axis"
|
2008
2683
|
end
|
2009
2684
|
# verify the required parameter 'chart_index' is set
|
2010
2685
|
if @api_client.config.client_side_validation && chart_index.nil?
|
2011
|
-
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.
|
2686
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_post_chart_second_category_axis"
|
2687
|
+
end
|
2688
|
+
# verify the required parameter 'axis' is set
|
2689
|
+
if @api_client.config.client_side_validation && axis.nil?
|
2690
|
+
fail ArgumentError, "Missing the required parameter 'axis' when calling CellsApi.cells_charts_post_chart_second_category_axis"
|
2012
2691
|
end
|
2013
2692
|
# resource path
|
2014
|
-
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/
|
2693
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/secondcategoryaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2015
2694
|
|
2016
2695
|
# query parameters
|
2017
2696
|
query_params = {}
|
@@ -2029,64 +2708,151 @@ module AsposeCellsCloud
|
|
2029
2708
|
form_params = {}
|
2030
2709
|
|
2031
2710
|
# http body (model)
|
2032
|
-
post_body =
|
2711
|
+
post_body = @api_client.object_to_http_body(axis)
|
2033
2712
|
#auth_names = []
|
2034
2713
|
auth_names = ['JWT']
|
2035
|
-
data, status_code, headers = @api_client.call_api(:
|
2714
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2036
2715
|
:header_params => header_params,
|
2037
2716
|
:query_params => query_params,
|
2038
2717
|
:form_params => form_params,
|
2039
2718
|
:body => post_body,
|
2040
2719
|
:auth_names => auth_names,
|
2041
|
-
:return_type => '
|
2720
|
+
:return_type => 'CellsCloudResponse')
|
2721
|
+
if @api_client.config.debugging
|
2722
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_post_chart_second_category_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2723
|
+
end
|
2724
|
+
return data, status_code, headers
|
2725
|
+
end
|
2726
|
+
|
2727
|
+
# Update chart second value axis
|
2728
|
+
#
|
2729
|
+
# @param name
|
2730
|
+
# @param sheet_name
|
2731
|
+
# @param chart_index
|
2732
|
+
# @param axis
|
2733
|
+
# @param [Hash] opts the optional parameters
|
2734
|
+
# @option opts [String] :folder
|
2735
|
+
# @option opts [String] :storage_name
|
2736
|
+
# @return [CellsCloudResponse]
|
2737
|
+
def cells_charts_post_chart_second_value_axis(name, sheet_name, chart_index, axis, opts = {})
|
2738
|
+
data, _status_code, _headers = cells_charts_post_chart_second_value_axis_with_http_info(name, sheet_name, chart_index, axis, opts)
|
2739
|
+
return data
|
2740
|
+
end
|
2741
|
+
|
2742
|
+
# Update chart second value axis
|
2743
|
+
#
|
2744
|
+
# @param name
|
2745
|
+
# @param sheet_name
|
2746
|
+
# @param chart_index
|
2747
|
+
# @param axis
|
2748
|
+
# @param [Hash] opts the optional parameters
|
2749
|
+
# @option opts [String] :folder
|
2750
|
+
# @option opts [String] :storage_name
|
2751
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
2752
|
+
def cells_charts_post_chart_second_value_axis_with_http_info(name, sheet_name, chart_index, axis, opts = {})
|
2753
|
+
if @api_client.config.debugging
|
2754
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_chart_second_value_axis ..."
|
2755
|
+
end
|
2756
|
+
@api_client.request_token_if_needed
|
2757
|
+
# verify the required parameter 'name' is set
|
2758
|
+
if @api_client.config.client_side_validation && name.nil?
|
2759
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_post_chart_second_value_axis"
|
2760
|
+
end
|
2761
|
+
# verify the required parameter 'sheet_name' is set
|
2762
|
+
if @api_client.config.client_side_validation && sheet_name.nil?
|
2763
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_post_chart_second_value_axis"
|
2764
|
+
end
|
2765
|
+
# verify the required parameter 'chart_index' is set
|
2766
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2767
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_post_chart_second_value_axis"
|
2768
|
+
end
|
2769
|
+
# verify the required parameter 'axis' is set
|
2770
|
+
if @api_client.config.client_side_validation && axis.nil?
|
2771
|
+
fail ArgumentError, "Missing the required parameter 'axis' when calling CellsApi.cells_charts_post_chart_second_value_axis"
|
2772
|
+
end
|
2773
|
+
# resource path
|
2774
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/secondvalueaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2775
|
+
|
2776
|
+
# query parameters
|
2777
|
+
query_params = {}
|
2778
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
2779
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
2780
|
+
|
2781
|
+
# header parameters
|
2782
|
+
header_params = {}
|
2783
|
+
# HTTP header 'Accept' (if needed)
|
2784
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2785
|
+
# HTTP header 'Content-Type'
|
2786
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2787
|
+
|
2788
|
+
# form parameters
|
2789
|
+
form_params = {}
|
2790
|
+
|
2791
|
+
# http body (model)
|
2792
|
+
post_body = @api_client.object_to_http_body(axis)
|
2793
|
+
#auth_names = []
|
2794
|
+
auth_names = ['JWT']
|
2795
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2796
|
+
:header_params => header_params,
|
2797
|
+
:query_params => query_params,
|
2798
|
+
:form_params => form_params,
|
2799
|
+
:body => post_body,
|
2800
|
+
:auth_names => auth_names,
|
2801
|
+
:return_type => 'CellsCloudResponse')
|
2042
2802
|
if @api_client.config.debugging
|
2043
|
-
@api_client.config.logger.debug "API called: CellsApi#
|
2803
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_post_chart_second_value_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2044
2804
|
end
|
2045
2805
|
return data, status_code, headers
|
2046
2806
|
end
|
2047
2807
|
|
2048
|
-
#
|
2808
|
+
# Update chart Series Axis
|
2049
2809
|
#
|
2050
|
-
# @param name
|
2051
|
-
# @param sheet_name
|
2052
|
-
# @param chart_index
|
2810
|
+
# @param name
|
2811
|
+
# @param sheet_name
|
2812
|
+
# @param chart_index
|
2813
|
+
# @param axis
|
2053
2814
|
# @param [Hash] opts the optional parameters
|
2054
|
-
# @option opts [String] :folder
|
2055
|
-
# @option opts [String] :storage_name
|
2056
|
-
# @return [
|
2057
|
-
def
|
2058
|
-
data, _status_code, _headers =
|
2815
|
+
# @option opts [String] :folder
|
2816
|
+
# @option opts [String] :storage_name
|
2817
|
+
# @return [CellsCloudResponse]
|
2818
|
+
def cells_charts_post_chart_series_axis(name, sheet_name, chart_index, axis, opts = {})
|
2819
|
+
data, _status_code, _headers = cells_charts_post_chart_series_axis_with_http_info(name, sheet_name, chart_index, axis, opts)
|
2059
2820
|
return data
|
2060
2821
|
end
|
2061
2822
|
|
2062
|
-
#
|
2823
|
+
# Update chart Series Axis
|
2063
2824
|
#
|
2064
|
-
# @param name
|
2065
|
-
# @param sheet_name
|
2066
|
-
# @param chart_index
|
2825
|
+
# @param name
|
2826
|
+
# @param sheet_name
|
2827
|
+
# @param chart_index
|
2828
|
+
# @param axis
|
2067
2829
|
# @param [Hash] opts the optional parameters
|
2068
|
-
# @option opts [String] :folder
|
2069
|
-
# @option opts [String] :storage_name
|
2070
|
-
# @return [Array<(
|
2071
|
-
def
|
2830
|
+
# @option opts [String] :folder
|
2831
|
+
# @option opts [String] :storage_name
|
2832
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
2833
|
+
def cells_charts_post_chart_series_axis_with_http_info(name, sheet_name, chart_index, axis, opts = {})
|
2072
2834
|
if @api_client.config.debugging
|
2073
|
-
@api_client.config.logger.debug "Calling API: CellsApi.
|
2835
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_chart_series_axis ..."
|
2074
2836
|
end
|
2075
2837
|
@api_client.request_token_if_needed
|
2076
2838
|
# verify the required parameter 'name' is set
|
2077
2839
|
if @api_client.config.client_side_validation && name.nil?
|
2078
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.
|
2840
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_post_chart_series_axis"
|
2079
2841
|
end
|
2080
2842
|
# verify the required parameter 'sheet_name' is set
|
2081
2843
|
if @api_client.config.client_side_validation && sheet_name.nil?
|
2082
|
-
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.
|
2844
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_post_chart_series_axis"
|
2083
2845
|
end
|
2084
2846
|
# verify the required parameter 'chart_index' is set
|
2085
2847
|
if @api_client.config.client_side_validation && chart_index.nil?
|
2086
|
-
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.
|
2848
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_post_chart_series_axis"
|
2849
|
+
end
|
2850
|
+
# verify the required parameter 'axis' is set
|
2851
|
+
if @api_client.config.client_side_validation && axis.nil?
|
2852
|
+
fail ArgumentError, "Missing the required parameter 'axis' when calling CellsApi.cells_charts_post_chart_series_axis"
|
2087
2853
|
end
|
2088
2854
|
# resource path
|
2089
|
-
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/
|
2855
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/seriesaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2090
2856
|
|
2091
2857
|
# query parameters
|
2092
2858
|
query_params = {}
|
@@ -2104,58 +2870,70 @@ module AsposeCellsCloud
|
|
2104
2870
|
form_params = {}
|
2105
2871
|
|
2106
2872
|
# http body (model)
|
2107
|
-
post_body =
|
2873
|
+
post_body = @api_client.object_to_http_body(axis)
|
2108
2874
|
#auth_names = []
|
2109
2875
|
auth_names = ['JWT']
|
2110
|
-
data, status_code, headers = @api_client.call_api(:
|
2876
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2111
2877
|
:header_params => header_params,
|
2112
2878
|
:query_params => query_params,
|
2113
2879
|
:form_params => form_params,
|
2114
2880
|
:body => post_body,
|
2115
2881
|
:auth_names => auth_names,
|
2116
|
-
:return_type => '
|
2882
|
+
:return_type => 'CellsCloudResponse')
|
2117
2883
|
if @api_client.config.debugging
|
2118
|
-
@api_client.config.logger.debug "API called: CellsApi#
|
2884
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_post_chart_series_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2119
2885
|
end
|
2120
2886
|
return data, status_code, headers
|
2121
2887
|
end
|
2122
2888
|
|
2123
|
-
#
|
2889
|
+
# Update chart value axis
|
2124
2890
|
#
|
2125
|
-
# @param name
|
2126
|
-
# @param sheet_name
|
2891
|
+
# @param name
|
2892
|
+
# @param sheet_name
|
2893
|
+
# @param chart_index
|
2894
|
+
# @param axis
|
2127
2895
|
# @param [Hash] opts the optional parameters
|
2128
|
-
# @option opts [String] :folder
|
2129
|
-
# @option opts [String] :storage_name
|
2130
|
-
# @return [
|
2131
|
-
def
|
2132
|
-
data, _status_code, _headers =
|
2896
|
+
# @option opts [String] :folder
|
2897
|
+
# @option opts [String] :storage_name
|
2898
|
+
# @return [CellsCloudResponse]
|
2899
|
+
def cells_charts_post_chart_value_axis(name, sheet_name, chart_index, axis, opts = {})
|
2900
|
+
data, _status_code, _headers = cells_charts_post_chart_value_axis_with_http_info(name, sheet_name, chart_index, axis, opts)
|
2133
2901
|
return data
|
2134
2902
|
end
|
2135
2903
|
|
2136
|
-
#
|
2904
|
+
# Update chart value axis
|
2137
2905
|
#
|
2138
|
-
# @param name
|
2139
|
-
# @param sheet_name
|
2906
|
+
# @param name
|
2907
|
+
# @param sheet_name
|
2908
|
+
# @param chart_index
|
2909
|
+
# @param axis
|
2140
2910
|
# @param [Hash] opts the optional parameters
|
2141
|
-
# @option opts [String] :folder
|
2142
|
-
# @option opts [String] :storage_name
|
2143
|
-
# @return [Array<(
|
2144
|
-
def
|
2911
|
+
# @option opts [String] :folder
|
2912
|
+
# @option opts [String] :storage_name
|
2913
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
2914
|
+
def cells_charts_post_chart_value_axis_with_http_info(name, sheet_name, chart_index, axis, opts = {})
|
2145
2915
|
if @api_client.config.debugging
|
2146
|
-
@api_client.config.logger.debug "Calling API: CellsApi.
|
2916
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_charts_post_chart_value_axis ..."
|
2147
2917
|
end
|
2148
2918
|
@api_client.request_token_if_needed
|
2149
2919
|
# verify the required parameter 'name' is set
|
2150
2920
|
if @api_client.config.client_side_validation && name.nil?
|
2151
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.
|
2921
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_charts_post_chart_value_axis"
|
2152
2922
|
end
|
2153
2923
|
# verify the required parameter 'sheet_name' is set
|
2154
2924
|
if @api_client.config.client_side_validation && sheet_name.nil?
|
2155
|
-
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.
|
2925
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.cells_charts_post_chart_value_axis"
|
2926
|
+
end
|
2927
|
+
# verify the required parameter 'chart_index' is set
|
2928
|
+
if @api_client.config.client_side_validation && chart_index.nil?
|
2929
|
+
fail ArgumentError, "Missing the required parameter 'chart_index' when calling CellsApi.cells_charts_post_chart_value_axis"
|
2930
|
+
end
|
2931
|
+
# verify the required parameter 'axis' is set
|
2932
|
+
if @api_client.config.client_side_validation && axis.nil?
|
2933
|
+
fail ArgumentError, "Missing the required parameter 'axis' when calling CellsApi.cells_charts_post_chart_value_axis"
|
2156
2934
|
end
|
2157
2935
|
# resource path
|
2158
|
-
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
|
2936
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/charts/{chartIndex}/valueaxis".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'chartIndex' + '}', chart_index.to_s)
|
2159
2937
|
|
2160
2938
|
# query parameters
|
2161
2939
|
query_params = {}
|
@@ -2173,18 +2951,18 @@ module AsposeCellsCloud
|
|
2173
2951
|
form_params = {}
|
2174
2952
|
|
2175
2953
|
# http body (model)
|
2176
|
-
post_body =
|
2954
|
+
post_body = @api_client.object_to_http_body(axis)
|
2177
2955
|
#auth_names = []
|
2178
2956
|
auth_names = ['JWT']
|
2179
|
-
data, status_code, headers = @api_client.call_api(:
|
2957
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2180
2958
|
:header_params => header_params,
|
2181
2959
|
:query_params => query_params,
|
2182
2960
|
:form_params => form_params,
|
2183
2961
|
:body => post_body,
|
2184
2962
|
:auth_names => auth_names,
|
2185
|
-
:return_type => '
|
2963
|
+
:return_type => 'CellsCloudResponse')
|
2186
2964
|
if @api_client.config.debugging
|
2187
|
-
@api_client.config.logger.debug "API called: CellsApi#
|
2965
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_charts_post_chart_value_axis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2188
2966
|
end
|
2189
2967
|
return data, status_code, headers
|
2190
2968
|
end
|
@@ -21134,6 +21912,201 @@ module AsposeCellsCloud
|
|
21134
21912
|
return data, status_code, headers
|
21135
21913
|
end
|
21136
21914
|
|
21915
|
+
|
21916
|
+
#
|
21917
|
+
#
|
21918
|
+
# @param file File to upload
|
21919
|
+
# @param [Hash] opts the optional parameters
|
21920
|
+
# @option opts [String] :password
|
21921
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21922
|
+
# @return [FileInfo]
|
21923
|
+
def post_convert_workbook_to_json(file, opts = {})
|
21924
|
+
data, _status_code, _headers = post_convert_workbook_to_json_with_http_info(file, opts)
|
21925
|
+
return data
|
21926
|
+
end
|
21927
|
+
|
21928
|
+
#
|
21929
|
+
#
|
21930
|
+
# @param file File to upload
|
21931
|
+
# @param [Hash] opts the optional parameters
|
21932
|
+
# @option opts [String] :password
|
21933
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21934
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21935
|
+
def post_convert_workbook_to_json_with_http_info(file, opts = {})
|
21936
|
+
if @api_client.config.debugging
|
21937
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_json ..."
|
21938
|
+
end
|
21939
|
+
@api_client.request_token_if_needed
|
21940
|
+
# verify the required parameter 'file' is set
|
21941
|
+
if @api_client.config.client_side_validation && file.nil?
|
21942
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_json"
|
21943
|
+
end
|
21944
|
+
# resource path
|
21945
|
+
local_var_path = "/cells/convert/json"
|
21946
|
+
|
21947
|
+
# query parameters
|
21948
|
+
query_params = {}
|
21949
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
21950
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
21951
|
+
|
21952
|
+
# header parameters
|
21953
|
+
header_params = {}
|
21954
|
+
# HTTP header 'Accept' (if needed)
|
21955
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
21956
|
+
# HTTP header 'Content-Type'
|
21957
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21958
|
+
|
21959
|
+
# form parameters
|
21960
|
+
form_params = {}
|
21961
|
+
|
21962
|
+
# http body (model)
|
21963
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
21964
|
+
post_body =''
|
21965
|
+
form_params['file'] = file
|
21966
|
+
#auth_names = []
|
21967
|
+
auth_names = ['JWT']
|
21968
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
21969
|
+
:header_params => header_params,
|
21970
|
+
:query_params => query_params,
|
21971
|
+
:form_params => form_params,
|
21972
|
+
:body => post_body,
|
21973
|
+
:auth_names => auth_names,
|
21974
|
+
:return_type => 'FileInfo')
|
21975
|
+
if @api_client.config.debugging
|
21976
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
21977
|
+
end
|
21978
|
+
return data, status_code, headers
|
21979
|
+
end
|
21980
|
+
#
|
21981
|
+
#
|
21982
|
+
# @param file File to upload
|
21983
|
+
# @param [Hash] opts the optional parameters
|
21984
|
+
# @option opts [String] :password
|
21985
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
21986
|
+
# @return [FileInfo]
|
21987
|
+
def post_convert_workbook_to_sql(file, opts = {})
|
21988
|
+
data, _status_code, _headers = post_convert_workbook_to_sql_with_http_info(file, opts)
|
21989
|
+
return data
|
21990
|
+
end
|
21991
|
+
|
21992
|
+
#
|
21993
|
+
#
|
21994
|
+
# @param file File to upload
|
21995
|
+
# @param [Hash] opts the optional parameters
|
21996
|
+
# @option opts [String] :password
|
21997
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
21998
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
21999
|
+
def post_convert_workbook_to_sql_with_http_info(file, opts = {})
|
22000
|
+
if @api_client.config.debugging
|
22001
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_sql ..."
|
22002
|
+
end
|
22003
|
+
@api_client.request_token_if_needed
|
22004
|
+
# verify the required parameter 'file' is set
|
22005
|
+
if @api_client.config.client_side_validation && file.nil?
|
22006
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_sql"
|
22007
|
+
end
|
22008
|
+
# resource path
|
22009
|
+
local_var_path = "/cells/convert/sql"
|
22010
|
+
|
22011
|
+
# query parameters
|
22012
|
+
query_params = {}
|
22013
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22014
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
22015
|
+
|
22016
|
+
# header parameters
|
22017
|
+
header_params = {}
|
22018
|
+
# HTTP header 'Accept' (if needed)
|
22019
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
22020
|
+
# HTTP header 'Content-Type'
|
22021
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
22022
|
+
|
22023
|
+
# form parameters
|
22024
|
+
form_params = {}
|
22025
|
+
|
22026
|
+
# http body (model)
|
22027
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
22028
|
+
post_body =''
|
22029
|
+
form_params['file'] = file
|
22030
|
+
#auth_names = []
|
22031
|
+
auth_names = ['JWT']
|
22032
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
22033
|
+
:header_params => header_params,
|
22034
|
+
:query_params => query_params,
|
22035
|
+
:form_params => form_params,
|
22036
|
+
:body => post_body,
|
22037
|
+
:auth_names => auth_names,
|
22038
|
+
:return_type => 'FileInfo')
|
22039
|
+
if @api_client.config.debugging
|
22040
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_sql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
22041
|
+
end
|
22042
|
+
return data, status_code, headers
|
22043
|
+
end
|
22044
|
+
|
22045
|
+
#
|
22046
|
+
#
|
22047
|
+
# @param file File to upload
|
22048
|
+
# @param [Hash] opts the optional parameters
|
22049
|
+
# @option opts [String] :password
|
22050
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
22051
|
+
# @return [FileInfo]
|
22052
|
+
def post_convert_workbook_to_csv(file, opts = {})
|
22053
|
+
data, _status_code, _headers = post_convert_workbook_to_csv_with_http_info(file, opts)
|
22054
|
+
return data
|
22055
|
+
end
|
22056
|
+
|
22057
|
+
#
|
22058
|
+
#
|
22059
|
+
# @param file File to upload
|
22060
|
+
# @param [Hash] opts the optional parameters
|
22061
|
+
# @option opts [String] :password
|
22062
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
22063
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
22064
|
+
def post_convert_workbook_to_csv_with_http_info(file, opts = {})
|
22065
|
+
if @api_client.config.debugging
|
22066
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_csv ..."
|
22067
|
+
end
|
22068
|
+
@api_client.request_token_if_needed
|
22069
|
+
# verify the required parameter 'file' is set
|
22070
|
+
if @api_client.config.client_side_validation && file.nil?
|
22071
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_csv"
|
22072
|
+
end
|
22073
|
+
# resource path
|
22074
|
+
local_var_path = "/cells/convert/csv"
|
22075
|
+
|
22076
|
+
# query parameters
|
22077
|
+
query_params = {}
|
22078
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
22079
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
22080
|
+
|
22081
|
+
# header parameters
|
22082
|
+
header_params = {}
|
22083
|
+
# HTTP header 'Accept' (if needed)
|
22084
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
22085
|
+
# HTTP header 'Content-Type'
|
22086
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
22087
|
+
|
22088
|
+
# form parameters
|
22089
|
+
form_params = {}
|
22090
|
+
|
22091
|
+
# http body (model)
|
22092
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
22093
|
+
post_body =''
|
22094
|
+
form_params['file'] = file
|
22095
|
+
#auth_names = []
|
22096
|
+
auth_names = ['JWT']
|
22097
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
22098
|
+
:header_params => header_params,
|
22099
|
+
:query_params => query_params,
|
22100
|
+
:form_params => form_params,
|
22101
|
+
:body => post_body,
|
22102
|
+
:auth_names => auth_names,
|
22103
|
+
:return_type => 'FileInfo')
|
22104
|
+
if @api_client.config.debugging
|
22105
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
22106
|
+
end
|
22107
|
+
return data, status_code, headers
|
22108
|
+
end
|
22109
|
+
|
21137
22110
|
# Check if storage exists
|
21138
22111
|
#
|
21139
22112
|
# @param storage_name Storage name
|