From e3cedf7db038a70c9d48bb7c665b1be4beb872a9 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 15 Jan 2024 09:25:59 -0500 Subject: [PATCH] fix(Venafi TLS Protect Cloud Node): Remove parameter `Application Server Type` (#8325) ## Summary Parameter was removed from the API. ## Review / Merge checklist - [x] PR title and summary are descriptive. **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** ([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md)) --- .../CertificateRequestDescription.ts | 18 --------------- .../VenafiTlsProtectCloud.node.ts | 22 ------------------- 2 files changed, 40 deletions(-) diff --git a/packages/nodes-base/nodes/Venafi/ProtectCloud/CertificateRequestDescription.ts b/packages/nodes-base/nodes/Venafi/ProtectCloud/CertificateRequestDescription.ts index 9090c78dd5..91e8e6fa9f 100644 --- a/packages/nodes-base/nodes/Venafi/ProtectCloud/CertificateRequestDescription.ts +++ b/packages/nodes-base/nodes/Venafi/ProtectCloud/CertificateRequestDescription.ts @@ -86,24 +86,6 @@ export const certificateRequestFields: INodeProperties[] = [ }, default: false, }, - { - displayName: 'Application Server Type Name or ID', - name: 'applicationServerTypeId', - type: 'options', - description: - 'Choose from the list, or specify an ID using an expression', - typeOptions: { - loadOptionsMethod: 'getApplicationServerTypes', - }, - displayOptions: { - show: { - operation: ['create'], - resource: ['certificateRequest'], - generateCsr: [true], - }, - }, - default: '', - }, { displayName: 'Common Name', name: 'commonName', diff --git a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts index 97fb3876f2..25a09ea38a 100644 --- a/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts +++ b/packages/nodes-base/nodes/Venafi/ProtectCloud/VenafiTlsProtectCloud.node.ts @@ -88,23 +88,6 @@ export class VenafiTlsProtectCloud implements INodeType { } return returnData; }, - async getApplicationServerTypes( - this: ILoadOptionsFunctions, - ): Promise { - const returnData: INodePropertyOptions[] = []; - const { applicationServerTypes } = await venafiApiRequest.call( - this, - 'GET', - '/outagedetection/v1/applicationservertypes', - ); - for (const applicationServerType of applicationServerTypes) { - returnData.push({ - name: applicationServerType.platformName, - value: applicationServerType.id, - }); - } - return returnData; - }, async getCertificateIssuingTemplates( this: ILoadOptionsFunctions, ): Promise { @@ -157,10 +140,6 @@ export class VenafiTlsProtectCloud implements INodeType { }; if (generateCsr) { - const applicationServerTypeId = this.getNodeParameter( - 'applicationServerTypeId', - i, - ) as string; const commonName = this.getNodeParameter('commonName', i) as string; const additionalFields = this.getNodeParameter('additionalFields', i); @@ -169,7 +148,6 @@ export class VenafiTlsProtectCloud implements INodeType { const subjectAltNamesByType: ISubjectAltNamesByType = {}; body.isVaaSGenerated = true; - body.applicationServerTypeId = applicationServerTypeId; csrAttributes.commonName = commonName;