From 88dcb8822f8e4de3fbb0f4b8dd2750717d580995 Mon Sep 17 00:00:00 2001 From: Partik SIngh Date: Mon, 28 Aug 2023 09:30:35 +0530 Subject: [PATCH] Final Changes Signed-off-by: Partik SIngh --- README.md | 2 +- examples/database/linode-sql.js | 1 - generator/README.md | 20 +- .../Linode/compute/linode-computeInstance.js | 130 +++---- .../Linode/compute/linode-kubernetes.js | 242 ++++++------ .../Linode/database/linode-RDBMS.js | 190 +++++----- .../Linode/firewalls/linode-firewalls.js | 205 +++++----- .../Linode/images/linode-images.js | 193 +++++----- .../Linode/management/linode-monitoring.js | 259 ++++++------- .../Linode/network/linode-DNS.js | 182 ++++----- .../Linode/network/linode-loadBalancer.js | 130 +++---- .../Linode/storage/linode-blockStorage.js | 130 +++---- .../Linode/storage/linode-storageBucket.js | 186 ++++----- .../Oracle/blockchain/oci-blockChain.js | 279 +++++++------- .../Oracle/compute/oci-computeInstance.js | 254 +++++++------ .../Oracle/compute/oci-container.js | 179 ++++----- .../Oracle/compute/oci-kubernetes.js | 279 +++++++------- .../Oracle/database/oci-RDBMS.js | 204 +++++----- .../Oracle/database/oci-noSql.js | 226 +++++------ .../Oracle/devops/oci-devops.js | 354 +++++++++--------- .../Oracle/management/oci-keyManagement.js | 129 ++++--- .../management/oci-notificationService.js | 129 ++++--- .../Oracle/network/oci-DNS.js | 126 ++++--- .../Oracle/network/oci-loadBalancer.js | 154 ++++---- .../Oracle/storage/oci-archivalStorage.js | 129 ++++--- .../Oracle/storage/oci-blockStorage.js | 129 ++++--- .../Oracle/storage/oci-storageBucket.js | 154 ++++---- .../compute/linode-computeInstance.js | 130 +++---- .../compute/linode-kubernetes.js | 242 ++++++------ .../linode-plugin/database/linode-RDBMS.js | 190 +++++----- .../firewalls/linode-firewalls.js | 205 +++++----- .../linode-plugin/images/linode-images.js | 193 +++++----- .../management/linode-monitoring.js | 259 ++++++------- packages/linode-plugin/network/linode-DNS.js | 182 ++++----- .../network/linode-loadBalancer.js | 130 +++---- .../storage/linode-blockStorage.js | 130 +++---- .../storage/linode-storageBucket.js | 186 ++++----- .../oracle-plugin/compute/oci-kubernetes.js | 279 +++++++------- packages/oracle-plugin/database/oci-RDBMS.js | 204 +++++----- packages/oracle-plugin/database/oci-noSql.js | 226 +++++------ packages/oracle-plugin/devops/oci-devops.js | 354 +++++++++--------- .../management/oci-keyManagement.js | 129 ++++--- .../management/oci-notificationService.js | 129 ++++--- packages/oracle-plugin/network/oci-DNS.js | 126 ++++--- .../oracle-plugin/network/oci-loadBalancer.js | 154 ++++---- .../storage/oci-archivalStorage.js | 129 ++++--- .../oracle-plugin/storage/oci-blockStorage.js | 129 ++++--- .../storage/oci-storageBucket.js | 154 ++++---- 48 files changed, 4413 insertions(+), 4042 deletions(-) diff --git a/README.md b/README.md index 5a7832a..2b8f9d5 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ const ncProviders = nodeCloud.getProviders(options); | | Peering/Dedicated Interconnect | Direct Connect | Cloud Interconnect\* | ExpressRoute\* | - | Express Connect\* | - | - | | | DNS | Route53 | Google Domains, Cloud DNS | Azure DNS | DO DNS | Alibaba Cloud DNS\* | Domains | OCI DNS | | Databases | RDBMS | RDS, Amazon Aurora*, Amazon Redshift* | Cloud SQL\*, Cloud Spanner | SQL Database, Azure Database for MySQL*, Azure Database for PostgreSQL* | Managed Databases(PostgreSQL\* and MySQL) | ApsaraDB (MySQL, MariaDB TX, SQL Server, PostgreSQL) | Database(Postgres and Myssql) | OCI Mysql | -| | NoSQL: key-value | DynamoDB | Cloud Firestore, Cloud Bigtable\* | Table Storage | Managed Databases(Redis)\* | ApsaraDB for Redis\* | - | OCI MOngoDb | +| | NoSQL: key-value | DynamoDB | Cloud Firestore, Cloud Bigtable\* | Table Storage | Managed Databases(Redis)\* | ApsaraDB for Redis\* | - | OCI MongoDb | | | NoSQL: indexed | Amazon SimpleDB\* | Cloud Firestore | Cosmos DB | - | ApsaraDB for MongoDB\* | - | - | | Security/ Authorization | Identity Access Management | AWS IAM | Cloud IAM\* | Azure Active Directory*, Azure Role Based Access Control* | - | Resource Access Management\* | - | - | | Management | Key Management | AWS-KMS | - | - | Do-Keys | - | Monitoring | OCI KeyManagement | diff --git a/examples/database/linode-sql.js b/examples/database/linode-sql.js index ed48bac..77b82c1 100644 --- a/examples/database/linode-sql.js +++ b/examples/database/linode-sql.js @@ -15,7 +15,6 @@ function createDatabase() { type: 'g6-dedicated-2', engine: 'mysql/8.0.30', replication_type: 'semi_synch', - }; // create database diff --git a/generator/README.md b/generator/README.md index 864154c..99043f6 100644 --- a/generator/README.md +++ b/generator/README.md @@ -132,12 +132,30 @@ Linode: ## Code parsers -This is the simplest part of the code generation tool. The SDK files are read from the relevant SDKs as specified in the `node-cloud.yml` file. Afterwards, it is converted to an **Abstract Syntax Tree**. Finally, the class declaration Node of that **Abstract Syntax Tree** is returned in case of SDKs which are class based,for SDKs like Linode which are function based we collect the FirstStatement nodes in an array which represent the exported arrow function declaration. This retured Node is another **Abstract Syntax Tree** since a class declaration itself is another **Abstract Syntax Tree**. +This is the simplest part of the code generation tool. The SDK files are read from the relevant SDKs as specified in the `node-cloud.yml` file. Afterwards, it is converted to an **Abstract Syntax Tree**. Finally, the class declaration Node of that **Abstract Syntax Tree** is returned in case of SDKs which are class based, for SDKs like Linode which are function based we collect the FirstStatement nodes in an array which represent the exported arrow function declaration. This retured Node is another **Abstract Syntax Tree** since a class declaration itself is another **Abstract Syntax Tree**. ## Data extraction functions These functions are located in the generators of the each cloud providers. Each data extration function has a unique logic depending on the **Abstract Syntax Tree** of a SDK class. The goal here is to extract all the data required to generate the new JavaScript class. At the end it is retured as `classData`. The data extration function collects imports, clients, method parameters, types of parameters, method return types and package names. Additionally, class relationships are identified in the Google Cloud data extraction function for the Google Cloud class based transformer. +For Linode Cloud Provider in some function the function parameters had two nested parameters so to solve this problem and take both the parameters into consideration the below code has been implemented. + +``` + if (param.name.elements) { + const parameter: param = { + name: + '{' + + param.name.elements[0].name.text + + ',' + + param.name.elements[1].name.text + + '}', + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + typeName: null, + }; +``` +In the above code we have looked for sub elements in a function parameter and printed both of them in braces. + ## Transformers This is the most important part of the code generator tool. Currently, there are four transformers. Two transformers for Google Cloud, and one each for AWS and Azure. All of the transformers runs three main transformations. diff --git a/generator/generatedClasses/Linode/compute/linode-computeInstance.js b/generator/generatedClasses/Linode/compute/linode-computeInstance.js index bfba842..07d1474 100644 --- a/generator/generatedClasses/Linode/compute/linode-computeInstance.js +++ b/generator/generatedClasses/Linode/compute/linode-computeInstance.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ComputeInstanceLinodeClass object - * @category Linode - */ + * Class to create a ComputeInstanceLinodeClass object + * @category Linode + */ class Linode_ComputeInstance { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getLinodes function of ComputeInstanceLinodeClass - * @param {Params} params - Data required for getLinodes - * @param {Filter} filter - Data required for getLinodes - * @returns {Promise} - */ - list(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getLinodes(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createLinode function of ComputeInstanceLinodeClass - * @param {CreateLinodeRequest} data - Data required for createLinode - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createLinode(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateLinode function of ComputeInstanceLinodeClass - * @param {NumberKeyword} linodeId - Data required for updateLinode - * @param {DeepPartial} values - Data required for updateLinode - * @returns {Promise} - */ - update(linodeId, values) { - return new Promise((resolve, reject) => { - this._linode.updateLinode(linodeId, values) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteLinode function of ComputeInstanceLinodeClass - * @param {NumberKeyword} linodeId - Data required for deleteLinode - * @returns {Promise} - */ - delete(linodeId) { - return new Promise((resolve, reject) => { - this._linode.deleteLinode(linodeId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getLinodes function of ComputeInstanceLinodeClass + * @param {Params} params - Data required for getLinodes + * @param {Filter} filter - Data required for getLinodes + * @returns {Promise} + */ + list(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getLinodes(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createLinode function of ComputeInstanceLinodeClass + * @param {CreateLinodeRequest} data - Data required for createLinode + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createLinode(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for updateLinode + * @param {DeepPartial} values - Data required for updateLinode + * @returns {Promise} + */ + update(linodeId, values) { + return new Promise((resolve, reject) => { + this._linode + .updateLinode(linodeId, values) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for deleteLinode + * @returns {Promise} + */ + delete(linodeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteLinode(linodeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_ComputeInstance; diff --git a/generator/generatedClasses/Linode/compute/linode-kubernetes.js b/generator/generatedClasses/Linode/compute/linode-kubernetes.js index a7414df..5b73741 100644 --- a/generator/generatedClasses/Linode/compute/linode-kubernetes.js +++ b/generator/generatedClasses/Linode/compute/linode-kubernetes.js @@ -1,122 +1,130 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a KubernetesLinodeClass object - * @category Linode - */ + * Class to create a KubernetesLinodeClass object + * @category Linode + */ class Linode_Kubernetes { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getKubernetesClusters function of KubernetesLinodeClass - * @param {Params} params - Data required for getKubernetesClusters - * @param {Filter} filters - Data required for getKubernetesClusters - * @returns {Promise} - */ - getAllClusters(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getKubernetesClusters(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createKubernetesCluster function of KubernetesLinodeClass - * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createKubernetesCluster(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster - * @returns {Promise} - */ - delete(clusterID) { - return new Promise((resolve, reject) => { - this._linode.deleteKubernetesCluster(clusterID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePools function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for getNodePools - * @param {Params} params - Data required for getNodePools - * @param {Filter} filters - Data required for getNodePools - * @returns {Promise} - */ - getNodePools(clusterID, params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getNodePools(clusterID, params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for getNodePool - * @param {NumberKeyword} nodePoolID - Data required for getNodePool - * @returns {Promise} - */ - getNodePool(clusterID, nodePoolID) { - return new Promise((resolve, reject) => { - this._linode.getNodePool(clusterID, nodePoolID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for createNodePool - * @param {CreateNodePoolData} data - Data required for createNodePool - * @returns {Promise} - */ - createNodePool(clusterID, data) { - return new Promise((resolve, reject) => { - this._linode.createNodePool(clusterID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for updateNodePool - * @param {NumberKeyword} nodePoolID - Data required for updateNodePool - * @param {Partial} data - Data required for updateNodePool - * @returns {Promise} - */ - updateNodePool(clusterID, nodePoolID, data) { - return new Promise((resolve, reject) => { - this._linode.updateNodePool(clusterID, nodePoolID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for deleteNodePool - * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool - * @returns {Promise} - */ - deleteNodePool(clusterID, nodePoolID) { - return new Promise((resolve, reject) => { - this._linode.deleteNodePool(clusterID, nodePoolID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getKubernetesClusters function of KubernetesLinodeClass + * @param {Params} params - Data required for getKubernetesClusters + * @param {Filter} filters - Data required for getKubernetesClusters + * @returns {Promise} + */ + getAllClusters(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getKubernetesClusters(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createKubernetesCluster function of KubernetesLinodeClass + * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createKubernetesCluster(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster + * @returns {Promise} + */ + delete(clusterID) { + return new Promise((resolve, reject) => { + this._linode + .deleteKubernetesCluster(clusterID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePools + * @param {Params} params - Data required for getNodePools + * @param {Filter} filters - Data required for getNodePools + * @returns {Promise} + */ + getNodePools(clusterID, params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodePools(clusterID, params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePool + * @param {NumberKeyword} nodePoolID - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .getNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for createNodePool + * @param {CreateNodePoolData} data - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(clusterID, data) { + return new Promise((resolve, reject) => { + this._linode + .createNodePool(clusterID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for updateNodePool + * @param {NumberKeyword} nodePoolID - Data required for updateNodePool + * @param {Partial} data - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(clusterID, nodePoolID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodePool(clusterID, nodePoolID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteNodePool + * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Kubernetes; diff --git a/generator/generatedClasses/Linode/database/linode-RDBMS.js b/generator/generatedClasses/Linode/database/linode-RDBMS.js index 25bfe89..a3b2b0f 100644 --- a/generator/generatedClasses/Linode/database/linode-RDBMS.js +++ b/generator/generatedClasses/Linode/database/linode-RDBMS.js @@ -1,97 +1,103 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a RDBMSLinodeClass object - * @category Linode - */ + * Class to create a RDBMSLinodeClass object + * @category Linode + */ class Linode_RDBMS { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getDatabases function of RDBMSLinodeClass - * @param {Params} params - Data required for getDatabases - * @param {Filter} filter - Data required for getDatabases - * @returns {Promise} - */ - getDatabases(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDatabases(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDatabaseEngines function of RDBMSLinodeClass - * @param {Params} params - Data required for getDatabaseEngines - * @param {Filter} filter - Data required for getDatabaseEngines - * @returns {Promise} - */ - getDatabaseEngines(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDatabaseEngines(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDatabase function of RDBMSLinodeClass - * @param {UnionType} engine - Data required for createDatabase - * @param {CreateDatabasePayload} data - Data required for createDatabase - * @returns {Promise} - */ - createDatabase(engine, data) { - return new Promise((resolve, reject) => { - this._linode.createDatabase(engine, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getEngineDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for getEngineDatabase - * @param {NumberKeyword} databaseID - Data required for getEngineDatabase - * @returns {Promise} - */ - getEngineDatabase(engine, databaseID) { - return new Promise((resolve, reject) => { - this._linode.getEngineDatabase(engine, databaseID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for updateDatabase - * @param {NumberKeyword} databaseID - Data required for updateDatabase - * @param {UpdateDatabasePayload} data - Data required for updateDatabase - * @returns {Promise} - */ - updateDatabase(engine, databaseID, data) { - return new Promise((resolve, reject) => { - this._linode.updateDatabase(engine, databaseID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for deleteDatabase - * @param {NumberKeyword} databaseID - Data required for deleteDatabase - * @returns {Promise} - */ - deleteDatabase(engine, databaseID) { - return new Promise((resolve, reject) => { - this._linode.deleteDatabase(engine, databaseID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDatabases function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabases + * @param {Filter} filter - Data required for getDatabases + * @returns {Promise} + */ + getDatabases(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabases(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDatabaseEngines function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabaseEngines + * @param {Filter} filter - Data required for getDatabaseEngines + * @returns {Promise} + */ + getDatabaseEngines(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabaseEngines(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDatabase function of RDBMSLinodeClass + * @param {UnionType} engine - Data required for createDatabase + * @param {CreateDatabasePayload} data - Data required for createDatabase + * @returns {Promise} + */ + createDatabase(engine, data) { + return new Promise((resolve, reject) => { + this._linode + .createDatabase(engine, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getEngineDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for getEngineDatabase + * @param {NumberKeyword} databaseID - Data required for getEngineDatabase + * @returns {Promise} + */ + getEngineDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .getEngineDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for updateDatabase + * @param {NumberKeyword} databaseID - Data required for updateDatabase + * @param {UpdateDatabasePayload} data - Data required for updateDatabase + * @returns {Promise} + */ + updateDatabase(engine, databaseID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDatabase(engine, databaseID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for deleteDatabase + * @param {NumberKeyword} databaseID - Data required for deleteDatabase + * @returns {Promise} + */ + deleteDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .deleteDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_RDBMS; diff --git a/generator/generatedClasses/Linode/firewalls/linode-firewalls.js b/generator/generatedClasses/Linode/firewalls/linode-firewalls.js index dca7266..2cfc10f 100644 --- a/generator/generatedClasses/Linode/firewalls/linode-firewalls.js +++ b/generator/generatedClasses/Linode/firewalls/linode-firewalls.js @@ -1,104 +1,111 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a FirewallsLinodeClass object - * @category Linode - */ + * Class to create a FirewallsLinodeClass object + * @category Linode + */ class Linode_Firewalls { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getFirewalls function of FirewallsLinodeClass - * @param {Params} params - Data required for getFirewalls - * @param {Filter} filter - Data required for getFirewalls - * @returns {Promise} - */ - getFirewalls(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getFirewalls(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for getFirewall - * @returns {Promise} - */ - getFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.getFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createFirewall function of FirewallsLinodeClass - * @param {CreateFirewallPayload} data - Data required for createFirewall - * @returns {Promise} - */ - createFirewall(data) { - return new Promise((resolve, reject) => { - this._linode.createFirewall(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for updateFirewall - * @param {UpdateFirewallPayload} data - Data required for updateFirewall - * @returns {Promise} - */ - updateFirewall(firewallID, data) { - return new Promise((resolve, reject) => { - this._linode.updateFirewall(firewallID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for enableFirewall - * @returns {Promise} - */ - enableFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.enableFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for disableFirewall - * @returns {Promise} - */ - disableFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.disableFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for deleteFirewall - * @returns {Promise} - */ - deleteFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.deleteFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getFirewalls function of FirewallsLinodeClass + * @param {Params} params - Data required for getFirewalls + * @param {Filter} filter - Data required for getFirewalls + * @returns {Promise} + */ + getFirewalls(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getFirewalls(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for getFirewall + * @returns {Promise} + */ + getFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .getFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createFirewall function of FirewallsLinodeClass + * @param {CreateFirewallPayload} data - Data required for createFirewall + * @returns {Promise} + */ + createFirewall(data) { + return new Promise((resolve, reject) => { + this._linode + .createFirewall(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for updateFirewall + * @param {UpdateFirewallPayload} data - Data required for updateFirewall + * @returns {Promise} + */ + updateFirewall(firewallID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateFirewall(firewallID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for enableFirewall + * @returns {Promise} + */ + enableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .enableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for disableFirewall + * @returns {Promise} + */ + disableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .disableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for deleteFirewall + * @returns {Promise} + */ + deleteFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .deleteFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Firewalls; diff --git a/generator/generatedClasses/Linode/images/linode-images.js b/generator/generatedClasses/Linode/images/linode-images.js index 1be67ed..2d0651f 100644 --- a/generator/generatedClasses/Linode/images/linode-images.js +++ b/generator/generatedClasses/Linode/images/linode-images.js @@ -1,96 +1,107 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ImagesLinodeClass object - * @category Linode - */ + * Class to create a ImagesLinodeClass object + * @category Linode + */ class Linode_Images { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for getImage - * @returns {Promise} - */ - getImage(imageId) { - return new Promise((resolve, reject) => { - this._linode.getImage(imageId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getImages function of ImagesLinodeClass - * @param {Params} params - Data required for getImages - * @param {Filter} filters - Data required for getImages - * @returns {Promise} - */ - getImages(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getImages(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createImage function of ImagesLinodeClass - * @param {NumberKeyword} diskId - Data required for createImage - * @param {StringKeyword} label - Data required for createImage - * @param {StringKeyword} description - Data required for createImage - * @param {BooleanKeyword} cloud_init - Data required for createImage - * @returns {Promise} - */ - createImage(diskId, label = undefined, description = undefined, cloud_init = undefined) { - return new Promise((resolve, reject) => { - this._linode.createImage(diskId, label, description, cloud_init) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for updateImage - * @param {StringKeyword} label - Data required for updateImage - * @param {StringKeyword} description - Data required for updateImage - * @returns {Promise} - */ - updateImage(imageId, label = undefined, description = undefined) { - return new Promise((resolve, reject) => { - this._linode.updateImage(imageId, label, description) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for deleteImage - * @returns {Promise} - */ - deleteImage(imageId) { - return new Promise((resolve, reject) => { - this._linode.deleteImage(imageId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the uploadImage function of ImagesLinodeClass - * @param {ImageUploadPayload} data - Data required for uploadImage - * @returns {Promise} - */ - uploadImage(data) { - return new Promise((resolve, reject) => { - this._linode.uploadImage(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for getImage + * @returns {Promise} + */ + getImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .getImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getImages function of ImagesLinodeClass + * @param {Params} params - Data required for getImages + * @param {Filter} filters - Data required for getImages + * @returns {Promise} + */ + getImages(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getImages(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createImage function of ImagesLinodeClass + * @param {NumberKeyword} diskId - Data required for createImage + * @param {StringKeyword} label - Data required for createImage + * @param {StringKeyword} description - Data required for createImage + * @param {BooleanKeyword} cloud_init - Data required for createImage + * @returns {Promise} + */ + createImage( + diskId, + label = undefined, + description = undefined, + cloud_init = undefined + ) { + return new Promise((resolve, reject) => { + this._linode + .createImage(diskId, label, description, cloud_init) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for updateImage + * @param {StringKeyword} label - Data required for updateImage + * @param {StringKeyword} description - Data required for updateImage + * @returns {Promise} + */ + updateImage(imageId, label = undefined, description = undefined) { + return new Promise((resolve, reject) => { + this._linode + .updateImage(imageId, label, description) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for deleteImage + * @returns {Promise} + */ + deleteImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .deleteImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the uploadImage function of ImagesLinodeClass + * @param {ImageUploadPayload} data - Data required for uploadImage + * @returns {Promise} + */ + uploadImage(data) { + return new Promise((resolve, reject) => { + this._linode + .uploadImage(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Images; diff --git a/generator/generatedClasses/Linode/management/linode-monitoring.js b/generator/generatedClasses/Linode/management/linode-monitoring.js index bce2e4c..87bd133 100644 --- a/generator/generatedClasses/Linode/management/linode-monitoring.js +++ b/generator/generatedClasses/Linode/management/linode-monitoring.js @@ -1,130 +1,139 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a MonitoringLinodeClass object - * @category Linode - */ + * Class to create a MonitoringLinodeClass object + * @category Linode + */ class Linode_Monitoring { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getServices function of MonitoringLinodeClass - * @param {Params} params - Data required for getServices - * @param {Filter} filters - Data required for getServices - * @returns {Promise} - */ - getServices(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getServices(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor - * @returns {Promise} - */ - disableServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.disableServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor - * @returns {Promise} - */ - enableServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.enableServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor - * @returns {Promise} - */ - deleteServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.deleteServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createServiceMonitor function of MonitoringLinodeClass - * @param {ManagedServicePayload} data - Data required for createServiceMonitor - * @returns {Promise} - */ - createServiceMonitor(data) { - return new Promise((resolve, reject) => { - this._linode.createServiceMonitor(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor - * @param {Partial} data - Data required for updateServiceMonitor - * @returns {Promise} - */ - updateServiceMonitor(monitorID, data) { - return new Promise((resolve, reject) => { - this._linode.updateServiceMonitor(monitorID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getCredentials function of MonitoringLinodeClass - * @param {Params} params - Data required for getCredentials - * @param {Filter} filters - Data required for getCredentials - * @returns {Promise} - */ - getCredentials(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getCredentials(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateCredential function of MonitoringLinodeClass - * @param {NumberKeyword} credentialID - Data required for updateCredential - * @param {UpdateCredentialPayload} data - Data required for updateCredential - * @returns {Promise} - */ - updateCredential(credentialID, data) { - return new Promise((resolve, reject) => { - this._linode.updateCredential(credentialID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteCredential function of MonitoringLinodeClass - * @param {NumberKeyword} credentialID - Data required for deleteCredential - * @returns {Promise} - */ - deleteCredential(credentialID) { - return new Promise((resolve, reject) => { - this._linode.deleteCredential(credentialID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getServices function of MonitoringLinodeClass + * @param {Params} params - Data required for getServices + * @param {Filter} filters - Data required for getServices + * @returns {Promise} + */ + getServices(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getServices(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor + * @returns {Promise} + */ + disableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .disableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor + * @returns {Promise} + */ + enableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .enableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor + * @returns {Promise} + */ + deleteServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .deleteServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createServiceMonitor function of MonitoringLinodeClass + * @param {ManagedServicePayload} data - Data required for createServiceMonitor + * @returns {Promise} + */ + createServiceMonitor(data) { + return new Promise((resolve, reject) => { + this._linode + .createServiceMonitor(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor + * @param {Partial} data - Data required for updateServiceMonitor + * @returns {Promise} + */ + updateServiceMonitor(monitorID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateServiceMonitor(monitorID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCredentials function of MonitoringLinodeClass + * @param {Params} params - Data required for getCredentials + * @param {Filter} filters - Data required for getCredentials + * @returns {Promise} + */ + getCredentials(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getCredentials(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for updateCredential + * @param {UpdateCredentialPayload} data - Data required for updateCredential + * @returns {Promise} + */ + updateCredential(credentialID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateCredential(credentialID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for deleteCredential + * @returns {Promise} + */ + deleteCredential(credentialID) { + return new Promise((resolve, reject) => { + this._linode + .deleteCredential(credentialID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Monitoring; diff --git a/generator/generatedClasses/Linode/network/linode-DNS.js b/generator/generatedClasses/Linode/network/linode-DNS.js index ce3dc8a..a3c1d06 100644 --- a/generator/generatedClasses/Linode/network/linode-DNS.js +++ b/generator/generatedClasses/Linode/network/linode-DNS.js @@ -1,93 +1,99 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DNSLinodeClass object - * @category Linode - */ + * Class to create a DNSLinodeClass object + * @category Linode + */ class Linode_DNS { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getDomains function of DNSLinodeClass - * @param {Params} params - Data required for getDomains - * @param {Filter} filter - Data required for getDomains - * @returns {Promise} - */ - getDomains(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDomains(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for getDomain - * @returns {Promise} - */ - getDomain(domainId) { - return new Promise((resolve, reject) => { - this._linode.getDomain(domainId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDomain function of DNSLinodeClass - * @param {CreateDomainPayload} data - Data required for createDomain - * @returns {Promise} - */ - createDomain(data) { - return new Promise((resolve, reject) => { - this._linode.createDomain(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for updateDomain - * @param {UpdateDomainPayload} data - Data required for updateDomain - * @returns {Promise} - */ - updateDomain(domainId, data) { - return new Promise((resolve, reject) => { - this._linode.updateDomain(domainId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for deleteDomain - * @returns {Promise} - */ - deleteDomain(domainId) { - return new Promise((resolve, reject) => { - this._linode.deleteDomain(domainId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the cloneDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for cloneDomain - * @param {CloneDomainPayload} data - Data required for cloneDomain - * @returns {Promise} - */ - cloneDomain(domainId, data) { - return new Promise((resolve, reject) => { - this._linode.cloneDomain(domainId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDomains function of DNSLinodeClass + * @param {Params} params - Data required for getDomains + * @param {Filter} filter - Data required for getDomains + * @returns {Promise} + */ + getDomains(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDomains(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for getDomain + * @returns {Promise} + */ + getDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .getDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDomain function of DNSLinodeClass + * @param {CreateDomainPayload} data - Data required for createDomain + * @returns {Promise} + */ + createDomain(data) { + return new Promise((resolve, reject) => { + this._linode + .createDomain(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for updateDomain + * @param {UpdateDomainPayload} data - Data required for updateDomain + * @returns {Promise} + */ + updateDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for deleteDomain + * @returns {Promise} + */ + deleteDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .deleteDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the cloneDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for cloneDomain + * @param {CloneDomainPayload} data - Data required for cloneDomain + * @returns {Promise} + */ + cloneDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .cloneDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_DNS; diff --git a/generator/generatedClasses/Linode/network/linode-loadBalancer.js b/generator/generatedClasses/Linode/network/linode-loadBalancer.js index eb97ba0..7af0d98 100644 --- a/generator/generatedClasses/Linode/network/linode-loadBalancer.js +++ b/generator/generatedClasses/Linode/network/linode-loadBalancer.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a LoadBalancerLinodeClass object - * @category Linode - */ + * Class to create a LoadBalancerLinodeClass object + * @category Linode + */ class Linode_LoadBalancer { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getNodeBalancers function of LoadBalancerLinodeClass - * @param {Params} params - Data required for getNodeBalancers - * @param {Filter} filters - Data required for getNodeBalancers - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getNodeBalancers(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass - * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer - * @param {Partial} data - Data required for updateNodeBalancer - * @returns {Promise} - */ - update(nodeBalancerId, data) { - return new Promise((resolve, reject) => { - this._linode.updateNodeBalancer(nodeBalancerId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodeBalancer function of LoadBalancerLinodeClass - * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createNodeBalancer(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass - * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer - * @returns {Promise} - */ - delete(nodeBalancerId) { - return new Promise((resolve, reject) => { - this._linode.deleteNodeBalancer(nodeBalancerId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getNodeBalancers function of LoadBalancerLinodeClass + * @param {Params} params - Data required for getNodeBalancers + * @param {Filter} filters - Data required for getNodeBalancers + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodeBalancers(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer + * @param {Partial} data - Data required for updateNodeBalancer + * @returns {Promise} + */ + update(nodeBalancerId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodeBalancer(nodeBalancerId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodeBalancer function of LoadBalancerLinodeClass + * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createNodeBalancer(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer + * @returns {Promise} + */ + delete(nodeBalancerId) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodeBalancer(nodeBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_LoadBalancer; diff --git a/generator/generatedClasses/Linode/storage/linode-blockStorage.js b/generator/generatedClasses/Linode/storage/linode-blockStorage.js index 63c1661..29846fc 100644 --- a/generator/generatedClasses/Linode/storage/linode-blockStorage.js +++ b/generator/generatedClasses/Linode/storage/linode-blockStorage.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a BlockStorageLinodeClass object - * @category Linode - */ + * Class to create a BlockStorageLinodeClass object + * @category Linode + */ class Linode_BlockStorage { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getVolumes function of BlockStorageLinodeClass - * @param {Params} params - Data required for getVolumes - * @param {Filter} filters - Data required for getVolumes - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getVolumes(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteVolume function of BlockStorageLinodeClass - * @param {NumberKeyword} volumeId - Data required for deleteVolume - * @returns {Promise} - */ - delete(volumeId) { - return new Promise((resolve, reject) => { - this._linode.deleteVolume(volumeId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateVolume function of BlockStorageLinodeClass - * @param {NumberKeyword} volumeId - Data required for updateVolume - * @param {UpdateVolumeRequest} data - Data required for updateVolume - * @returns {Promise} - */ - update(volumeId, data) { - return new Promise((resolve, reject) => { - this._linode.updateVolume(volumeId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createVolume function of BlockStorageLinodeClass - * @param {VolumeRequestPayload} data - Data required for createVolume - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createVolume(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getVolumes function of BlockStorageLinodeClass + * @param {Params} params - Data required for getVolumes + * @param {Filter} filters - Data required for getVolumes + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getVolumes(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for deleteVolume + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteVolume(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for updateVolume + * @param {UpdateVolumeRequest} data - Data required for updateVolume + * @returns {Promise} + */ + update(volumeId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateVolume(volumeId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createVolume function of BlockStorageLinodeClass + * @param {VolumeRequestPayload} data - Data required for createVolume + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createVolume(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_BlockStorage; diff --git a/generator/generatedClasses/Linode/storage/linode-storageBucket.js b/generator/generatedClasses/Linode/storage/linode-storageBucket.js index 6cdf3df..54b7b99 100644 --- a/generator/generatedClasses/Linode/storage/linode-storageBucket.js +++ b/generator/generatedClasses/Linode/storage/linode-storageBucket.js @@ -1,95 +1,101 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a StorageBucketLinodeClass object - * @category Linode - */ + * Class to create a StorageBucketLinodeClass object + * @category Linode + */ class Linode_StorageBucket { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getBucket function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for getBucket - * @param {StringKeyword} bucketName - Data required for getBucket - * @returns {Promise} - */ - get(clusterId, bucketName) { - return new Promise((resolve, reject) => { - this._linode.getBucket(clusterId, bucketName) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBuckets function of StorageBucketLinodeClass - * @param {Params} params - Data required for getBuckets - * @param {Filter} filters - Data required for getBuckets - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getBuckets(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createBucket function of StorageBucketLinodeClass - * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createBucket(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of StorageBucketLinodeClass - * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket - * @returns {Promise} - */ - delete({ cluster, label }) { - return new Promise((resolve, reject) => { - this._linode.deleteBucket({ cluster, label }) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBucketAccess function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for getBucketAccess - * @param {StringKeyword} bucketName - Data required for getBucketAccess - * @returns {Promise} - */ - getBucketAccess(clusterId, bucketName) { - return new Promise((resolve, reject) => { - this._linode.getBucketAccess(clusterId, bucketName) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateBucketAccess function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for updateBucketAccess - * @param {StringKeyword} bucketName - Data required for updateBucketAccess - * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess - * @returns {Promise} - */ - updateBucketAccess(clusterId, bucketName, data) { - return new Promise((resolve, reject) => { - this._linode.updateBucketAccess(clusterId, bucketName, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getBucket function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucket + * @param {StringKeyword} bucketName - Data required for getBucket + * @returns {Promise} + */ + get(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucket(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBuckets function of StorageBucketLinodeClass + * @param {Params} params - Data required for getBuckets + * @param {Filter} filters - Data required for getBuckets + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getBuckets(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createBucket function of StorageBucketLinodeClass + * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createBucket(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of StorageBucketLinodeClass + * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket + * @returns {Promise} + */ + delete({ cluster, label }) { + return new Promise((resolve, reject) => { + this._linode + .deleteBucket({ cluster, label }) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucketAccess + * @param {StringKeyword} bucketName - Data required for getBucketAccess + * @returns {Promise} + */ + getBucketAccess(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucketAccess(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for updateBucketAccess + * @param {StringKeyword} bucketName - Data required for updateBucketAccess + * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess + * @returns {Promise} + */ + updateBucketAccess(clusterId, bucketName, data) { + return new Promise((resolve, reject) => { + this._linode + .updateBucketAccess(clusterId, bucketName, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_StorageBucket; diff --git a/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js b/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js index 5015581..8ec5a5f 100644 --- a/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js +++ b/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js @@ -1,138 +1,151 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a BlockchainPlatformClient object - * @category Oracle Cloud - */ + * Class to create a BlockchainPlatformClient object + * @category Oracle Cloud + */ class Oracle_BlockChain { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._blockchainPlatformClient = this._oci.BlockchainPlatformClient(params, clientConfiguration); - } - /** - * Trigers the createBlockchainPlatform function of BlockchainPlatformClient - * @param {CreateBlockchainPlatformRequest} createBlockchainPlatformRequest - Data required for createBlockchainPlatform - * @returns {Promise} - */ - createBlockchainPlatform(createBlockchainPlatformRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.createBlockchainPlatform(createBlockchainPlatformRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createOsn function of BlockchainPlatformClient - * @param {CreateOsnRequest} createOsnRequest - Data required for createOsn - * @returns {Promise} - */ - createOsn(createOsnRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.createOsn(createOsnRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createPeer function of BlockchainPlatformClient - * @param {CreatePeerRequest} createPeerRequest - Data required for createPeer - * @returns {Promise} - */ - createPeer(createPeerRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.createPeer(createPeerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBlockchainPlatform function of BlockchainPlatformClient - * @param {DeleteBlockchainPlatformRequest} deleteBlockchainPlatformRequest - Data required for deleteBlockchainPlatform - * @returns {Promise} - */ - deleteBlockchainPlatform(deleteBlockchainPlatformRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.deleteBlockchainPlatform(deleteBlockchainPlatformRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteOsn function of BlockchainPlatformClient - * @param {DeleteOsnRequest} deleteOsnRequest - Data required for deleteOsn - * @returns {Promise} - */ - deleteOsn(deleteOsnRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.deleteOsn(deleteOsnRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deletePeer function of BlockchainPlatformClient - * @param {DeletePeerRequest} deletePeerRequest - Data required for deletePeer - * @returns {Promise} - */ - deletePeer(deletePeerRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.deletePeer(deletePeerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getOsn function of BlockchainPlatformClient - * @param {GetOsnRequest} getOsnRequest - Data required for getOsn - * @returns {Promise} - */ - getOsn(getOsnRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.getOsn(getOsnRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listBlockchainPlatforms function of BlockchainPlatformClient - * @param {ListBlockchainPlatformsRequest} listBlockchainPlatformsRequest - Data required for listBlockchainPlatforms - * @returns {Promise} - */ - listBlockchainPlatforms(listBlockchainPlatformsRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.listBlockchainPlatforms(listBlockchainPlatformsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listOsns function of BlockchainPlatformClient - * @param {ListOsnsRequest} listOsnsRequest - Data required for listOsns - * @returns {Promise} - */ - listOsns(listOsnsRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.listOsns(listOsnsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listPeers function of BlockchainPlatformClient - * @param {ListPeersRequest} listPeersRequest - Data required for listPeers - * @returns {Promise} - */ - listPeers(listPeersRequest) { - return new Promise((resolve, reject) => { - this._blockchainPlatformClient.listPeers(listPeersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockchainPlatformClient = this._oci.BlockchainPlatformClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBlockchainPlatform function of BlockchainPlatformClient + * @param {CreateBlockchainPlatformRequest} createBlockchainPlatformRequest - Data required for createBlockchainPlatform + * @returns {Promise} + */ + createBlockchainPlatform(createBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createBlockchainPlatform(createBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createOsn function of BlockchainPlatformClient + * @param {CreateOsnRequest} createOsnRequest - Data required for createOsn + * @returns {Promise} + */ + createOsn(createOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createOsn(createOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createPeer function of BlockchainPlatformClient + * @param {CreatePeerRequest} createPeerRequest - Data required for createPeer + * @returns {Promise} + */ + createPeer(createPeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createPeer(createPeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBlockchainPlatform function of BlockchainPlatformClient + * @param {DeleteBlockchainPlatformRequest} deleteBlockchainPlatformRequest - Data required for deleteBlockchainPlatform + * @returns {Promise} + */ + deleteBlockchainPlatform(deleteBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteBlockchainPlatform(deleteBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteOsn function of BlockchainPlatformClient + * @param {DeleteOsnRequest} deleteOsnRequest - Data required for deleteOsn + * @returns {Promise} + */ + deleteOsn(deleteOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteOsn(deleteOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deletePeer function of BlockchainPlatformClient + * @param {DeletePeerRequest} deletePeerRequest - Data required for deletePeer + * @returns {Promise} + */ + deletePeer(deletePeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deletePeer(deletePeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getOsn function of BlockchainPlatformClient + * @param {GetOsnRequest} getOsnRequest - Data required for getOsn + * @returns {Promise} + */ + getOsn(getOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .getOsn(getOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBlockchainPlatforms function of BlockchainPlatformClient + * @param {ListBlockchainPlatformsRequest} listBlockchainPlatformsRequest - Data required for listBlockchainPlatforms + * @returns {Promise} + */ + listBlockchainPlatforms(listBlockchainPlatformsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listBlockchainPlatforms(listBlockchainPlatformsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listOsns function of BlockchainPlatformClient + * @param {ListOsnsRequest} listOsnsRequest - Data required for listOsns + * @returns {Promise} + */ + listOsns(listOsnsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listOsns(listOsnsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listPeers function of BlockchainPlatformClient + * @param {ListPeersRequest} listPeersRequest - Data required for listPeers + * @returns {Promise} + */ + listPeers(listPeersRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listPeers(listPeersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_BlockChain; diff --git a/generator/generatedClasses/Oracle/compute/oci-computeInstance.js b/generator/generatedClasses/Oracle/compute/oci-computeInstance.js index 4ee962d..61a4d3c 100644 --- a/generator/generatedClasses/Oracle/compute/oci-computeInstance.js +++ b/generator/generatedClasses/Oracle/compute/oci-computeInstance.js @@ -1,126 +1,138 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ContainerInstanceClient object - * @category Oracle Cloud - */ + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ class Oracle_ComputeInstance { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._containerInstanceClient = this._oci.ContainerInstanceClient(params, clientConfiguration); - } - /** - * Trigers the createContainerInstance function of ContainerInstanceClient - * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance - * @returns {Promise} - */ - create(createContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.createContainerInstance(createContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteContainerInstance function of ContainerInstanceClient - * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance - * @returns {Promise} - */ - delete(deleteContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.deleteContainerInstance(deleteContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getContainer function of ContainerInstanceClient - * @param {GetContainerRequest} getContainerRequest - Data required for getContainer - * @returns {Promise} - */ - getAll(getContainerRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.getContainer(getContainerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getContainerInstance function of ContainerInstanceClient - * @param {GetContainerInstanceRequest} getContainerInstanceRequest - Data required for getContainerInstance - * @returns {Promise} - */ - get(getContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.getContainerInstance(getContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listContainers function of ContainerInstanceClient - * @param {ListContainersRequest} listContainersRequest - Data required for listContainers - * @returns {Promise} - */ - list(listContainersRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.listContainers(listContainersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the restartContainerInstance function of ContainerInstanceClient - * @param {RestartContainerInstanceRequest} restartContainerInstanceRequest - Data required for restartContainerInstance - * @returns {Promise} - */ - restart(restartContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.restartContainerInstance(restartContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the startContainerInstance function of ContainerInstanceClient - * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance - * @returns {Promise} - */ - start(startContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.startContainerInstance(startContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the stopContainerInstance function of ContainerInstanceClient - * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance - * @returns {Promise} - */ - stop(stopContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.stopContainerInstance(stopContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateContainer function of ContainerInstanceClient - * @param {UpdateContainerRequest} updateContainerRequest - Data required for updateContainer - * @returns {Promise} - */ - update(updateContainerRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.updateContainer(updateContainerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerInstanceClient = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + getAll(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainerInstance function of ContainerInstanceClient + * @param {GetContainerInstanceRequest} getContainerInstanceRequest - Data required for getContainerInstance + * @returns {Promise} + */ + get(getContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainerInstance(getContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartContainerInstance function of ContainerInstanceClient + * @param {RestartContainerInstanceRequest} restartContainerInstanceRequest - Data required for restartContainerInstance + * @returns {Promise} + */ + restart(restartContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .restartContainerInstance(restartContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateContainer function of ContainerInstanceClient + * @param {UpdateContainerRequest} updateContainerRequest - Data required for updateContainer + * @returns {Promise} + */ + update(updateContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .updateContainer(updateContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_ComputeInstance; diff --git a/generator/generatedClasses/Oracle/compute/oci-container.js b/generator/generatedClasses/Oracle/compute/oci-container.js index 84192a0..9e51ea9 100644 --- a/generator/generatedClasses/Oracle/compute/oci-container.js +++ b/generator/generatedClasses/Oracle/compute/oci-container.js @@ -1,90 +1,99 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ContainerInstanceClient object - * @category Oracle Cloud - */ + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ class Oracle_Container { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._containerInstanceClient = this._oci.ContainerInstanceClient(params, clientConfiguration); - } - /** - * Trigers the createContainerInstance function of ContainerInstanceClient - * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance - * @returns {Promise} - */ - create(createContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.createContainerInstance(createContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteContainerInstance function of ContainerInstanceClient - * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance - * @returns {Promise} - */ - delete(deleteContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.deleteContainerInstance(deleteContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getContainer function of ContainerInstanceClient - * @param {GetContainerRequest} getContainerRequest - Data required for getContainer - * @returns {Promise} - */ - describe(getContainerRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.getContainer(getContainerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listContainers function of ContainerInstanceClient - * @param {ListContainersRequest} listContainersRequest - Data required for listContainers - * @returns {Promise} - */ - list(listContainersRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.listContainers(listContainersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the startContainerInstance function of ContainerInstanceClient - * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance - * @returns {Promise} - */ - start(startContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.startContainerInstance(startContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the stopContainerInstance function of ContainerInstanceClient - * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance - * @returns {Promise} - */ - stop(stopContainerInstanceRequest) { - return new Promise((resolve, reject) => { - this._containerInstanceClient.stopContainerInstance(stopContainerInstanceRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerInstanceClient = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + describe(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_Container; diff --git a/generator/generatedClasses/Oracle/compute/oci-kubernetes.js b/generator/generatedClasses/Oracle/compute/oci-kubernetes.js index 8d14026..f2a468c 100644 --- a/generator/generatedClasses/Oracle/compute/oci-kubernetes.js +++ b/generator/generatedClasses/Oracle/compute/oci-kubernetes.js @@ -1,138 +1,151 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ContainerEngineClient object - * @category Oracle Cloud - */ + * Class to create a ContainerEngineClient object + * @category Oracle Cloud + */ class Oracle_Kubernetes { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._containerEngineClient = this._oci.ContainerEngineClient(params, clientConfiguration); - } - /** - * Trigers the createCluster function of ContainerEngineClient - * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster - * @returns {Promise} - */ - create(createClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.createCluster(createClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodePool function of ContainerEngineClient - * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool - * @returns {Promise} - */ - createNodePool(createNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.createNodePool(createNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteCluster function of ContainerEngineClient - * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster - * @returns {Promise} - */ - delete(deleteClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteCluster(deleteClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNode function of ContainerEngineClient - * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode - * @returns {Promise} - */ - deleteNode(deleteNodeRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteNode(deleteNodeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodePool function of ContainerEngineClient - * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool - * @returns {Promise} - */ - deleteNodePool(deleteNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteNodePool(deleteNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getCluster function of ContainerEngineClient - * @param {GetClusterRequest} getClusterRequest - Data required for getCluster - * @returns {Promise} - */ - get(getClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.getCluster(getClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePool function of ContainerEngineClient - * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool - * @returns {Promise} - */ - getNodePool(getNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.getNodePool(getNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listClusters function of ContainerEngineClient - * @param {ListClustersRequest} listClustersRequest - Data required for listClusters - * @returns {Promise} - */ - list(listClustersRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.listClusters(listClustersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateCluster function of ContainerEngineClient - * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster - * @returns {Promise} - */ - update(updateClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.updateCluster(updateClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodePool function of ContainerEngineClient - * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool - * @returns {Promise} - */ - updateNodePool(updateNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.updateNodePool(updateNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerEngineClient = this._oci.ContainerEngineClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createCluster function of ContainerEngineClient + * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster + * @returns {Promise} + */ + create(createClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createCluster(createClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of ContainerEngineClient + * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(createNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createNodePool(createNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCluster function of ContainerEngineClient + * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster + * @returns {Promise} + */ + delete(deleteClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteCluster(deleteClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNode function of ContainerEngineClient + * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode + * @returns {Promise} + */ + deleteNode(deleteNodeRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNode(deleteNodeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of ContainerEngineClient + * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(deleteNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNodePool(deleteNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCluster function of ContainerEngineClient + * @param {GetClusterRequest} getClusterRequest - Data required for getCluster + * @returns {Promise} + */ + get(getClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getCluster(getClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of ContainerEngineClient + * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(getNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getNodePool(getNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listClusters function of ContainerEngineClient + * @param {ListClustersRequest} listClustersRequest - Data required for listClusters + * @returns {Promise} + */ + list(listClustersRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .listClusters(listClustersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCluster function of ContainerEngineClient + * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster + * @returns {Promise} + */ + update(updateClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateCluster(updateClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of ContainerEngineClient + * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(updateNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateNodePool(updateNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_Kubernetes; diff --git a/generator/generatedClasses/Oracle/database/oci-RDBMS.js b/generator/generatedClasses/Oracle/database/oci-RDBMS.js index 56d2130..4032123 100644 --- a/generator/generatedClasses/Oracle/database/oci-RDBMS.js +++ b/generator/generatedClasses/Oracle/database/oci-RDBMS.js @@ -1,102 +1,112 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DbSystemClient object - * @category Oracle Cloud - */ + * Class to create a DbSystemClient object + * @category Oracle Cloud + */ class Oracle_RDBMS { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._dbSystemClient = this._oci.DbSystemClient(params, clientConfiguration); - } - /** - * Trigers the createDbSystem function of DbSystemClient - * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem - * @returns {Promise} - */ - createDBSystem(createDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.createDbSystem(createDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDbSystem function of DbSystemClient - * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem - * @returns {Promise} - */ - deleteDBSystem(deleteDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.deleteDbSystem(deleteDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDbSystem function of DbSystemClient - * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem - * @returns {Promise} - */ - getDBSystem(getDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.getDbSystem(getDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the restartDbSystem function of DbSystemClient - * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem - * @returns {Promise} - */ - restartDBSystem(restartDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.restartDbSystem(restartDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the startDbSystem function of DbSystemClient - * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem - * @returns {Promise} - */ - startDBSystem(startDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.startDbSystem(startDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the stopDbSystem function of DbSystemClient - * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem - * @returns {Promise} - */ - stopDBSystem(stopDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.stopDbSystem(stopDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDbSystem function of DbSystemClient - * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem - * @returns {Promise} - */ - updateDBSystem(updateDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.updateDbSystem(updateDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dbSystemClient = this._oci.DbSystemClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDbSystem function of DbSystemClient + * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem + * @returns {Promise} + */ + createDBSystem(createDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .createDbSystem(createDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDbSystem function of DbSystemClient + * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem + * @returns {Promise} + */ + deleteDBSystem(deleteDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .deleteDbSystem(deleteDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDbSystem function of DbSystemClient + * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem + * @returns {Promise} + */ + getDBSystem(getDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .getDbSystem(getDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartDbSystem function of DbSystemClient + * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem + * @returns {Promise} + */ + restartDBSystem(restartDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .restartDbSystem(restartDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startDbSystem function of DbSystemClient + * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem + * @returns {Promise} + */ + startDBSystem(startDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .startDbSystem(startDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopDbSystem function of DbSystemClient + * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem + * @returns {Promise} + */ + stopDBSystem(stopDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .stopDbSystem(stopDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDbSystem function of DbSystemClient + * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem + * @returns {Promise} + */ + updateDBSystem(updateDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .updateDbSystem(updateDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_RDBMS; diff --git a/generator/generatedClasses/Oracle/database/oci-noSql.js b/generator/generatedClasses/Oracle/database/oci-noSql.js index 53a598e..d049fbf 100644 --- a/generator/generatedClasses/Oracle/database/oci-noSql.js +++ b/generator/generatedClasses/Oracle/database/oci-noSql.js @@ -1,114 +1,122 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a NosqlClient object - * @category Oracle Cloud - */ + * Class to create a NosqlClient object + * @category Oracle Cloud + */ class Oracle_NoSql { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); - } - /** - * Trigers the createTable function of NosqlClient - * @param {CreateTableRequest} createTableRequest - Data required for createTable - * @returns {Promise} - */ - createTable(createTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.createTable(createTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteRow function of NosqlClient - * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow - * @returns {Promise} - */ - deleteRow(deleteRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.deleteRow(deleteRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteTable function of NosqlClient - * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable - * @returns {Promise} - */ - deleteTable(deleteTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.deleteTable(deleteTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getRow function of NosqlClient - * @param {GetRowRequest} getRowRequest - Data required for getRow - * @returns {Promise} - */ - getRow(getRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.getRow(getRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getTable function of NosqlClient - * @param {GetTableRequest} getTableRequest - Data required for getTable - * @returns {Promise} - */ - getTable(getTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.getTable(getTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listTables function of NosqlClient - * @param {ListTablesRequest} listTablesRequest - Data required for listTables - * @returns {Promise} - */ - listTables(listTablesRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.listTables(listTablesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateRow function of NosqlClient - * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow - * @returns {Promise} - */ - updateRow(updateRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.updateRow(updateRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateTable function of NosqlClient - * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable - * @returns {Promise} - */ - updateTable(updateTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.updateTable(updateTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); + } + /** + * Trigers the createTable function of NosqlClient + * @param {CreateTableRequest} createTableRequest - Data required for createTable + * @returns {Promise} + */ + createTable(createTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .createTable(createTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRow function of NosqlClient + * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow + * @returns {Promise} + */ + deleteRow(deleteRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteRow(deleteRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteTable function of NosqlClient + * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable + * @returns {Promise} + */ + deleteTable(deleteTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteTable(deleteTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRow function of NosqlClient + * @param {GetRowRequest} getRowRequest - Data required for getRow + * @returns {Promise} + */ + getRow(getRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getRow(getRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getTable function of NosqlClient + * @param {GetTableRequest} getTableRequest - Data required for getTable + * @returns {Promise} + */ + getTable(getTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getTable(getTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listTables function of NosqlClient + * @param {ListTablesRequest} listTablesRequest - Data required for listTables + * @returns {Promise} + */ + listTables(listTablesRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .listTables(listTablesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRow function of NosqlClient + * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow + * @returns {Promise} + */ + updateRow(updateRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateRow(updateRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateTable function of NosqlClient + * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable + * @returns {Promise} + */ + updateTable(updateTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateTable(updateTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_NoSql; diff --git a/generator/generatedClasses/Oracle/devops/oci-devops.js b/generator/generatedClasses/Oracle/devops/oci-devops.js index 4fba5d2..f094363 100644 --- a/generator/generatedClasses/Oracle/devops/oci-devops.js +++ b/generator/generatedClasses/Oracle/devops/oci-devops.js @@ -1,174 +1,190 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DevopsClient object - * @category Oracle Cloud - */ + * Class to create a DevopsClient object + * @category Oracle Cloud + */ class Oracle_Devops { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._devopsClient = this._oci.DevopsClient(params, clientConfiguration); - } - /** - * Trigers the createDeployArtifact function of DevopsClient - * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact - * @returns {Promise} - */ - createDeployArtifact(createDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployArtifact(createDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDeployPipeline function of DevopsClient - * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline - * @returns {Promise} - */ - createDeployPipeline(createDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployPipeline(createDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDeployment function of DevopsClient - * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment - * @returns {Promise} - */ - createDeployment(createDeploymentRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployment(createDeploymentRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createProject function of DevopsClient - * @param {CreateProjectRequest} createProjectRequest - Data required for createProject - * @returns {Promise} - */ - createProject(createProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createProject(createProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createRepository function of DevopsClient - * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository - * @returns {Promise} - */ - createRepository(createRepositoryRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createRepository(createRepositoryRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDeployArtifact function of DevopsClient - * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact - * @returns {Promise} - */ - deleteDeployArtifact(deleteDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteDeployArtifact(deleteDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDeployPipeline function of DevopsClient - * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline - * @returns {Promise} - */ - deleteDeployPipeline(deleteDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteDeployPipeline(deleteDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteProject function of DevopsClient - * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject - * @returns {Promise} - */ - deleteProject(deleteProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteProject(deleteProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteRepository function of DevopsClient - * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository - * @returns {Promise} - */ - deleteRepository(deleteRepositoryRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteRepository(deleteRepositoryRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployArtifact function of DevopsClient - * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact - * @returns {Promise} - */ - getDeployArtifact(getDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployArtifact(getDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployPipeline function of DevopsClient - * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline - * @returns {Promise} - */ - getDeployPipeline(getDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployPipeline(getDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployment function of DevopsClient - * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment - * @returns {Promise} - */ - getDeployment(getDeploymentRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployment(getDeploymentRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getProject function of DevopsClient - * @param {GetProjectRequest} getProjectRequest - Data required for getProject - * @returns {Promise} - */ - getProject(getProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getProject(getProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._devopsClient = this._oci.DevopsClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDeployArtifact function of DevopsClient + * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact + * @returns {Promise} + */ + createDeployArtifact(createDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployArtifact(createDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployPipeline function of DevopsClient + * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline + * @returns {Promise} + */ + createDeployPipeline(createDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployPipeline(createDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployment function of DevopsClient + * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment + * @returns {Promise} + */ + createDeployment(createDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployment(createDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createProject function of DevopsClient + * @param {CreateProjectRequest} createProjectRequest - Data required for createProject + * @returns {Promise} + */ + createProject(createProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createProject(createProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRepository function of DevopsClient + * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository + * @returns {Promise} + */ + createRepository(createRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createRepository(createRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployArtifact function of DevopsClient + * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact + * @returns {Promise} + */ + deleteDeployArtifact(deleteDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployArtifact(deleteDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployPipeline function of DevopsClient + * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline + * @returns {Promise} + */ + deleteDeployPipeline(deleteDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployPipeline(deleteDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteProject function of DevopsClient + * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject + * @returns {Promise} + */ + deleteProject(deleteProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteProject(deleteProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRepository function of DevopsClient + * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository + * @returns {Promise} + */ + deleteRepository(deleteRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteRepository(deleteRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployArtifact function of DevopsClient + * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact + * @returns {Promise} + */ + getDeployArtifact(getDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployArtifact(getDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployPipeline function of DevopsClient + * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline + * @returns {Promise} + */ + getDeployPipeline(getDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployPipeline(getDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployment function of DevopsClient + * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment + * @returns {Promise} + */ + getDeployment(getDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployment(getDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getProject function of DevopsClient + * @param {GetProjectRequest} getProjectRequest - Data required for getProject + * @returns {Promise} + */ + getProject(getProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getProject(getProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_Devops; diff --git a/generator/generatedClasses/Oracle/management/oci-keyManagement.js b/generator/generatedClasses/Oracle/management/oci-keyManagement.js index c8ba87c..49c3487 100644 --- a/generator/generatedClasses/Oracle/management/oci-keyManagement.js +++ b/generator/generatedClasses/Oracle/management/oci-keyManagement.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a KmsManagementClient object - * @category Oracle Cloud - */ + * Class to create a KmsManagementClient object + * @category Oracle Cloud + */ class Oracle_KeyManagement { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._kmsManagementClient = this._oci.KmsManagementClient(params, clientConfiguration); - } - /** - * Trigers the createKey function of KmsManagementClient - * @param {CreateKeyRequest} createKeyRequest - Data required for createKey - * @returns {Promise} - */ - createKey(createKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.createKey(createKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableKey function of KmsManagementClient - * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey - * @returns {Promise} - */ - disableKey(disableKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.disableKey(disableKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableKey function of KmsManagementClient - * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey - * @returns {Promise} - */ - enableKey(enableKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.enableKey(enableKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateKey function of KmsManagementClient - * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey - * @returns {Promise} - */ - update(updateKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.updateKey(updateKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._kmsManagementClient = this._oci.KmsManagementClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createKey function of KmsManagementClient + * @param {CreateKeyRequest} createKeyRequest - Data required for createKey + * @returns {Promise} + */ + createKey(createKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .createKey(createKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableKey function of KmsManagementClient + * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey + * @returns {Promise} + */ + disableKey(disableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .disableKey(disableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableKey function of KmsManagementClient + * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey + * @returns {Promise} + */ + enableKey(enableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .enableKey(enableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateKey function of KmsManagementClient + * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey + * @returns {Promise} + */ + update(updateKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .updateKey(updateKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_KeyManagement; diff --git a/generator/generatedClasses/Oracle/management/oci-notificationService.js b/generator/generatedClasses/Oracle/management/oci-notificationService.js index d0895c4..0bc11a1 100644 --- a/generator/generatedClasses/Oracle/management/oci-notificationService.js +++ b/generator/generatedClasses/Oracle/management/oci-notificationService.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a NotificationDataPlaneClient object - * @category Oracle Cloud - */ + * Class to create a NotificationDataPlaneClient object + * @category Oracle Cloud + */ class Oracle_NotificationService { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient(params, clientConfiguration); - } - /** - * Trigers the createSubscription function of NotificationDataPlaneClient - * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription - * @returns {Promise} - */ - subscribe(createSubscriptionRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.createSubscription(createSubscriptionRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteSubscription function of NotificationDataPlaneClient - * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription - * @returns {Promise} - */ - unsubscribe(deleteSubscriptionRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.deleteSubscription(deleteSubscriptionRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listSubscriptions function of NotificationDataPlaneClient - * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions - * @returns {Promise} - */ - listSubscriptions(listSubscriptionsRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.listSubscriptions(listSubscriptionsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the publishMessage function of NotificationDataPlaneClient - * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage - * @returns {Promise} - */ - publish(publishMessageRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.publishMessage(publishMessageRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createSubscription function of NotificationDataPlaneClient + * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription + * @returns {Promise} + */ + subscribe(createSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .createSubscription(createSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteSubscription function of NotificationDataPlaneClient + * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription + * @returns {Promise} + */ + unsubscribe(deleteSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .deleteSubscription(deleteSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listSubscriptions function of NotificationDataPlaneClient + * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions + * @returns {Promise} + */ + listSubscriptions(listSubscriptionsRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .listSubscriptions(listSubscriptionsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the publishMessage function of NotificationDataPlaneClient + * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage + * @returns {Promise} + */ + publish(publishMessageRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .publishMessage(publishMessageRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_NotificationService; diff --git a/generator/generatedClasses/Oracle/network/oci-DNS.js b/generator/generatedClasses/Oracle/network/oci-DNS.js index bd996e4..52cd67f 100644 --- a/generator/generatedClasses/Oracle/network/oci-DNS.js +++ b/generator/generatedClasses/Oracle/network/oci-DNS.js @@ -1,66 +1,70 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DnsClient object - * @category Oracle Cloud - */ + * Class to create a DnsClient object + * @category Oracle Cloud + */ class Oracle_DNS { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._dnsClient = this._oci.DnsClient(params, clientConfiguration); - } - /** - * Trigers the createZone function of DnsClient - * @param {CreateZoneRequest} createZoneRequest - Data required for createZone - * @returns {Promise} - */ - create(createZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.createZone(createZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteZone function of DnsClient - * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone - * @returns {Promise} - */ - delete(deleteZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.deleteZone(deleteZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listZones function of DnsClient - * @param {ListZonesRequest} listZonesRequest - Data required for listZones - * @returns {Promise} - */ - list(listZonesRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.listZones(listZonesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateZone function of DnsClient - * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone - * @returns {Promise} - */ - update(updateZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.updateZone(updateZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dnsClient = this._oci.DnsClient(params, clientConfiguration); + } + /** + * Trigers the createZone function of DnsClient + * @param {CreateZoneRequest} createZoneRequest - Data required for createZone + * @returns {Promise} + */ + create(createZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .createZone(createZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteZone function of DnsClient + * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone + * @returns {Promise} + */ + delete(deleteZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .deleteZone(deleteZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listZones function of DnsClient + * @param {ListZonesRequest} listZonesRequest - Data required for listZones + * @returns {Promise} + */ + list(listZonesRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .listZones(listZonesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateZone function of DnsClient + * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone + * @returns {Promise} + */ + update(updateZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .updateZone(updateZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_DNS; diff --git a/generator/generatedClasses/Oracle/network/oci-loadBalancer.js b/generator/generatedClasses/Oracle/network/oci-loadBalancer.js index e0ec4f0..21faafa 100644 --- a/generator/generatedClasses/Oracle/network/oci-loadBalancer.js +++ b/generator/generatedClasses/Oracle/network/oci-loadBalancer.js @@ -1,78 +1,86 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a LoadBalancerClient object - * @category Oracle Cloud - */ + * Class to create a LoadBalancerClient object + * @category Oracle Cloud + */ class Oracle_LoadBalancer { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._loadBalancerClient = this._oci.LoadBalancerClient(params, clientConfiguration); - } - /** - * Trigers the createLoadBalancer function of LoadBalancerClient - * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer - * @returns {Promise} - */ - create(createLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.createLoadBalancer(createLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteLoadBalancer function of LoadBalancerClient - * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer - * @returns {Promise} - */ - delete(deleteLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.deleteLoadBalancer(deleteLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getLoadBalancer function of LoadBalancerClient - * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer - * @returns {Promise} - */ - get(getLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.getLoadBalancer(getLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listLoadBalancers function of LoadBalancerClient - * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers - * @returns {Promise} - */ - list(listLoadBalancersRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.listLoadBalancers(listLoadBalancersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateLoadBalancer function of LoadBalancerClient - * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer - * @returns {Promise} - */ - update(updateLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.updateLoadBalancer(updateLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._loadBalancerClient = this._oci.LoadBalancerClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createLoadBalancer function of LoadBalancerClient + * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer + * @returns {Promise} + */ + create(createLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .createLoadBalancer(createLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLoadBalancer function of LoadBalancerClient + * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer + * @returns {Promise} + */ + delete(deleteLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .deleteLoadBalancer(deleteLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getLoadBalancer function of LoadBalancerClient + * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer + * @returns {Promise} + */ + get(getLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .getLoadBalancer(getLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listLoadBalancers function of LoadBalancerClient + * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers + * @returns {Promise} + */ + list(listLoadBalancersRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .listLoadBalancers(listLoadBalancersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLoadBalancer function of LoadBalancerClient + * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer + * @returns {Promise} + */ + update(updateLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .updateLoadBalancer(updateLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_LoadBalancer; diff --git a/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js b/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js index 202582b..fe306c8 100644 --- a/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js +++ b/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ObjectStorageClient object - * @category Oracle Cloud - */ + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ class Oracle_ArchivalStorage { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._objectStorageClient = this._oci.ObjectStorageClient(params, clientConfiguration); - } - /** - * Trigers the createBucket function of ObjectStorageClient - * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket - * @returns {Promise} - */ - create(createBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.createBucket(createBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of ObjectStorageClient - * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket - * @returns {Promise} - */ - delete(deleteBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.deleteBucket(deleteBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listBuckets function of ObjectStorageClient - * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets - * @returns {Promise} - */ - list(listBucketsRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.listBuckets(listBucketsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateBucket function of ObjectStorageClient - * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket - * @returns {Promise} - */ - update(updateBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.updateBucket(updateBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucket function of ObjectStorageClient + * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket + * @returns {Promise} + */ + update(updateBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .updateBucket(updateBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_ArchivalStorage; diff --git a/generator/generatedClasses/Oracle/storage/oci-blockStorage.js b/generator/generatedClasses/Oracle/storage/oci-blockStorage.js index 36b43d6..26dc83a 100644 --- a/generator/generatedClasses/Oracle/storage/oci-blockStorage.js +++ b/generator/generatedClasses/Oracle/storage/oci-blockStorage.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a BlockstorageClient object - * @category Oracle Cloud - */ + * Class to create a BlockstorageClient object + * @category Oracle Cloud + */ class Oracle_BlockStorage { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._blockstorageClient = this._oci.BlockstorageClient(params, clientConfiguration); - } - /** - * Trigers the createVolume function of BlockstorageClient - * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume - * @returns {Promise} - */ - create(createVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.createVolume(createVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteVolume function of BlockstorageClient - * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume - * @returns {Promise} - */ - delete(deleteVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.deleteVolume(deleteVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getVolume function of BlockstorageClient - * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume - * @returns {Promise} - */ - get(getVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.getVolume(getVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listVolumes function of BlockstorageClient - * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes - * @returns {Promise} - */ - list(listVolumesRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.listVolumes(listVolumesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockstorageClient = this._oci.BlockstorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createVolume function of BlockstorageClient + * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume + * @returns {Promise} + */ + create(createVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .createVolume(createVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockstorageClient + * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume + * @returns {Promise} + */ + delete(deleteVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .deleteVolume(deleteVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getVolume function of BlockstorageClient + * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume + * @returns {Promise} + */ + get(getVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .getVolume(getVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listVolumes function of BlockstorageClient + * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes + * @returns {Promise} + */ + list(listVolumesRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .listVolumes(listVolumesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_BlockStorage; diff --git a/generator/generatedClasses/Oracle/storage/oci-storageBucket.js b/generator/generatedClasses/Oracle/storage/oci-storageBucket.js index f85aff4..b7d643e 100644 --- a/generator/generatedClasses/Oracle/storage/oci-storageBucket.js +++ b/generator/generatedClasses/Oracle/storage/oci-storageBucket.js @@ -1,78 +1,86 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ObjectStorageClient object - * @category Oracle Cloud - */ + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ class Oracle_StorageBucket { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._objectStorageClient = this._oci.ObjectStorageClient(params, clientConfiguration); - } - /** - * Trigers the createBucket function of ObjectStorageClient - * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket - * @returns {Promise} - */ - create(createBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.createBucket(createBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of ObjectStorageClient - * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket - * @returns {Promise} - */ - delete(deleteBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.deleteBucket(deleteBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBucket function of ObjectStorageClient - * @param {GetBucketRequest} getBucketRequest - Data required for getBucket - * @returns {Promise} - */ - get(getBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.getBucket(getBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listBuckets function of ObjectStorageClient - * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets - * @returns {Promise} - */ - list(listBucketsRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.listBuckets(listBucketsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the reencryptBucket function of ObjectStorageClient - * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket - * @returns {Promise} - */ - reencrypt(reencryptBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.reencryptBucket(reencryptBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucket function of ObjectStorageClient + * @param {GetBucketRequest} getBucketRequest - Data required for getBucket + * @returns {Promise} + */ + get(getBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .getBucket(getBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the reencryptBucket function of ObjectStorageClient + * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket + * @returns {Promise} + */ + reencrypt(reencryptBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .reencryptBucket(reencryptBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_StorageBucket; diff --git a/packages/linode-plugin/compute/linode-computeInstance.js b/packages/linode-plugin/compute/linode-computeInstance.js index bfba842..07d1474 100644 --- a/packages/linode-plugin/compute/linode-computeInstance.js +++ b/packages/linode-plugin/compute/linode-computeInstance.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ComputeInstanceLinodeClass object - * @category Linode - */ + * Class to create a ComputeInstanceLinodeClass object + * @category Linode + */ class Linode_ComputeInstance { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getLinodes function of ComputeInstanceLinodeClass - * @param {Params} params - Data required for getLinodes - * @param {Filter} filter - Data required for getLinodes - * @returns {Promise} - */ - list(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getLinodes(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createLinode function of ComputeInstanceLinodeClass - * @param {CreateLinodeRequest} data - Data required for createLinode - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createLinode(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateLinode function of ComputeInstanceLinodeClass - * @param {NumberKeyword} linodeId - Data required for updateLinode - * @param {DeepPartial} values - Data required for updateLinode - * @returns {Promise} - */ - update(linodeId, values) { - return new Promise((resolve, reject) => { - this._linode.updateLinode(linodeId, values) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteLinode function of ComputeInstanceLinodeClass - * @param {NumberKeyword} linodeId - Data required for deleteLinode - * @returns {Promise} - */ - delete(linodeId) { - return new Promise((resolve, reject) => { - this._linode.deleteLinode(linodeId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getLinodes function of ComputeInstanceLinodeClass + * @param {Params} params - Data required for getLinodes + * @param {Filter} filter - Data required for getLinodes + * @returns {Promise} + */ + list(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getLinodes(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createLinode function of ComputeInstanceLinodeClass + * @param {CreateLinodeRequest} data - Data required for createLinode + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createLinode(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for updateLinode + * @param {DeepPartial} values - Data required for updateLinode + * @returns {Promise} + */ + update(linodeId, values) { + return new Promise((resolve, reject) => { + this._linode + .updateLinode(linodeId, values) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for deleteLinode + * @returns {Promise} + */ + delete(linodeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteLinode(linodeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_ComputeInstance; diff --git a/packages/linode-plugin/compute/linode-kubernetes.js b/packages/linode-plugin/compute/linode-kubernetes.js index a7414df..5b73741 100644 --- a/packages/linode-plugin/compute/linode-kubernetes.js +++ b/packages/linode-plugin/compute/linode-kubernetes.js @@ -1,122 +1,130 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a KubernetesLinodeClass object - * @category Linode - */ + * Class to create a KubernetesLinodeClass object + * @category Linode + */ class Linode_Kubernetes { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getKubernetesClusters function of KubernetesLinodeClass - * @param {Params} params - Data required for getKubernetesClusters - * @param {Filter} filters - Data required for getKubernetesClusters - * @returns {Promise} - */ - getAllClusters(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getKubernetesClusters(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createKubernetesCluster function of KubernetesLinodeClass - * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createKubernetesCluster(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster - * @returns {Promise} - */ - delete(clusterID) { - return new Promise((resolve, reject) => { - this._linode.deleteKubernetesCluster(clusterID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePools function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for getNodePools - * @param {Params} params - Data required for getNodePools - * @param {Filter} filters - Data required for getNodePools - * @returns {Promise} - */ - getNodePools(clusterID, params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getNodePools(clusterID, params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for getNodePool - * @param {NumberKeyword} nodePoolID - Data required for getNodePool - * @returns {Promise} - */ - getNodePool(clusterID, nodePoolID) { - return new Promise((resolve, reject) => { - this._linode.getNodePool(clusterID, nodePoolID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for createNodePool - * @param {CreateNodePoolData} data - Data required for createNodePool - * @returns {Promise} - */ - createNodePool(clusterID, data) { - return new Promise((resolve, reject) => { - this._linode.createNodePool(clusterID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for updateNodePool - * @param {NumberKeyword} nodePoolID - Data required for updateNodePool - * @param {Partial} data - Data required for updateNodePool - * @returns {Promise} - */ - updateNodePool(clusterID, nodePoolID, data) { - return new Promise((resolve, reject) => { - this._linode.updateNodePool(clusterID, nodePoolID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodePool function of KubernetesLinodeClass - * @param {NumberKeyword} clusterID - Data required for deleteNodePool - * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool - * @returns {Promise} - */ - deleteNodePool(clusterID, nodePoolID) { - return new Promise((resolve, reject) => { - this._linode.deleteNodePool(clusterID, nodePoolID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getKubernetesClusters function of KubernetesLinodeClass + * @param {Params} params - Data required for getKubernetesClusters + * @param {Filter} filters - Data required for getKubernetesClusters + * @returns {Promise} + */ + getAllClusters(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getKubernetesClusters(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createKubernetesCluster function of KubernetesLinodeClass + * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createKubernetesCluster(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster + * @returns {Promise} + */ + delete(clusterID) { + return new Promise((resolve, reject) => { + this._linode + .deleteKubernetesCluster(clusterID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePools + * @param {Params} params - Data required for getNodePools + * @param {Filter} filters - Data required for getNodePools + * @returns {Promise} + */ + getNodePools(clusterID, params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodePools(clusterID, params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePool + * @param {NumberKeyword} nodePoolID - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .getNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for createNodePool + * @param {CreateNodePoolData} data - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(clusterID, data) { + return new Promise((resolve, reject) => { + this._linode + .createNodePool(clusterID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for updateNodePool + * @param {NumberKeyword} nodePoolID - Data required for updateNodePool + * @param {Partial} data - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(clusterID, nodePoolID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodePool(clusterID, nodePoolID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteNodePool + * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Kubernetes; diff --git a/packages/linode-plugin/database/linode-RDBMS.js b/packages/linode-plugin/database/linode-RDBMS.js index 25bfe89..a3b2b0f 100644 --- a/packages/linode-plugin/database/linode-RDBMS.js +++ b/packages/linode-plugin/database/linode-RDBMS.js @@ -1,97 +1,103 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a RDBMSLinodeClass object - * @category Linode - */ + * Class to create a RDBMSLinodeClass object + * @category Linode + */ class Linode_RDBMS { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getDatabases function of RDBMSLinodeClass - * @param {Params} params - Data required for getDatabases - * @param {Filter} filter - Data required for getDatabases - * @returns {Promise} - */ - getDatabases(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDatabases(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDatabaseEngines function of RDBMSLinodeClass - * @param {Params} params - Data required for getDatabaseEngines - * @param {Filter} filter - Data required for getDatabaseEngines - * @returns {Promise} - */ - getDatabaseEngines(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDatabaseEngines(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDatabase function of RDBMSLinodeClass - * @param {UnionType} engine - Data required for createDatabase - * @param {CreateDatabasePayload} data - Data required for createDatabase - * @returns {Promise} - */ - createDatabase(engine, data) { - return new Promise((resolve, reject) => { - this._linode.createDatabase(engine, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getEngineDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for getEngineDatabase - * @param {NumberKeyword} databaseID - Data required for getEngineDatabase - * @returns {Promise} - */ - getEngineDatabase(engine, databaseID) { - return new Promise((resolve, reject) => { - this._linode.getEngineDatabase(engine, databaseID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for updateDatabase - * @param {NumberKeyword} databaseID - Data required for updateDatabase - * @param {UpdateDatabasePayload} data - Data required for updateDatabase - * @returns {Promise} - */ - updateDatabase(engine, databaseID, data) { - return new Promise((resolve, reject) => { - this._linode.updateDatabase(engine, databaseID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDatabase function of RDBMSLinodeClass - * @param {Engine} engine - Data required for deleteDatabase - * @param {NumberKeyword} databaseID - Data required for deleteDatabase - * @returns {Promise} - */ - deleteDatabase(engine, databaseID) { - return new Promise((resolve, reject) => { - this._linode.deleteDatabase(engine, databaseID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDatabases function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabases + * @param {Filter} filter - Data required for getDatabases + * @returns {Promise} + */ + getDatabases(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabases(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDatabaseEngines function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabaseEngines + * @param {Filter} filter - Data required for getDatabaseEngines + * @returns {Promise} + */ + getDatabaseEngines(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabaseEngines(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDatabase function of RDBMSLinodeClass + * @param {UnionType} engine - Data required for createDatabase + * @param {CreateDatabasePayload} data - Data required for createDatabase + * @returns {Promise} + */ + createDatabase(engine, data) { + return new Promise((resolve, reject) => { + this._linode + .createDatabase(engine, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getEngineDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for getEngineDatabase + * @param {NumberKeyword} databaseID - Data required for getEngineDatabase + * @returns {Promise} + */ + getEngineDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .getEngineDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for updateDatabase + * @param {NumberKeyword} databaseID - Data required for updateDatabase + * @param {UpdateDatabasePayload} data - Data required for updateDatabase + * @returns {Promise} + */ + updateDatabase(engine, databaseID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDatabase(engine, databaseID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for deleteDatabase + * @param {NumberKeyword} databaseID - Data required for deleteDatabase + * @returns {Promise} + */ + deleteDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .deleteDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_RDBMS; diff --git a/packages/linode-plugin/firewalls/linode-firewalls.js b/packages/linode-plugin/firewalls/linode-firewalls.js index dca7266..2cfc10f 100644 --- a/packages/linode-plugin/firewalls/linode-firewalls.js +++ b/packages/linode-plugin/firewalls/linode-firewalls.js @@ -1,104 +1,111 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a FirewallsLinodeClass object - * @category Linode - */ + * Class to create a FirewallsLinodeClass object + * @category Linode + */ class Linode_Firewalls { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getFirewalls function of FirewallsLinodeClass - * @param {Params} params - Data required for getFirewalls - * @param {Filter} filter - Data required for getFirewalls - * @returns {Promise} - */ - getFirewalls(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getFirewalls(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for getFirewall - * @returns {Promise} - */ - getFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.getFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createFirewall function of FirewallsLinodeClass - * @param {CreateFirewallPayload} data - Data required for createFirewall - * @returns {Promise} - */ - createFirewall(data) { - return new Promise((resolve, reject) => { - this._linode.createFirewall(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for updateFirewall - * @param {UpdateFirewallPayload} data - Data required for updateFirewall - * @returns {Promise} - */ - updateFirewall(firewallID, data) { - return new Promise((resolve, reject) => { - this._linode.updateFirewall(firewallID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for enableFirewall - * @returns {Promise} - */ - enableFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.enableFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for disableFirewall - * @returns {Promise} - */ - disableFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.disableFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteFirewall function of FirewallsLinodeClass - * @param {NumberKeyword} firewallID - Data required for deleteFirewall - * @returns {Promise} - */ - deleteFirewall(firewallID) { - return new Promise((resolve, reject) => { - this._linode.deleteFirewall(firewallID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getFirewalls function of FirewallsLinodeClass + * @param {Params} params - Data required for getFirewalls + * @param {Filter} filter - Data required for getFirewalls + * @returns {Promise} + */ + getFirewalls(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getFirewalls(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for getFirewall + * @returns {Promise} + */ + getFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .getFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createFirewall function of FirewallsLinodeClass + * @param {CreateFirewallPayload} data - Data required for createFirewall + * @returns {Promise} + */ + createFirewall(data) { + return new Promise((resolve, reject) => { + this._linode + .createFirewall(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for updateFirewall + * @param {UpdateFirewallPayload} data - Data required for updateFirewall + * @returns {Promise} + */ + updateFirewall(firewallID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateFirewall(firewallID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for enableFirewall + * @returns {Promise} + */ + enableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .enableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for disableFirewall + * @returns {Promise} + */ + disableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .disableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for deleteFirewall + * @returns {Promise} + */ + deleteFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .deleteFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Firewalls; diff --git a/packages/linode-plugin/images/linode-images.js b/packages/linode-plugin/images/linode-images.js index 1be67ed..2d0651f 100644 --- a/packages/linode-plugin/images/linode-images.js +++ b/packages/linode-plugin/images/linode-images.js @@ -1,96 +1,107 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ImagesLinodeClass object - * @category Linode - */ + * Class to create a ImagesLinodeClass object + * @category Linode + */ class Linode_Images { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for getImage - * @returns {Promise} - */ - getImage(imageId) { - return new Promise((resolve, reject) => { - this._linode.getImage(imageId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getImages function of ImagesLinodeClass - * @param {Params} params - Data required for getImages - * @param {Filter} filters - Data required for getImages - * @returns {Promise} - */ - getImages(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getImages(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createImage function of ImagesLinodeClass - * @param {NumberKeyword} diskId - Data required for createImage - * @param {StringKeyword} label - Data required for createImage - * @param {StringKeyword} description - Data required for createImage - * @param {BooleanKeyword} cloud_init - Data required for createImage - * @returns {Promise} - */ - createImage(diskId, label = undefined, description = undefined, cloud_init = undefined) { - return new Promise((resolve, reject) => { - this._linode.createImage(diskId, label, description, cloud_init) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for updateImage - * @param {StringKeyword} label - Data required for updateImage - * @param {StringKeyword} description - Data required for updateImage - * @returns {Promise} - */ - updateImage(imageId, label = undefined, description = undefined) { - return new Promise((resolve, reject) => { - this._linode.updateImage(imageId, label, description) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteImage function of ImagesLinodeClass - * @param {StringKeyword} imageId - Data required for deleteImage - * @returns {Promise} - */ - deleteImage(imageId) { - return new Promise((resolve, reject) => { - this._linode.deleteImage(imageId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the uploadImage function of ImagesLinodeClass - * @param {ImageUploadPayload} data - Data required for uploadImage - * @returns {Promise} - */ - uploadImage(data) { - return new Promise((resolve, reject) => { - this._linode.uploadImage(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for getImage + * @returns {Promise} + */ + getImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .getImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getImages function of ImagesLinodeClass + * @param {Params} params - Data required for getImages + * @param {Filter} filters - Data required for getImages + * @returns {Promise} + */ + getImages(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getImages(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createImage function of ImagesLinodeClass + * @param {NumberKeyword} diskId - Data required for createImage + * @param {StringKeyword} label - Data required for createImage + * @param {StringKeyword} description - Data required for createImage + * @param {BooleanKeyword} cloud_init - Data required for createImage + * @returns {Promise} + */ + createImage( + diskId, + label = undefined, + description = undefined, + cloud_init = undefined + ) { + return new Promise((resolve, reject) => { + this._linode + .createImage(diskId, label, description, cloud_init) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for updateImage + * @param {StringKeyword} label - Data required for updateImage + * @param {StringKeyword} description - Data required for updateImage + * @returns {Promise} + */ + updateImage(imageId, label = undefined, description = undefined) { + return new Promise((resolve, reject) => { + this._linode + .updateImage(imageId, label, description) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for deleteImage + * @returns {Promise} + */ + deleteImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .deleteImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the uploadImage function of ImagesLinodeClass + * @param {ImageUploadPayload} data - Data required for uploadImage + * @returns {Promise} + */ + uploadImage(data) { + return new Promise((resolve, reject) => { + this._linode + .uploadImage(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Images; diff --git a/packages/linode-plugin/management/linode-monitoring.js b/packages/linode-plugin/management/linode-monitoring.js index bce2e4c..87bd133 100644 --- a/packages/linode-plugin/management/linode-monitoring.js +++ b/packages/linode-plugin/management/linode-monitoring.js @@ -1,130 +1,139 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a MonitoringLinodeClass object - * @category Linode - */ + * Class to create a MonitoringLinodeClass object + * @category Linode + */ class Linode_Monitoring { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getServices function of MonitoringLinodeClass - * @param {Params} params - Data required for getServices - * @param {Filter} filters - Data required for getServices - * @returns {Promise} - */ - getServices(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getServices(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor - * @returns {Promise} - */ - disableServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.disableServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor - * @returns {Promise} - */ - enableServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.enableServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor - * @returns {Promise} - */ - deleteServiceMonitor(serviceID) { - return new Promise((resolve, reject) => { - this._linode.deleteServiceMonitor(serviceID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createServiceMonitor function of MonitoringLinodeClass - * @param {ManagedServicePayload} data - Data required for createServiceMonitor - * @returns {Promise} - */ - createServiceMonitor(data) { - return new Promise((resolve, reject) => { - this._linode.createServiceMonitor(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateServiceMonitor function of MonitoringLinodeClass - * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor - * @param {Partial} data - Data required for updateServiceMonitor - * @returns {Promise} - */ - updateServiceMonitor(monitorID, data) { - return new Promise((resolve, reject) => { - this._linode.updateServiceMonitor(monitorID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getCredentials function of MonitoringLinodeClass - * @param {Params} params - Data required for getCredentials - * @param {Filter} filters - Data required for getCredentials - * @returns {Promise} - */ - getCredentials(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getCredentials(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateCredential function of MonitoringLinodeClass - * @param {NumberKeyword} credentialID - Data required for updateCredential - * @param {UpdateCredentialPayload} data - Data required for updateCredential - * @returns {Promise} - */ - updateCredential(credentialID, data) { - return new Promise((resolve, reject) => { - this._linode.updateCredential(credentialID, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteCredential function of MonitoringLinodeClass - * @param {NumberKeyword} credentialID - Data required for deleteCredential - * @returns {Promise} - */ - deleteCredential(credentialID) { - return new Promise((resolve, reject) => { - this._linode.deleteCredential(credentialID) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getServices function of MonitoringLinodeClass + * @param {Params} params - Data required for getServices + * @param {Filter} filters - Data required for getServices + * @returns {Promise} + */ + getServices(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getServices(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor + * @returns {Promise} + */ + disableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .disableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor + * @returns {Promise} + */ + enableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .enableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor + * @returns {Promise} + */ + deleteServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .deleteServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createServiceMonitor function of MonitoringLinodeClass + * @param {ManagedServicePayload} data - Data required for createServiceMonitor + * @returns {Promise} + */ + createServiceMonitor(data) { + return new Promise((resolve, reject) => { + this._linode + .createServiceMonitor(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor + * @param {Partial} data - Data required for updateServiceMonitor + * @returns {Promise} + */ + updateServiceMonitor(monitorID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateServiceMonitor(monitorID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCredentials function of MonitoringLinodeClass + * @param {Params} params - Data required for getCredentials + * @param {Filter} filters - Data required for getCredentials + * @returns {Promise} + */ + getCredentials(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getCredentials(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for updateCredential + * @param {UpdateCredentialPayload} data - Data required for updateCredential + * @returns {Promise} + */ + updateCredential(credentialID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateCredential(credentialID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for deleteCredential + * @returns {Promise} + */ + deleteCredential(credentialID) { + return new Promise((resolve, reject) => { + this._linode + .deleteCredential(credentialID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_Monitoring; diff --git a/packages/linode-plugin/network/linode-DNS.js b/packages/linode-plugin/network/linode-DNS.js index ce3dc8a..a3c1d06 100644 --- a/packages/linode-plugin/network/linode-DNS.js +++ b/packages/linode-plugin/network/linode-DNS.js @@ -1,93 +1,99 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DNSLinodeClass object - * @category Linode - */ + * Class to create a DNSLinodeClass object + * @category Linode + */ class Linode_DNS { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getDomains function of DNSLinodeClass - * @param {Params} params - Data required for getDomains - * @param {Filter} filter - Data required for getDomains - * @returns {Promise} - */ - getDomains(params = undefined, filter = undefined) { - return new Promise((resolve, reject) => { - this._linode.getDomains(params, filter) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for getDomain - * @returns {Promise} - */ - getDomain(domainId) { - return new Promise((resolve, reject) => { - this._linode.getDomain(domainId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDomain function of DNSLinodeClass - * @param {CreateDomainPayload} data - Data required for createDomain - * @returns {Promise} - */ - createDomain(data) { - return new Promise((resolve, reject) => { - this._linode.createDomain(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for updateDomain - * @param {UpdateDomainPayload} data - Data required for updateDomain - * @returns {Promise} - */ - updateDomain(domainId, data) { - return new Promise((resolve, reject) => { - this._linode.updateDomain(domainId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for deleteDomain - * @returns {Promise} - */ - deleteDomain(domainId) { - return new Promise((resolve, reject) => { - this._linode.deleteDomain(domainId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the cloneDomain function of DNSLinodeClass - * @param {NumberKeyword} domainId - Data required for cloneDomain - * @param {CloneDomainPayload} data - Data required for cloneDomain - * @returns {Promise} - */ - cloneDomain(domainId, data) { - return new Promise((resolve, reject) => { - this._linode.cloneDomain(domainId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDomains function of DNSLinodeClass + * @param {Params} params - Data required for getDomains + * @param {Filter} filter - Data required for getDomains + * @returns {Promise} + */ + getDomains(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDomains(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for getDomain + * @returns {Promise} + */ + getDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .getDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDomain function of DNSLinodeClass + * @param {CreateDomainPayload} data - Data required for createDomain + * @returns {Promise} + */ + createDomain(data) { + return new Promise((resolve, reject) => { + this._linode + .createDomain(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for updateDomain + * @param {UpdateDomainPayload} data - Data required for updateDomain + * @returns {Promise} + */ + updateDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for deleteDomain + * @returns {Promise} + */ + deleteDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .deleteDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the cloneDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for cloneDomain + * @param {CloneDomainPayload} data - Data required for cloneDomain + * @returns {Promise} + */ + cloneDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .cloneDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_DNS; diff --git a/packages/linode-plugin/network/linode-loadBalancer.js b/packages/linode-plugin/network/linode-loadBalancer.js index eb97ba0..7af0d98 100644 --- a/packages/linode-plugin/network/linode-loadBalancer.js +++ b/packages/linode-plugin/network/linode-loadBalancer.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a LoadBalancerLinodeClass object - * @category Linode - */ + * Class to create a LoadBalancerLinodeClass object + * @category Linode + */ class Linode_LoadBalancer { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getNodeBalancers function of LoadBalancerLinodeClass - * @param {Params} params - Data required for getNodeBalancers - * @param {Filter} filters - Data required for getNodeBalancers - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getNodeBalancers(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass - * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer - * @param {Partial} data - Data required for updateNodeBalancer - * @returns {Promise} - */ - update(nodeBalancerId, data) { - return new Promise((resolve, reject) => { - this._linode.updateNodeBalancer(nodeBalancerId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodeBalancer function of LoadBalancerLinodeClass - * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createNodeBalancer(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass - * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer - * @returns {Promise} - */ - delete(nodeBalancerId) { - return new Promise((resolve, reject) => { - this._linode.deleteNodeBalancer(nodeBalancerId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getNodeBalancers function of LoadBalancerLinodeClass + * @param {Params} params - Data required for getNodeBalancers + * @param {Filter} filters - Data required for getNodeBalancers + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodeBalancers(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer + * @param {Partial} data - Data required for updateNodeBalancer + * @returns {Promise} + */ + update(nodeBalancerId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodeBalancer(nodeBalancerId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodeBalancer function of LoadBalancerLinodeClass + * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createNodeBalancer(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer + * @returns {Promise} + */ + delete(nodeBalancerId) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodeBalancer(nodeBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_LoadBalancer; diff --git a/packages/linode-plugin/storage/linode-blockStorage.js b/packages/linode-plugin/storage/linode-blockStorage.js index 63c1661..29846fc 100644 --- a/packages/linode-plugin/storage/linode-blockStorage.js +++ b/packages/linode-plugin/storage/linode-blockStorage.js @@ -1,68 +1,72 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a BlockStorageLinodeClass object - * @category Linode - */ + * Class to create a BlockStorageLinodeClass object + * @category Linode + */ class Linode_BlockStorage { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getVolumes function of BlockStorageLinodeClass - * @param {Params} params - Data required for getVolumes - * @param {Filter} filters - Data required for getVolumes - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getVolumes(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteVolume function of BlockStorageLinodeClass - * @param {NumberKeyword} volumeId - Data required for deleteVolume - * @returns {Promise} - */ - delete(volumeId) { - return new Promise((resolve, reject) => { - this._linode.deleteVolume(volumeId) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateVolume function of BlockStorageLinodeClass - * @param {NumberKeyword} volumeId - Data required for updateVolume - * @param {UpdateVolumeRequest} data - Data required for updateVolume - * @returns {Promise} - */ - update(volumeId, data) { - return new Promise((resolve, reject) => { - this._linode.updateVolume(volumeId, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createVolume function of BlockStorageLinodeClass - * @param {VolumeRequestPayload} data - Data required for createVolume - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createVolume(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getVolumes function of BlockStorageLinodeClass + * @param {Params} params - Data required for getVolumes + * @param {Filter} filters - Data required for getVolumes + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getVolumes(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for deleteVolume + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteVolume(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for updateVolume + * @param {UpdateVolumeRequest} data - Data required for updateVolume + * @returns {Promise} + */ + update(volumeId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateVolume(volumeId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createVolume function of BlockStorageLinodeClass + * @param {VolumeRequestPayload} data - Data required for createVolume + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createVolume(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_BlockStorage; diff --git a/packages/linode-plugin/storage/linode-storageBucket.js b/packages/linode-plugin/storage/linode-storageBucket.js index 6cdf3df..54b7b99 100644 --- a/packages/linode-plugin/storage/linode-storageBucket.js +++ b/packages/linode-plugin/storage/linode-storageBucket.js @@ -1,95 +1,101 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a StorageBucketLinodeClass object - * @category Linode - */ + * Class to create a StorageBucketLinodeClass object + * @category Linode + */ class Linode_StorageBucket { - /** - * - * @param {module} linodeSdk Linode SDK - * @param {string} linodeToken Linode Token - */ - constructor(linodeSdk, linodeToken) { - this._linode = linodeSdk; - this._linodeToken = linodeToken; - this._linode.setToken(this._linodeToken); - } - /** - * Trigers the getBucket function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for getBucket - * @param {StringKeyword} bucketName - Data required for getBucket - * @returns {Promise} - */ - get(clusterId, bucketName) { - return new Promise((resolve, reject) => { - this._linode.getBucket(clusterId, bucketName) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBuckets function of StorageBucketLinodeClass - * @param {Params} params - Data required for getBuckets - * @param {Filter} filters - Data required for getBuckets - * @returns {Promise} - */ - list(params = undefined, filters = undefined) { - return new Promise((resolve, reject) => { - this._linode.getBuckets(params, filters) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createBucket function of StorageBucketLinodeClass - * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket - * @returns {Promise} - */ - create(data) { - return new Promise((resolve, reject) => { - this._linode.createBucket(data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of StorageBucketLinodeClass - * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket - * @returns {Promise} - */ - delete({ cluster, label }) { - return new Promise((resolve, reject) => { - this._linode.deleteBucket({ cluster, label }) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBucketAccess function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for getBucketAccess - * @param {StringKeyword} bucketName - Data required for getBucketAccess - * @returns {Promise} - */ - getBucketAccess(clusterId, bucketName) { - return new Promise((resolve, reject) => { - this._linode.getBucketAccess(clusterId, bucketName) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateBucketAccess function of StorageBucketLinodeClass - * @param {StringKeyword} clusterId - Data required for updateBucketAccess - * @param {StringKeyword} bucketName - Data required for updateBucketAccess - * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess - * @returns {Promise} - */ - updateBucketAccess(clusterId, bucketName, data) { - return new Promise((resolve, reject) => { - this._linode.updateBucketAccess(clusterId, bucketName, data) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getBucket function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucket + * @param {StringKeyword} bucketName - Data required for getBucket + * @returns {Promise} + */ + get(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucket(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBuckets function of StorageBucketLinodeClass + * @param {Params} params - Data required for getBuckets + * @param {Filter} filters - Data required for getBuckets + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getBuckets(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createBucket function of StorageBucketLinodeClass + * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createBucket(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of StorageBucketLinodeClass + * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket + * @returns {Promise} + */ + delete({ cluster, label }) { + return new Promise((resolve, reject) => { + this._linode + .deleteBucket({ cluster, label }) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucketAccess + * @param {StringKeyword} bucketName - Data required for getBucketAccess + * @returns {Promise} + */ + getBucketAccess(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucketAccess(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for updateBucketAccess + * @param {StringKeyword} bucketName - Data required for updateBucketAccess + * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess + * @returns {Promise} + */ + updateBucketAccess(clusterId, bucketName, data) { + return new Promise((resolve, reject) => { + this._linode + .updateBucketAccess(clusterId, bucketName, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Linode_StorageBucket; diff --git a/packages/oracle-plugin/compute/oci-kubernetes.js b/packages/oracle-plugin/compute/oci-kubernetes.js index 8d14026..f2a468c 100644 --- a/packages/oracle-plugin/compute/oci-kubernetes.js +++ b/packages/oracle-plugin/compute/oci-kubernetes.js @@ -1,138 +1,151 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ContainerEngineClient object - * @category Oracle Cloud - */ + * Class to create a ContainerEngineClient object + * @category Oracle Cloud + */ class Oracle_Kubernetes { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._containerEngineClient = this._oci.ContainerEngineClient(params, clientConfiguration); - } - /** - * Trigers the createCluster function of ContainerEngineClient - * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster - * @returns {Promise} - */ - create(createClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.createCluster(createClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createNodePool function of ContainerEngineClient - * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool - * @returns {Promise} - */ - createNodePool(createNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.createNodePool(createNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteCluster function of ContainerEngineClient - * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster - * @returns {Promise} - */ - delete(deleteClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteCluster(deleteClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNode function of ContainerEngineClient - * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode - * @returns {Promise} - */ - deleteNode(deleteNodeRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteNode(deleteNodeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteNodePool function of ContainerEngineClient - * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool - * @returns {Promise} - */ - deleteNodePool(deleteNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.deleteNodePool(deleteNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getCluster function of ContainerEngineClient - * @param {GetClusterRequest} getClusterRequest - Data required for getCluster - * @returns {Promise} - */ - get(getClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.getCluster(getClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getNodePool function of ContainerEngineClient - * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool - * @returns {Promise} - */ - getNodePool(getNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.getNodePool(getNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listClusters function of ContainerEngineClient - * @param {ListClustersRequest} listClustersRequest - Data required for listClusters - * @returns {Promise} - */ - list(listClustersRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.listClusters(listClustersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateCluster function of ContainerEngineClient - * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster - * @returns {Promise} - */ - update(updateClusterRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.updateCluster(updateClusterRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateNodePool function of ContainerEngineClient - * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool - * @returns {Promise} - */ - updateNodePool(updateNodePoolRequest) { - return new Promise((resolve, reject) => { - this._containerEngineClient.updateNodePool(updateNodePoolRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerEngineClient = this._oci.ContainerEngineClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createCluster function of ContainerEngineClient + * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster + * @returns {Promise} + */ + create(createClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createCluster(createClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of ContainerEngineClient + * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(createNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createNodePool(createNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCluster function of ContainerEngineClient + * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster + * @returns {Promise} + */ + delete(deleteClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteCluster(deleteClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNode function of ContainerEngineClient + * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode + * @returns {Promise} + */ + deleteNode(deleteNodeRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNode(deleteNodeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of ContainerEngineClient + * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(deleteNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNodePool(deleteNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCluster function of ContainerEngineClient + * @param {GetClusterRequest} getClusterRequest - Data required for getCluster + * @returns {Promise} + */ + get(getClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getCluster(getClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of ContainerEngineClient + * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(getNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getNodePool(getNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listClusters function of ContainerEngineClient + * @param {ListClustersRequest} listClustersRequest - Data required for listClusters + * @returns {Promise} + */ + list(listClustersRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .listClusters(listClustersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCluster function of ContainerEngineClient + * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster + * @returns {Promise} + */ + update(updateClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateCluster(updateClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of ContainerEngineClient + * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(updateNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateNodePool(updateNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_Kubernetes; diff --git a/packages/oracle-plugin/database/oci-RDBMS.js b/packages/oracle-plugin/database/oci-RDBMS.js index 56d2130..4032123 100644 --- a/packages/oracle-plugin/database/oci-RDBMS.js +++ b/packages/oracle-plugin/database/oci-RDBMS.js @@ -1,102 +1,112 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DbSystemClient object - * @category Oracle Cloud - */ + * Class to create a DbSystemClient object + * @category Oracle Cloud + */ class Oracle_RDBMS { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._dbSystemClient = this._oci.DbSystemClient(params, clientConfiguration); - } - /** - * Trigers the createDbSystem function of DbSystemClient - * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem - * @returns {Promise} - */ - createDBSystem(createDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.createDbSystem(createDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDbSystem function of DbSystemClient - * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem - * @returns {Promise} - */ - deleteDBSystem(deleteDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.deleteDbSystem(deleteDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDbSystem function of DbSystemClient - * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem - * @returns {Promise} - */ - getDBSystem(getDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.getDbSystem(getDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the restartDbSystem function of DbSystemClient - * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem - * @returns {Promise} - */ - restartDBSystem(restartDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.restartDbSystem(restartDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the startDbSystem function of DbSystemClient - * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem - * @returns {Promise} - */ - startDBSystem(startDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.startDbSystem(startDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the stopDbSystem function of DbSystemClient - * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem - * @returns {Promise} - */ - stopDBSystem(stopDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.stopDbSystem(stopDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateDbSystem function of DbSystemClient - * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem - * @returns {Promise} - */ - updateDBSystem(updateDbSystemRequest) { - return new Promise((resolve, reject) => { - this._dbSystemClient.updateDbSystem(updateDbSystemRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dbSystemClient = this._oci.DbSystemClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDbSystem function of DbSystemClient + * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem + * @returns {Promise} + */ + createDBSystem(createDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .createDbSystem(createDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDbSystem function of DbSystemClient + * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem + * @returns {Promise} + */ + deleteDBSystem(deleteDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .deleteDbSystem(deleteDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDbSystem function of DbSystemClient + * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem + * @returns {Promise} + */ + getDBSystem(getDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .getDbSystem(getDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartDbSystem function of DbSystemClient + * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem + * @returns {Promise} + */ + restartDBSystem(restartDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .restartDbSystem(restartDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startDbSystem function of DbSystemClient + * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem + * @returns {Promise} + */ + startDBSystem(startDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .startDbSystem(startDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopDbSystem function of DbSystemClient + * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem + * @returns {Promise} + */ + stopDBSystem(stopDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .stopDbSystem(stopDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDbSystem function of DbSystemClient + * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem + * @returns {Promise} + */ + updateDBSystem(updateDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .updateDbSystem(updateDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_RDBMS; diff --git a/packages/oracle-plugin/database/oci-noSql.js b/packages/oracle-plugin/database/oci-noSql.js index 53a598e..d049fbf 100644 --- a/packages/oracle-plugin/database/oci-noSql.js +++ b/packages/oracle-plugin/database/oci-noSql.js @@ -1,114 +1,122 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a NosqlClient object - * @category Oracle Cloud - */ + * Class to create a NosqlClient object + * @category Oracle Cloud + */ class Oracle_NoSql { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); - } - /** - * Trigers the createTable function of NosqlClient - * @param {CreateTableRequest} createTableRequest - Data required for createTable - * @returns {Promise} - */ - createTable(createTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.createTable(createTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteRow function of NosqlClient - * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow - * @returns {Promise} - */ - deleteRow(deleteRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.deleteRow(deleteRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteTable function of NosqlClient - * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable - * @returns {Promise} - */ - deleteTable(deleteTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.deleteTable(deleteTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getRow function of NosqlClient - * @param {GetRowRequest} getRowRequest - Data required for getRow - * @returns {Promise} - */ - getRow(getRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.getRow(getRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getTable function of NosqlClient - * @param {GetTableRequest} getTableRequest - Data required for getTable - * @returns {Promise} - */ - getTable(getTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.getTable(getTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listTables function of NosqlClient - * @param {ListTablesRequest} listTablesRequest - Data required for listTables - * @returns {Promise} - */ - listTables(listTablesRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.listTables(listTablesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateRow function of NosqlClient - * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow - * @returns {Promise} - */ - updateRow(updateRowRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.updateRow(updateRowRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateTable function of NosqlClient - * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable - * @returns {Promise} - */ - updateTable(updateTableRequest) { - return new Promise((resolve, reject) => { - this._nosqlClient.updateTable(updateTableRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); + } + /** + * Trigers the createTable function of NosqlClient + * @param {CreateTableRequest} createTableRequest - Data required for createTable + * @returns {Promise} + */ + createTable(createTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .createTable(createTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRow function of NosqlClient + * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow + * @returns {Promise} + */ + deleteRow(deleteRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteRow(deleteRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteTable function of NosqlClient + * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable + * @returns {Promise} + */ + deleteTable(deleteTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteTable(deleteTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRow function of NosqlClient + * @param {GetRowRequest} getRowRequest - Data required for getRow + * @returns {Promise} + */ + getRow(getRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getRow(getRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getTable function of NosqlClient + * @param {GetTableRequest} getTableRequest - Data required for getTable + * @returns {Promise} + */ + getTable(getTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getTable(getTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listTables function of NosqlClient + * @param {ListTablesRequest} listTablesRequest - Data required for listTables + * @returns {Promise} + */ + listTables(listTablesRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .listTables(listTablesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRow function of NosqlClient + * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow + * @returns {Promise} + */ + updateRow(updateRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateRow(updateRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateTable function of NosqlClient + * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable + * @returns {Promise} + */ + updateTable(updateTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateTable(updateTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_NoSql; diff --git a/packages/oracle-plugin/devops/oci-devops.js b/packages/oracle-plugin/devops/oci-devops.js index 4fba5d2..f094363 100644 --- a/packages/oracle-plugin/devops/oci-devops.js +++ b/packages/oracle-plugin/devops/oci-devops.js @@ -1,174 +1,190 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DevopsClient object - * @category Oracle Cloud - */ + * Class to create a DevopsClient object + * @category Oracle Cloud + */ class Oracle_Devops { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._devopsClient = this._oci.DevopsClient(params, clientConfiguration); - } - /** - * Trigers the createDeployArtifact function of DevopsClient - * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact - * @returns {Promise} - */ - createDeployArtifact(createDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployArtifact(createDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDeployPipeline function of DevopsClient - * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline - * @returns {Promise} - */ - createDeployPipeline(createDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployPipeline(createDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createDeployment function of DevopsClient - * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment - * @returns {Promise} - */ - createDeployment(createDeploymentRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createDeployment(createDeploymentRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createProject function of DevopsClient - * @param {CreateProjectRequest} createProjectRequest - Data required for createProject - * @returns {Promise} - */ - createProject(createProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createProject(createProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the createRepository function of DevopsClient - * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository - * @returns {Promise} - */ - createRepository(createRepositoryRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.createRepository(createRepositoryRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDeployArtifact function of DevopsClient - * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact - * @returns {Promise} - */ - deleteDeployArtifact(deleteDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteDeployArtifact(deleteDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteDeployPipeline function of DevopsClient - * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline - * @returns {Promise} - */ - deleteDeployPipeline(deleteDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteDeployPipeline(deleteDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteProject function of DevopsClient - * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject - * @returns {Promise} - */ - deleteProject(deleteProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteProject(deleteProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteRepository function of DevopsClient - * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository - * @returns {Promise} - */ - deleteRepository(deleteRepositoryRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.deleteRepository(deleteRepositoryRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployArtifact function of DevopsClient - * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact - * @returns {Promise} - */ - getDeployArtifact(getDeployArtifactRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployArtifact(getDeployArtifactRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployPipeline function of DevopsClient - * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline - * @returns {Promise} - */ - getDeployPipeline(getDeployPipelineRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployPipeline(getDeployPipelineRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getDeployment function of DevopsClient - * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment - * @returns {Promise} - */ - getDeployment(getDeploymentRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getDeployment(getDeploymentRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getProject function of DevopsClient - * @param {GetProjectRequest} getProjectRequest - Data required for getProject - * @returns {Promise} - */ - getProject(getProjectRequest) { - return new Promise((resolve, reject) => { - this._devopsClient.getProject(getProjectRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._devopsClient = this._oci.DevopsClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDeployArtifact function of DevopsClient + * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact + * @returns {Promise} + */ + createDeployArtifact(createDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployArtifact(createDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployPipeline function of DevopsClient + * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline + * @returns {Promise} + */ + createDeployPipeline(createDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployPipeline(createDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployment function of DevopsClient + * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment + * @returns {Promise} + */ + createDeployment(createDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployment(createDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createProject function of DevopsClient + * @param {CreateProjectRequest} createProjectRequest - Data required for createProject + * @returns {Promise} + */ + createProject(createProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createProject(createProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRepository function of DevopsClient + * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository + * @returns {Promise} + */ + createRepository(createRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createRepository(createRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployArtifact function of DevopsClient + * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact + * @returns {Promise} + */ + deleteDeployArtifact(deleteDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployArtifact(deleteDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployPipeline function of DevopsClient + * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline + * @returns {Promise} + */ + deleteDeployPipeline(deleteDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployPipeline(deleteDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteProject function of DevopsClient + * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject + * @returns {Promise} + */ + deleteProject(deleteProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteProject(deleteProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRepository function of DevopsClient + * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository + * @returns {Promise} + */ + deleteRepository(deleteRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteRepository(deleteRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployArtifact function of DevopsClient + * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact + * @returns {Promise} + */ + getDeployArtifact(getDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployArtifact(getDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployPipeline function of DevopsClient + * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline + * @returns {Promise} + */ + getDeployPipeline(getDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployPipeline(getDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployment function of DevopsClient + * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment + * @returns {Promise} + */ + getDeployment(getDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployment(getDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getProject function of DevopsClient + * @param {GetProjectRequest} getProjectRequest - Data required for getProject + * @returns {Promise} + */ + getProject(getProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getProject(getProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_Devops; diff --git a/packages/oracle-plugin/management/oci-keyManagement.js b/packages/oracle-plugin/management/oci-keyManagement.js index c8ba87c..49c3487 100644 --- a/packages/oracle-plugin/management/oci-keyManagement.js +++ b/packages/oracle-plugin/management/oci-keyManagement.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a KmsManagementClient object - * @category Oracle Cloud - */ + * Class to create a KmsManagementClient object + * @category Oracle Cloud + */ class Oracle_KeyManagement { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._kmsManagementClient = this._oci.KmsManagementClient(params, clientConfiguration); - } - /** - * Trigers the createKey function of KmsManagementClient - * @param {CreateKeyRequest} createKeyRequest - Data required for createKey - * @returns {Promise} - */ - createKey(createKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.createKey(createKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the disableKey function of KmsManagementClient - * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey - * @returns {Promise} - */ - disableKey(disableKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.disableKey(disableKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the enableKey function of KmsManagementClient - * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey - * @returns {Promise} - */ - enableKey(enableKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.enableKey(enableKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateKey function of KmsManagementClient - * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey - * @returns {Promise} - */ - update(updateKeyRequest) { - return new Promise((resolve, reject) => { - this._kmsManagementClient.updateKey(updateKeyRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._kmsManagementClient = this._oci.KmsManagementClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createKey function of KmsManagementClient + * @param {CreateKeyRequest} createKeyRequest - Data required for createKey + * @returns {Promise} + */ + createKey(createKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .createKey(createKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableKey function of KmsManagementClient + * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey + * @returns {Promise} + */ + disableKey(disableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .disableKey(disableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableKey function of KmsManagementClient + * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey + * @returns {Promise} + */ + enableKey(enableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .enableKey(enableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateKey function of KmsManagementClient + * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey + * @returns {Promise} + */ + update(updateKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .updateKey(updateKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_KeyManagement; diff --git a/packages/oracle-plugin/management/oci-notificationService.js b/packages/oracle-plugin/management/oci-notificationService.js index d0895c4..0bc11a1 100644 --- a/packages/oracle-plugin/management/oci-notificationService.js +++ b/packages/oracle-plugin/management/oci-notificationService.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a NotificationDataPlaneClient object - * @category Oracle Cloud - */ + * Class to create a NotificationDataPlaneClient object + * @category Oracle Cloud + */ class Oracle_NotificationService { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient(params, clientConfiguration); - } - /** - * Trigers the createSubscription function of NotificationDataPlaneClient - * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription - * @returns {Promise} - */ - subscribe(createSubscriptionRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.createSubscription(createSubscriptionRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteSubscription function of NotificationDataPlaneClient - * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription - * @returns {Promise} - */ - unsubscribe(deleteSubscriptionRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.deleteSubscription(deleteSubscriptionRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listSubscriptions function of NotificationDataPlaneClient - * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions - * @returns {Promise} - */ - listSubscriptions(listSubscriptionsRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.listSubscriptions(listSubscriptionsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the publishMessage function of NotificationDataPlaneClient - * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage - * @returns {Promise} - */ - publish(publishMessageRequest) { - return new Promise((resolve, reject) => { - this._notificationDataPlaneClient.publishMessage(publishMessageRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createSubscription function of NotificationDataPlaneClient + * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription + * @returns {Promise} + */ + subscribe(createSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .createSubscription(createSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteSubscription function of NotificationDataPlaneClient + * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription + * @returns {Promise} + */ + unsubscribe(deleteSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .deleteSubscription(deleteSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listSubscriptions function of NotificationDataPlaneClient + * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions + * @returns {Promise} + */ + listSubscriptions(listSubscriptionsRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .listSubscriptions(listSubscriptionsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the publishMessage function of NotificationDataPlaneClient + * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage + * @returns {Promise} + */ + publish(publishMessageRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .publishMessage(publishMessageRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_NotificationService; diff --git a/packages/oracle-plugin/network/oci-DNS.js b/packages/oracle-plugin/network/oci-DNS.js index bd996e4..52cd67f 100644 --- a/packages/oracle-plugin/network/oci-DNS.js +++ b/packages/oracle-plugin/network/oci-DNS.js @@ -1,66 +1,70 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a DnsClient object - * @category Oracle Cloud - */ + * Class to create a DnsClient object + * @category Oracle Cloud + */ class Oracle_DNS { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._dnsClient = this._oci.DnsClient(params, clientConfiguration); - } - /** - * Trigers the createZone function of DnsClient - * @param {CreateZoneRequest} createZoneRequest - Data required for createZone - * @returns {Promise} - */ - create(createZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.createZone(createZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteZone function of DnsClient - * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone - * @returns {Promise} - */ - delete(deleteZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.deleteZone(deleteZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listZones function of DnsClient - * @param {ListZonesRequest} listZonesRequest - Data required for listZones - * @returns {Promise} - */ - list(listZonesRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.listZones(listZonesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateZone function of DnsClient - * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone - * @returns {Promise} - */ - update(updateZoneRequest) { - return new Promise((resolve, reject) => { - this._dnsClient.updateZone(updateZoneRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dnsClient = this._oci.DnsClient(params, clientConfiguration); + } + /** + * Trigers the createZone function of DnsClient + * @param {CreateZoneRequest} createZoneRequest - Data required for createZone + * @returns {Promise} + */ + create(createZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .createZone(createZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteZone function of DnsClient + * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone + * @returns {Promise} + */ + delete(deleteZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .deleteZone(deleteZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listZones function of DnsClient + * @param {ListZonesRequest} listZonesRequest - Data required for listZones + * @returns {Promise} + */ + list(listZonesRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .listZones(listZonesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateZone function of DnsClient + * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone + * @returns {Promise} + */ + update(updateZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .updateZone(updateZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_DNS; diff --git a/packages/oracle-plugin/network/oci-loadBalancer.js b/packages/oracle-plugin/network/oci-loadBalancer.js index e0ec4f0..21faafa 100644 --- a/packages/oracle-plugin/network/oci-loadBalancer.js +++ b/packages/oracle-plugin/network/oci-loadBalancer.js @@ -1,78 +1,86 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a LoadBalancerClient object - * @category Oracle Cloud - */ + * Class to create a LoadBalancerClient object + * @category Oracle Cloud + */ class Oracle_LoadBalancer { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._loadBalancerClient = this._oci.LoadBalancerClient(params, clientConfiguration); - } - /** - * Trigers the createLoadBalancer function of LoadBalancerClient - * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer - * @returns {Promise} - */ - create(createLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.createLoadBalancer(createLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteLoadBalancer function of LoadBalancerClient - * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer - * @returns {Promise} - */ - delete(deleteLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.deleteLoadBalancer(deleteLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getLoadBalancer function of LoadBalancerClient - * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer - * @returns {Promise} - */ - get(getLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.getLoadBalancer(getLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listLoadBalancers function of LoadBalancerClient - * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers - * @returns {Promise} - */ - list(listLoadBalancersRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.listLoadBalancers(listLoadBalancersRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateLoadBalancer function of LoadBalancerClient - * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer - * @returns {Promise} - */ - update(updateLoadBalancerRequest) { - return new Promise((resolve, reject) => { - this._loadBalancerClient.updateLoadBalancer(updateLoadBalancerRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._loadBalancerClient = this._oci.LoadBalancerClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createLoadBalancer function of LoadBalancerClient + * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer + * @returns {Promise} + */ + create(createLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .createLoadBalancer(createLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLoadBalancer function of LoadBalancerClient + * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer + * @returns {Promise} + */ + delete(deleteLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .deleteLoadBalancer(deleteLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getLoadBalancer function of LoadBalancerClient + * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer + * @returns {Promise} + */ + get(getLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .getLoadBalancer(getLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listLoadBalancers function of LoadBalancerClient + * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers + * @returns {Promise} + */ + list(listLoadBalancersRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .listLoadBalancers(listLoadBalancersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLoadBalancer function of LoadBalancerClient + * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer + * @returns {Promise} + */ + update(updateLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .updateLoadBalancer(updateLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_LoadBalancer; diff --git a/packages/oracle-plugin/storage/oci-archivalStorage.js b/packages/oracle-plugin/storage/oci-archivalStorage.js index 202582b..fe306c8 100644 --- a/packages/oracle-plugin/storage/oci-archivalStorage.js +++ b/packages/oracle-plugin/storage/oci-archivalStorage.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ObjectStorageClient object - * @category Oracle Cloud - */ + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ class Oracle_ArchivalStorage { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._objectStorageClient = this._oci.ObjectStorageClient(params, clientConfiguration); - } - /** - * Trigers the createBucket function of ObjectStorageClient - * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket - * @returns {Promise} - */ - create(createBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.createBucket(createBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of ObjectStorageClient - * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket - * @returns {Promise} - */ - delete(deleteBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.deleteBucket(deleteBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listBuckets function of ObjectStorageClient - * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets - * @returns {Promise} - */ - list(listBucketsRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.listBuckets(listBucketsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the updateBucket function of ObjectStorageClient - * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket - * @returns {Promise} - */ - update(updateBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.updateBucket(updateBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucket function of ObjectStorageClient + * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket + * @returns {Promise} + */ + update(updateBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .updateBucket(updateBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_ArchivalStorage; diff --git a/packages/oracle-plugin/storage/oci-blockStorage.js b/packages/oracle-plugin/storage/oci-blockStorage.js index 36b43d6..26dc83a 100644 --- a/packages/oracle-plugin/storage/oci-blockStorage.js +++ b/packages/oracle-plugin/storage/oci-blockStorage.js @@ -1,66 +1,73 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a BlockstorageClient object - * @category Oracle Cloud - */ + * Class to create a BlockstorageClient object + * @category Oracle Cloud + */ class Oracle_BlockStorage { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._blockstorageClient = this._oci.BlockstorageClient(params, clientConfiguration); - } - /** - * Trigers the createVolume function of BlockstorageClient - * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume - * @returns {Promise} - */ - create(createVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.createVolume(createVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteVolume function of BlockstorageClient - * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume - * @returns {Promise} - */ - delete(deleteVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.deleteVolume(deleteVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getVolume function of BlockstorageClient - * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume - * @returns {Promise} - */ - get(getVolumeRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.getVolume(getVolumeRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listVolumes function of BlockstorageClient - * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes - * @returns {Promise} - */ - list(listVolumesRequest) { - return new Promise((resolve, reject) => { - this._blockstorageClient.listVolumes(listVolumesRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockstorageClient = this._oci.BlockstorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createVolume function of BlockstorageClient + * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume + * @returns {Promise} + */ + create(createVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .createVolume(createVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockstorageClient + * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume + * @returns {Promise} + */ + delete(deleteVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .deleteVolume(deleteVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getVolume function of BlockstorageClient + * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume + * @returns {Promise} + */ + get(getVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .getVolume(getVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listVolumes function of BlockstorageClient + * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes + * @returns {Promise} + */ + list(listVolumesRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .listVolumes(listVolumesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_BlockStorage; diff --git a/packages/oracle-plugin/storage/oci-storageBucket.js b/packages/oracle-plugin/storage/oci-storageBucket.js index f85aff4..b7d643e 100644 --- a/packages/oracle-plugin/storage/oci-storageBucket.js +++ b/packages/oracle-plugin/storage/oci-storageBucket.js @@ -1,78 +1,86 @@ /*This is an auto generated class, please do not change.*/ /** - * Class to create a ObjectStorageClient object - * @category Oracle Cloud - */ + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ class Oracle_StorageBucket { - /** - * - * @param {module} ocisdk Oracle SDK - * @param {object} params SDK params - * @param {string} clientConfiguration SDK ClientConfiguration - */ - constructor(ocisdk, params, clientConfiguration) { - this._oci = ocisdk._sdkFileName; - this._objectStorageClient = this._oci.ObjectStorageClient(params, clientConfiguration); - } - /** - * Trigers the createBucket function of ObjectStorageClient - * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket - * @returns {Promise} - */ - create(createBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.createBucket(createBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the deleteBucket function of ObjectStorageClient - * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket - * @returns {Promise} - */ - delete(deleteBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.deleteBucket(deleteBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the getBucket function of ObjectStorageClient - * @param {GetBucketRequest} getBucketRequest - Data required for getBucket - * @returns {Promise} - */ - get(getBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.getBucket(getBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the listBuckets function of ObjectStorageClient - * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets - * @returns {Promise} - */ - list(listBucketsRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.listBuckets(listBucketsRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } - /** - * Trigers the reencryptBucket function of ObjectStorageClient - * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket - * @returns {Promise} - */ - reencrypt(reencryptBucketRequest) { - return new Promise((resolve, reject) => { - this._objectStorageClient.reencryptBucket(reencryptBucketRequest) - .then(data => resolve(data)) - .catch(err => reject(err)); - }); - } + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucket function of ObjectStorageClient + * @param {GetBucketRequest} getBucketRequest - Data required for getBucket + * @returns {Promise} + */ + get(getBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .getBucket(getBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the reencryptBucket function of ObjectStorageClient + * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket + * @returns {Promise} + */ + reencrypt(reencryptBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .reencryptBucket(reencryptBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } } module.exports = Oracle_StorageBucket;