Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Jul 9, 2020
1 parent 59365d7 commit 0f674c5
Show file tree
Hide file tree
Showing 8 changed files with 332 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ source 'https://rubygems.org'
gemspec

group :development, :test do
gem 'rake', '~> 12.0.0'
gem "rake", ">= 12.3.3"
end
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ This Cloud SDK enhances your Ruby cloud-based apps to [process & manipulate Micr
- Cloud SDK to Read & Process Excel Worksheets.
- Leverage the Power of Pivot Tables & Ranges.

## Feature & Enhancements in Version 20.4
## Feature & Enhancements in Version 20.6

- Support to export area or page of sheet to JPEG.
- Support to add background for workbook.
- Enhancement for splitting workbook.
- Enhancement for create workbook.
- Support to add text water marker.
- Enhancement for Cells object operating in Task API.
- Enhancement for workbook convert images in get workbook API.

## Read & Write Spreadsheet Formats

Expand Down
12 changes: 12 additions & 0 deletions docs/TextWaterMarkerRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AsposeCellsCloud::TextWaterMarkerRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**text** | **String** | water marker. | [optional]
**font_name** | **String** | font name. | [optional]
**font_size** | **Integer** | font size. | [optional]
**height** | **Integer** | height. | [optional]
**width** | **Integer** | width. | [optional]


1 change: 1 addition & 0 deletions lib/aspose_cells_cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
require 'aspose_cells_cloud/models/task_data'
require 'aspose_cells_cloud/models/task_description'
require 'aspose_cells_cloud/models/task_parameter'
require 'aspose_cells_cloud/models/text_water_marker_request'
require 'aspose_cells_cloud/models/texture_fill'
require 'aspose_cells_cloud/models/theme_color'
require 'aspose_cells_cloud/models/tile_pic_option'
Expand Down
76 changes: 72 additions & 4 deletions lib/aspose_cells_cloud/api/cells_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15020,8 +15020,8 @@ def cells_workbook_put_convert_workbook_with_http_info(workbook, opts = {})
form_params = {}

# http body (model)
# header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
post_body = workbook
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
post_body =workbook
#auth_names = []
auth_names = ['JWT']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
Expand Down Expand Up @@ -15243,6 +15243,71 @@ def cells_workbook_put_workbook_create_with_http_info(name, opts = {})
return data, status_code, headers
end

# Set workbook background image.
#
# @param name
# @param [Hash] opts the optional parameters
# @option opts [String] :folder
# @option opts [String] :storage storage name.
# @option opts [TextWaterMarkerRequest] :text_water_marker_request The text water marker request.
# @return [CellsCloudResponse]
def cells_workbook_put_workbook_water_marker(name, opts = {})
data, _status_code, _headers = cells_workbook_put_workbook_water_marker_with_http_info(name, opts)
return data
end

# Set workbook background image.
#
# @param name
# @param [Hash] opts the optional parameters
# @option opts [String] :folder
# @option opts [String] :storage storage name.
# @option opts [TextWaterMarkerRequest] :text_water_marker_request The text water marker request.
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
def cells_workbook_put_workbook_water_marker_with_http_info(name, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: CellsApi.cells_workbook_put_workbook_water_marker ..."
end
@api_client.request_token_if_needed
# verify the required parameter 'name' is set
if @api_client.config.client_side_validation && name.nil?
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_workbook_put_workbook_water_marker"
end
# resource path
local_var_path = "/cells/{name}/watermarker".sub('{' + 'name' + '}', name.to_s)

# query parameters
query_params = {}
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
query_params[:'storage'] = opts[:'storage'] if !opts[:'storage'].nil?

# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

# form parameters
form_params = {}

# http body (model)
post_body = @api_client.object_to_http_body(opts[:'text_water_marker_request'])
#auth_names = []
auth_names = ['JWT']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'CellsCloudResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: CellsApi#cells_workbook_put_workbook_water_marker\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# Delete worksheet validation by index.
#
# @param name Document name.
Expand Down Expand Up @@ -18960,6 +19025,8 @@ def o_auth_post_with_http_info(grant_type, client_id, client_secret, opts = {})

# http body (model)
post_body = nil
post_body = nil
post_body = nil
#auth_names = []
auth_names = ['JWT']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
Expand Down Expand Up @@ -19140,12 +19207,13 @@ def upload_file_with_http_info(path, file, opts = {})
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
# HTTP header 'Content-Type'
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])

# form parameters
form_params = {}

# http body (model)
post_body = file
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
post_body =file
#auth_names = []
auth_names = ['JWT']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
Expand Down
4 changes: 2 additions & 2 deletions lib/aspose_cells_cloud/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def build_request(http_method, path, opts = {})

add_o_auth_token(req_opts)


conn = Faraday.new url, {:params => query_params, :headers => header_params} do |f|
f.request :multipart
f.request :url_encoded
Expand All @@ -143,7 +144,7 @@ def build_request(http_method, path, opts = {})
case http_method
when :post
return conn.post url, req_opts[:body]
when :put
when :put
return conn.put url, req_opts[:body]
when :get
return conn.get url, req_opts[:body]
Expand Down Expand Up @@ -415,7 +416,6 @@ def build_collection_param(param, collection_format)

# Request access and refresh tokens if needed
def request_token_if_needed

# check token exists
if @config.access_token
now = Time.now
Expand Down
Loading

0 comments on commit 0f674c5

Please sign in to comment.