From 60186ead2927ececdcbbf5023a280b524f43fd8d Mon Sep 17 00:00:00 2001 From: Ivan Kamkin <234-Ivan.Kamkin@users.noreply.git.saltov.dynabic.com> Date: Wed, 27 Mar 2024 11:54:01 +0500 Subject: [PATCH] Release 23.4 --- codegen/Templates/csharp/api.mustache | 73 ------------------- .../Templates/csharp/requestModel.mustache | 2 +- codegen/Templates/dart/class.mustache | 2 +- codegen/Templates/go/README.mustache | 7 +- codegen/Templates/java/README.mustache | 5 +- .../Templates/nodejs/docs/tsconfig.mustache | 2 + codegen/Templates/php/README.mustache | 1 + codegen/config-android.json | 2 +- codegen/config-dart.json | 2 +- codegen/config-go.json | 2 +- codegen/config-java.json | 2 +- codegen/config-php.json | 2 +- codegen/config-python.json | 2 +- codegen/config.json | 4 +- submodules/android | 2 +- submodules/dart | 2 +- submodules/dotnet | 2 +- submodules/go | 2 +- submodules/java | 2 +- submodules/node | 2 +- submodules/php | 2 +- submodules/python | 2 +- 22 files changed, 30 insertions(+), 94 deletions(-) diff --git a/codegen/Templates/csharp/api.mustache b/codegen/Templates/csharp/api.mustache index ba1ff42..3fdefca 100644 --- a/codegen/Templates/csharp/api.mustache +++ b/codegen/Templates/csharp/api.mustache @@ -65,79 +65,6 @@ namespace {{packageName}}.Api } {{#operation}} - /// - /// This method is obsolete and will be removed in next releases. Use new async method instead. - /// {{summary}} {{notes}} - /// - /// Request. - {{#returnType}}/// - /// - /// {{/returnType}} - [System.Obsolete("This method is obsolete and will be removed in next releases. Use new async method \"{{nickname}}Async\" instead.")] - public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}}({{nickname}}Request request) - { -{{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set - if (request.{{baseName}} == null) - { - throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{nickname}}"); - } -{{/required}}{{/allParams}} // create path and map variables - string resourcePath = _configuration.GetApiRootUrl() + "{{path}}"; - resourcePath = Regex - .Replace(resourcePath, "\\*", string.Empty) - .Replace("&", "&") - .Replace("/?", "?"); - {{#headerParams}} - {{#-first}}var headerParams = new Dictionary();{{/-first}} - {{/headerParams}} - {{#formParams}} - {{#-first}}var formParams = new Dictionary();{{/-first}} - {{/formParams}} - {{#pathParams}} - resourcePath = UrlHelper.AddPathParameter(resourcePath, "{{paramName}}", request.{{baseName}}); - {{/pathParams}} - {{#queryParams}} - {{#-first}}#pragma warning disable CS0618 // Type or member is obsolete{{/-first}} - resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "{{paramName}}", request.{{baseName}}); - {{#-last}}#pragma warning restore CS0618 // Type or member is obsolete{{/-last}} - {{/queryParams}} - {{#hasBodyParam}}string postBody = SerializationHelper.Serialize(request.{{bodyParam.baseName}}); // http body (model) parameter{{/hasBodyParam}} - {{#formParams}} - if (request.{{baseName}} != null) - { - {{#isFile}} - formParams.Add("{{paramName}}", ApiInvoker.ToFileInfo(request.{{baseName}}, "{{baseName}}")); - {{/isFile}}{{^isFile}}formParams.Add("{{baseName}}", request.{{baseName}}); // form parameter{{/isFile}} - } - {{/formParams}} -{{#vendorExtensions}}{{#x-binary-result}} return _apiInvoker.InvokeBinaryApi( - resourcePath, - "{{httpMethod}}", - {{#hasBodyParam}}postBody{{/hasBodyParam}}{{^hasBodyParam}}null{{/hasBodyParam}}, - {{#hasHeaderParams}}headerParams{{/hasHeaderParams}}{{^hasHeaderParams}}null{{/hasHeaderParams}}, - {{#hasFormParams}}formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}});{{/x-binary-result}}{{/vendorExtensions}}{{#vendorExtensions}}{{^x-binary-result}}{{#returnType}} string response = _apiInvoker.InvokeApi( - resourcePath, - "{{httpMethod}}", - {{#hasBodyParam}}postBody{{/hasBodyParam}}{{^hasBodyParam}}null{{/hasBodyParam}}, - null, - {{#hasFormParams}}formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}}); - - if (response != null) - { - return ({{returnType}}) SerializationHelper.Deserialize(response, typeof({{returnType}})); - } - - return null; - {{/returnType}} - {{^returnType}} - _apiInvoker.InvokeApi( - resourcePath, - "{{httpMethod}}", - {{#hasBodyParam}}postBody{{/hasBodyParam}}{{^hasBodyParam}}null{{/hasBodyParam}}, - {{#hasHeaderParams}}headerParams{{/hasHeaderParams}}{{^hasHeaderParams}}null{{/hasHeaderParams}}, - {{#hasFormParams}}formParams{{/hasFormParams}}{{^hasFormParams}}null{{/hasFormParams}});{{/returnType}}{{/x-binary-result}}{{/vendorExtensions}} - } - /// /// {{summary}} {{notes}} /// diff --git a/codegen/Templates/csharp/requestModel.mustache b/codegen/Templates/csharp/requestModel.mustache index 9694d1c..a4c919a 100644 --- a/codegen/Templates/csharp/requestModel.mustache +++ b/codegen/Templates/csharp/requestModel.mustache @@ -34,7 +34,7 @@ using System.Collections.Generic; namespace {{packageName}}.Model.Requests { /// - /// Request model for operation. + /// Request model for operation. /// public class {{nickname}}Request{{#vendorExtensions}}{{#x-csharp-implements}} : {{x-csharp-implements}}{{/x-csharp-implements}}{{/vendorExtensions}} { diff --git a/codegen/Templates/dart/class.mustache b/codegen/Templates/dart/class.mustache index 8a02f63..d1e4be2 100644 --- a/codegen/Templates/dart/class.mustache +++ b/codegen/Templates/dart/class.mustache @@ -32,7 +32,7 @@ class {{classname}} { {{/isListContainer}} {{^isListContainer}} {{#isDouble}} - json['{{name}}'] == null ? null : json['{{name}}'].toDouble() + json['{{name}}']?.toDouble() {{/isDouble}} {{^isDouble}} json['{{name}}'] diff --git a/codegen/Templates/go/README.mustache b/codegen/Templates/go/README.mustache index 29e8c13..64929bd 100644 --- a/codegen/Templates/go/README.mustache +++ b/codegen/Templates/go/README.mustache @@ -56,6 +56,7 @@ package main import ( "context" "fmt" + "github.com/antihax/optional" "github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/barcode" "github.com/aspose-barcode-cloud/aspose-barcode-cloud-go/barcode/jwt" "os" @@ -74,10 +75,14 @@ func main() { client := barcode.NewAPIClient(barcode.NewConfiguration()) + opts := &barcode.BarcodeApiGetBarcodeGenerateOpts{ + TextLocation: optional.NewString("None"), + } + data, _, err := client.BarcodeApi.GetBarcodeGenerate(authCtx, string(barcode.EncodeBarcodeTypeQR), "Go SDK example", - nil) + opts) if err != nil { panic(err) } diff --git a/codegen/Templates/java/README.mustache b/codegen/Templates/java/README.mustache index bf2f752..a9f6460 100644 --- a/codegen/Templates/java/README.mustache +++ b/codegen/Templates/java/README.mustache @@ -126,10 +126,11 @@ public class BarcodeApiExample { } private static File generateBarcode(BarcodeApi api) throws ApiException { - String type = EncodeBarcodeType.PDF417.toString(); + String type = EncodeBarcodeType.QR.toString(); String text = "Aspose.BarCode for Cloud Sample"; GetBarcodeGenerateRequest request = new GetBarcodeGenerateRequest(type, text); - + request.textLocation = "None"; + return api.getBarcodeGenerate(request); } diff --git a/codegen/Templates/nodejs/docs/tsconfig.mustache b/codegen/Templates/nodejs/docs/tsconfig.mustache index abf7b21..1855ea3 100644 --- a/codegen/Templates/nodejs/docs/tsconfig.mustache +++ b/codegen/Templates/nodejs/docs/tsconfig.mustache @@ -53,6 +53,8 @@ async function generateBarcode(api) { const request = new Barcode.GetBarcodeGenerateRequest( Barcode.EncodeBarcodeType.QR, 'Aspose.BarCode for Cloud Sample'); + request.textLocation = "None"; + const oneBarcode = await api.getBarcodeGenerate(request); const fileName = 'QR.png' diff --git a/codegen/Templates/php/README.mustache b/codegen/Templates/php/README.mustache index 92ba16f..9203220 100644 --- a/codegen/Templates/php/README.mustache +++ b/codegen/Templates/php/README.mustache @@ -60,6 +60,7 @@ $config->setClientSecret('Client Secret from https://dashboard.aspose.cloud/appl $request = new GetBarcodeGenerateRequest(EncodeBarcodeType::QR, 'PHP SDK Test'); $request->format = 'png'; +$request->text_location = 'None'; $api = new BarcodeApi(null, $config); $response = $api->GetBarCodeGenerate($request); diff --git a/codegen/config-android.json b/codegen/config-android.json index 98d92f3..38b5481 100644 --- a/codegen/config-android.json +++ b/codegen/config-android.json @@ -4,7 +4,7 @@ "androidSdkVersion": "33", "apiPackage": "com.aspose.barcode.cloud.demo_app", "artifactId": "Android Application for Barcode Processing in the Cloud via REST API", - "artifactVersion": "24.2.0", + "artifactVersion": "24.3.0", "groupId": "com.aspose", "invokerPackage": "com.aspose.barcode.cloud.demo_app", "modelPackage": "com.aspose.barcode.cloud.demo_app.model" diff --git a/codegen/config-dart.json b/codegen/config-dart.json index 5caebf0..f772466 100644 --- a/codegen/config-dart.json +++ b/codegen/config-dart.json @@ -2,6 +2,6 @@ "browserClient": false, "pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily", "pubName": "aspose_barcode_cloud", - "pubVersion": "1.24.2", + "pubVersion": "1.24.3", "useEnumExtension": true } \ No newline at end of file diff --git a/codegen/config-go.json b/codegen/config-go.json index 8d79389..197be0a 100644 --- a/codegen/config-go.json +++ b/codegen/config-go.json @@ -1,4 +1,4 @@ { "packageName": "barcode", - "packageVersion": "1.2402.0" + "packageVersion": "1.2403.0" } \ No newline at end of file diff --git a/codegen/config-java.json b/codegen/config-java.json index 905b8bd..b47f1a5 100644 --- a/codegen/config-java.json +++ b/codegen/config-java.json @@ -3,7 +3,7 @@ "artifactDescription": "Aspose.BarCode Cloud SDK for Java", "artifactId": "aspose-barcode-cloud", "artifactUrl": "https://www.aspose.cloud", - "artifactVersion": "24.2.0", + "artifactVersion": "24.3.0", "developerEmail": "denis.averin@aspose.com", "developerName": "Denis Averin", "developerOrganization": "Aspose", diff --git a/codegen/config-php.json b/codegen/config-php.json index 49468e2..b347815 100644 --- a/codegen/config-php.json +++ b/codegen/config-php.json @@ -1,4 +1,4 @@ { - "artifactVersion": "24.2.0", + "artifactVersion": "24.3.0", "invokerPackage": "Aspose\\BarCode" } \ No newline at end of file diff --git a/codegen/config-python.json b/codegen/config-python.json index cf619e3..afdd327 100644 --- a/codegen/config-python.json +++ b/codegen/config-python.json @@ -1,6 +1,6 @@ { "packageName": "aspose_barcode_cloud", "packageUrl": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-python", - "packageVersion": "24.2.0", + "packageVersion": "24.3.0", "projectName": "aspose-barcode-cloud" } \ No newline at end of file diff --git a/codegen/config.json b/codegen/config.json index bdfc7ab..42e1e8b 100644 --- a/codegen/config.json +++ b/codegen/config.json @@ -1,8 +1,8 @@ { "artifactVersion": "23.7.0", "npmName": "aspose-barcode-cloud-node", - "npmVersion": "24.2.0", + "npmVersion": "24.3.0", "packageName": "Aspose.BarCode.Cloud.Sdk", - "packageVersion": "24.2.0", + "packageVersion": "24.3.0", "supportsES6": true } \ No newline at end of file diff --git a/submodules/android b/submodules/android index 8b9c544..4d870c2 160000 --- a/submodules/android +++ b/submodules/android @@ -1 +1 @@ -Subproject commit 8b9c54471530be0508a4e14b490e613542f41b19 +Subproject commit 4d870c24b10434bf5f4f549df0ec13d5c7d2879f diff --git a/submodules/dart b/submodules/dart index 9ab8761..ce2b932 160000 --- a/submodules/dart +++ b/submodules/dart @@ -1 +1 @@ -Subproject commit 9ab87613487276159489db672da1d88b125efdfb +Subproject commit ce2b9321ac1357989d9e2b4f6754c84e96558630 diff --git a/submodules/dotnet b/submodules/dotnet index 61affab..9aed71f 160000 --- a/submodules/dotnet +++ b/submodules/dotnet @@ -1 +1 @@ -Subproject commit 61affaba7512da0c5f087a4135ccc3948e5d9f4c +Subproject commit 9aed71fa677694e7cf294adc1d1c9333dc320652 diff --git a/submodules/go b/submodules/go index 71713d0..7e9de2c 160000 --- a/submodules/go +++ b/submodules/go @@ -1 +1 @@ -Subproject commit 71713d08548fa822d2d695df0808e0be5ae15c58 +Subproject commit 7e9de2ca202b1d053d120cc5bf62063cba3eb396 diff --git a/submodules/java b/submodules/java index 60f55a2..46aa4a0 160000 --- a/submodules/java +++ b/submodules/java @@ -1 +1 @@ -Subproject commit 60f55a2904366b34be3bb102f69a98f4fc7580ac +Subproject commit 46aa4a0b9e852511c15444c7a8428b03f07f82a5 diff --git a/submodules/node b/submodules/node index d847fbe..dd19e2f 160000 --- a/submodules/node +++ b/submodules/node @@ -1 +1 @@ -Subproject commit d847fbe9cf90f407ca666a590d1d706b46d05225 +Subproject commit dd19e2f76d2afb1c66af691f288c0c0be96d81de diff --git a/submodules/php b/submodules/php index cfbef84..b50dd25 160000 --- a/submodules/php +++ b/submodules/php @@ -1 +1 @@ -Subproject commit cfbef840dceee87183e393520e5174f523c9820c +Subproject commit b50dd2561d5b706dd4d94297570236a00e563f10 diff --git a/submodules/python b/submodules/python index 2f0c418..2e7a133 160000 --- a/submodules/python +++ b/submodules/python @@ -1 +1 @@ -Subproject commit 2f0c4183d69b258512bda92597cb874a28b7d4c1 +Subproject commit 2e7a133a8f2d47971e8f31980458d7e0aae73b7f