Skip to content

Commit

Permalink
Release Aspose.Cells Cloud SDK 24.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuejianzhangd committed Dec 27, 2024
1 parent 723a950 commit 9020f0d
Show file tree
Hide file tree
Showing 30 changed files with 668 additions and 14 deletions.
15 changes: 9 additions & 6 deletions Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
// 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
Expand All @@ -25,7 +25,7 @@

namespace Aspose.Cells.Cloud.SDK.Tests.Api.Api
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Aspose.Cells.Cloud.SDK.Model;
using Aspose.Cells.Cloud.SDK.Request;
using System.Collections.Generic;
Expand Down Expand Up @@ -133,8 +133,9 @@ public void TestGetWorksheetPivotTableFilters()
/// <summary>
/// Test for GetWorksheetPivotTableFilter of PivotTablesController.
/// </summary>
[TestCategory(ProductName)]
/* [TestCategory(ProductName)]
[TestMethod]
[Ignore]
public void TestGetWorksheetPivotTableFilter()
{
string localName = "TestCase.xlsx";
Expand All @@ -152,7 +153,7 @@ public void TestGetWorksheetPivotTableFilter()
);
var actual = this.CellsApi.GetWorksheetPivotTableFilter(request);
Assert.AreEqual(200, actual.Code);
}
}*/

/// <summary>
/// Test for PutWorksheetPivotTable of PivotTablesController.
Expand Down Expand Up @@ -213,12 +214,13 @@ public void TestPutPivotTableField()
var actual = this.CellsApi.PutPivotTableField(request);
Assert.AreEqual(200, actual.Code);
}

/*
/// <summary>
/// Test for PutWorksheetPivotTableFilter of PivotTablesController.
/// </summary>
[TestCategory(ProductName)]
[TestMethod]
[Ignore]
public void TestPutWorksheetPivotTableFilter()
{
string localName = "TestCase.xlsx";
Expand All @@ -243,6 +245,7 @@ public void TestPutWorksheetPivotTableFilter()
var actual = this.CellsApi.PutWorksheetPivotTableFilter(request);
Assert.AreEqual(200, actual.Code);
}
*/

/// <summary>
/// Test for PostPivotTableFieldHideItem of PivotTablesController.
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/CellsCloud");
localFolder = Path.Combine( localFolder.Substring(0, pos),"./../TestData","CellsCloud");
}
}

Expand Down
46 changes: 46 additions & 0 deletions Aspose.Cells.Cloud.SDK/Api/CellsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6277,6 +6277,52 @@ public async Task< FileInfo > PostConvertTextAsync(PostConvertTextRequest req



/// <summary>
/// </summary>
/// <param name="request">Request. <see cref="PostRemoveDuplicatesRequest" /></param>
public FileInfo PostRemoveDuplicates(PostRemoveDuplicatesRequest 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 > PostRemoveDuplicatesAsync(PostRemoveDuplicatesRequest request)
{
requestHandlers.ForEach(p => p.ProcessUrl(""));
var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers));
return result;
}



/// <summary>
/// </summary>
/// <param name="request">Request. <see cref="PostExtractTextRequest" /></param>
public FileInfo PostExtractText(PostExtractTextRequest 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 > PostExtractTextAsync(PostExtractTextRequest 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.11</AssemblyVersion>
<FileVersion>24.11</FileVersion>
<Version>24.11</Version>
<AssemblyVersion>24.12</AssemblyVersion>
<FileVersion>24.12</FileVersion>
<Version>24.12</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.11");
this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.12");
this.requestHandlers = requestHandlers;
}

Expand Down
120 changes: 120 additions & 0 deletions Aspose.Cells.Cloud.SDK/Model/ExtractTextOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="ExtractTextOptions.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 ExtractTextOptions : 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 ExtractTextType.
/// </summary>
public virtual string ExtractTextType { get; set; }

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

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

/// <summary>
/// Gets or sets BeforePosition.
/// </summary>
public virtual int? BeforePosition { get; set; }

/// <summary>
/// Gets or sets AfterPosition.
/// </summary>
public virtual int? AfterPosition { get; set; }

/// <summary>
/// Gets or sets OutPositionRange.
/// </summary>
public virtual string OutPositionRange { 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 ExtractTextOptions {\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(" ExtractTextType: ").Append(this.ExtractTextType).Append("\n");
sb.Append(" BeforeText: ").Append(this.BeforeText).Append("\n");
sb.Append(" AfterText: ").Append(this.AfterText).Append("\n");
sb.Append(" BeforePosition: ").Append(this.BeforePosition).Append("\n");
sb.Append(" AfterPosition: ").Append(this.AfterPosition).Append("\n");
sb.Append(" OutPositionRange: ").Append(this.OutPositionRange).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
}
}
44 changes: 44 additions & 0 deletions Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="ExtractTextType.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>
/// ExtractTextType.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ExtractTextType
{
}
}
10 changes: 8 additions & 2 deletions Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class PivotFilter
/// Gets the measure field index of the pivot filter.
///
/// </summary>
public virtual int? MeasureFldIndex { get; set; }
public virtual int? ValueFieldIndex { get; set; }

/// <summary>
/// Gets the member property field index of the pivot filter.
Expand All @@ -88,6 +88,11 @@ public class PivotFilter
/// </summary>
public virtual string Value2 { get; set; }

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

/// <summary>
/// Get the string presentation of the object.
/// </summary>
Expand All @@ -100,11 +105,12 @@ public override string ToString()
sb.Append(" EvaluationOrder: ").Append(this.EvaluationOrder).Append("\n");
sb.Append(" FieldIndex: ").Append(this.FieldIndex).Append("\n");
sb.Append(" FilterType: ").Append(this.FilterType).Append("\n");
sb.Append(" MeasureFldIndex: ").Append(this.MeasureFldIndex).Append("\n");
sb.Append(" ValueFieldIndex: ").Append(this.ValueFieldIndex).Append("\n");
sb.Append(" MemberPropertyFieldIndex: ").Append(this.MemberPropertyFieldIndex).Append("\n");
sb.Append(" Name: ").Append(this.Name).Append("\n");
sb.Append(" Value1: ").Append(this.Value1).Append("\n");
sb.Append(" Value2: ").Append(this.Value2).Append("\n");
sb.Append(" Top10Filter: ").Append(this.Top10Filter).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
44 changes: 44 additions & 0 deletions Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesAreaType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Aspose" file="RemoveDuplicatesAreaType.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>
/// RemoveDuplicatesAreaType.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum RemoveDuplicatesAreaType
{
}
}
Loading

0 comments on commit 9020f0d

Please sign in to comment.