From af610d6a13c6e2a34fb330445c955115139149fc Mon Sep 17 00:00:00 2001 From: Partik SIngh Date: Sat, 29 Jul 2023 02:10:01 +0530 Subject: [PATCH 1/3] Added Tests for Oracle Signed-off-by: Partik SIngh --- generator/generators/googleCloud/generator.js | 2 +- generator/generators/oracle/generator.js | 5 +- generator/generators/oracle/generator.ts | 4 +- generator/node-cloud.yml | 12 +-- .../test/generators/oracle/generator.test.ts | 86 +++++++++++++++++++ generator/test/parsers/oracle/parser.test.ts | 35 ++++++++ .../dummyData/invalidDataset_1/data.json | 54 ++++++++++++ .../dummyData/invalidDataset_1/sourceFile.js | 11 +++ .../dummyData/invalidDataset_2/data.json | 16 ++++ .../dummyData/invalidDataset_2/sourceFile.js | 20 +++++ .../oracle/dummyData/validDataset/data.json | 54 ++++++++++++ .../dummyData/validDataset/sourceFile.js | 25 ++++++ .../transformers/oracle/transformer.test.ts | 69 +++++++++++++++ 13 files changed, 382 insertions(+), 11 deletions(-) create mode 100644 generator/test/generators/oracle/generator.test.ts create mode 100644 generator/test/parsers/oracle/parser.test.ts create mode 100644 generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json create mode 100644 generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js create mode 100644 generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json create mode 100644 generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js create mode 100644 generator/test/transformers/oracle/dummyData/validDataset/data.json create mode 100644 generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js create mode 100644 generator/test/transformers/oracle/transformer.test.ts diff --git a/generator/generators/googleCloud/generator.js b/generator/generators/googleCloud/generator.js index ea5d502a..84a364b2 100644 --- a/generator/generators/googleCloud/generator.js +++ b/generator/generators/googleCloud/generator.js @@ -204,7 +204,7 @@ function extractClassBasedSDKData(methods, sdkFiles) { params: parameters, returnType: returnType, returnTypeName: null, - client: classAst.name.text, // Class name + client: classAst.name.text, }; if (returnType === 'TypeReference') { method_1.returnTypeName = diff --git a/generator/generators/oracle/generator.js b/generator/generators/oracle/generator.js index a34adcdf..5f41ac1d 100644 --- a/generator/generators/oracle/generator.js +++ b/generator/generators/oracle/generator.js @@ -144,8 +144,8 @@ exports.generateOracleClass = exports.extractSDKData = void 0; var fs = require('fs'); var typescript_1 = require('typescript'); var parser_1 = require('../../parsers/oracle/parser'); -var helper_1 = require('../lib/helper'); var transformer_1 = require('../../transformers/oracle/transformer'); +var helper_1 = require('../lib/helper'); var dummyFile = process.cwd() + '/dummyClasses/oracle.js'; var dummyAst = typescript_1.createSourceFile( dummyFile, @@ -197,14 +197,12 @@ function extractSDKData(sdkClassAst, serviceClass) { functions: methods, serviceName: null, }; - console.log(classData); return classData; } exports.extractSDKData = extractSDKData; function generateOracleClass(serviceClass, serviceName) { var _this = this; var sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(' ')[0]; - console.log(sdkFile); parser_1.getAST(sdkFile).then(function(result) { return __awaiter(_this, void 0, void 0, function() { var sdkClassAst, classData, output, filePath, dir, error_1; @@ -217,6 +215,7 @@ function generateOracleClass(serviceClass, serviceName) { _a.trys.push([1, 3, , 4]); classData = extractSDKData(sdkClassAst, serviceClass); classData.serviceName = serviceName; + console.log(JSON.stringify(classData)); return [ 4 /*yield*/, transformer_1.transform(dummyAst, classData), diff --git a/generator/generators/oracle/generator.ts b/generator/generators/oracle/generator.ts index 765a4636..57f3b174 100644 --- a/generator/generators/oracle/generator.ts +++ b/generator/generators/oracle/generator.ts @@ -82,7 +82,6 @@ export function extractSDKData(sdkClassAst, serviceClass) { export function generateOracleClass(serviceClass, serviceName) { const sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(' ')[0]; - console.log(sdkFile); getAST(sdkFile).then(async result => { const sdkClassAst = result; try { @@ -91,7 +90,10 @@ export function generateOracleClass(serviceClass, serviceName) { serviceClass ); classData.serviceName = serviceName; + console.log(JSON.stringify(classData)); + const output = await transform(dummyAst, classData); + let filePath; const dir = getDir(serviceName); if ( diff --git a/generator/node-cloud.yml b/generator/node-cloud.yml index 28357a38..bb948232 100644 --- a/generator/node-cloud.yml +++ b/generator/node-cloud.yml @@ -43,12 +43,12 @@ StorageBucket: list: storage storage.d.ts getBuckets upload: storage bucket.d.ts upload makePublic: storage file.d.ts makePublic - Oracle: - create: objectstorage createBucket - delete: objectstorage deleteBucket - get: objectstorage getBucket - list: objectstorage listBuckets - reencrypt: objectstorage reencryptBucket + # Oracle: + # create: objectstorage createBucket + # delete: objectstorage deleteBucket + # get: objectstorage getBucket + # list: objectstorage listBuckets + # reencrypt: objectstorage reencryptBucket PaaS: AWS: diff --git a/generator/test/generators/oracle/generator.test.ts b/generator/test/generators/oracle/generator.test.ts new file mode 100644 index 00000000..dba778cc --- /dev/null +++ b/generator/test/generators/oracle/generator.test.ts @@ -0,0 +1,86 @@ +// import { expect } from "chai"; +// import { SyntaxKind } from "typescript"; + +// import { extractSDKData } from "../../../generators/oracle/generator"; +// import { readJsonData,readSourceFile } from "../lib/helper"; + +// describe("Oracle generator extractSDKData", () => { +// context("with valid methods and valid AST", () => { +// it("should return extracted class data", async () => { +// const sdkFile: any = await readSourceFile("validDataset", "oracle"); +// const data: any = await readJsonData( +// "validDataset", +// "oracle", +// "serviceClass" +// ); +// let cloned = null; +// sdkFile.forEachChild(child => { +// if (SyntaxKind[child.kind] === "ClassDeclaration") { +// cloned = Object.assign({}, child); +// } +// }); + +// if (cloned) { +// const result = extractSDKData(cloned, data); +// expect(result).to.be.an("object"); +// expect(result.functions).to.be.an("array"); +// expect(result.className).to.be.string; +// } else { +// console.error("Error in cloning class"); +// } +// }); +// }); + +// context("with invalid method data:missing method name", () => { +// it("should drop invalid method", async () => { +// const sdkFile: any = await readSourceFile("invalidDataset_1", "oracle"); +// const data: any = await readJsonData( +// "invalidDataset_1", +// "oracle", +// "serviceClass" +// ); +// let cloned = null; +// sdkFile.forEachChild(child => { +// if (SyntaxKind[child.kind] === "ClassDeclaration") { +// cloned = Object.assign({}, child); +// } +// }); + +// if (cloned) { +// expect( +// extractSDKData(cloned, data).functions.length < +// Object.keys(data).length +// ).to.be.true; +// } else { +// console.error("Error in cloning class"); +// } +// }); +// }); + +// context("Oracle with no functions", () => { +// it("should return empty array of methods", async () => { +// const sdkFile: any = await readSourceFile("invalidDataset_2", "oracle"); +// const data: any = await readJsonData( +// "invalidDataset_2", +// "oracle", +// "serviceClass" +// ); +// let cloned = null; +// sdkFile.forEachChild(child => { +// if (SyntaxKind[child.kind] === "ClassDeclaration") { +// cloned = Object.assign({}, child); +// } +// }); + +// if (cloned) { +// const result = extractSDKData(cloned, data); +// expect(result).to.be.an("object"); +// expect(result.functions).to.be.an("array"); +// expect(result.className).to.be.string; +// expect(result.functions.length).to.eql(0); +// } else { +// console.error("Error in cloning class"); +// } +// }); +// }); +// }); diff --git a/generator/test/parsers/oracle/parser.test.ts b/generator/test/parsers/oracle/parser.test.ts new file mode 100644 index 00000000..99e53585 --- /dev/null +++ b/generator/test/parsers/oracle/parser.test.ts @@ -0,0 +1,35 @@ +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; + +import { getAST } from '../../../parsers/oracle/parser'; + +describe('Oracle Cloud parser getAST', () => { + context('With existing file', () => { + it('Should return Abstract syntax tree of the class', async () => { + const ast: any = await getAST('objectstorage'); + expect(ast).to.be.an('object'); + expect(SyntaxKind[ast.kind] === 'ClassDeclaration').to.be.true; + }); + }); + + context('With non-existing file', () => { + it('should return File not found Error', async () => { + try { + await getAST('unknown'); + } catch (error) { + expect(error.message).to.eql('File not found!'); + } + }); + }); + + context('With wrong format file', () => { + it('Should return class not found Error', async () => { + try { + await getAST('objectstorage'); + // `../../../node_modules/oci-${sdkFileName.toLowerCase()}/lib/client.d.ts` + } catch (error) { + expect(error.message).to.eql('Class not found!'); + } + }); + }); +}); diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json b/generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json new file mode 100644 index 00000000..e0a597b8 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json @@ -0,0 +1,54 @@ +{ + "className": "ObjectStorageClient", + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteBucket", + "params": [ + { + "name": "deleteBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "DeleteBucketRequest" + } + ] + }, + { + "functionName": "list", + "SDKFunctionName": "listBuckets", + "params": [ + { + "name": "listBucketsRequest", + "optional": false, + "type": "TypeReference", + "typeName": "ListBucketsRequest" + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateBucket", + "params": [ + { + "name": "updateBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateBucketRequest" + } + ] + } + ], + "serviceName": "ArchivalStorage" +} diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js b/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js new file mode 100644 index 00000000..13e04383 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js @@ -0,0 +1,11 @@ +class ClassName { + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json b/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json new file mode 100644 index 00000000..1a7d3593 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json @@ -0,0 +1,16 @@ +{ + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + } + ] +} diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js b/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js new file mode 100644 index 00000000..2f5ce226 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js @@ -0,0 +1,20 @@ +class ClassName { + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/dummyData/validDataset/data.json b/generator/test/transformers/oracle/dummyData/validDataset/data.json new file mode 100644 index 00000000..e0a597b8 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/validDataset/data.json @@ -0,0 +1,54 @@ +{ + "className": "ObjectStorageClient", + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteBucket", + "params": [ + { + "name": "deleteBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "DeleteBucketRequest" + } + ] + }, + { + "functionName": "list", + "SDKFunctionName": "listBuckets", + "params": [ + { + "name": "listBucketsRequest", + "optional": false, + "type": "TypeReference", + "typeName": "ListBucketsRequest" + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateBucket", + "params": [ + { + "name": "updateBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateBucketRequest" + } + ] + } + ], + "serviceName": "ArchivalStorage" +} diff --git a/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js b/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js new file mode 100644 index 00000000..80202db6 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js @@ -0,0 +1,25 @@ +class ClassName { + /** + * + * @param {module} do Oracle SDK + * @param {object} options SDK options + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/transformer.test.ts b/generator/test/transformers/oracle/transformer.test.ts new file mode 100644 index 00000000..54ddb3b7 --- /dev/null +++ b/generator/test/transformers/oracle/transformer.test.ts @@ -0,0 +1,69 @@ +import { expect } from 'chai'; +import { createSourceFile, isSourceFile, ScriptTarget } from 'typescript'; + +import { transform } from '../../../transformers/oracle/transformer'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +interface TestData { + AST: any; + data: any; +} + +describe('Oracle transformer transform', () => { + context('Valid source code and valid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('validDataset', 'oracle'); + testData.data = await readJsonData('validDataset', 'oracle'); + }); + it('Should return a String', async () => { + const result = await transform(testData.AST, testData.data); + expect(result).to.be.string; + }); + it('Should return a Javascript code in String format', async () => { + const result = await transform(testData.AST, testData.data); + try { + const sourceCode = createSourceFile( + 'someClass.js', + result, + ScriptTarget.Latest + ); + expect(isSourceFile(sourceCode)).to.be.true; + } catch (error) { + console.log(error); + } + }); + }); + + context('Invalid source code and valid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('invalidDataset_1', 'oracle'); + testData.data = await readJsonData('invalidDataset_1', 'oracle'); + }); + + it('Should return a validation Error', async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql('Code is invalid'); + } + }); + }); + + context('Valid source code and invalid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('invalidDataset_2', 'oracle'); + testData.data = await readJsonData('invalidDataset_2', 'oracle'); + }); + + it('Should return a validation Error', async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql('Input is invalid'); + } + }); + }); +}); From adefa5677fd1023089681607973017ea9a7a6bbd Mon Sep 17 00:00:00 2001 From: Partik SIngh Date: Fri, 25 Aug 2023 13:28:58 +0530 Subject: [PATCH 2/3] Completed Tests Signed-off-by: Partik SIngh --- .../test/generators/oracle/generator.test.ts | 158 +-- .../oracle/invalidDataset_1/sdkFile.txt | 926 ++++++++++++++++++ .../oracle/invalidDataset_1/serviceClass.json | 7 + .../oracle/invalidDataset_2/sdkFile.txt | 12 + .../oracle/invalidDataset_2/serviceClass.json | 7 + .../oracle/validDataset/sdkFile.txt | 926 ++++++++++++++++++ .../oracle/validDataset/serviceClass.json | 7 + 7 files changed, 1964 insertions(+), 79 deletions(-) create mode 100644 generator/test/generators/oracle/invalidDataset_1/sdkFile.txt create mode 100644 generator/test/generators/oracle/invalidDataset_1/serviceClass.json create mode 100644 generator/test/generators/oracle/invalidDataset_2/sdkFile.txt create mode 100644 generator/test/generators/oracle/invalidDataset_2/serviceClass.json create mode 100644 generator/test/generators/oracle/validDataset/sdkFile.txt create mode 100644 generator/test/generators/oracle/validDataset/serviceClass.json diff --git a/generator/test/generators/oracle/generator.test.ts b/generator/test/generators/oracle/generator.test.ts index dba778cc..b29e3dde 100644 --- a/generator/test/generators/oracle/generator.test.ts +++ b/generator/test/generators/oracle/generator.test.ts @@ -1,86 +1,86 @@ -// import { expect } from "chai"; -// import { SyntaxKind } from "typescript"; +import { expect } from "chai"; +import { SyntaxKind } from "typescript"; -// import { extractSDKData } from "../../../generators/oracle/generator"; -// import { readJsonData,readSourceFile } from "../lib/helper"; +import { extractSDKData } from "../../../generators/oracle/generator"; +import { readJsonData,readSourceFile } from "../lib/helper"; -// describe("Oracle generator extractSDKData", () => { -// context("with valid methods and valid AST", () => { -// it("should return extracted class data", async () => { -// const sdkFile: any = await readSourceFile("validDataset", "oracle"); -// const data: any = await readJsonData( -// "validDataset", -// "oracle", -// "serviceClass" -// ); -// let cloned = null; -// sdkFile.forEachChild(child => { -// if (SyntaxKind[child.kind] === "ClassDeclaration") { -// cloned = Object.assign({}, child); -// } -// }); +describe("Oracle generator extractSDKData", () => { + context("with valid methods and valid AST", () => { + it("should return extracted class data", async () => { + const sdkFile: any = await readSourceFile("validDataset", "oracle"); + const data: any = await readJsonData( + "validDataset", + "oracle", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); -// if (cloned) { -// const result = extractSDKData(cloned, data); -// expect(result).to.be.an("object"); -// expect(result.functions).to.be.an("array"); -// expect(result.className).to.be.string; -// } else { -// console.error("Error in cloning class"); -// } -// }); -// }); + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an("object"); + expect(result.functions).to.be.an("array"); + expect(result.className).to.be.string; + } else { + console.error("Error in cloning class"); + } + }); + }); -// context("with invalid method data:missing method name", () => { -// it("should drop invalid method", async () => { -// const sdkFile: any = await readSourceFile("invalidDataset_1", "oracle"); -// const data: any = await readJsonData( -// "invalidDataset_1", -// "oracle", -// "serviceClass" -// ); -// let cloned = null; -// sdkFile.forEachChild(child => { -// if (SyntaxKind[child.kind] === "ClassDeclaration") { -// cloned = Object.assign({}, child); -// } -// }); + context("with invalid method data:missing method name", () => { + it("should drop invalid method", async () => { + const sdkFile: any = await readSourceFile("invalidDataset_1", "oracle"); + const data: any = await readJsonData( + "invalidDataset_1", + "oracle", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); -// if (cloned) { -// expect( -// extractSDKData(cloned, data).functions.length < -// Object.keys(data).length -// ).to.be.true; -// } else { -// console.error("Error in cloning class"); -// } -// }); -// }); + if (cloned) { + expect( + extractSDKData(cloned, data).functions.length < + Object.keys(data).length + ).to.be.true; + } else { + console.error("Error in cloning class"); + } + }); + }); -// context("Oracle with no functions", () => { -// it("should return empty array of methods", async () => { -// const sdkFile: any = await readSourceFile("invalidDataset_2", "oracle"); -// const data: any = await readJsonData( -// "invalidDataset_2", -// "oracle", -// "serviceClass" -// ); -// let cloned = null; -// sdkFile.forEachChild(child => { -// if (SyntaxKind[child.kind] === "ClassDeclaration") { -// cloned = Object.assign({}, child); -// } -// }); + context("Oracle with no functions", () => { + it("should return empty array of methods", async () => { + const sdkFile: any = await readSourceFile("invalidDataset_2", "oracle"); + const data: any = await readJsonData( + "invalidDataset_2", + "oracle", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); -// if (cloned) { -// const result = extractSDKData(cloned, data); -// expect(result).to.be.an("object"); -// expect(result.functions).to.be.an("array"); -// expect(result.className).to.be.string; -// expect(result.functions.length).to.eql(0); -// } else { -// console.error("Error in cloning class"); -// } -// }); -// }); -// }); + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an("object"); + expect(result.functions).to.be.an("array"); + expect(result.className).to.be.string; + expect(result.functions.length).to.eql(0); + } else { + console.error("Error in cloning class"); + } + }); + }); +}); diff --git a/generator/test/generators/oracle/invalidDataset_1/sdkFile.txt b/generator/test/generators/oracle/invalidDataset_1/sdkFile.txt new file mode 100644 index 00000000..2d780bd6 --- /dev/null +++ b/generator/test/generators/oracle/invalidDataset_1/sdkFile.txt @@ -0,0 +1,926 @@ +import common = require("oci-common"); +import * as requests from "./request"; +import * as model from "./model"; +import * as responses from "./response"; +import { LoadBalancerWaiter } from "./loadbalancer-waiter"; +export declare enum LoadBalancerApiKeys { +} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export declare class LoadBalancerClient { + protected static serviceEndpointTemplate: string; + protected static endpointServiceName: string; + protected "_realmSpecificEndpointTemplateEnabled": boolean; + protected "_endpoint": string; + protected "_defaultHeaders": any; + protected "_waiters": LoadBalancerWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: null; + protected _httpOptions: any; + targetService: string; + protected _regionId: string; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string; + protected _httpClient: common.HttpClient; + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration); + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + get endpoint(): string; + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + set endpoint(endpoint: string); + get logger(): import("oci-common/lib/log").Logger; + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean); + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + set region(region: common.Region); + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + set regionId(regionId: string); + /** + * Creates a new LoadBalancerWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + createWaiters(config?: common.WaiterConfiguration): LoadBalancerWaiter; + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + getWaiters(): LoadBalancerWaiter; + /** + * Moves a load balancer into a different compartment within the same tenancy. For information about moving resources + * between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeLoadBalancerCompartmentRequest + * @return ChangeLoadBalancerCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ChangeLoadBalancerCompartment.ts.html |here} to see how to use ChangeLoadBalancerCompartment API. + */ + changeLoadBalancerCompartment(changeLoadBalancerCompartmentRequest: requests.ChangeLoadBalancerCompartmentRequest): Promise; + /** + * Adds a backend server to a backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendRequest + * @return CreateBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackend.ts.html |here} to see how to use CreateBackend API. + */ + createBackend(createBackendRequest: requests.CreateBackendRequest): Promise; + /** + * Adds a backend set to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendSetRequest + * @return CreateBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackendSet.ts.html |here} to see how to use CreateBackendSet API. + */ + createBackendSet(createBackendSetRequest: requests.CreateBackendSetRequest): Promise; + /** + * Creates an asynchronous request to add an SSL certificate bundle. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateCertificateRequest + * @return CreateCertificateResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateCertificate.ts.html |here} to see how to use CreateCertificate API. + */ + createCertificate(createCertificateRequest: requests.CreateCertificateRequest): Promise; + /** + * Adds a hostname resource to the specified load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateHostnameRequest + * @return CreateHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateHostname.ts.html |here} to see how to use CreateHostname API. + */ + createHostname(createHostnameRequest: requests.CreateHostnameRequest): Promise; + /** + * Adds a listener to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateListenerRequest + * @return CreateListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateListener.ts.html |here} to see how to use CreateListener API. + */ + createListener(createListenerRequest: requests.CreateListenerRequest): Promise; + /** + * Creates a new load balancer in the specified compartment. For general information about load balancers, + * see [Overview of the Load Balancing Service](https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm). + *

+ For the purposes of access control, you must provide the OCID of the compartment where you want + * the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN + * or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN. + * For information about access control and compartments, see + * [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). + *

+ You must specify a display name for the load balancer. It does not have to be unique, and you can change it. + *

+ For information about Availability Domains, see + * [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). + * To get a list of Availability Domains, use the `ListAvailabilityDomains` operation + * in the Identity and Access Management Service API. + *

+ All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned, + * unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID + * in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, + * or by viewing the resource in the Console. Fore more information, see + * [Resource Identifiers](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + *

+ After you send your request, the new object's state will temporarily be PROVISIONING. Before using the + * object, first make sure its state has changed to RUNNING. + *

+ When you create a load balancer, the system assigns an IP address. + * To get the IP address, use the {@link #getLoadBalancer(GetLoadBalancerRequest) getLoadBalancer} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateLoadBalancerRequest + * @return CreateLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateLoadBalancer.ts.html |here} to see how to use CreateLoadBalancer API. + */ + createLoadBalancer(createLoadBalancerRequest: requests.CreateLoadBalancerRequest): Promise; + /** + * Adds a path route set to a load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreatePathRouteSetRequest + * @return CreatePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreatePathRouteSet.ts.html |here} to see how to use CreatePathRouteSet API. + */ + createPathRouteSet(createPathRouteSetRequest: requests.CreatePathRouteSetRequest): Promise; + /** + * Adds a routing policy to a load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateRoutingPolicyRequest + * @return CreateRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateRoutingPolicy.ts.html |here} to see how to use CreateRoutingPolicy API. + */ + createRoutingPolicy(createRoutingPolicyRequest: requests.CreateRoutingPolicyRequest): Promise; + /** + * Creates a new rule set associated with the specified load balancer. For more information, see + * [Managing Rule Sets](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateRuleSetRequest + * @return CreateRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateRuleSet.ts.html |here} to see how to use CreateRuleSet API. + */ + createRuleSet(createRuleSetRequest: requests.CreateRuleSetRequest): Promise; + /** + * Creates a custom SSL cipher suite. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateSSLCipherSuiteRequest + * @return CreateSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateSSLCipherSuite.ts.html |here} to see how to use CreateSSLCipherSuite API. + */ + createSSLCipherSuite(createSSLCipherSuiteRequest: requests.CreateSSLCipherSuiteRequest): Promise; + /** + * Removes a backend server from a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteBackendRequest + * @return DeleteBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteBackend.ts.html |here} to see how to use DeleteBackend API. + */ + deleteBackend(deleteBackendRequest: requests.DeleteBackendRequest): Promise; + /** + * Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer. + *

+ Before you can delete a backend set, you must remove it from any active listeners. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteBackendSetRequest + * @return DeleteBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteBackendSet.ts.html |here} to see how to use DeleteBackendSet API. + */ + deleteBackendSet(deleteBackendSetRequest: requests.DeleteBackendSetRequest): Promise; + /** + * Deletes an SSL certificate bundle from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteCertificateRequest + * @return DeleteCertificateResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API. + */ + deleteCertificate(deleteCertificateRequest: requests.DeleteCertificateRequest): Promise; + /** + * Deletes a hostname resource from the specified load balancer. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteHostnameRequest + * @return DeleteHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteHostname.ts.html |here} to see how to use DeleteHostname API. + */ + deleteHostname(deleteHostnameRequest: requests.DeleteHostnameRequest): Promise; + /** + * Deletes a listener from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteListenerRequest + * @return DeleteListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteListener.ts.html |here} to see how to use DeleteListener API. + */ + deleteListener(deleteListenerRequest: requests.DeleteListenerRequest): Promise; + /** + * Stops a load balancer and removes it from service. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteLoadBalancerRequest + * @return DeleteLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteLoadBalancer.ts.html |here} to see how to use DeleteLoadBalancer API. + */ + deleteLoadBalancer(deleteLoadBalancerRequest: requests.DeleteLoadBalancerRequest): Promise; + /** + * Deletes a path route set from the specified load balancer. + *

+ To delete a path route rule from a path route set, use the + * {@link #updatePathRouteSet(UpdatePathRouteSetRequest) updatePathRouteSet} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeletePathRouteSetRequest + * @return DeletePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeletePathRouteSet.ts.html |here} to see how to use DeletePathRouteSet API. + */ + deletePathRouteSet(deletePathRouteSetRequest: requests.DeletePathRouteSetRequest): Promise; + /** + * Deletes a routing policy from the specified load balancer. + *

+ To delete a routing rule from a routing policy, use the + * {@link #updateRoutingPolicy(UpdateRoutingPolicyRequest) updateRoutingPolicy} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteRoutingPolicyRequest + * @return DeleteRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteRoutingPolicy.ts.html |here} to see how to use DeleteRoutingPolicy API. + */ + deleteRoutingPolicy(deleteRoutingPolicyRequest: requests.DeleteRoutingPolicyRequest): Promise; + /** + * Deletes a rule set from the specified load balancer. + *

+ To delete a rule from a rule set, use the + * {@link #updateRuleSet(UpdateRuleSetRequest) updateRuleSet} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteRuleSetRequest + * @return DeleteRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteRuleSet.ts.html |here} to see how to use DeleteRuleSet API. + */ + deleteRuleSet(deleteRuleSetRequest: requests.DeleteRuleSetRequest): Promise; + /** + * Deletes an SSL cipher suite from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteSSLCipherSuiteRequest + * @return DeleteSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteSSLCipherSuite.ts.html |here} to see how to use DeleteSSLCipherSuite API. + */ + deleteSSLCipherSuite(deleteSSLCipherSuiteRequest: requests.DeleteSSLCipherSuiteRequest): Promise; + /** + * Gets the specified backend server's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendRequest + * @return GetBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackend.ts.html |here} to see how to use GetBackend API. + */ + getBackend(getBackendRequest: requests.GetBackendRequest): Promise; + /** + * Gets the current health status of the specified backend server. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendHealthRequest + * @return GetBackendHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendHealth.ts.html |here} to see how to use GetBackendHealth API. + */ + getBackendHealth(getBackendHealthRequest: requests.GetBackendHealthRequest): Promise; + /** + * Gets the specified backend set's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendSetRequest + * @return GetBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendSet.ts.html |here} to see how to use GetBackendSet API. + */ + getBackendSet(getBackendSetRequest: requests.GetBackendSetRequest): Promise; + /** + * Gets the health status for the specified backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendSetHealthRequest + * @return GetBackendSetHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendSetHealth.ts.html |here} to see how to use GetBackendSetHealth API. + */ + getBackendSetHealth(getBackendSetHealthRequest: requests.GetBackendSetHealthRequest): Promise; + /** + * Gets the health check policy information for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetHealthCheckerRequest + * @return GetHealthCheckerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetHealthChecker.ts.html |here} to see how to use GetHealthChecker API. + */ + getHealthChecker(getHealthCheckerRequest: requests.GetHealthCheckerRequest): Promise; + /** + * Gets the specified hostname resource's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetHostnameRequest + * @return GetHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetHostname.ts.html |here} to see how to use GetHostname API. + */ + getHostname(getHostnameRequest: requests.GetHostnameRequest): Promise; + /** + * Gets the specified load balancer's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetLoadBalancerRequest + * @return GetLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetLoadBalancer.ts.html |here} to see how to use GetLoadBalancer API. + */ + getLoadBalancer(getLoadBalancerRequest: requests.GetLoadBalancerRequest): Promise; + /** + * Gets the health status for the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetLoadBalancerHealthRequest + * @return GetLoadBalancerHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetLoadBalancerHealth.ts.html |here} to see how to use GetLoadBalancerHealth API. + */ + getLoadBalancerHealth(getLoadBalancerHealthRequest: requests.GetLoadBalancerHealthRequest): Promise; + /** + * Gets the specified path route set's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetPathRouteSetRequest + * @return GetPathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetPathRouteSet.ts.html |here} to see how to use GetPathRouteSet API. + */ + getPathRouteSet(getPathRouteSetRequest: requests.GetPathRouteSetRequest): Promise; + /** + * Gets the specified routing policy. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetRoutingPolicyRequest + * @return GetRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetRoutingPolicy.ts.html |here} to see how to use GetRoutingPolicy API. + */ + getRoutingPolicy(getRoutingPolicyRequest: requests.GetRoutingPolicyRequest): Promise; + /** + * Gets the specified set of rules. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetRuleSetRequest + * @return GetRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetRuleSet.ts.html |here} to see how to use GetRuleSet API. + */ + getRuleSet(getRuleSetRequest: requests.GetRuleSetRequest): Promise; + /** + * Gets the specified SSL cipher suite's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetSSLCipherSuiteRequest + * @return GetSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetSSLCipherSuite.ts.html |here} to see how to use GetSSLCipherSuite API. + */ + getSSLCipherSuite(getSSLCipherSuiteRequest: requests.GetSSLCipherSuiteRequest): Promise; + /** + * Gets the details of a work request. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetWorkRequestRequest + * @return GetWorkRequestResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API. + */ + getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise; + /** + * Lists all backend sets associated with a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListBackendSetsRequest + * @return ListBackendSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListBackendSets.ts.html |here} to see how to use ListBackendSets API. + */ + listBackendSets(listBackendSetsRequest: requests.ListBackendSetsRequest): Promise; + /** + * Lists the backend servers for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListBackendsRequest + * @return ListBackendsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListBackends.ts.html |here} to see how to use ListBackends API. + */ + listBackends(listBackendsRequest: requests.ListBackendsRequest): Promise; + /** + * Lists all SSL certificates bundles associated with a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListCertificatesRequest + * @return ListCertificatesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListCertificates.ts.html |here} to see how to use ListCertificates API. + */ + listCertificates(listCertificatesRequest: requests.ListCertificatesRequest): Promise; + /** + * Lists all hostname resources associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListHostnamesRequest + * @return ListHostnamesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListHostnames.ts.html |here} to see how to use ListHostnames API. + */ + listHostnames(listHostnamesRequest: requests.ListHostnamesRequest): Promise; + /** + * Lists all of the rules from all of the rule sets associated with the specified listener. The response organizes + * the rules in the following order: + *

+ * Access control rules + * * Allow method rules + * * Request header rules + * * Response header rules + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListListenerRulesRequest + * @return ListListenerRulesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListListenerRules.ts.html |here} to see how to use ListListenerRules API. + */ + listListenerRules(listListenerRulesRequest: requests.ListListenerRulesRequest): Promise; + /** + * Lists the summary health statuses for all load balancers in the specified compartment. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListLoadBalancerHealthsRequest + * @return ListLoadBalancerHealthsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListLoadBalancerHealths.ts.html |here} to see how to use ListLoadBalancerHealths API. + */ + listLoadBalancerHealths(listLoadBalancerHealthsRequest: requests.ListLoadBalancerHealthsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listLoadBalancerHealthsRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerHealthSummary objects + * contained in responses from the listLoadBalancerHealths operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancerHealths(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listLoadBalancerHealthsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancerHealths operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancerHealthsResponses(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerHealthSummary objects + * contained in responses from the listLoadBalancerHealths operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancerHealthsRecordIterator(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancerHealths operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancerHealthsResponseIterator(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Lists all load balancers in the specified compartment. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListLoadBalancersRequest + * @return ListLoadBalancersResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListLoadBalancers.ts.html |here} to see how to use ListLoadBalancers API. + */ + listLoadBalancers(listLoadBalancersRequest: requests.ListLoadBalancersRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listLoadBalancersRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancer objects + * contained in responses from the listLoadBalancers operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancers(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listLoadBalancersResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancers operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancersResponses(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancer objects + * contained in responses from the listLoadBalancers operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancersRecordIterator(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancers operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancersResponseIterator(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Lists all path route sets associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListPathRouteSetsRequest + * @return ListPathRouteSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListPathRouteSets.ts.html |here} to see how to use ListPathRouteSets API. + */ + listPathRouteSets(listPathRouteSetsRequest: requests.ListPathRouteSetsRequest): Promise; + /** + * Lists the available load balancer policies. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListPoliciesRequest + * @return ListPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListPolicies.ts.html |here} to see how to use ListPolicies API. + */ + listPolicies(listPoliciesRequest: requests.ListPoliciesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listPoliciesRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerPolicy objects + * contained in responses from the listPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllPolicies(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listPoliciesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllPoliciesResponses(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerPolicy objects + * contained in responses from the listPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listPoliciesRecordIterator(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listPoliciesResponseIterator(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Lists all supported traffic protocols. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListProtocolsRequest + * @return ListProtocolsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListProtocols.ts.html |here} to see how to use ListProtocols API. + */ + listProtocols(listProtocolsRequest: requests.ListProtocolsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listProtocolsRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerProtocol objects + * contained in responses from the listProtocols operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllProtocols(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listProtocolsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listProtocols operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllProtocolsResponses(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerProtocol objects + * contained in responses from the listProtocols operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listProtocolsRecordIterator(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listProtocols operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listProtocolsResponseIterator(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Lists all routing policies associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListRoutingPoliciesRequest + * @return ListRoutingPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListRoutingPolicies.ts.html |here} to see how to use ListRoutingPolicies API. + */ + listRoutingPolicies(listRoutingPoliciesRequest: requests.ListRoutingPoliciesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listRoutingPoliciesRecordIterator function. + * Creates a new async iterator which will iterate over the models.RoutingPolicy objects + * contained in responses from the listRoutingPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllRoutingPolicies(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listRoutingPoliciesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listRoutingPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllRoutingPoliciesResponses(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.RoutingPolicy objects + * contained in responses from the listRoutingPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listRoutingPoliciesRecordIterator(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listRoutingPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listRoutingPoliciesResponseIterator(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Lists all rule sets associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListRuleSetsRequest + * @return ListRuleSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListRuleSets.ts.html |here} to see how to use ListRuleSets API. + */ + listRuleSets(listRuleSetsRequest: requests.ListRuleSetsRequest): Promise; + /** + * Lists all SSL cipher suites associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListSSLCipherSuitesRequest + * @return ListSSLCipherSuitesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListSSLCipherSuites.ts.html |here} to see how to use ListSSLCipherSuites API. + */ + listSSLCipherSuites(listSSLCipherSuitesRequest: requests.ListSSLCipherSuitesRequest): Promise; + /** + * Lists the valid load balancer shapes. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListShapesRequest + * @return ListShapesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListShapes.ts.html |here} to see how to use ListShapes API. + */ + listShapes(listShapesRequest: requests.ListShapesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listShapesRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerShape objects + * contained in responses from the listShapes operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllShapes(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listShapesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listShapes operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllShapesResponses(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerShape objects + * contained in responses from the listShapes operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listShapesRecordIterator(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listShapes operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listShapesResponseIterator(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Lists the work requests for a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListWorkRequestsRequest + * @return ListWorkRequestsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API. + */ + listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listWorkRequestsRecordIterator function. + * Creates a new async iterator which will iterate over the models.WorkRequest objects + * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllWorkRequests(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listWorkRequestsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllWorkRequestsResponses(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.WorkRequest objects + * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listWorkRequestsRecordIterator(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listWorkRequestsResponseIterator(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Updates the configuration of a backend server within the specified backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateBackendRequest + * @return UpdateBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateBackend.ts.html |here} to see how to use UpdateBackend API. + */ + updateBackend(updateBackendRequest: requests.UpdateBackendRequest): Promise; + /** + * Updates a backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateBackendSetRequest + * @return UpdateBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateBackendSet.ts.html |here} to see how to use UpdateBackendSet API. + */ + updateBackendSet(updateBackendSetRequest: requests.UpdateBackendSetRequest): Promise; + /** + * Updates the health check policy for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateHealthCheckerRequest + * @return UpdateHealthCheckerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateHealthChecker.ts.html |here} to see how to use UpdateHealthChecker API. + */ + updateHealthChecker(updateHealthCheckerRequest: requests.UpdateHealthCheckerRequest): Promise; + /** + * Overwrites an existing hostname resource on the specified load balancer. Use this operation to change a + * virtual hostname. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateHostnameRequest + * @return UpdateHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateHostname.ts.html |here} to see how to use UpdateHostname API. + */ + updateHostname(updateHostnameRequest: requests.UpdateHostnameRequest): Promise; + /** + * Updates a listener for a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateListenerRequest + * @return UpdateListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateListener.ts.html |here} to see how to use UpdateListener API. + */ + updateListener(updateListenerRequest: requests.UpdateListenerRequest): Promise; + /** + * Updates a load balancer's configuration. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateLoadBalancerRequest + * @return UpdateLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateLoadBalancer.ts.html |here} to see how to use UpdateLoadBalancer API. + */ + updateLoadBalancer(updateLoadBalancerRequest: requests.UpdateLoadBalancerRequest): Promise; + /** + * Update the shape of a load balancer. The new shape can be larger or smaller compared to existing shape of the + * LB. The service will try to perform this operation in the least disruptive way to existing connections, but + * there is a possibility that they might be lost during the LB resizing process. The new shape becomes effective + * as soon as the related work request completes successfully, i.e. when reshaping to a larger shape, the LB will + * start accepting larger bandwidth and when reshaping to a smaller one, the LB will be accepting smaller + * bandwidth. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateLoadBalancerShapeRequest + * @return UpdateLoadBalancerShapeResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateLoadBalancerShape.ts.html |here} to see how to use UpdateLoadBalancerShape API. + */ + updateLoadBalancerShape(updateLoadBalancerShapeRequest: requests.UpdateLoadBalancerShapeRequest): Promise; + /** + * Updates the network security groups associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateNetworkSecurityGroupsRequest + * @return UpdateNetworkSecurityGroupsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateNetworkSecurityGroups.ts.html |here} to see how to use UpdateNetworkSecurityGroups API. + */ + updateNetworkSecurityGroups(updateNetworkSecurityGroupsRequest: requests.UpdateNetworkSecurityGroupsRequest): Promise; + /** + * Overwrites an existing path route set on the specified load balancer. Use this operation to add, delete, or alter + * path route rules in a path route set. + *

+ To add a new path route rule to a path route set, the `pathRoutes` in the + * {@link #updatePathRouteSetDetails(UpdatePathRouteSetDetailsRequest) updatePathRouteSetDetails} object must include + * both the new path route rule to add and the existing path route rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdatePathRouteSetRequest + * @return UpdatePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdatePathRouteSet.ts.html |here} to see how to use UpdatePathRouteSet API. + */ + updatePathRouteSet(updatePathRouteSetRequest: requests.UpdatePathRouteSetRequest): Promise; + /** + * Overwrites an existing routing policy on the specified load balancer. Use this operation to add, delete, or alter + * routing policy rules in a routing policy. + *

+ To add a new routing rule to a routing policy, the body must include both the new routing rule to add and the existing rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateRoutingPolicyRequest + * @return UpdateRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateRoutingPolicy.ts.html |here} to see how to use UpdateRoutingPolicy API. + */ + updateRoutingPolicy(updateRoutingPolicyRequest: requests.UpdateRoutingPolicyRequest): Promise; + /** + * Overwrites an existing set of rules on the specified load balancer. Use this operation to add or alter + * the rules in a rule set. + *

+ To add a new rule to a set, the body must include both the new rule to add and the existing rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateRuleSetRequest + * @return UpdateRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateRuleSet.ts.html |here} to see how to use UpdateRuleSet API. + */ + updateRuleSet(updateRuleSetRequest: requests.UpdateRuleSetRequest): Promise; + /** + * Updates an existing SSL cipher suite for the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateSSLCipherSuiteRequest + * @return UpdateSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateSSLCipherSuite.ts.html |here} to see how to use UpdateSSLCipherSuite API. + */ + updateSSLCipherSuite(updateSSLCipherSuiteRequest: requests.UpdateSSLCipherSuiteRequest): Promise; +} \ No newline at end of file diff --git a/generator/test/generators/oracle/invalidDataset_1/serviceClass.json b/generator/test/generators/oracle/invalidDataset_1/serviceClass.json new file mode 100644 index 00000000..bb3ceae2 --- /dev/null +++ b/generator/test/generators/oracle/invalidDataset_1/serviceClass.json @@ -0,0 +1,7 @@ +{ + "create": "loadbalancer createLoadBalancer", + "delete": "loadbalancer", + "get": "loadbalancer getLoadBalancer", + "update": "loadbalancer updateLoadBalancer", + "list": "loadbalancer listLoadBalancers" +} \ No newline at end of file diff --git a/generator/test/generators/oracle/invalidDataset_2/sdkFile.txt b/generator/test/generators/oracle/invalidDataset_2/sdkFile.txt new file mode 100644 index 00000000..6ca8170b --- /dev/null +++ b/generator/test/generators/oracle/invalidDataset_2/sdkFile.txt @@ -0,0 +1,12 @@ +import common = require("oci-common"); +import * as requests from "./request"; +import * as model from "./model"; +import * as responses from "./response"; +import { LoadBalancerWaiter } from "./loadbalancer-waiter"; +export declare enum LoadBalancerApiKeys { +} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export declare class LoadBalancerClient { +} \ No newline at end of file diff --git a/generator/test/generators/oracle/invalidDataset_2/serviceClass.json b/generator/test/generators/oracle/invalidDataset_2/serviceClass.json new file mode 100644 index 00000000..7577b13d --- /dev/null +++ b/generator/test/generators/oracle/invalidDataset_2/serviceClass.json @@ -0,0 +1,7 @@ +{ + "create": "loadbalancer createLoadBalancer", + "delete": "loadbalancer deleteLoadBalancer", + "get": "loadbalancer getLoadBalancer", + "update": "loadbalancer updateLoadBalancer", + "list": "loadbalancer listLoadBalancers" +} \ No newline at end of file diff --git a/generator/test/generators/oracle/validDataset/sdkFile.txt b/generator/test/generators/oracle/validDataset/sdkFile.txt new file mode 100644 index 00000000..2d780bd6 --- /dev/null +++ b/generator/test/generators/oracle/validDataset/sdkFile.txt @@ -0,0 +1,926 @@ +import common = require("oci-common"); +import * as requests from "./request"; +import * as model from "./model"; +import * as responses from "./response"; +import { LoadBalancerWaiter } from "./loadbalancer-waiter"; +export declare enum LoadBalancerApiKeys { +} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export declare class LoadBalancerClient { + protected static serviceEndpointTemplate: string; + protected static endpointServiceName: string; + protected "_realmSpecificEndpointTemplateEnabled": boolean; + protected "_endpoint": string; + protected "_defaultHeaders": any; + protected "_waiters": LoadBalancerWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: null; + protected _httpOptions: any; + targetService: string; + protected _regionId: string; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string; + protected _httpClient: common.HttpClient; + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration); + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + get endpoint(): string; + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + set endpoint(endpoint: string); + get logger(): import("oci-common/lib/log").Logger; + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean); + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + set region(region: common.Region); + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + set regionId(regionId: string); + /** + * Creates a new LoadBalancerWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + createWaiters(config?: common.WaiterConfiguration): LoadBalancerWaiter; + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + getWaiters(): LoadBalancerWaiter; + /** + * Moves a load balancer into a different compartment within the same tenancy. For information about moving resources + * between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeLoadBalancerCompartmentRequest + * @return ChangeLoadBalancerCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ChangeLoadBalancerCompartment.ts.html |here} to see how to use ChangeLoadBalancerCompartment API. + */ + changeLoadBalancerCompartment(changeLoadBalancerCompartmentRequest: requests.ChangeLoadBalancerCompartmentRequest): Promise; + /** + * Adds a backend server to a backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendRequest + * @return CreateBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackend.ts.html |here} to see how to use CreateBackend API. + */ + createBackend(createBackendRequest: requests.CreateBackendRequest): Promise; + /** + * Adds a backend set to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendSetRequest + * @return CreateBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackendSet.ts.html |here} to see how to use CreateBackendSet API. + */ + createBackendSet(createBackendSetRequest: requests.CreateBackendSetRequest): Promise; + /** + * Creates an asynchronous request to add an SSL certificate bundle. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateCertificateRequest + * @return CreateCertificateResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateCertificate.ts.html |here} to see how to use CreateCertificate API. + */ + createCertificate(createCertificateRequest: requests.CreateCertificateRequest): Promise; + /** + * Adds a hostname resource to the specified load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateHostnameRequest + * @return CreateHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateHostname.ts.html |here} to see how to use CreateHostname API. + */ + createHostname(createHostnameRequest: requests.CreateHostnameRequest): Promise; + /** + * Adds a listener to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateListenerRequest + * @return CreateListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateListener.ts.html |here} to see how to use CreateListener API. + */ + createListener(createListenerRequest: requests.CreateListenerRequest): Promise; + /** + * Creates a new load balancer in the specified compartment. For general information about load balancers, + * see [Overview of the Load Balancing Service](https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm). + *

+ For the purposes of access control, you must provide the OCID of the compartment where you want + * the load balancer to reside. Notice that the load balancer doesn't have to be in the same compartment as the VCN + * or backend set. If you're not sure which compartment to use, put the load balancer in the same compartment as the VCN. + * For information about access control and compartments, see + * [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). + *

+ You must specify a display name for the load balancer. It does not have to be unique, and you can change it. + *

+ For information about Availability Domains, see + * [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). + * To get a list of Availability Domains, use the `ListAvailabilityDomains` operation + * in the Identity and Access Management Service API. + *

+ All Oracle Cloud Infrastructure resources, including load balancers, get an Oracle-assigned, + * unique ID called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID + * in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, + * or by viewing the resource in the Console. Fore more information, see + * [Resource Identifiers](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + *

+ After you send your request, the new object's state will temporarily be PROVISIONING. Before using the + * object, first make sure its state has changed to RUNNING. + *

+ When you create a load balancer, the system assigns an IP address. + * To get the IP address, use the {@link #getLoadBalancer(GetLoadBalancerRequest) getLoadBalancer} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateLoadBalancerRequest + * @return CreateLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateLoadBalancer.ts.html |here} to see how to use CreateLoadBalancer API. + */ + createLoadBalancer(createLoadBalancerRequest: requests.CreateLoadBalancerRequest): Promise; + /** + * Adds a path route set to a load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreatePathRouteSetRequest + * @return CreatePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreatePathRouteSet.ts.html |here} to see how to use CreatePathRouteSet API. + */ + createPathRouteSet(createPathRouteSetRequest: requests.CreatePathRouteSetRequest): Promise; + /** + * Adds a routing policy to a load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateRoutingPolicyRequest + * @return CreateRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateRoutingPolicy.ts.html |here} to see how to use CreateRoutingPolicy API. + */ + createRoutingPolicy(createRoutingPolicyRequest: requests.CreateRoutingPolicyRequest): Promise; + /** + * Creates a new rule set associated with the specified load balancer. For more information, see + * [Managing Rule Sets](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateRuleSetRequest + * @return CreateRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateRuleSet.ts.html |here} to see how to use CreateRuleSet API. + */ + createRuleSet(createRuleSetRequest: requests.CreateRuleSetRequest): Promise; + /** + * Creates a custom SSL cipher suite. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateSSLCipherSuiteRequest + * @return CreateSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateSSLCipherSuite.ts.html |here} to see how to use CreateSSLCipherSuite API. + */ + createSSLCipherSuite(createSSLCipherSuiteRequest: requests.CreateSSLCipherSuiteRequest): Promise; + /** + * Removes a backend server from a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteBackendRequest + * @return DeleteBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteBackend.ts.html |here} to see how to use DeleteBackend API. + */ + deleteBackend(deleteBackendRequest: requests.DeleteBackendRequest): Promise; + /** + * Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the load balancer. + *

+ Before you can delete a backend set, you must remove it from any active listeners. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteBackendSetRequest + * @return DeleteBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteBackendSet.ts.html |here} to see how to use DeleteBackendSet API. + */ + deleteBackendSet(deleteBackendSetRequest: requests.DeleteBackendSetRequest): Promise; + /** + * Deletes an SSL certificate bundle from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteCertificateRequest + * @return DeleteCertificateResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteCertificate.ts.html |here} to see how to use DeleteCertificate API. + */ + deleteCertificate(deleteCertificateRequest: requests.DeleteCertificateRequest): Promise; + /** + * Deletes a hostname resource from the specified load balancer. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteHostnameRequest + * @return DeleteHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteHostname.ts.html |here} to see how to use DeleteHostname API. + */ + deleteHostname(deleteHostnameRequest: requests.DeleteHostnameRequest): Promise; + /** + * Deletes a listener from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteListenerRequest + * @return DeleteListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteListener.ts.html |here} to see how to use DeleteListener API. + */ + deleteListener(deleteListenerRequest: requests.DeleteListenerRequest): Promise; + /** + * Stops a load balancer and removes it from service. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteLoadBalancerRequest + * @return DeleteLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteLoadBalancer.ts.html |here} to see how to use DeleteLoadBalancer API. + */ + deleteLoadBalancer(deleteLoadBalancerRequest: requests.DeleteLoadBalancerRequest): Promise; + /** + * Deletes a path route set from the specified load balancer. + *

+ To delete a path route rule from a path route set, use the + * {@link #updatePathRouteSet(UpdatePathRouteSetRequest) updatePathRouteSet} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeletePathRouteSetRequest + * @return DeletePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeletePathRouteSet.ts.html |here} to see how to use DeletePathRouteSet API. + */ + deletePathRouteSet(deletePathRouteSetRequest: requests.DeletePathRouteSetRequest): Promise; + /** + * Deletes a routing policy from the specified load balancer. + *

+ To delete a routing rule from a routing policy, use the + * {@link #updateRoutingPolicy(UpdateRoutingPolicyRequest) updateRoutingPolicy} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteRoutingPolicyRequest + * @return DeleteRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteRoutingPolicy.ts.html |here} to see how to use DeleteRoutingPolicy API. + */ + deleteRoutingPolicy(deleteRoutingPolicyRequest: requests.DeleteRoutingPolicyRequest): Promise; + /** + * Deletes a rule set from the specified load balancer. + *

+ To delete a rule from a rule set, use the + * {@link #updateRuleSet(UpdateRuleSetRequest) updateRuleSet} operation. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteRuleSetRequest + * @return DeleteRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteRuleSet.ts.html |here} to see how to use DeleteRuleSet API. + */ + deleteRuleSet(deleteRuleSetRequest: requests.DeleteRuleSetRequest): Promise; + /** + * Deletes an SSL cipher suite from a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param DeleteSSLCipherSuiteRequest + * @return DeleteSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/DeleteSSLCipherSuite.ts.html |here} to see how to use DeleteSSLCipherSuite API. + */ + deleteSSLCipherSuite(deleteSSLCipherSuiteRequest: requests.DeleteSSLCipherSuiteRequest): Promise; + /** + * Gets the specified backend server's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendRequest + * @return GetBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackend.ts.html |here} to see how to use GetBackend API. + */ + getBackend(getBackendRequest: requests.GetBackendRequest): Promise; + /** + * Gets the current health status of the specified backend server. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendHealthRequest + * @return GetBackendHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendHealth.ts.html |here} to see how to use GetBackendHealth API. + */ + getBackendHealth(getBackendHealthRequest: requests.GetBackendHealthRequest): Promise; + /** + * Gets the specified backend set's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendSetRequest + * @return GetBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendSet.ts.html |here} to see how to use GetBackendSet API. + */ + getBackendSet(getBackendSetRequest: requests.GetBackendSetRequest): Promise; + /** + * Gets the health status for the specified backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetBackendSetHealthRequest + * @return GetBackendSetHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetBackendSetHealth.ts.html |here} to see how to use GetBackendSetHealth API. + */ + getBackendSetHealth(getBackendSetHealthRequest: requests.GetBackendSetHealthRequest): Promise; + /** + * Gets the health check policy information for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetHealthCheckerRequest + * @return GetHealthCheckerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetHealthChecker.ts.html |here} to see how to use GetHealthChecker API. + */ + getHealthChecker(getHealthCheckerRequest: requests.GetHealthCheckerRequest): Promise; + /** + * Gets the specified hostname resource's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetHostnameRequest + * @return GetHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetHostname.ts.html |here} to see how to use GetHostname API. + */ + getHostname(getHostnameRequest: requests.GetHostnameRequest): Promise; + /** + * Gets the specified load balancer's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetLoadBalancerRequest + * @return GetLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetLoadBalancer.ts.html |here} to see how to use GetLoadBalancer API. + */ + getLoadBalancer(getLoadBalancerRequest: requests.GetLoadBalancerRequest): Promise; + /** + * Gets the health status for the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetLoadBalancerHealthRequest + * @return GetLoadBalancerHealthResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetLoadBalancerHealth.ts.html |here} to see how to use GetLoadBalancerHealth API. + */ + getLoadBalancerHealth(getLoadBalancerHealthRequest: requests.GetLoadBalancerHealthRequest): Promise; + /** + * Gets the specified path route set's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetPathRouteSetRequest + * @return GetPathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetPathRouteSet.ts.html |here} to see how to use GetPathRouteSet API. + */ + getPathRouteSet(getPathRouteSetRequest: requests.GetPathRouteSetRequest): Promise; + /** + * Gets the specified routing policy. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetRoutingPolicyRequest + * @return GetRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetRoutingPolicy.ts.html |here} to see how to use GetRoutingPolicy API. + */ + getRoutingPolicy(getRoutingPolicyRequest: requests.GetRoutingPolicyRequest): Promise; + /** + * Gets the specified set of rules. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetRuleSetRequest + * @return GetRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetRuleSet.ts.html |here} to see how to use GetRuleSet API. + */ + getRuleSet(getRuleSetRequest: requests.GetRuleSetRequest): Promise; + /** + * Gets the specified SSL cipher suite's configuration information. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetSSLCipherSuiteRequest + * @return GetSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetSSLCipherSuite.ts.html |here} to see how to use GetSSLCipherSuite API. + */ + getSSLCipherSuite(getSSLCipherSuiteRequest: requests.GetSSLCipherSuiteRequest): Promise; + /** + * Gets the details of a work request. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param GetWorkRequestRequest + * @return GetWorkRequestResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API. + */ + getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise; + /** + * Lists all backend sets associated with a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListBackendSetsRequest + * @return ListBackendSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListBackendSets.ts.html |here} to see how to use ListBackendSets API. + */ + listBackendSets(listBackendSetsRequest: requests.ListBackendSetsRequest): Promise; + /** + * Lists the backend servers for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListBackendsRequest + * @return ListBackendsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListBackends.ts.html |here} to see how to use ListBackends API. + */ + listBackends(listBackendsRequest: requests.ListBackendsRequest): Promise; + /** + * Lists all SSL certificates bundles associated with a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListCertificatesRequest + * @return ListCertificatesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListCertificates.ts.html |here} to see how to use ListCertificates API. + */ + listCertificates(listCertificatesRequest: requests.ListCertificatesRequest): Promise; + /** + * Lists all hostname resources associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListHostnamesRequest + * @return ListHostnamesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListHostnames.ts.html |here} to see how to use ListHostnames API. + */ + listHostnames(listHostnamesRequest: requests.ListHostnamesRequest): Promise; + /** + * Lists all of the rules from all of the rule sets associated with the specified listener. The response organizes + * the rules in the following order: + *

+ * Access control rules + * * Allow method rules + * * Request header rules + * * Response header rules + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListListenerRulesRequest + * @return ListListenerRulesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListListenerRules.ts.html |here} to see how to use ListListenerRules API. + */ + listListenerRules(listListenerRulesRequest: requests.ListListenerRulesRequest): Promise; + /** + * Lists the summary health statuses for all load balancers in the specified compartment. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListLoadBalancerHealthsRequest + * @return ListLoadBalancerHealthsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListLoadBalancerHealths.ts.html |here} to see how to use ListLoadBalancerHealths API. + */ + listLoadBalancerHealths(listLoadBalancerHealthsRequest: requests.ListLoadBalancerHealthsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listLoadBalancerHealthsRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerHealthSummary objects + * contained in responses from the listLoadBalancerHealths operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancerHealths(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listLoadBalancerHealthsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancerHealths operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancerHealthsResponses(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerHealthSummary objects + * contained in responses from the listLoadBalancerHealths operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancerHealthsRecordIterator(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancerHealths operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancerHealthsResponseIterator(request: requests.ListLoadBalancerHealthsRequest): AsyncIterableIterator; + /** + * Lists all load balancers in the specified compartment. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListLoadBalancersRequest + * @return ListLoadBalancersResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListLoadBalancers.ts.html |here} to see how to use ListLoadBalancers API. + */ + listLoadBalancers(listLoadBalancersRequest: requests.ListLoadBalancersRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listLoadBalancersRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancer objects + * contained in responses from the listLoadBalancers operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancers(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listLoadBalancersResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancers operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllLoadBalancersResponses(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancer objects + * contained in responses from the listLoadBalancers operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancersRecordIterator(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listLoadBalancers operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listLoadBalancersResponseIterator(request: requests.ListLoadBalancersRequest): AsyncIterableIterator; + /** + * Lists all path route sets associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListPathRouteSetsRequest + * @return ListPathRouteSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListPathRouteSets.ts.html |here} to see how to use ListPathRouteSets API. + */ + listPathRouteSets(listPathRouteSetsRequest: requests.ListPathRouteSetsRequest): Promise; + /** + * Lists the available load balancer policies. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListPoliciesRequest + * @return ListPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListPolicies.ts.html |here} to see how to use ListPolicies API. + */ + listPolicies(listPoliciesRequest: requests.ListPoliciesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listPoliciesRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerPolicy objects + * contained in responses from the listPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllPolicies(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listPoliciesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllPoliciesResponses(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerPolicy objects + * contained in responses from the listPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listPoliciesRecordIterator(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listPoliciesResponseIterator(request: requests.ListPoliciesRequest): AsyncIterableIterator; + /** + * Lists all supported traffic protocols. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListProtocolsRequest + * @return ListProtocolsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListProtocols.ts.html |here} to see how to use ListProtocols API. + */ + listProtocols(listProtocolsRequest: requests.ListProtocolsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listProtocolsRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerProtocol objects + * contained in responses from the listProtocols operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllProtocols(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listProtocolsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listProtocols operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllProtocolsResponses(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerProtocol objects + * contained in responses from the listProtocols operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listProtocolsRecordIterator(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listProtocols operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listProtocolsResponseIterator(request: requests.ListProtocolsRequest): AsyncIterableIterator; + /** + * Lists all routing policies associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListRoutingPoliciesRequest + * @return ListRoutingPoliciesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListRoutingPolicies.ts.html |here} to see how to use ListRoutingPolicies API. + */ + listRoutingPolicies(listRoutingPoliciesRequest: requests.ListRoutingPoliciesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listRoutingPoliciesRecordIterator function. + * Creates a new async iterator which will iterate over the models.RoutingPolicy objects + * contained in responses from the listRoutingPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllRoutingPolicies(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listRoutingPoliciesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listRoutingPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllRoutingPoliciesResponses(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.RoutingPolicy objects + * contained in responses from the listRoutingPolicies operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listRoutingPoliciesRecordIterator(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listRoutingPolicies operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listRoutingPoliciesResponseIterator(request: requests.ListRoutingPoliciesRequest): AsyncIterableIterator; + /** + * Lists all rule sets associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListRuleSetsRequest + * @return ListRuleSetsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListRuleSets.ts.html |here} to see how to use ListRuleSets API. + */ + listRuleSets(listRuleSetsRequest: requests.ListRuleSetsRequest): Promise; + /** + * Lists all SSL cipher suites associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListSSLCipherSuitesRequest + * @return ListSSLCipherSuitesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListSSLCipherSuites.ts.html |here} to see how to use ListSSLCipherSuites API. + */ + listSSLCipherSuites(listSSLCipherSuitesRequest: requests.ListSSLCipherSuitesRequest): Promise; + /** + * Lists the valid load balancer shapes. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListShapesRequest + * @return ListShapesResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListShapes.ts.html |here} to see how to use ListShapes API. + */ + listShapes(listShapesRequest: requests.ListShapesRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listShapesRecordIterator function. + * Creates a new async iterator which will iterate over the models.LoadBalancerShape objects + * contained in responses from the listShapes operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllShapes(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listShapesResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listShapes operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllShapesResponses(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.LoadBalancerShape objects + * contained in responses from the listShapes operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listShapesRecordIterator(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listShapes operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listShapesResponseIterator(request: requests.ListShapesRequest): AsyncIterableIterator; + /** + * Lists the work requests for a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ListWorkRequestsRequest + * @return ListWorkRequestsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API. + */ + listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise; + /** + * NOTE: This function is deprecated in favor of listWorkRequestsRecordIterator function. + * Creates a new async iterator which will iterate over the models.WorkRequest objects + * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllWorkRequests(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * NOTE: This function is deprecated in favor of listWorkRequestsResponseIterator function. + * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listAllWorkRequestsResponses(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the models.WorkRequest objects + * contained in responses from the listWorkRequests operation. This iterator will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + */ + listWorkRequestsRecordIterator(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Creates a new async iterator which will iterate over the responses received from the listWorkRequests operation. This iterator + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + */ + listWorkRequestsResponseIterator(request: requests.ListWorkRequestsRequest): AsyncIterableIterator; + /** + * Updates the configuration of a backend server within the specified backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateBackendRequest + * @return UpdateBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateBackend.ts.html |here} to see how to use UpdateBackend API. + */ + updateBackend(updateBackendRequest: requests.UpdateBackendRequest): Promise; + /** + * Updates a backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateBackendSetRequest + * @return UpdateBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateBackendSet.ts.html |here} to see how to use UpdateBackendSet API. + */ + updateBackendSet(updateBackendSetRequest: requests.UpdateBackendSetRequest): Promise; + /** + * Updates the health check policy for a given load balancer and backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateHealthCheckerRequest + * @return UpdateHealthCheckerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateHealthChecker.ts.html |here} to see how to use UpdateHealthChecker API. + */ + updateHealthChecker(updateHealthCheckerRequest: requests.UpdateHealthCheckerRequest): Promise; + /** + * Overwrites an existing hostname resource on the specified load balancer. Use this operation to change a + * virtual hostname. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateHostnameRequest + * @return UpdateHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateHostname.ts.html |here} to see how to use UpdateHostname API. + */ + updateHostname(updateHostnameRequest: requests.UpdateHostnameRequest): Promise; + /** + * Updates a listener for a given load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateListenerRequest + * @return UpdateListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateListener.ts.html |here} to see how to use UpdateListener API. + */ + updateListener(updateListenerRequest: requests.UpdateListenerRequest): Promise; + /** + * Updates a load balancer's configuration. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateLoadBalancerRequest + * @return UpdateLoadBalancerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateLoadBalancer.ts.html |here} to see how to use UpdateLoadBalancer API. + */ + updateLoadBalancer(updateLoadBalancerRequest: requests.UpdateLoadBalancerRequest): Promise; + /** + * Update the shape of a load balancer. The new shape can be larger or smaller compared to existing shape of the + * LB. The service will try to perform this operation in the least disruptive way to existing connections, but + * there is a possibility that they might be lost during the LB resizing process. The new shape becomes effective + * as soon as the related work request completes successfully, i.e. when reshaping to a larger shape, the LB will + * start accepting larger bandwidth and when reshaping to a smaller one, the LB will be accepting smaller + * bandwidth. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateLoadBalancerShapeRequest + * @return UpdateLoadBalancerShapeResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateLoadBalancerShape.ts.html |here} to see how to use UpdateLoadBalancerShape API. + */ + updateLoadBalancerShape(updateLoadBalancerShapeRequest: requests.UpdateLoadBalancerShapeRequest): Promise; + /** + * Updates the network security groups associated with the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateNetworkSecurityGroupsRequest + * @return UpdateNetworkSecurityGroupsResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateNetworkSecurityGroups.ts.html |here} to see how to use UpdateNetworkSecurityGroups API. + */ + updateNetworkSecurityGroups(updateNetworkSecurityGroupsRequest: requests.UpdateNetworkSecurityGroupsRequest): Promise; + /** + * Overwrites an existing path route set on the specified load balancer. Use this operation to add, delete, or alter + * path route rules in a path route set. + *

+ To add a new path route rule to a path route set, the `pathRoutes` in the + * {@link #updatePathRouteSetDetails(UpdatePathRouteSetDetailsRequest) updatePathRouteSetDetails} object must include + * both the new path route rule to add and the existing path route rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdatePathRouteSetRequest + * @return UpdatePathRouteSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdatePathRouteSet.ts.html |here} to see how to use UpdatePathRouteSet API. + */ + updatePathRouteSet(updatePathRouteSetRequest: requests.UpdatePathRouteSetRequest): Promise; + /** + * Overwrites an existing routing policy on the specified load balancer. Use this operation to add, delete, or alter + * routing policy rules in a routing policy. + *

+ To add a new routing rule to a routing policy, the body must include both the new routing rule to add and the existing rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateRoutingPolicyRequest + * @return UpdateRoutingPolicyResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateRoutingPolicy.ts.html |here} to see how to use UpdateRoutingPolicy API. + */ + updateRoutingPolicy(updateRoutingPolicyRequest: requests.UpdateRoutingPolicyRequest): Promise; + /** + * Overwrites an existing set of rules on the specified load balancer. Use this operation to add or alter + * the rules in a rule set. + *

+ To add a new rule to a set, the body must include both the new rule to add and the existing rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateRuleSetRequest + * @return UpdateRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateRuleSet.ts.html |here} to see how to use UpdateRuleSet API. + */ + updateRuleSet(updateRuleSetRequest: requests.UpdateRuleSetRequest): Promise; + /** + * Updates an existing SSL cipher suite for the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateSSLCipherSuiteRequest + * @return UpdateSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateSSLCipherSuite.ts.html |here} to see how to use UpdateSSLCipherSuite API. + */ + updateSSLCipherSuite(updateSSLCipherSuiteRequest: requests.UpdateSSLCipherSuiteRequest): Promise; +} \ No newline at end of file diff --git a/generator/test/generators/oracle/validDataset/serviceClass.json b/generator/test/generators/oracle/validDataset/serviceClass.json new file mode 100644 index 00000000..7577b13d --- /dev/null +++ b/generator/test/generators/oracle/validDataset/serviceClass.json @@ -0,0 +1,7 @@ +{ + "create": "loadbalancer createLoadBalancer", + "delete": "loadbalancer deleteLoadBalancer", + "get": "loadbalancer getLoadBalancer", + "update": "loadbalancer updateLoadBalancer", + "list": "loadbalancer listLoadBalancers" +} \ No newline at end of file From 525dbff0bcae726c5740fe7f871af1c99bdb17a8 Mon Sep 17 00:00:00 2001 From: Partik SIngh Date: Fri, 25 Aug 2023 20:28:37 +0530 Subject: [PATCH 3/3] Completed Tests Signed-off-by: Partik SIngh --- .../invalidDataset_1/sdkFile.txt | 0 .../invalidDataset_1/serviceClass.json | 2 +- .../invalidDataset_2/sdkFile.txt | 0 .../invalidDataset_2/serviceClass.json | 2 +- .../{ => dummyData}/validDataset/sdkFile.txt | 0 .../validDataset/serviceClass.json | 2 +- .../test/generators/oracle/generator.test.ts | 162 +++++++++--------- 7 files changed, 87 insertions(+), 81 deletions(-) rename generator/test/generators/oracle/{ => dummyData}/invalidDataset_1/sdkFile.txt (100%) rename generator/test/generators/oracle/{ => dummyData}/invalidDataset_1/serviceClass.json (99%) rename generator/test/generators/oracle/{ => dummyData}/invalidDataset_2/sdkFile.txt (100%) rename generator/test/generators/oracle/{ => dummyData}/invalidDataset_2/serviceClass.json (99%) rename generator/test/generators/oracle/{ => dummyData}/validDataset/sdkFile.txt (100%) rename generator/test/generators/oracle/{ => dummyData}/validDataset/serviceClass.json (99%) diff --git a/generator/test/generators/oracle/invalidDataset_1/sdkFile.txt b/generator/test/generators/oracle/dummyData/invalidDataset_1/sdkFile.txt similarity index 100% rename from generator/test/generators/oracle/invalidDataset_1/sdkFile.txt rename to generator/test/generators/oracle/dummyData/invalidDataset_1/sdkFile.txt diff --git a/generator/test/generators/oracle/invalidDataset_1/serviceClass.json b/generator/test/generators/oracle/dummyData/invalidDataset_1/serviceClass.json similarity index 99% rename from generator/test/generators/oracle/invalidDataset_1/serviceClass.json rename to generator/test/generators/oracle/dummyData/invalidDataset_1/serviceClass.json index bb3ceae2..cf0ef352 100644 --- a/generator/test/generators/oracle/invalidDataset_1/serviceClass.json +++ b/generator/test/generators/oracle/dummyData/invalidDataset_1/serviceClass.json @@ -4,4 +4,4 @@ "get": "loadbalancer getLoadBalancer", "update": "loadbalancer updateLoadBalancer", "list": "loadbalancer listLoadBalancers" -} \ No newline at end of file +} diff --git a/generator/test/generators/oracle/invalidDataset_2/sdkFile.txt b/generator/test/generators/oracle/dummyData/invalidDataset_2/sdkFile.txt similarity index 100% rename from generator/test/generators/oracle/invalidDataset_2/sdkFile.txt rename to generator/test/generators/oracle/dummyData/invalidDataset_2/sdkFile.txt diff --git a/generator/test/generators/oracle/invalidDataset_2/serviceClass.json b/generator/test/generators/oracle/dummyData/invalidDataset_2/serviceClass.json similarity index 99% rename from generator/test/generators/oracle/invalidDataset_2/serviceClass.json rename to generator/test/generators/oracle/dummyData/invalidDataset_2/serviceClass.json index 7577b13d..78f92f4a 100644 --- a/generator/test/generators/oracle/invalidDataset_2/serviceClass.json +++ b/generator/test/generators/oracle/dummyData/invalidDataset_2/serviceClass.json @@ -4,4 +4,4 @@ "get": "loadbalancer getLoadBalancer", "update": "loadbalancer updateLoadBalancer", "list": "loadbalancer listLoadBalancers" -} \ No newline at end of file +} diff --git a/generator/test/generators/oracle/validDataset/sdkFile.txt b/generator/test/generators/oracle/dummyData/validDataset/sdkFile.txt similarity index 100% rename from generator/test/generators/oracle/validDataset/sdkFile.txt rename to generator/test/generators/oracle/dummyData/validDataset/sdkFile.txt diff --git a/generator/test/generators/oracle/validDataset/serviceClass.json b/generator/test/generators/oracle/dummyData/validDataset/serviceClass.json similarity index 99% rename from generator/test/generators/oracle/validDataset/serviceClass.json rename to generator/test/generators/oracle/dummyData/validDataset/serviceClass.json index 7577b13d..78f92f4a 100644 --- a/generator/test/generators/oracle/validDataset/serviceClass.json +++ b/generator/test/generators/oracle/dummyData/validDataset/serviceClass.json @@ -4,4 +4,4 @@ "get": "loadbalancer getLoadBalancer", "update": "loadbalancer updateLoadBalancer", "list": "loadbalancer listLoadBalancers" -} \ No newline at end of file +} diff --git a/generator/test/generators/oracle/generator.test.ts b/generator/test/generators/oracle/generator.test.ts index b29e3dde..3b5550b6 100644 --- a/generator/test/generators/oracle/generator.test.ts +++ b/generator/test/generators/oracle/generator.test.ts @@ -1,86 +1,92 @@ -import { expect } from "chai"; -import { SyntaxKind } from "typescript"; +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; -import { extractSDKData } from "../../../generators/oracle/generator"; -import { readJsonData,readSourceFile } from "../lib/helper"; +import { extractSDKData } from '../../../generators/oracle/generator'; +import { readJsonData, readSourceFile } from '../lib/helper'; -describe("Oracle generator extractSDKData", () => { - context("with valid methods and valid AST", () => { - it("should return extracted class data", async () => { - const sdkFile: any = await readSourceFile("validDataset", "oracle"); - const data: any = await readJsonData( - "validDataset", - "oracle", - "serviceClass" - ); - let cloned = null; - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - cloned = Object.assign({}, child); - } - }); +describe('Oracle generator extractSDKData', () => { + context('with valid methods and valid AST', () => { + it('should return extracted class data', async () => { + const sdkFile: any = await readSourceFile('validDataset', 'oracle'); + const data: any = await readJsonData( + 'validDataset', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); - if (cloned) { - const result = extractSDKData(cloned, data); - expect(result).to.be.an("object"); - expect(result.functions).to.be.an("array"); - expect(result.className).to.be.string; - } else { - console.error("Error in cloning class"); - } - }); - }); + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('object'); + expect(result.functions).to.be.an('array'); + expect(result.className).to.be.string; + } else { + console.error('Error in cloning class'); + } + }); + }); - context("with invalid method data:missing method name", () => { - it("should drop invalid method", async () => { - const sdkFile: any = await readSourceFile("invalidDataset_1", "oracle"); - const data: any = await readJsonData( - "invalidDataset_1", - "oracle", - "serviceClass" - ); - let cloned = null; - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - cloned = Object.assign({}, child); - } - }); + context('with invalid method data:missing method name', () => { + it('should drop invalid method', async () => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_1', + 'oracle' + ); + const data: any = await readJsonData( + 'invalidDataset_1', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); - if (cloned) { - expect( - extractSDKData(cloned, data).functions.length < - Object.keys(data).length - ).to.be.true; - } else { - console.error("Error in cloning class"); - } - }); - }); + if (cloned) { + expect( + extractSDKData(cloned, data).functions.length < + Object.keys(data).length + ).to.be.true; + } else { + console.error('Error in cloning class'); + } + }); + }); - context("Oracle with no functions", () => { - it("should return empty array of methods", async () => { - const sdkFile: any = await readSourceFile("invalidDataset_2", "oracle"); - const data: any = await readJsonData( - "invalidDataset_2", - "oracle", - "serviceClass" - ); - let cloned = null; - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - cloned = Object.assign({}, child); - } - }); + context('Oracle with no functions', () => { + it('should return empty array of methods', async () => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_2', + 'oracle' + ); + const data: any = await readJsonData( + 'invalidDataset_2', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); - if (cloned) { - const result = extractSDKData(cloned, data); - expect(result).to.be.an("object"); - expect(result.functions).to.be.an("array"); - expect(result.className).to.be.string; - expect(result.functions.length).to.eql(0); - } else { - console.error("Error in cloning class"); - } - }); - }); + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('object'); + expect(result.functions).to.be.an('array'); + expect(result.className).to.be.string; + expect(result.functions.length).to.eql(0); + } else { + console.error('Error in cloning class'); + } + }); + }); });