Skip to content

Commit 9bf2249

Browse files
committed
Release Aspose.Cells Cloud SDK 24.11.0
1 parent 397cb46 commit 9bf2249

File tree

160 files changed

+405
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+405
-9
lines changed

Aspose.Cells.Cloud.SDK.Test/Api/CellsStatusControllerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void TestGetCellsCloudServicesHealthCheck()
5252
var request = new GetCellsCloudServicesHealthCheckRequest(
5353
);
5454
var actual = this.CellsApi.GetCellsCloudServicesHealthCheck(request);
55-
Assert.AreEqual("{\"Status\":\"Cells Cloud(v24.9.0) is working fine!\"}", actual);
55+
Assert.AreEqual("{\"Status\":\"Cells Cloud(v24.11.0) is working fine!\"}", actual);
5656
}
5757

5858
/// <summary>

Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public string GetLocalFilePath(string filename)
112112
int pos = localFolder.IndexOf("bin");
113113
if(pos >0)
114114
{
115-
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../","TestData");
115+
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../","TestData/CellsCloud");
116116
}
117117
}
118118

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6254,6 +6254,29 @@ public async Task< FileInfo > PostRemoveCharactersAsync(PostRemoveCharactersR
62546254

62556255

62566256

6257+
/// <summary>
6258+
/// </summary>
6259+
/// <param name="request">Request. <see cref="PostConvertTextRequest" /></param>
6260+
public FileInfo PostConvertText(PostConvertTextRequest request)
6261+
{
6262+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6263+
var result = invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
6264+
return result;
6265+
}
6266+
6267+
/// <summary>
6268+
/// async/await syntax calling method
6269+
/// </summary>
6270+
6271+
public async Task< FileInfo > PostConvertTextAsync(PostConvertTextRequest request)
6272+
{
6273+
requestHandlers.ForEach(p => p.ProcessUrl(""));
6274+
var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
6275+
return result;
6276+
}
6277+
6278+
6279+
62576280
/// <summary>
62586281
/// Retrieve the description of the default style for the workbook .
62596282
/// </summary>

Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<RepositoryType>GitHub</RepositoryType>
1818
<Copyright>MIT</Copyright>
1919
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
20-
<AssemblyVersion>24.10</AssemblyVersion>
21-
<FileVersion>24.10</FileVersion>
22-
<Version>24.10</Version>
20+
<AssemblyVersion>24.11</AssemblyVersion>
21+
<FileVersion>24.11</FileVersion>
22+
<Version>24.11</Version>
2323
<PackageReadmeFile>README.md</PackageReadmeFile>
2424

2525
</PropertyGroup>

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, "24.10");
53+
this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.11");
5454
this.requestHandlers = requestHandlers;
5555
}
5656

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="ConvertTextOptions.cs">
3+
// Copyright (c) 2024 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+
///
39+
/// </summary>
40+
public class ConvertTextOptions : BaseOperateOptions
41+
{
42+
/// <summary>
43+
///
44+
/// </summary>
45+
public override string Name { get; set; }
46+
47+
/// <summary>
48+
///
49+
/// </summary>
50+
public virtual DataSource DataSource { get; set; }
51+
52+
/// <summary>
53+
///
54+
/// </summary>
55+
public virtual FileInfo FileInfo { get; set; }
56+
57+
/// <summary>
58+
///
59+
/// </summary>
60+
public virtual string Worksheet { get; set; }
61+
62+
/// <summary>
63+
///
64+
/// </summary>
65+
public virtual string Range { get; set; }
66+
67+
/// <summary>
68+
/// Gets or sets ConvertTextType.
69+
/// </summary>
70+
public virtual string ConvertTextType { get; set; }
71+
72+
/// <summary>
73+
/// Gets or sets SourceCharacters.
74+
/// </summary>
75+
public virtual string SourceCharacters { get; set; }
76+
77+
/// <summary>
78+
/// Gets or sets TargetCharacters.
79+
/// </summary>
80+
public virtual string TargetCharacters { get; set; }
81+
82+
/// <summary>
83+
/// Get the string presentation of the object.
84+
/// </summary>
85+
/// <returns>String presentation of the object.</returns>
86+
public override string ToString()
87+
{
88+
var sb = new StringBuilder();
89+
sb.Append("class ConvertTextOptions {\n");
90+
sb.Append(" Name: ").Append(this.Name).Append("\n");
91+
sb.Append(" DataSource: ").Append(this.DataSource).Append("\n");
92+
sb.Append(" FileInfo: ").Append(this.FileInfo).Append("\n");
93+
sb.Append(" Worksheet: ").Append(this.Worksheet).Append("\n");
94+
sb.Append(" Range: ").Append(this.Range).Append("\n");
95+
sb.Append(" ConvertTextType: ").Append(this.ConvertTextType).Append("\n");
96+
sb.Append(" SourceCharacters: ").Append(this.SourceCharacters).Append("\n");
97+
sb.Append(" TargetCharacters: ").Append(this.TargetCharacters).Append("\n");
98+
sb.Append("}\n");
99+
return sb.ToString();
100+
}
101+
}
102+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="ConvertTextType.cs">
3+
// Copyright (c) 2024 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+
/// ConvertTextType.
39+
/// </summary>
40+
[JsonConverter(typeof(StringEnumConverter))]
41+
public enum ConvertTextType
42+
{
43+
}
44+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="PostConvertTextRequest.cs">
3+
// Copyright (c) 2024 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.Request
27+
{
28+
using Aspose.Cells.Cloud.SDK.Model;
29+
using Newtonsoft.Json;
30+
using System.Collections.Generic;
31+
using System.Net;
32+
using System.Text.RegularExpressions;
33+
34+
/// <summary>
35+
/// Request model for <see cref="Aspose.Cells.Cloud.SDK.Api.CellsApi.PostConvertText" /> operation.
36+
/// </summary>
37+
public class PostConvertTextRequest : IRequestModel
38+
{
39+
/// <summary>
40+
/// Initializes a new instance of the <see cref="PostConvertTextRequest"/> class.
41+
/// </summary>
42+
public PostConvertTextRequest()
43+
{
44+
45+
}
46+
47+
/// <summary>
48+
/// Initializes a new instance of the <see cref="PostConvertTextRequest"/> class.
49+
/// </summary>
50+
/// <param name="convertTextOptions"></param>
51+
public PostConvertTextRequest(ConvertTextOptions convertTextOptions)
52+
{
53+
this.convertTextOptions = convertTextOptions;
54+
}
55+
56+
/// <summary>
57+
/// Gets or sets convertTextOptions.
58+
/// </summary>
59+
public ConvertTextOptions convertTextOptions { get; set; }
60+
61+
62+
/// <summary>
63+
/// Gets or sets extendQueryParameterMap.
64+
/// </summary>
65+
public IDictionary<string, string> extendQueryParameterMap ;
66+
67+
/// <summary>
68+
/// Creates the http request based on this request.
69+
/// </summary>
70+
/// <param name="baseUri">Api base uri.</param>
71+
/// <returns>The http request instance.</returns>
72+
public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, string> defaultHeaderMap, List<Invoker.IRequestHandler> requestHandlers)
73+
{
74+
var localVarHeaderParams = new Dictionary<string, string>();
75+
var localVarFileParams = new Dictionary<string, object>();
76+
string localVarPostBody ="";
77+
string localVarHttpContentType = "application/json";
78+
// verify the required parameter 'convertTextOptions' is set
79+
if ( this.convertTextOptions == null)
80+
{
81+
throw new ApiException(400, "Missing required parameter 'convertTextOptions' when calling PostConvertText");
82+
}
83+
84+
var path = baseUri + "/cells/converttext";
85+
path = Regex
86+
.Replace(path, "\\*", string.Empty)
87+
.Replace("&amp;", "&")
88+
.Replace("/?", "?");
89+
90+
if (this.extendQueryParameterMap != null)
91+
{
92+
foreach (KeyValuePair<string, string> kvp in extendQueryParameterMap)
93+
{
94+
path = UrlHelper.AddQueryParameterToUrl(path, kvp.Key, kvp.Value);
95+
}
96+
}
97+
98+
localVarPostBody = ( this.convertTextOptions != null ? JsonConvert.SerializeObject(this.convertTextOptions) : null);
99+
return UrlHelper.PrepareRequest(path, "POST", localVarFileParams, localVarHeaderParams, localVarPostBody, localVarHttpContentType, defaultHeaderMap, requestHandlers);
100+
}
101+
}
102+
}

README.md

Lines changed: 7 additions & 3 deletions

0 commit comments

Comments
 (0)