Skip to content

Commit dd0198a

Browse files
committed
Release Aspose.Cells Cloud 24.9.
1 parent 0d45a32 commit dd0198a

29 files changed

+450
-122
lines changed

Examples/example_PostTrimContent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func main() {
2626
trimContentOptionsScopeOptions.Scope = "EntireWorkbook"
2727
var trimContentOptions = new(TrimContentOptions)
2828
trimContentOptions.DataSource = trimContentOptionsDataSource
29-
trimContentOptions.TrimLeading = true.
29+
trimContentOptions.TrimLeading = true
3030
trimContentOptions.TrimTrailing = true
3131
trimContentOptions.TrimSpaceBetweenWordTo1 = true
3232
trimContentOptions.RemoveAllLineBreaks = true
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package main
2+
3+
import (
4+
"os"
5+
6+
asposecellscloud "github.com/aspose-cells-cloud/aspose-cells-cloud-go"
7+
)
8+
func main() {
9+
instance := asposecellscloud.NewCellsApiService(os.Getenv("ProductClientId"), os.Getenv("ProductClientSecret"), "https://api.aspose.cloud", "v3.0")
10+
remoteFolder := "TestData/In"
11+
12+
localName := "BookText.xlsx"
13+
remoteName := "BookText.xlsx"
14+
15+
localNameRequest := new(asposecellscloud.UploadFileRequest)
16+
localNameRequest.UploadFiles = make(map[string]string)
17+
localNameRequest.UploadFiles[localName] = localName
18+
localNameRequest.Path = remoteFolder + "/" + remoteName
19+
localNameRequest.StorageName =""
20+
instance.UploadFile(localNameRequest )
21+
22+
var wordCaseOptionsDataSource = new(DataSource)
23+
wordCaseOptionsDataSource.DataSourceType = "CloudFileSystem"
24+
wordCaseOptionsDataSource.DataPath = "BookText.xlsx"
25+
var wordCaseOptionsScopeOptions = new(ScopeOptions)
26+
wordCaseOptionsScopeOptions.Scope = "EntireWorkbook"
27+
var wordCaseOptions = new(WordCaseOptions)
28+
wordCaseOptions.DataSource = wordCaseOptionsDataSource
29+
wordCaseOptions.WordCaseType = "None"
30+
wordCaseOptions.ScopeOptions = wordCaseOptionsScopeOptions
31+
32+
request := new (asposecellscloud.PostUpdateWordCaseRequest)
33+
request.WordCaseOptions = wordCaseOptions
34+
_, httpResponse, err := instance.PostUpdateWordCase(request)
35+
if err != nil {
36+
t.Error(err)
37+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
38+
t.Fail()
39+
}
40+
}

Examples/example_postworkbookdatadeduplication.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ func main() {
1919
localNameRequest.StorageName =""
2020
instance.UploadFile(localNameRequest )
2121

22+
var deduplicationRegionRanges = []Range {}
2223
var deduplicationRegion = new(DeduplicationRegion)
23-
24+
deduplicationRegion.Ranges = deduplicationRegionRanges
2425

2526
request := new (asposecellscloud.PostWorkbookDataDeduplicationRequest)
2627
request.Name = remoteName

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ Enhance your Go applications with the [Aspose.Cells Cloud](https://products.aspo
2121

2222
## There are major problems with v24.5.0 and it does not work properly, please use v24.5.1.
2323

24-
## Feature & Enhancements in Version 24.7
24+
## Feature & Enhancements in Version 24.9
2525

2626
Full list of issues covering all changes in this release:
2727

28-
- Add text trim feature on Cells Cloud Services.
28+
- Add word case function for TextProcessingController.
29+
- Support to export Worksheet to HTML with cell address or id.
2930

3031
## Support file format
3132

@@ -118,6 +119,10 @@ To get started with Aspose.Cells Cloud for Go, follow these steps:
118119

119120
# Release history version
120121

122+
## Feature & Enhancements in Version 24.8
123+
124+
- Add text trim feature on Cells Cloud Services.
125+
121126
## Feature & Enhancements in Version 24.7
122127

123128
- Add Text Trim feature on Cells Cloud Services.

api/swagger.yaml

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
swagger: "2.0"
33
info:
4-
version: "24.8"
4+
version: "24.9"
55
title: "Aspose.Cells Cloud APIs."
66
host: "api.aspose.cloud"
77
basePath: "/v3.0"
@@ -5116,6 +5116,20 @@ paths:
51165116
type: "boolean"
51175117
x-nullable: true
51185118
x-exportParamName: "pageTallFitOnPerSheet"
5119+
- name: "sheetname"
5120+
in: "Query"
5121+
description: ""
5122+
required: false
5123+
type: "string"
5124+
x-nullable: true
5125+
x-exportParamName: "sheetName"
5126+
- name: "pageindex"
5127+
in: "Query"
5128+
description: ""
5129+
required: false
5130+
type: "integer"
5131+
x-nullable: true
5132+
x-exportParamName: "pageIndex"
51195133
/cells/{name}/SaveAs:
51205134
post:
51215135
tags:
@@ -12011,6 +12025,20 @@ paths:
1201112025
type: "class:trimcontentoptions"
1201212026
x-nullable: true
1201312027
x-exportParamName: "trimContentOptions"
12028+
/cells/updatewordcase:
12029+
post:
12030+
tags:
12031+
- "Cells"
12032+
summary: ""
12033+
operationId: "PostUpdateWordCase"
12034+
parameters:
12035+
- name: "wordcaseoptions"
12036+
in: "Body"
12037+
description: ""
12038+
required: true
12039+
type: "class:wordcaseoptions"
12040+
x-nullable: true
12041+
x-exportParamName: "wordCaseOptions"
1201412042
/cells/{name}/defaultstyle:
1201512043
get:
1201612044
tags:
@@ -12830,6 +12858,13 @@ paths:
1283012858
type: "string"
1283112859
x-nullable: true
1283212860
x-exportParamName: "picPath"
12861+
- name: "imageadaptoption"
12862+
in: "Query"
12863+
description: ""
12864+
required: false
12865+
type: "string"
12866+
x-nullable: true
12867+
x-exportParamName: "imageAdaptOption"
1283312868
- name: "folder"
1283412869
in: "Query"
1283512870
description: "The folder where the file is situated."
@@ -14202,6 +14237,13 @@ paths:
1420214237
type: "string"
1420314238
x-nullable: true
1420414239
x-exportParamName: "picPath"
14240+
- name: "imageadaptoption"
14241+
in: "Query"
14242+
description: ""
14243+
required: false
14244+
type: "string"
14245+
x-nullable: true
14246+
x-exportParamName: "imageAdaptOption"
1420514247
- name: "folder"
1420614248
in: "Query"
1420714249
description: "The folder where the file is situated."
@@ -16495,6 +16537,12 @@ definitions:
1649516537
IconSetType:
1649616538
type: "string"
1649716539
description: "Get or Set the icon set type to display. Setting the type will auto check if the current Cfvos's count is accord with the new type. If not accord, old Cfvos will be cleaned and default Cfvos will be added. "
16540+
ImageAdaptOptions:
16541+
allOf:
16542+
- type: "object"
16543+
16544+
properties:
16545+
1649816546
Link:
1649916547
type: "object"
1650016548
properties:
@@ -18641,10 +18689,10 @@ definitions:
1864118689
description: ""
1864218690
HiddenColDisplayType:
1864318691
type: "string"
18644-
description: "Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden""
18692+
description: "Hidden column(the width of this column is 0) in excel,before save this into html format, if HtmlHiddenColDisplayType is "Remove",the hidden column would ont been output, if the value is "Hidden", the column would been output,but was hidden,the default value is "Hidden""
1864518693
HiddenRowDisplayType:
1864618694
type: "string"
18647-
description: "Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden""
18695+
description: "Hidden row(the height of this row is 0) in excel,before save this into html format, if HtmlHiddenRowDisplayType is "Remove",the hidden row would ont been output, if the value is "Hidden", the row would been output,but was hidden,the default value is "Hidden""
1864818696
HtmlCrossStringType:
1864918697
type: "string"
1865018698
description: "Indicates if a cross-cell string will be displayed in the same way as MS Excel when saving an Excel file in html format. By default the value is Default, so, for cross-cell strings, there is little difference between the html files created by Aspose.Cells and MS Excel. But the performance for creating large html files,setting the value to Cross would be several times faster than setting it to Default or Fit2Cell."
@@ -18657,6 +18705,9 @@ definitions:
1865718705
ParseHtmlTagInCell:
1865818706
type: "boolean"
1865918707
description: "Parse html tag in cell,like ,as cell value,or as html tag,default is true"
18708+
CellNameAttribute:
18709+
type: "string"
18710+
description: ""
1866018711
SaveFormat:
1866118712
type: "string"
1866218713
description: ""
@@ -21353,6 +21404,9 @@ definitions:
2135321404
ProtectCurrentSheet:
2135421405
type: "class:protection"
2135521406
description: "Represents the various types of protection options available for a worksheet. "
21407+
ProtectAllSheets:
21408+
type: "class:protection"
21409+
description: "Represents the various types of protection options available for all worksheets. "
2135621410
ProtectWorkbookStructure:
2135721411
type: "string"
2135821412
description: "Indicates protect workbook structure. All, Contents, Objects, Scenarios, Structure, Windows, and None."
@@ -21440,6 +21494,9 @@ definitions:
2144021494
Width:
2144121495
type: "integer"
2144221496
description: "Indicates image width."
21497+
ImageAdaptOption:
21498+
type: "string"
21499+
description: ""
2144321500
WorkbookEncryptionRequest:
2144421501
type: "object"
2144521502
properties:
@@ -22217,6 +22274,27 @@ definitions:
2221722274
ScopeOptions:
2221822275
type: "class:scopeoptions"
2221922276
description: ""
22277+
WordCaseOptions:
22278+
type: "object"
22279+
properties:
22280+
DataSource:
22281+
type: "class:datasource"
22282+
description: ""
22283+
FileInfo:
22284+
type: "class:fileinfo"
22285+
description: ""
22286+
WordCaseType:
22287+
type: "string"
22288+
description: ""
22289+
ScopeOptions:
22290+
type: "class:scopeoptions"
22291+
description: ""
22292+
WordCaseType:
22293+
allOf:
22294+
- type: "object"
22295+
22296+
properties:
22297+
2222022298
CellValue:
2222122299
type: "object"
2222222300
properties:

api_cells.go

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func Version() {
36-
fmt.Println("---Version: 24.8---")
36+
fmt.Println("---Version: 24.9---")
3737
}
3838

3939
func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiService {
@@ -7243,6 +7243,34 @@ func (a *CellsApiService) PostTrimContent(data *PostTrimContentRequest) ( FileI
72437243
}
72447244

72457245

7246+
func (a *CellsApiService) PostUpdateWordCase(data *PostUpdateWordCaseRequest) ( FileInfo, *http.Response, error) {
7247+
var (
7248+
localVarReturnValue FileInfo
7249+
7250+
)
7251+
7252+
r, err := data.CreateRequestData(a.client);
7253+
if err != nil {
7254+
return localVarReturnValue, nil, err
7255+
}
7256+
7257+
localVarHttpResponse, err := a.client.callAPI(r)
7258+
if err != nil || localVarHttpResponse == nil {
7259+
return localVarReturnValue, localVarHttpResponse, err
7260+
}
7261+
defer localVarHttpResponse.Body.Close()
7262+
if localVarHttpResponse.StatusCode >= 300 {
7263+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
7264+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
7265+
}
7266+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
7267+
return localVarReturnValue, localVarHttpResponse, err
7268+
}
7269+
7270+
return localVarReturnValue, localVarHttpResponse, err
7271+
}
7272+
7273+
72467274
func (a *CellsApiService) GetWorkbookDefaultStyle(data *GetWorkbookDefaultStyleRequest) ( StyleResponse, *http.Response, error) {
72477275
var (
72487276
localVarReturnValue StyleResponse

api_cells_dataprocessingcontroller_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ func TestDataProcessingController_PostWorkbookDataDeduplication(t *testing.T) {
5656
localNameRequest.StorageName =""
5757
GetBaseTest().CellsApi.UploadFile(localNameRequest )
5858

59+
var deduplicationRegionRanges = []Range {}
5960
var deduplicationRegion = new(DeduplicationRegion)
60-
61+
deduplicationRegion.Ranges = deduplicationRegionRanges
6162

6263
request := new (PostWorkbookDataDeduplicationRequest)
6364
request.Name = remoteName

api_cells_filecontroller_test.go

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -95,61 +95,3 @@ func TestFileController_CopyFile(t *testing.T) {
9595
}
9696
}
9797

98-
func TestFileController_MoveFile(t *testing.T) {
99-
remoteFolder := "TestData/In"
100-
101-
localName := "Book1.xlsx"
102-
remoteName := "Book1.xlsx"
103-
104-
localNameRequest := new(UploadFileRequest)
105-
localNameRequest.UploadFiles = make(map[string]string)
106-
localNameRequest.UploadFiles[localName] = GetBaseTest().localTestDataFolder + localName
107-
localNameRequest.Path = remoteFolder + "/" + remoteName
108-
localNameRequest.StorageName =""
109-
GetBaseTest().CellsApi.UploadFile(localNameRequest )
110-
111-
112-
request := new (MoveFileRequest)
113-
request.SrcPath = remoteFolder + "/" + remoteName
114-
request.DestPath = "OutResult/" + remoteName
115-
request.SrcStorageName = ""
116-
request.DestStorageName = ""
117-
request.VersionId = ""
118-
httpResponse, err := GetBaseTest().CellsApi.MoveFile(request)
119-
if err != nil {
120-
t.Error(err)
121-
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
122-
t.Fail()
123-
} else {
124-
fmt.Printf("%d\tTestFileController_MoveFile \n", GetBaseTest().GetTestNumber())
125-
}
126-
}
127-
128-
func TestFileController_DeleteFile(t *testing.T) {
129-
remoteFolder := "TestData/In"
130-
131-
localName := "Book1.xlsx"
132-
remoteName := "Book1.xlsx"
133-
134-
localNameRequest := new(UploadFileRequest)
135-
localNameRequest.UploadFiles = make(map[string]string)
136-
localNameRequest.UploadFiles[localName] = GetBaseTest().localTestDataFolder + localName
137-
localNameRequest.Path = remoteFolder + "/" + remoteName
138-
localNameRequest.StorageName =""
139-
GetBaseTest().CellsApi.UploadFile(localNameRequest )
140-
141-
142-
request := new (DeleteFileRequest)
143-
request.Path = remoteFolder + "/" + remoteName
144-
request.StorageName = ""
145-
request.VersionId = ""
146-
httpResponse, err := GetBaseTest().CellsApi.DeleteFile(request)
147-
if err != nil {
148-
t.Error(err)
149-
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
150-
t.Fail()
151-
} else {
152-
fmt.Printf("%d\tTestFileController_DeleteFile \n", GetBaseTest().GetTestNumber())
153-
}
154-
}
155-

0 commit comments

Comments
 (0)