Skip to content

Commit

Permalink
Release Aspose.Cells.Cloud SDK for .Net 19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
roywangaspose committed Feb 18, 2019
1 parent 1c03cb0 commit afeec20
Show file tree
Hide file tree
Showing 11 changed files with 1,221 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Aspose.Cells-Cloud.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Aspose.Cells-Cloud</id>
<version>18.9.1</version>
<version>19.2</version>
<title>Aspose.Cells Cloud SDK for .NET</title>
<authors>Naeem</authors>
<owners>asposecloud</owners>
<iconUrl>http://www.aspose.com/Images/aspose_cells_for_cloud_140px.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Aspose.Cells Cloud for .NET is a spreadsheet programming SDK that allows software developers to manipulate and convert spreadsheet files from within their own applications. A Wrapper of RESTfull APIs, Aspose.Cells Cloud for .NET speeds up Microsoft Excel programming and conversion.</description>
<copyright>Aspose 2002-2018. All Rights Reserved.</copyright>
<copyright>Aspose 2002-2019. All Rights Reserved.</copyright>
<tags>Excel Spreadsheet Aspose.Cells XLS XLSX TXT ODS</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="9.0.0.0" />
Expand Down
16 changes: 15 additions & 1 deletion Aspose.Cells.Cloud.SDK.Test/Api/CellsApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,21 @@ public void CellsPostRowStyleTest()
Assert.IsInstanceOf<SaaSposeResponse>(response, "response is SaaSposeResponse");
Assert.AreEqual(response.Status, "OK");
}

/// <summary>
/// Test CellsGetCellHtmlString
/// </summary>
[Test]
public void CellsGetCellHtmlStringTest()
{
// TODO uncomment below to test the method and replace null with proper value
string name = BOOK1;
string sheetName = SHEET1;
string cellName = CellName;
string folder = TEMPFOLDER;
UpdateDataFile(TEMPFOLDER, BOOK1);
var response = instance.CellsGetCellHtmlString(name, sheetName, cellName, folder);
Assert.IsInstanceOf<Object> (response, "response is Object");
}
/// <summary>
/// Test CellsPostSetCellHtmlString
/// </summary>
Expand Down
229 changes: 229 additions & 0 deletions Aspose.Cells.Cloud.SDK/Api/CellsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,35 @@ public interface ICellsApi : IApiAccessor
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Object</returns>
Object CellsGetCellHtmlString (string name, string sheetName, string cellName, string folder = null, string storage = null);

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>ApiResponse of Object</returns>
ApiResponse<Object> CellsGetCellHtmlStringWithHttpInfo (string name, string sheetName, string cellName, string folder = null, string storage = null);
/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellOrMethodName">The cell&#39;s or method name. (Method name like firstcell, endcell etc.)</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
Expand Down Expand Up @@ -1375,6 +1404,35 @@ public interface ICellsApi : IApiAccessor
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Task of Object</returns>
System.Threading.Tasks.Task<Object> CellsGetCellHtmlStringAsync (string name, string sheetName, string cellName, string folder = null, string storage = null);

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Task of ApiResponse (Object)</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> CellsGetCellHtmlStringAsyncWithHttpInfo (string name, string sheetName, string cellName, string folder = null, string storage = null);
/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellOrMethodName">The cell&#39;s or method name. (Method name like firstcell, endcell etc.)</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
Expand Down Expand Up @@ -3218,6 +3276,177 @@ public async System.Threading.Tasks.Task<ApiResponse<SaaSposeResponse>> CellsDel
(SaaSposeResponse) Configuration.ApiClient.Deserialize(localVarResponse, typeof(SaaSposeResponse)));
}

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Object</returns>
public Object CellsGetCellHtmlString (string name, string sheetName, string cellName, string folder = null, string storage = null)
{
ApiResponse<Object> localVarResponse = CellsGetCellHtmlStringWithHttpInfo(name, sheetName, cellName, folder, storage);
return localVarResponse.Data;
}

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>ApiResponse of Object</returns>
public ApiResponse< Object > CellsGetCellHtmlStringWithHttpInfo (string name, string sheetName, string cellName, string folder = null, string storage = null)
{
// verify the required parameter 'name' is set
if (name == null)
throw new ApiException(400, "Missing required parameter 'name' when calling CellsApi->CellsGetCellHtmlString");
// verify the required parameter 'sheetName' is set
if (sheetName == null)
throw new ApiException(400, "Missing required parameter 'sheetName' when calling CellsApi->CellsGetCellHtmlString");
// verify the required parameter 'cellName' is set
if (cellName == null)
throw new ApiException(400, "Missing required parameter 'cellName' when calling CellsApi->CellsGetCellHtmlString");

var localVarPath = "/cells/{name}/worksheets/{sheetName}/cells/{cellName}/htmlstring";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;

// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (name != null) localVarPathParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // path parameter
if (sheetName != null) localVarPathParams.Add("sheetName", Configuration.ApiClient.ParameterToString(sheetName)); // path parameter
if (cellName != null) localVarPathParams.Add("cellName", Configuration.ApiClient.ParameterToString(cellName)); // path parameter
if (folder != null) localVarQueryParams.Add("folder", Configuration.ApiClient.ParameterToString(folder)); // query parameter
if (storage != null) localVarQueryParams.Add("storage", Configuration.ApiClient.ParameterToString(storage)); // query parameter


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;

if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CellsGetCellHtmlString", localVarResponse);
if (exception != null) throw exception;
}

return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
}

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Task of Object</returns>
public async System.Threading.Tasks.Task<Object> CellsGetCellHtmlStringAsync (string name, string sheetName, string cellName, string folder = null, string storage = null)
{
ApiResponse<Object> localVarResponse = await CellsGetCellHtmlStringAsyncWithHttpInfo(name, sheetName, cellName, folder, storage);
return localVarResponse.Data;

}

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
/// <exception cref="Aspose.Cells.Cloud.SDK.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="name">Document name.</param>
/// <param name="sheetName">Worksheet name.</param>
/// <param name="cellName">The cell&#39;s name.</param>
/// <param name="folder">Document&#39;s folder. (optional)</param>
/// <param name="storage">storage name. (optional)</param>
/// <returns>Task of ApiResponse (Object)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> CellsGetCellHtmlStringAsyncWithHttpInfo (string name, string sheetName, string cellName, string folder = null, string storage = null)
{
// verify the required parameter 'name' is set
if (name == null)
throw new ApiException(400, "Missing required parameter 'name' when calling CellsApi->CellsGetCellHtmlString");
// verify the required parameter 'sheetName' is set
if (sheetName == null)
throw new ApiException(400, "Missing required parameter 'sheetName' when calling CellsApi->CellsGetCellHtmlString");
// verify the required parameter 'cellName' is set
if (cellName == null)
throw new ApiException(400, "Missing required parameter 'cellName' when calling CellsApi->CellsGetCellHtmlString");

var localVarPath = "/cells/{name}/worksheets/{sheetName}/cells/{cellName}/htmlstring";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new Dictionary<String, String>();
var localVarHeaderParams = new Dictionary<String, String>(Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;

// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);

if (name != null) localVarPathParams.Add("name", Configuration.ApiClient.ParameterToString(name)); // path parameter
if (sheetName != null) localVarPathParams.Add("sheetName", Configuration.ApiClient.ParameterToString(sheetName)); // path parameter
if (cellName != null) localVarPathParams.Add("cellName", Configuration.ApiClient.ParameterToString(cellName)); // path parameter
if (folder != null) localVarQueryParams.Add("folder", Configuration.ApiClient.ParameterToString(folder)); // query parameter
if (storage != null) localVarQueryParams.Add("storage", Configuration.ApiClient.ParameterToString(storage)); // query parameter


// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);

int localVarStatusCode = (int) localVarResponse.StatusCode;

if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("CellsGetCellHtmlString", localVarResponse);
if (exception != null) throw exception;
}

return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(Object) Configuration.ApiClient.Deserialize(localVarResponse, typeof(Object)));
}

/// <summary>
/// Read cell data by cell&#39;s name.
/// </summary>
Expand Down
6 changes: 3 additions & 3 deletions Aspose.Cells.Cloud.SDK/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Configuration(ApiClient apiClient = null,
string tempFolderPath = null,
string dateTimeFormat = null,
int timeout = 100000,
string userAgent = "Swagger-Codegen/18.9.1/csharp"
string userAgent = "Swagger-Codegen/19.2/csharp"
)
{
setApiClientUsingDefault(apiClient);
Expand Down Expand Up @@ -81,7 +81,7 @@ public Configuration(ApiClient apiClient)
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "18.9.1";
public const string Version = "19.2";

/// <summary>
/// Gets or sets the default Configuration.
Expand Down Expand Up @@ -326,7 +326,7 @@ public static String ToDebugReport()
.GetReferencedAssemblies()
.Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
report += " Version of the API: 1.0\n";
report += " SDK Package Version: 18.9.1\n";
report += " SDK Package Version: 19.2\n";

return report;
}
Expand Down
Loading

0 comments on commit afeec20

Please sign in to comment.