Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 24.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianzhangd committed Nov 25, 2024
1 parent 397cb46 commit 9bf2249
Show file tree
Hide file tree
Showing 160 changed files with 405 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void TestGetCellsCloudServicesHealthCheck()
var request = new GetCellsCloudServicesHealthCheckRequest(
);
var actual = this.CellsApi.GetCellsCloudServicesHealthCheck(request);
Assert.AreEqual("{\"Status\":\"Cells Cloud(v24.9.0) is working fine!\"}", actual);
Assert.AreEqual("{\"Status\":\"Cells Cloud(v24.11.0) is working fine!\"}", actual);
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public string GetLocalFilePath(string filename)
int pos = localFolder.IndexOf("bin");
if(pos >0)
{
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../","TestData");
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../","TestData/CellsCloud");
}
}

Expand Down
23 changes: 23 additions & 0 deletions Aspose.Cells.Cloud.SDK/Api/CellsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6254,6 +6254,29 @@ public async Task< FileInfo > PostRemoveCharactersAsync(PostRemoveCharactersR



/// <summary>
/// </summary>
/// <param name="request">Request. <see cref="PostConvertTextRequest" /></param>
public FileInfo PostConvertText(PostConvertTextRequest request)
{
requestHandlers.ForEach(p => p.ProcessUrl(""));
var result = invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result;
return result;
}

/// <summary>
/// async/await syntax calling method
/// </summary>

public async Task< FileInfo > PostConvertTextAsync(PostConvertTextRequest request)
{
requestHandlers.ForEach(p => p.ProcessUrl(""));
var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
return result;
}



/// <summary>
/// Retrieve the description of the default style for the workbook .
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<RepositoryType>GitHub</RepositoryType>
<Copyright>MIT</Copyright>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
<AssemblyVersion>24.10</AssemblyVersion>
<FileVersion>24.10</FileVersion>
<Version>24.10</Version>
<AssemblyVersion>24.11</AssemblyVersion>
<FileVersion>24.11</FileVersion>
<Version>24.11</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>

</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal class ApiInvoker
internal ApiInvoker(List<IRequestHandler> requestHandlers)
{
this.AddDefaultHeader(AsposeClientHeaderName, ".net sdk");
this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.10");
this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.11");
this.requestHandlers = requestHandlers;
}

Expand Down
102 changes: 102 additions & 0 deletions Aspose.Cells.Cloud.SDK/Model/ConvertTextOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="ConvertTextOptions.cs">
// Copyright (c) 2024 Aspose.Cells Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Aspose.Cells.Cloud.SDK.Model
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Drawing;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

/// <summary>
///
/// </summary>
public class ConvertTextOptions : BaseOperateOptions
{
/// <summary>
///
/// </summary>
public override string Name { get; set; }

/// <summary>
///
/// </summary>
public virtual DataSource DataSource { get; set; }

/// <summary>
///
/// </summary>
public virtual FileInfo FileInfo { get; set; }

/// <summary>
///
/// </summary>
public virtual string Worksheet { get; set; }

/// <summary>
///
/// </summary>
public virtual string Range { get; set; }

/// <summary>
/// Gets or sets ConvertTextType.
/// </summary>
public virtual string ConvertTextType { get; set; }

/// <summary>
/// Gets or sets SourceCharacters.
/// </summary>
public virtual string SourceCharacters { get; set; }

/// <summary>
/// Gets or sets TargetCharacters.
/// </summary>
public virtual string TargetCharacters { get; set; }

/// <summary>
/// Get the string presentation of the object.
/// </summary>
/// <returns>String presentation of the object.</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ConvertTextOptions {\n");
sb.Append(" Name: ").Append(this.Name).Append("\n");
sb.Append(" DataSource: ").Append(this.DataSource).Append("\n");
sb.Append(" FileInfo: ").Append(this.FileInfo).Append("\n");
sb.Append(" Worksheet: ").Append(this.Worksheet).Append("\n");
sb.Append(" Range: ").Append(this.Range).Append("\n");
sb.Append(" ConvertTextType: ").Append(this.ConvertTextType).Append("\n");
sb.Append(" SourceCharacters: ").Append(this.SourceCharacters).Append("\n");
sb.Append(" TargetCharacters: ").Append(this.TargetCharacters).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
}
}
44 changes: 44 additions & 0 deletions Aspose.Cells.Cloud.SDK/Model/ConvertTextType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="ConvertTextType.cs">
// Copyright (c) 2024 Aspose.Cells Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Aspose.Cells.Cloud.SDK.Model
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Drawing;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

/// <summary>
/// ConvertTextType.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ConvertTextType
{
}
}
102 changes: 102 additions & 0 deletions Aspose.Cells.Cloud.SDK/Request/PostConvertTextRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="PostConvertTextRequest.cs">
// Copyright (c) 2024 Aspose.Cells Cloud
// </copyright>
// <summary>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Aspose.Cells.Cloud.SDK.Request
{
using Aspose.Cells.Cloud.SDK.Model;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Net;
using System.Text.RegularExpressions;

/// <summary>
/// Request model for <see cref="Aspose.Cells.Cloud.SDK.Api.CellsApi.PostConvertText" /> operation.
/// </summary>
public class PostConvertTextRequest : IRequestModel
{
/// <summary>
/// Initializes a new instance of the <see cref="PostConvertTextRequest"/> class.
/// </summary>
public PostConvertTextRequest()
{

}

/// <summary>
/// Initializes a new instance of the <see cref="PostConvertTextRequest"/> class.
/// </summary>
/// <param name="convertTextOptions"></param>
public PostConvertTextRequest(ConvertTextOptions convertTextOptions)
{
this.convertTextOptions = convertTextOptions;
}

/// <summary>
/// Gets or sets convertTextOptions.
/// </summary>
public ConvertTextOptions convertTextOptions { get; set; }


/// <summary>
/// Gets or sets extendQueryParameterMap.
/// </summary>
public IDictionary<string, string> extendQueryParameterMap ;

/// <summary>
/// Creates the http request based on this request.
/// </summary>
/// <param name="baseUri">Api base uri.</param>
/// <returns>The http request instance.</returns>
public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary<string, string> defaultHeaderMap, List<Invoker.IRequestHandler> requestHandlers)
{
var localVarHeaderParams = new Dictionary<string, string>();
var localVarFileParams = new Dictionary<string, object>();
string localVarPostBody ="";
string localVarHttpContentType = "application/json";
// verify the required parameter 'convertTextOptions' is set
if ( this.convertTextOptions == null)
{
throw new ApiException(400, "Missing required parameter 'convertTextOptions' when calling PostConvertText");
}

var path = baseUri + "/cells/converttext";
path = Regex
.Replace(path, "\\*", string.Empty)
.Replace("&amp;", "&")
.Replace("/?", "?");

if (this.extendQueryParameterMap != null)
{
foreach (KeyValuePair<string, string> kvp in extendQueryParameterMap)
{
path = UrlHelper.AddQueryParameterToUrl(path, kvp.Key, kvp.Value);
}
}

localVarPostBody = ( this.convertTextOptions != null ? JsonConvert.SerializeObject(this.convertTextOptions) : null);
return UrlHelper.PrepareRequest(path, "POST", localVarFileParams, localVarHeaderParams, localVarPostBody, localVarHttpContentType, defaultHeaderMap, requestHandlers);
}
}
}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/24.10)
![Nuget](https://img.shields.io/nuget/v/Aspose.Cells-Cloud) ![Nuget](https://img.shields.io/nuget/dt/Aspose.Cells-Cloud) ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-dotnet)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-dotnet/24.11.0)

# .NET package for Aspose.Cells Cloud

Expand All @@ -17,11 +17,11 @@ Enhance your .NET applications with the [Aspose.Cells Cloud](https://products.as
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.

## Feature & Enhancements in Version 24.10
## Feature & Enhancements in Version 24.11

Full list of issues covering all changes in this release:

- Add the new feature about removing characters on TextProcessingController.
- Add convert text feature on TextProcessingController.

## Support file format

Expand Down Expand Up @@ -93,6 +93,10 @@ var response = cellsApi.CellsWorksheetsPutAddNewWorksheet(name, sheetName, posit

# Release history version

## Enhancements in Version 24.10

- Add the new feature about removing characters on TextProcessingController.

## Enhancements in Version 24.9

- Add word case function for TextProcessingController.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Binary file added TestData/CellsGo/Book1.xlsx
Binary file not shown.
Binary file added TestData/CellsGo/CelLSJAVA41391.xlsx
Binary file not shown.
Binary file added TestData/CellsGo/Cells47415.xlsx
Binary file not shown.
Loading

0 comments on commit 9bf2249

Please sign in to comment.