Skip to content

Commit e379b72

Browse files
committed
ISSUE-CELLSCLOUD-13479: Develop Aspose.Cells Cloud SDK for Net.
1 parent 84b527f commit e379b72

20 files changed

+2054
-144
lines changed

Aspose.Cells.Cloud.SDK/Api/CellsApi.cs

Lines changed: 273 additions & 25 deletions
Large diffs are not rendered by default.

Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ internal class ApiInvoker
5050
internal ApiInvoker(List<IRequestHandler> requestHandlers)
5151
{
5252
this.AddDefaultHeader(AsposeClientHeaderName, ".net sdk");
53-
this.AddDefaultHeader(AsposeClientVersionHeaderName, "25.9");
53+
this.AddDefaultHeader(AsposeClientVersionHeaderName, "25.10");
5454
this.requestHandlers = requestHandlers;
5555
}
5656

Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Aspose.Cells.Cloud.SDK.Model
3535
using Newtonsoft.Json.Converters;
3636

3737
/// <summary>
38-
///
38+
/// ExtractTextType.
3939
/// </summary>
4040
[JsonConverter(typeof(StringEnumConverter))]
4141
public enum ExtractTextType
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="PositionOptionsType.cs">
3+
// Copyright (c) 2025 Aspose.Cells Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using System.Drawing;
34+
using Newtonsoft.Json;
35+
using Newtonsoft.Json.Converters;
36+
37+
/// <summary>
38+
/// PositionOptionsType.
39+
/// </summary>
40+
[JsonConverter(typeof(StringEnumConverter))]
41+
public enum PositionOptionsType
42+
{
43+
}
44+
}

Aspose.Cells.Cloud.SDK/Model/RemoveCharactersByPosition.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,27 @@ namespace Aspose.Cells.Cloud.SDK.Model
3535
using Newtonsoft.Json.Converters;
3636

3737
/// <summary>
38-
/// Class summary: Important features to consider when designing a new website include user-friendly navigation, responsive design for different devices, visually appealing layouts, and fast loading speed.
39-
///
38+
/// RemoveCharactersByPosition.
4039
/// </summary>
4140
public class RemoveCharactersByPosition
4241
{
4342
/// <summary>
44-
/// This property allows access to a public integer named "TheFirstNCharacters" for getting and setting its value.
43+
/// Gets or sets TheFirstNCharacters.
4544
/// </summary>
4645
public virtual int? TheFirstNCharacters { get; set; }
4746

4847
/// <summary>
49-
///
48+
/// Gets or sets TheLastNCharacters.
5049
/// </summary>
5150
public virtual int? TheLastNCharacters { get; set; }
5251

5352
/// <summary>
54-
///
53+
/// Gets or sets AllCharactersBeforeText.
5554
/// </summary>
5655
public virtual string AllCharactersBeforeText { get; set; }
5756

5857
/// <summary>
59-
///
58+
/// Gets or sets AllCharactersAfterText.
6059
/// </summary>
6160
public virtual string AllCharactersAfterText { get; set; }
6261

Aspose.Cells.Cloud.SDK/Model/SplitType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Aspose.Cells.Cloud.SDK.Model
3535
using Newtonsoft.Json.Converters;
3636

3737
/// <summary>
38-
///
38+
/// SplitType.
3939
/// </summary>
4040
[JsonConverter(typeof(StringEnumConverter))]
4141
public enum SplitType

Aspose.Cells.Cloud.SDK/Model/WordCaseType.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ namespace Aspose.Cells.Cloud.SDK.Model
3535
using Newtonsoft.Json.Converters;
3636

3737
/// <summary>
38-
/// Defines the types of word case transformations.
39-
///
38+
/// WordCaseType.
4039
/// </summary>
4140
[JsonConverter(typeof(StringEnumConverter))]
4241
public enum WordCaseType

Aspose.Cells.Cloud.SDK/Request/TrimSpreadsheetContentRequest.cs renamed to Aspose.Cells.Cloud.SDK/Request/AddTextRequest.cs

Lines changed: 57 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright company="Aspose" file="TrimSpreadsheetContentRequest.cs">
2+
// <copyright company="Aspose" file="AddTextRequest.cs">
33
// Copyright (c) 2025 Aspose.Cells Cloud
44
// </copyright>
55
// <summary>
@@ -32,43 +32,41 @@ namespace Aspose.Cells.Cloud.SDK.Request
3232
using System.Text.RegularExpressions;
3333

3434
/// <summary>
35-
/// Request model for <see cref="Aspose.Cells.Cloud.SDK.Api.CellsApi.TrimSpreadsheetContent" /> operation.
35+
/// Request model for <see cref="Aspose.Cells.Cloud.SDK.Api.CellsApi.AddText" /> operation.
3636
/// </summary>
37-
public class TrimSpreadsheetContentRequest : IRequestModel
37+
public class AddTextRequest : IRequestModel
3838
{
3939

4040
/// <summary>
41-
/// Initializes a new instance of the <see cref="TrimSpreadsheetContentRequest"/> class.
41+
/// Initializes a new instance of the <see cref="AddTextRequest"/> class.
4242
/// </summary>
43-
public TrimSpreadsheetContentRequest()
43+
public AddTextRequest()
4444
{
4545

4646
}
4747
/// <summary>
48-
/// Initializes a new instance of the <see cref="TrimSpreadsheetContentRequest"/> class.
48+
/// Initializes a new instance of the <see cref="AddTextRequest"/> class.
4949
/// </summary>
5050
/// <param name="spreadsheet">Upload spreadsheet file.</param>
51-
/// <param name="trimContent"></param>
52-
/// <param name="trimLeading"></param>
53-
/// <param name="trimTrailing"></param>
54-
/// <param name="trimSpaceBetweenWordTo1"></param>
55-
/// <param name="trimNonBreakingSpaces"></param>
56-
/// <param name="removeExtraLineBreaks"></param>
57-
/// <param name="removeAllLineBreaks"></param>
51+
/// <param name="text"></param>
52+
/// <param name="position"></param>
53+
/// <param name="selectText"></param>
54+
/// <param name="skipEmptyCells"></param>
55+
/// <param name="worksheet"></param>
56+
/// <param name="range"></param>
5857
/// <param name="outPath">(Optional) The folder path where the workbook is stored. The default is null.</param>
5958
/// <param name="outStorageName">Output file Storage Name.</param>
6059
/// <param name="region">The spreadsheet region setting.</param>
6160
/// <param name="password">The password for opening spreadsheet file.</param>
62-
public TrimSpreadsheetContentRequest(string spreadsheet, string trimContent = null, bool? trimLeading = null, bool? trimTrailing = null, bool? trimSpaceBetweenWordTo1 = null, bool? trimNonBreakingSpaces = null, bool? removeExtraLineBreaks = null, bool? removeAllLineBreaks = null, string outPath = null, string outStorageName = null, string region = null, string password = null)
61+
public AddTextRequest(string spreadsheet, string text, string position, string selectText, bool? skipEmptyCells = null, string worksheet = null, string range = null, string outPath = null, string outStorageName = null, string region = null, string password = null)
6362
{
6463
this.Spreadsheet = spreadsheet;
65-
this.trimContent = trimContent;
66-
this.trimLeading = trimLeading;
67-
this.trimTrailing = trimTrailing;
68-
this.trimSpaceBetweenWordTo1 = trimSpaceBetweenWordTo1;
69-
this.trimNonBreakingSpaces = trimNonBreakingSpaces;
70-
this.removeExtraLineBreaks = removeExtraLineBreaks;
71-
this.removeAllLineBreaks = removeAllLineBreaks;
64+
this.text = text;
65+
this.position = position;
66+
this.selectText = selectText;
67+
this.skipEmptyCells = skipEmptyCells;
68+
this.worksheet = worksheet;
69+
this.range = range;
7270
this.outPath = outPath;
7371
this.outStorageName = outStorageName;
7472
this.region = region;
@@ -82,45 +80,39 @@ public TrimSpreadsheetContentRequest(string spreadsheet, string trimContent =
8280

8381

8482
/// <summary>
85-
/// Gets or sets trimContent.
83+
/// Gets or sets text.
8684
/// </summary>
87-
public string trimContent { get; set; }
85+
public string text { get; set; }
8886

8987

9088
/// <summary>
91-
/// Gets or sets trimLeading.
89+
/// Gets or sets position.
9290
/// </summary>
93-
public bool? trimLeading { get; set; }
91+
public string position { get; set; }
9492

9593

9694
/// <summary>
97-
/// Gets or sets trimTrailing.
95+
/// Gets or sets selectText.
9896
/// </summary>
99-
public bool? trimTrailing { get; set; }
97+
public string selectText { get; set; }
10098

10199

102100
/// <summary>
103-
/// Gets or sets trimSpaceBetweenWordTo1.
101+
/// Gets or sets skipEmptyCells.
104102
/// </summary>
105-
public bool? trimSpaceBetweenWordTo1 { get; set; }
103+
public bool? skipEmptyCells { get; set; }
106104

107105

108106
/// <summary>
109-
/// Gets or sets trimNonBreakingSpaces.
107+
/// Gets or sets worksheet.
110108
/// </summary>
111-
public bool? trimNonBreakingSpaces { get; set; }
109+
public string worksheet { get; set; }
112110

113111

114112
/// <summary>
115-
/// Gets or sets removeExtraLineBreaks.
113+
/// Gets or sets range.
116114
/// </summary>
117-
public bool? removeExtraLineBreaks { get; set; }
118-
119-
120-
/// <summary>
121-
/// Gets or sets removeAllLineBreaks.
122-
/// </summary>
123-
public bool? removeAllLineBreaks { get; set; }
115+
public string range { get; set; }
124116

125117

126118
/// <summary>
@@ -166,22 +158,39 @@ public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, strin
166158
// verify the required parameter 'spreadsheet' is set
167159
if ( string.IsNullOrEmpty(this.Spreadsheet) )
168160
{
169-
throw new ApiException(400, "Missing required parameter 'spreadsheet' when calling TrimSpreadsheetContent");
161+
throw new ApiException(400, "Missing required parameter 'spreadsheet' when calling AddText");
162+
}
163+
164+
// verify the required parameter 'text' is set
165+
if (string.IsNullOrEmpty (this.text ))
166+
{
167+
throw new ApiException(400, "Missing required parameter 'text' when calling AddText");
168+
}
169+
170+
// verify the required parameter 'position' is set
171+
if (string.IsNullOrEmpty (this.position ))
172+
{
173+
throw new ApiException(400, "Missing required parameter 'position' when calling AddText");
174+
}
175+
176+
// verify the required parameter 'selectText' is set
177+
if (string.IsNullOrEmpty (this.selectText ))
178+
{
179+
throw new ApiException(400, "Missing required parameter 'selectText' when calling AddText");
170180
}
171181

172-
var path = baseUri + "/cells/content/trim";
182+
var path = baseUri + "/cells/content/add/text";
173183
path = Regex
174184
.Replace(path, "\\*", string.Empty)
175185
.Replace("&amp;", "&")
176186
.Replace("/?", "?");
177187

178-
if (!string.IsNullOrEmpty(this.trimContent)) path = UrlHelper.AddQueryParameterToUrl(path, "trimContent", this.trimContent);
179-
if(this.trimLeading != null) path = UrlHelper.AddQueryParameterToUrl(path, "trimLeading", this.trimLeading);
180-
if(this.trimTrailing != null) path = UrlHelper.AddQueryParameterToUrl(path, "trimTrailing", this.trimTrailing);
181-
if(this.trimSpaceBetweenWordTo1 != null) path = UrlHelper.AddQueryParameterToUrl(path, "trimSpaceBetweenWordTo1", this.trimSpaceBetweenWordTo1);
182-
if(this.trimNonBreakingSpaces != null) path = UrlHelper.AddQueryParameterToUrl(path, "trimNonBreakingSpaces", this.trimNonBreakingSpaces);
183-
if(this.removeExtraLineBreaks != null) path = UrlHelper.AddQueryParameterToUrl(path, "removeExtraLineBreaks", this.removeExtraLineBreaks);
184-
if(this.removeAllLineBreaks != null) path = UrlHelper.AddQueryParameterToUrl(path, "removeAllLineBreaks", this.removeAllLineBreaks);
188+
path = UrlHelper.AddQueryParameterToUrl(path, "text", this.text);
189+
path = UrlHelper.AddQueryParameterToUrl(path, "position", this.position);
190+
path = UrlHelper.AddQueryParameterToUrl(path, "selectText", this.selectText);
191+
if(this.skipEmptyCells != null) path = UrlHelper.AddQueryParameterToUrl(path, "skipEmptyCells", this.skipEmptyCells);
192+
if (!string.IsNullOrEmpty(this.worksheet)) path = UrlHelper.AddQueryParameterToUrl(path, "worksheet", this.worksheet);
193+
if (!string.IsNullOrEmpty(this.range)) path = UrlHelper.AddQueryParameterToUrl(path, "range", this.range);
185194
if (!string.IsNullOrEmpty(this.outPath)) path = UrlHelper.AddQueryParameterToUrl(path, "outPath", this.outPath);
186195
if (!string.IsNullOrEmpty(this.outStorageName)) path = UrlHelper.AddQueryParameterToUrl(path, "outStorageName", this.outStorageName);
187196
if (!string.IsNullOrEmpty(this.region)) path = UrlHelper.AddQueryParameterToUrl(path, "region", this.region);

0 commit comments

Comments
 (0)