diff --git a/.gitignore b/.gitignore index 313d4475..7d733640 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,5 @@ jspm_packages # code coverage coverage # .coveralls.yml didn't see it in master branch + + diff --git a/README.md b/README.md index 9e14ef62..34788296 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ [![Mailing list : Scorelab](https://img.shields.io/badge/Mailing%20list-Scorelab-blue.svg)](https://groups.google.com/g/score-community) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-ff69b4.svg?style=flat)](https://github.com/leopardslab/nodecloud/issues) -Table of Content +Table of Content -- [Introduction](#introduction) +- [Introduction](#introduction) - [Supported Service Providers](#-supported-service-providers) - [Getting Started](#getting-started) - [NodeCloud Plugins](#nodecloud-plugins) @@ -71,13 +71,13 @@ Once `@nodecloud/common` is installed, you need to install the plugins to intera ### NodeCloud Plugins -| Plugin | Installation | -| -------------------- | --------------------------------------------------------------------------------- | -| AWS plugin | `yarn add @nodecloud/aws-plugin` or `npm i @nodecloud/aws-plugin` | -| Azure plugin | `yarn add @nodecloud/gcp-plugin` or `npm i @nodecloud/gcp-plugin` | -| Google Cloud plugin | `yarn add @nodecloud/azure-plugin` or `npm i @nodecloud/azure-plugin` | -| Alibaba plugin | `yarn add nodecloud-ali-plugin` or `npm i nodecloud-ali-plugin` | -| Digital Ocean plugin | `yarn add nodecloud-digitalocean-plugin` or `npm i nodecloud-digitalocean-plugin` | +| Plugin | Installation | +| -------------------- | --------------------------------------------------------------------- | +| AWS plugin | `yarn add @nodecloud/aws-plugin` or `npm i @nodecloud/aws-plugin` | +| Azure plugin | `yarn add @nodecloud/gcp-plugin` or `npm i @nodecloud/gcp-plugin` | +| Google Cloud plugin | `yarn add @nodecloud/azure-plugin` or `npm i @nodecloud/azure-plugin` | | +| Digital Ocean plugin | `yarn add @nodecloud/do-plugin` or `npm i @nodecloud/do-plugin` | +| Alibaba plugin | `yarn add nodecloud-ali-plugin` or `npm i nodecloud-ali-plugin` | **3️⃣ Create the NodeCloud config file** @@ -98,13 +98,14 @@ This config file can contain an array of objects for all providers and all will const nodeCloudAwsPlugin = require("@nodecloud/aws-plugin"); const nodeCloudGcpPlugin = require("@nodecloud/gcp-plugin"); const nodeCloudAzurePlugin = require("@nodecloud/azure-plugin"); +const nodeCloudDoPlugin = require("@nodecloud/do-plugin"); const providers = [ { name: "aws", tag: "aws", plugin: nodeCloudAwsPlugin, - configPath: "C:\\Users\\Rajitha\\opensource\\aws_cred.json", + configPath: "C:\\Users\\Rajitha\\opensource\\aws_cred.json" }, { name: "google", @@ -112,14 +113,19 @@ const providers = [ plugin: nodeCloudGcpPlugin, configPath: { projectId: "astral-hold-276807", - keyFilename: "C:\\Users\\Rajitha\\opensource\\gcp_cred.json", - }, + keyFilename: "C:\\Users\\Rajitha\\opensource\\gcp_cred.json" + } }, { name: "azure", tag: "azure", - plugin: nodeCloudAzurePlugin, + plugin: nodeCloudAzurePlugin }, + { + name: "digitalocean", + tag: "do", + plugin: nodeCloudDoPlugin + } ]; module.exports = providers; ``` @@ -133,11 +139,11 @@ The below code is an example of usage in AWS. ```js const nc = require("@nodecloud/common"); // NodeCloud common module const optionsProvider = { - overrideProviders: false, + overrideProviders: false }; const ncProviders = nc.getProviders(optionsProvider); const options = { - apiVersion: "2017-11-01", + apiVersion: "2017-11-01" }; const computeModule = ncProviders.aws.compute(options); @@ -148,16 +154,16 @@ function launchInstance() { InstanceType: "t2.micro", KeyName: "nodeCloud", // key name of Key pair MinCount: 1, - MaxCount: 1, + MaxCount: 1 }; // create AWS EC2 instance computeModule .create(instanceParams) - .then((res) => { + .then(res => { console.log(`All done ! ${res}`); }) - .catch((err) => { + .catch(err => { console.log(`Oops something happened ${err}`); }); } @@ -165,16 +171,16 @@ function launchInstance() { function stopInstance() { const params = { InstanceIds: ["i-0928af5c626f85da9"], - DryRun: false, + DryRun: false }; // stop AWS EC2 instance computeModule .stop(params) - .then((res) => { + .then(res => { console.log(res); }) - .catch((err) => { + .catch(err => { console.log(err); }); } @@ -187,7 +193,7 @@ NodeCloud officially supports AWS, GCP, Azure, DigitalOcean and AliCloud. If you ```js const nodeCloud = require("nodecloud"); const options = { - overrideProviders: true, + overrideProviders: true }; const ncProviders = nodeCloud.getProviders(options); ``` @@ -198,18 +204,19 @@ const ncProviders = nodeCloud.getProviders(options); | ----------------------- | ----------------------------------- | :-----------------------------------: | :-------------------------------: | :---------------------------------------------------------------------: | :---------------------------------------: | :---------------------------------------------------: | | Compute | IaaS | EC2 | Compute Engine | Virtual Machine | Droplets | ECS | | | Faas | AWS Lambda\* | Cloud Functions\* | Azure Functions\* | - | Function Compute\* | -| | Containers | ECS, EKS | Google Kubernetes Engine | AKS, Azure Service Fabric\* | DO Kubernetes\* | Container Service*, Container Service for Kubernetes* | +| | Containers | ECS, EKS | Google Kubernetes Engine | AKS, Azure Service Fabric\* | DO Kubernetes | Container Service*, Container Service for Kubernetes* | | | Containers (without infrastructure) | AWS Fargate\* | Cloud Run\* | - | - | ECI\* | | | Paas | AWS Elastic Beanstalk | App Engine\* | App Service | - | Simple Application Server\* | | Storage | Object Storage | S3 | Cloud Storage | Azure Blob Storage | Spaces\* | Bucket (OSS) | | | Block Storage | EBS | Persistent Disks | Disk Storage | Volumes | NAS\* | | Networking | Load Balancer | ELB | Cloud Load Balancing\* | Azure Load Balancer | DO Load Balancer | SLB | | | Peering/Dedicated Interconnect | Direct Connect | Cloud Interconnect\* | ExpressRoute\* | - | Express Connect\* | -| | DNS | Route53 | Google Domains, Cloud DNS | Azure DNS | DO DNS\* | Alibaba Cloud 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) | +| | DNS | Route53 | Google Domains, Cloud DNS | Azure DNS | DO DNS | Alibaba Cloud 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) | | | NoSQL: key-value | DynamoDB | Cloud Firestore, Cloud Bigtable\* | Table Storage | Managed Databases(Redis)\* | ApsaraDB for Redis\* | | | 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 | - | \*yet to be implemented diff --git a/assets/generator/high_level_diagrams/directory_structure_diagram.png b/assets/generator/high_level_diagrams/directory_structure_diagram.png new file mode 100644 index 00000000..b6d295ee Binary files /dev/null and b/assets/generator/high_level_diagrams/directory_structure_diagram.png differ diff --git a/assets/generator/high_level_diagrams/do.png b/assets/generator/high_level_diagrams/do.png new file mode 100644 index 00000000..b8ebc057 Binary files /dev/null and b/assets/generator/high_level_diagrams/do.png differ diff --git a/assets/generator/high_level_diagrams/do_diagram.png b/assets/generator/high_level_diagrams/do_diagram.png new file mode 100644 index 00000000..4386d0bb Binary files /dev/null and b/assets/generator/high_level_diagrams/do_diagram.png differ diff --git a/assets/generator/high_level_diagrams/toolflow_diagram.png b/assets/generator/high_level_diagrams/toolflow_diagram.png new file mode 100644 index 00000000..dcfc3de3 Binary files /dev/null and b/assets/generator/high_level_diagrams/toolflow_diagram.png differ diff --git a/docs/AWS_ArchivalStorage.html b/docs/AWS_ArchivalStorage.html index ff032f9f..b1e7c0c8 100644 --- a/docs/AWS_ArchivalStorage.html +++ b/docs/AWS_ArchivalStorage.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -222,15 +236,16 @@
Parameters:

View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 12 @@ -292,14 +307,17 @@

Parameters:

- View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 24 @@ -370,14 +388,17 @@

Parameters:

- View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 56 @@ -448,14 +469,17 @@

Parameters:

- View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 40 @@ -526,14 +550,17 @@

Parameters:

- View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 88 @@ -609,14 +636,17 @@

Parameters:

- View Source - AWS/aws-archivalStorage.jsAWS/storage/aws-archivalStorage.js, - line 72 diff --git a/docs/AWS_BlockStorage.html b/docs/AWS_BlockStorage.html index 04411c8b..3654425f 100644 --- a/docs/AWS_BlockStorage.html +++ b/docs/AWS_BlockStorage.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-blockStorage.jsAWS/storage/aws-blockStorage.js, - line 12 @@ -292,14 +309,16 @@

Parameters:

- View Source - AWS/aws-blockStorage.jsAWS/storage/aws-blockStorage.js, - line 24 @@ -372,14 +391,16 @@

Parameters:

- View Source - AWS/aws-blockStorage.jsAWS/storage/aws-blockStorage.js, - line 40 @@ -453,14 +474,16 @@

Parameters:

- View Source - AWS/aws-blockStorage.jsAWS/storage/aws-blockStorage.js, - line 56 @@ -533,14 +556,16 @@

Parameters:

- View Source - AWS/aws-blockStorage.jsAWS/storage/aws-blockStorage.js, - line 72 diff --git a/docs/AWS_ComputeInstance.html b/docs/AWS_ComputeInstance.html index b1c7a8a1..4a3b7829 100644 --- a/docs/AWS_ComputeInstance.html +++ b/docs/AWS_ComputeInstance.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -222,15 +236,16 @@
Parameters:

View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 12 @@ -292,14 +307,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 24 @@ -372,14 +390,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 88 @@ -452,14 +473,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 136 @@ -532,14 +556,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 40 @@ -612,14 +639,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 56 @@ -692,14 +722,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 72 @@ -772,14 +805,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 104 @@ -852,14 +888,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 120 @@ -932,14 +971,17 @@

Parameters:

- View Source - AWS/aws-computeInstance.jsAWS/compute/aws-computeInstance.js, - line 152 diff --git a/docs/AWS_Container.html b/docs/AWS_Container.html index 8c197f50..266d768d 100644 --- a/docs/AWS_Container.html +++ b/docs/AWS_Container.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,16 @@
Parameters:

- View Source - AWS/aws-container.jsAWS/compute/aws-container.js, - line 12 @@ -292,14 +308,18 @@

Parameters:

- View Source - AWS/aws-container.jsAWS/compute/aws-container.js, - line 24 + line 24

@@ -370,14 +390,18 @@
Parameters:

- View Source - AWS/aws-container.jsAWS/compute/aws-container.js, - line 40 + line 40

@@ -448,14 +472,18 @@
Parameters:

- View Source - AWS/aws-container.jsAWS/compute/aws-container.js, - line 56 + line 56

@@ -526,14 +554,18 @@
Parameters:

- View Source - AWS/aws-container.jsAWS/compute/aws-container.js, - line 72 + line 72

diff --git a/docs/AWS_DNS.html b/docs/AWS_DNS.html index 21afb202..b34b2a7e 100644 --- a/docs/AWS_DNS.html +++ b/docs/AWS_DNS.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,12 +235,16 @@
Parameters:

- View Source - AWS/aws-DNS.js, - line 12 + AWS/network/aws-DNS.js, + line 12

@@ -291,12 +309,16 @@
Parameters:

- View Source - AWS/aws-DNS.js, - line 24 + AWS/network/aws-DNS.js, + line 24

@@ -367,12 +389,16 @@
Parameters:

- View Source - AWS/aws-DNS.js, - line 40 + AWS/network/aws-DNS.js, + line 40

@@ -443,12 +469,16 @@
Parameters:

- View Source - AWS/aws-DNS.js, - line 56 + AWS/network/aws-DNS.js, + line 56

@@ -519,12 +549,16 @@
Parameters:

- View Source - AWS/aws-DNS.js, - line 72 + AWS/network/aws-DNS.js, + line 72

diff --git a/docs/AWS_IAM.html b/docs/AWS_IAM.html index 55f24aef..6957c079 100644 --- a/docs/AWS_IAM.html +++ b/docs/AWS_IAM.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,12 +235,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 12 + AWS/security/aws-IAM.js, + line 12

@@ -288,12 +306,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 24 + AWS/security/aws-IAM.js, + line 24

@@ -362,12 +384,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 40 + AWS/security/aws-IAM.js, + line 40

@@ -436,12 +462,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 56 + AWS/security/aws-IAM.js, + line 56

@@ -510,12 +540,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 88 + AWS/security/aws-IAM.js, + line 88

@@ -586,12 +620,16 @@
Parameters:

- View Source - AWS/aws-IAM.js, - line 72 + AWS/security/aws-IAM.js, + line 72

diff --git a/docs/AWS_KeyManagement.html b/docs/AWS_KeyManagement.html index b80d2d83..eef8b9f5 100644 --- a/docs/AWS_KeyManagement.html +++ b/docs/AWS_KeyManagement.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 12 @@ -290,14 +307,17 @@

Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 24 @@ -371,14 +391,17 @@

Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 40 @@ -449,14 +472,17 @@

Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 56 @@ -529,14 +555,17 @@

Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 72 @@ -610,14 +639,17 @@

Parameters:

- View Source - AWS/aws-keyManagement.jsAWS/management/aws-keyManagement.js, - line 88 diff --git a/docs/AWS_Kubernetes.html b/docs/AWS_Kubernetes.html index e268a6cf..bf3c8cd7 100644 --- a/docs/AWS_Kubernetes.html +++ b/docs/AWS_Kubernetes.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,16 @@
Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 12 @@ -292,14 +308,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 24 @@ -372,14 +390,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 40 @@ -452,14 +472,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 56 @@ -532,14 +554,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 72 @@ -612,14 +636,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 88 @@ -692,14 +718,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 104 @@ -772,14 +800,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 120 @@ -852,14 +882,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 136 @@ -933,14 +965,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 168 @@ -1011,14 +1045,16 @@

Parameters:

- View Source - AWS/aws-kubernetes.jsAWS/compute/aws-kubernetes.js, - line 152 diff --git a/docs/AWS_LoadBalancer.html b/docs/AWS_LoadBalancer.html index ad30d6cd..f735f72b 100644 --- a/docs/AWS_LoadBalancer.html +++ b/docs/AWS_LoadBalancer.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 12 @@ -290,14 +307,16 @@

Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 24 @@ -370,14 +389,16 @@

Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 40 @@ -450,14 +471,16 @@

Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 56 @@ -536,14 +559,16 @@

Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 72 @@ -617,14 +642,16 @@

Parameters:

- View Source - AWS/aws-loadBalancer.jsAWS/network/aws-loadBalancer.js, - line 88 diff --git a/docs/AWS_Monitoring.html b/docs/AWS_Monitoring.html index a80349b3..ce8e94b4 100644 --- a/docs/AWS_Monitoring.html +++ b/docs/AWS_Monitoring.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-monitoring.jsAWS/management/aws-monitoring.js, - line 12 @@ -290,14 +307,16 @@

Parameters:

- View Source - AWS/aws-monitoring.jsAWS/management/aws-monitoring.js, - line 24 @@ -368,14 +387,16 @@

Parameters:

- View Source - AWS/aws-monitoring.jsAWS/management/aws-monitoring.js, - line 40 @@ -446,14 +467,16 @@

Parameters:

- View Source - AWS/aws-monitoring.jsAWS/management/aws-monitoring.js, - line 56 @@ -526,14 +549,16 @@

Parameters:

- View Source - AWS/aws-monitoring.jsAWS/management/aws-monitoring.js, - line 72 diff --git a/docs/AWS_NoSql.html b/docs/AWS_NoSql.html index 4c2a6c4f..43a1f798 100644 --- a/docs/AWS_NoSql.html +++ b/docs/AWS_NoSql.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,13 +235,18 @@
Parameters:

- View Source - AWS/aws-noSql.jsAWS/database/aws-noSql.js, - line 12 + line 12

@@ -287,12 +306,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 72 + AWS/database/aws-noSql.js, + line 72

@@ -361,12 +384,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 24 + AWS/database/aws-noSql.js, + line 24

@@ -435,12 +462,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 40 + AWS/database/aws-noSql.js, + line 40

@@ -509,12 +540,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 56 + AWS/database/aws-noSql.js, + line 56

@@ -583,12 +618,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 88 + AWS/database/aws-noSql.js, + line 88

@@ -657,12 +696,16 @@
Parameters:

- View Source - AWS/aws-noSql.js, - line 104 + AWS/database/aws-noSql.js, + line 104

diff --git a/docs/AWS_NoSqlIndexed.html b/docs/AWS_NoSqlIndexed.html index 950616db..dc2c60b3 100644 --- a/docs/AWS_NoSqlIndexed.html +++ b/docs/AWS_NoSqlIndexed.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 12 @@ -295,14 +312,16 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 24 @@ -375,14 +394,16 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 40 @@ -455,14 +476,16 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 56 @@ -535,14 +558,16 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 72 @@ -615,14 +640,16 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 88 @@ -695,14 +722,17 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 104 @@ -773,14 +803,17 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 120 @@ -851,14 +884,17 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 152 @@ -931,14 +967,17 @@

Parameters:

- View Source - AWS/aws-noSqlIndexed.jsAWS/database/aws-noSqlIndexed.js, - line 136 diff --git a/docs/AWS_NotificationService.html b/docs/AWS_NotificationService.html index 987aefe0..ed6201aa 100644 --- a/docs/AWS_NotificationService.html +++ b/docs/AWS_NotificationService.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -225,15 +239,17 @@
Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 12 @@ -296,15 +312,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 24 @@ -376,15 +394,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 40 @@ -458,15 +478,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 56 @@ -540,15 +562,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 72 @@ -620,15 +644,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 88 @@ -700,15 +726,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 104 @@ -780,15 +808,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 120 @@ -860,15 +890,17 @@

Parameters:

View Source - AWS/aws-notificationService.jsAWS/management/aws-notificationService.js, - line 136 diff --git a/docs/AWS_PaaS.html b/docs/AWS_PaaS.html new file mode 100644 index 00000000..8463db91 --- /dev/null +++ b/docs/AWS_PaaS.html @@ -0,0 +1,1615 @@ + + + + + + AWS_PaaS + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Class

+

AWS_PaaS

+
+ +
+
+

+ AWS_PaaS(aws, options) +

+ +
+

Class to create a ElasticBeanstalk object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new AWS_PaaS(aws, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
aws + module +

AWS SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + checkDNSAvailability(params) + → + {Promise.<checkDNSAvailabilityResponse>} + +

+ +
+

+ Trigers the checkDNSAvailability function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + CheckDNSAvailabilityMessage + +

Data required for checkDNSAvailability

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 24 + +

+
+ +
+
+
+
+
+ + + Promise.<checkDNSAvailabilityResponse> +
+
+
+
+
+ +
+

+ # + + + composeEnvironments(params) + → + {Promise.<composeEnvironmentsResponse>} + +

+ +
+

+ Trigers the composeEnvironments function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + ComposeEnvironmentsMessage + +

Data required for composeEnvironments

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 41 + +

+
+ +
+
+
+
+
+ + + Promise.<composeEnvironmentsResponse> +
+
+
+
+
+ +
+

+ # + + + create(params) + → {Promise.<createApplicationResponse>} + +

+ +
+

+ Trigers the createApplication function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + CreateApplicationMessage + +

Data required for createApplication

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 58 + +

+
+ +
+
+
+
+
+ + + Promise.<createApplicationResponse> +
+
+
+
+
+ +
+

+ # + + + createConfigTemplate(params) + → + {Promise.<createConfigurationTemplateResponse>} + +

+ +
+

+ Trigers the createConfigurationTemplate function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + CreateConfigurationTemplateMessage + +

+ Data required for createConfigurationTemplate +

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 75 + +

+
+ +
+
+
+
+
+ + + Promise.<createConfigurationTemplateResponse> +
+
+
+
+
+ +
+

+ # + + + createEnvironment(params) + → {Promise.<createEnvironmentResponse>} + +

+ +
+

+ Trigers the createEnvironment function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + CreateEnvironmentMessage + +

Data required for createEnvironment

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 92 + +

+
+ +
+
+
+
+
+ + + Promise.<createEnvironmentResponse> +
+
+
+
+
+ +
+

+ # + + + createStorageLocation() + → + {Promise.<createStorageLocationResponse>} + +

+ +
+

+ Trigers the createStorageLocation function of + ElasticBeanstalk +

+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 108 + +

+
+ +
+
+
+
+
+ + + Promise.<createStorageLocationResponse> +
+
+
+
+
+ +
+

+ # + + + delete(params) + → {Promise.<deleteApplicationResponse>} + +

+ +
+

+ Trigers the deleteApplication function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + DeleteApplicationMessage + +

Data required for deleteApplication

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 125 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteApplicationResponse> +
+
+
+
+
+ +
+

+ # + + + deleteConfigTemplate(params) + → + {Promise.<deleteConfigurationTemplateResponse>} + +

+ +
+

+ Trigers the deleteConfigurationTemplate function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + DeleteConfigurationTemplateMessage + +

+ Data required for deleteConfigurationTemplate +

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 142 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteConfigurationTemplateResponse> +
+
+
+
+
+ +
+

+ # + + + describe(params) + → + {Promise.<describeApplicationsResponse>} + +

+ +
+

+ Trigers the describeApplications function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + DescribeApplicationsMessage + +

Data required for describeApplications

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 175 + +

+
+ +
+
+
+
+
+ + + Promise.<describeApplicationsResponse> +
+
+
+
+
+ +
+

+ # + + + describeAccountAttributes() + → + {Promise.<describeAccountAttributesResponse>} + +

+ +
+

+ Trigers the describeAccountAttributes function of + ElasticBeanstalk +

+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 158 + +

+
+ +
+
+
+
+
+ + + Promise.<describeAccountAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + describeConfigSettings(params) + → + {Promise.<describeConfigurationSettingsResponse>} + +

+ +
+

+ Trigers the describeConfigurationSettings function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + DescribeConfigurationSettingsMessage + +

+ Data required for describeConfigurationSettings +

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 192 + +

+
+ +
+
+
+
+
+ + + Promise.<describeConfigurationSettingsResponse> +
+
+
+
+
+ +
+

+ # + + + listVersions(params) + → + {Promise.<listPlatformVersionsResponse>} + +

+ +
+

+ Trigers the listPlatformVersions function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + ListPlatformVersionsRequest + +

Data required for listPlatformVersions

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 209 + +

+
+ +
+
+
+
+
+ + + Promise.<listPlatformVersionsResponse> +
+
+
+
+
+ +
+

+ # + + + restart(params) + → {Promise.<restartAppServerResponse>} + +

+ +
+

+ Trigers the restartAppServer function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + RestartAppServerMessage + +

Data required for restartAppServer

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 226 + +

+
+ +
+
+
+
+
+ + + Promise.<restartAppServerResponse> +
+
+
+
+
+ +
+

+ # + + + terminateEnvironment(params) + → + {Promise.<terminateEnvironmentResponse>} + +

+ +
+

+ Trigers the terminateEnvironment function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + TerminateEnvironmentMessage + +

Data required for terminateEnvironment

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 243 + +

+
+ +
+
+
+
+
+ + + Promise.<terminateEnvironmentResponse> +
+
+
+
+
+ +
+

+ # + + + update(params) + → {Promise.<updateApplicationResponse>} + +

+ +
+

+ Trigers the updateApplication function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + UpdateApplicationMessage + +

Data required for updateApplication

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 260 + +

+
+ +
+
+
+
+
+ + + Promise.<updateApplicationResponse> +
+
+
+
+
+ +
+

+ # + + + updateEnvironment(params) + → {Promise.<updateEnvironmentResponse>} + +

+ +
+

+ Trigers the updateEnvironment function of + ElasticBeanstalk +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + UpdateEnvironmentMessage + +

Data required for updateEnvironment

+
+
+ +
+

+ View Source + + AWS/appServices/aws-paaS.js, + line 277 + +

+
+ +
+
+
+
+
+ + + Promise.<updateEnvironmentResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_RDBMS.html b/docs/AWS_RDBMS.html index 2b147c9f..5365ffe6 100644 --- a/docs/AWS_RDBMS.html +++ b/docs/AWS_RDBMS.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,13 +235,18 @@
Parameters:

- View Source - AWS/aws-RDBMS.jsAWS/database/aws-RDBMS.js, - line 12 + line 12

@@ -289,12 +308,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 24 + AWS/database/aws-RDBMS.js, + line 24

@@ -365,12 +388,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 40 + AWS/database/aws-RDBMS.js, + line 40

@@ -441,12 +468,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 56 + AWS/database/aws-RDBMS.js, + line 56

@@ -517,12 +548,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 72 + AWS/database/aws-RDBMS.js, + line 72

@@ -593,12 +628,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 88 + AWS/database/aws-RDBMS.js, + line 88

@@ -669,12 +708,16 @@
Parameters:

- View Source - AWS/aws-RDBMS.js, - line 104 + AWS/database/aws-RDBMS.js, + line 104

diff --git a/docs/AWS_StorageBucket.html b/docs/AWS_StorageBucket.html index 5528d20c..2476a397 100644 --- a/docs/AWS_StorageBucket.html +++ b/docs/AWS_StorageBucket.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,17 @@
Parameters:

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 12 @@ -292,14 +309,16 @@

Parameters:

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 24 @@ -372,14 +391,16 @@

Parameters:

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 40 @@ -452,14 +473,16 @@

Parameters:

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 56 @@ -500,14 +523,16 @@

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 71 @@ -578,14 +603,16 @@

Parameters:

- View Source - AWS/aws-storageBucket.jsAWS/storage/aws-storageBucket.js, - line 87 diff --git a/docs/AWS_Translation.html b/docs/AWS_Translation.html index 5985f3a9..60a0bae6 100644 --- a/docs/AWS_Translation.html +++ b/docs/AWS_Translation.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,14 +235,18 @@
Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 12 @@ -296,14 +314,18 @@

Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 72 @@ -376,14 +398,18 @@

Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 56 @@ -456,14 +482,18 @@

Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 24 @@ -536,14 +566,18 @@

Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 40 @@ -616,14 +650,18 @@

Parameters:

- View Source - AWS/aws-translation.jsAWS/artificialinteligence/aws-translation.js, - line 88 diff --git a/docs/AWS_appServices_aws-paaS.js.html b/docs/AWS_appServices_aws-paaS.js.html new file mode 100644 index 00000000..dd75ff19 --- /dev/null +++ b/docs/AWS_appServices_aws-paaS.js.html @@ -0,0 +1,484 @@ + + + + + + AWS/appServices/aws-paaS.js + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Source

+

AWS/appServices/aws-paaS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a ElasticBeanstalk object
+ * @category AWS
+ */
+class AWS_PaaS {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._elasticBeanstalk = new this._AWS.ElasticBeanstalk({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the checkDNSAvailability function of ElasticBeanstalk
+   * @param {CheckDNSAvailabilityMessage} params - Data required for checkDNSAvailability
+   * @returns {Promise<checkDNSAvailabilityResponse>}
+   */
+  checkDNSAvailability(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.checkDNSAvailability(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the composeEnvironments function of ElasticBeanstalk
+   * @param {ComposeEnvironmentsMessage} params - Data required for composeEnvironments
+   * @returns {Promise<composeEnvironmentsResponse>}
+   */
+  composeEnvironments(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.composeEnvironments(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createApplication function of ElasticBeanstalk
+   * @param {CreateApplicationMessage} params - Data required for createApplication
+   * @returns {Promise<createApplicationResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.createApplication(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createConfigurationTemplate function of ElasticBeanstalk
+   * @param {CreateConfigurationTemplateMessage} params - Data required for createConfigurationTemplate
+   * @returns {Promise<createConfigurationTemplateResponse>}
+   */
+  createConfigTemplate(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.createConfigurationTemplate(
+        params,
+        (error, data) => {
+          if (error) {
+            reject(error);
+          } else {
+            resolve(data);
+          }
+        }
+      );
+    });
+  }
+  /**
+   * Trigers the createEnvironment function of ElasticBeanstalk
+   * @param {CreateEnvironmentMessage} params - Data required for createEnvironment
+   * @returns {Promise<createEnvironmentResponse>}
+   */
+  createEnvironment(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.createEnvironment(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createStorageLocation function of ElasticBeanstalk
+   * @returns {Promise<createStorageLocationResponse>}
+   */
+  createStorageLocation() {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.createStorageLocation((error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteApplication function of ElasticBeanstalk
+   * @param {DeleteApplicationMessage} params - Data required for deleteApplication
+   * @returns {Promise<deleteApplicationResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.deleteApplication(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteConfigurationTemplate function of ElasticBeanstalk
+   * @param {DeleteConfigurationTemplateMessage} params - Data required for deleteConfigurationTemplate
+   * @returns {Promise<deleteConfigurationTemplateResponse>}
+   */
+  deleteConfigTemplate(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.deleteConfigurationTemplate(
+        params,
+        (error, data) => {
+          if (error) {
+            reject(error);
+          } else {
+            resolve(data);
+          }
+        }
+      );
+    });
+  }
+  /**
+   * Trigers the describeAccountAttributes function of ElasticBeanstalk
+   * @returns {Promise<describeAccountAttributesResponse>}
+   */
+  describeAccountAttributes() {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.describeAccountAttributes((error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeApplications function of ElasticBeanstalk
+   * @param {DescribeApplicationsMessage} params - Data required for describeApplications
+   * @returns {Promise<describeApplicationsResponse>}
+   */
+  describe(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.describeApplications(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeConfigurationSettings function of ElasticBeanstalk
+   * @param {DescribeConfigurationSettingsMessage} params - Data required for describeConfigurationSettings
+   * @returns {Promise<describeConfigurationSettingsResponse>}
+   */
+  describeConfigSettings(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.describeConfigurationSettings(
+        params,
+        (error, data) => {
+          if (error) {
+            reject(error);
+          } else {
+            resolve(data);
+          }
+        }
+      );
+    });
+  }
+  /**
+   * Trigers the listPlatformVersions function of ElasticBeanstalk
+   * @param {ListPlatformVersionsRequest} params - Data required for listPlatformVersions
+   * @returns {Promise<listPlatformVersionsResponse>}
+   */
+  listVersions(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.listPlatformVersions(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the restartAppServer function of ElasticBeanstalk
+   * @param {RestartAppServerMessage} params - Data required for restartAppServer
+   * @returns {Promise<restartAppServerResponse>}
+   */
+  restart(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.restartAppServer(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the terminateEnvironment function of ElasticBeanstalk
+   * @param {TerminateEnvironmentMessage} params - Data required for terminateEnvironment
+   * @returns {Promise<terminateEnvironmentResponse>}
+   */
+  terminateEnvironment(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.terminateEnvironment(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the updateApplication function of ElasticBeanstalk
+   * @param {UpdateApplicationMessage} params - Data required for updateApplication
+   * @returns {Promise<updateApplicationResponse>}
+   */
+  update(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.updateApplication(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the updateEnvironment function of ElasticBeanstalk
+   * @param {UpdateEnvironmentMessage} params - Data required for updateEnvironment
+   * @returns {Promise<updateEnvironmentResponse>}
+   */
+  updateEnvironment(params) {
+    return new Promise((resolve, reject) => {
+      this._elasticBeanstalk.updateEnvironment(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_PaaS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_artificialinteligence_aws-translation.js.html b/docs/AWS_artificialinteligence_aws-translation.js.html new file mode 100644 index 00000000..0450773b --- /dev/null +++ b/docs/AWS_artificialinteligence_aws-translation.js.html @@ -0,0 +1,301 @@ + + + + + + AWS/artificialinteligence/aws-translation.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/artificialinteligence/aws-translation.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Translate object
+ * @category AWS
+ */
+class AWS_Translation {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._translate = new this._AWS.Translate({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the deleteTerminology function of Translate
+   * @param {DeleteTerminologyRequest} params - Data required for deleteTerminology
+   * @returns {Promise<deleteTerminologyResponse>}
+   */
+  deleteGlossary(params) {
+    return new Promise((resolve, reject) => {
+      this._translate.deleteTerminology(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the getTerminology function of Translate
+   * @param {GetTerminologyRequest} params - Data required for getTerminology
+   * @returns {Promise<getTerminologyResponse>}
+   */
+  getGlossary(params) {
+    return new Promise((resolve, reject) => {
+      this._translate.getTerminology(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the importTerminology function of Translate
+   * @param {ImportTerminologyRequest} params - Data required for importTerminology
+   * @returns {Promise<importTerminologyResponse>}
+   */
+  createGlossary(params) {
+    return new Promise((resolve, reject) => {
+      this._translate.importTerminology(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the startTextTranslationJob function of Translate
+   * @param {StartTextTranslationJobRequest} params - Data required for startTextTranslationJob
+   * @returns {Promise<startTextTranslationJobResponse>}
+   */
+  batchTranslate(params) {
+    return new Promise((resolve, reject) => {
+      this._translate.startTextTranslationJob(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the translateText function of Translate
+   * @param {TranslateTextRequest} params - Data required for translateText
+   * @returns {Promise<translateTextResponse>}
+   */
+  translate(params) {
+    return new Promise((resolve, reject) => {
+      this._translate.translateText(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_Translation;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_compute_aws-computeInstance.js.html b/docs/AWS_compute_aws-computeInstance.js.html new file mode 100644 index 00000000..e3d47c7f --- /dev/null +++ b/docs/AWS_compute_aws-computeInstance.js.html @@ -0,0 +1,365 @@ + + + + + + AWS/compute/aws-computeInstance.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/compute/aws-computeInstance.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a EC2 object
+ * @category AWS
+ */
+class AWS_ComputeInstance {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._eC2 = new this._AWS.EC2({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createTags function of EC2
+   * @param {CreateTagsRequest} params - Data required for createTags
+   * @returns {Promise<createTagsResponse>}
+   */
+  addTags(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.createTags(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeInstances function of EC2
+   * @param {DescribeInstancesRequest} params - Data required for describeInstances
+   * @returns {Promise<describeInstancesResponse>}
+   */
+  list(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.describeInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the monitorInstances function of EC2
+   * @param {MonitorInstancesRequest} params - Data required for monitorInstances
+   * @returns {Promise<monitorInstancesResponse>}
+   */
+  monitor(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.monitorInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the rebootInstances function of EC2
+   * @param {RebootInstancesRequest} params - Data required for rebootInstances
+   * @returns {Promise<rebootInstancesResponse>}
+   */
+  reboot(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.rebootInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the runInstances function of EC2
+   * @param {RunInstancesRequest} params - Data required for runInstances
+   * @returns {Promise<runInstancesResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.runInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the startInstances function of EC2
+   * @param {StartInstancesRequest} params - Data required for startInstances
+   * @returns {Promise<startInstancesResponse>}
+   */
+  start(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.startInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the stopInstances function of EC2
+   * @param {StopInstancesRequest} params - Data required for stopInstances
+   * @returns {Promise<stopInstancesResponse>}
+   */
+  stop(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.stopInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the terminateInstances function of EC2
+   * @param {TerminateInstancesRequest} params - Data required for terminateInstances
+   * @returns {Promise<terminateInstancesResponse>}
+   */
+  destroy(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.terminateInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the unmonitorInstances function of EC2
+   * @param {UnmonitorInstancesRequest} params - Data required for unmonitorInstances
+   * @returns {Promise<unmonitorInstancesResponse>}
+   */
+  unmonitor(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.unmonitorInstances(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_ComputeInstance;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_compute_aws-container.js.html b/docs/AWS_compute_aws-container.js.html new file mode 100644 index 00000000..984e1db3 --- /dev/null +++ b/docs/AWS_compute_aws-container.js.html @@ -0,0 +1,285 @@ + + + + + + AWS/compute/aws-container.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/compute/aws-container.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a ECS object
+ * @category AWS
+ */
+class AWS_Container {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._eCS = new this._AWS.ECS({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createCluster function of ECS
+   * @param {CreateClusterRequest} params - Data required for createCluster
+   * @returns {Promise<createClusterResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._eCS.createCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteCluster function of ECS
+   * @param {DeleteClusterRequest} params - Data required for deleteCluster
+   * @returns {Promise<deleteClusterResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._eCS.deleteCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeClusters function of ECS
+   * @param {DescribeClustersRequest} params - Data required for describeClusters
+   * @returns {Promise<describeClustersResponse>}
+   */
+  describe(params) {
+    return new Promise((resolve, reject) => {
+      this._eCS.describeClusters(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listClusters function of ECS
+   * @param {ListClustersRequest} params - Data required for listClusters
+   * @returns {Promise<listClustersResponse>}
+   */
+  list(params) {
+    return new Promise((resolve, reject) => {
+      this._eCS.listClusters(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_Container;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_compute_aws-kubernetes.js.html b/docs/AWS_compute_aws-kubernetes.js.html new file mode 100644 index 00000000..d971c0b1 --- /dev/null +++ b/docs/AWS_compute_aws-kubernetes.js.html @@ -0,0 +1,381 @@ + + + + + + AWS/compute/aws-kubernetes.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/compute/aws-kubernetes.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a EKS object
+ * @category AWS
+ */
+class AWS_Kubernetes {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._eKS = new this._AWS.EKS({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createCluster function of EKS
+   * @param {CreateClusterRequest} params - Data required for createCluster
+   * @returns {Promise<createClusterResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.createCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createNodegroup function of EKS
+   * @param {CreateNodegroupRequest} params - Data required for createNodegroup
+   * @returns {Promise<createNodegroupResponse>}
+   */
+  createNodeGroup(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.createNodegroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteCluster function of EKS
+   * @param {DeleteClusterRequest} params - Data required for deleteCluster
+   * @returns {Promise<deleteClusterResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.deleteCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteNodegroup function of EKS
+   * @param {DeleteNodegroupRequest} params - Data required for deleteNodegroup
+   * @returns {Promise<deleteNodegroupResponse>}
+   */
+  deleteNodegroup(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.deleteNodegroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeCluster function of EKS
+   * @param {DescribeClusterRequest} params - Data required for describeCluster
+   * @returns {Promise<describeClusterResponse>}
+   */
+  describeCluster(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.describeCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeNodegroup function of EKS
+   * @param {DescribeNodegroupRequest} params - Data required for describeNodegroup
+   * @returns {Promise<describeNodegroupResponse>}
+   */
+  describeNodeGroup(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.describeNodegroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listClusters function of EKS
+   * @param {ListClustersRequest} params - Data required for listClusters
+   * @returns {Promise<listClustersResponse>}
+   */
+  listClusters(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.listClusters(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listNodegroups function of EKS
+   * @param {ListNodegroupsRequest} params - Data required for listNodegroups
+   * @returns {Promise<listNodegroupsResponse>}
+   */
+  listNodegroups(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.listNodegroups(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the tagResource function of EKS
+   * @param {TagResourceRequest} params - Data required for tagResource
+   * @returns {Promise<tagResourceResponse>}
+   */
+  updateTags(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.tagResource(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the updateClusterConfig function of EKS
+   * @param {UpdateClusterConfigRequest} params - Data required for updateClusterConfig
+   * @returns {Promise<updateClusterConfigResponse>}
+   */
+  updateConfig(params) {
+    return new Promise((resolve, reject) => {
+      this._eKS.updateClusterConfig(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_Kubernetes;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_database_aws-RDBMS.js.html b/docs/AWS_database_aws-RDBMS.js.html new file mode 100644 index 00000000..0de0e392 --- /dev/null +++ b/docs/AWS_database_aws-RDBMS.js.html @@ -0,0 +1,317 @@ + + + + + + AWS/database/aws-RDBMS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/database/aws-RDBMS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a RDS object
+ * @category AWS
+ */
+class AWS_RDBMS {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._rDS = new this._AWS.RDS({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createDBCluster function of RDS
+   * @param {CreateDBClusterMessage} params - Data required for createDBCluster
+   * @returns {Promise<createDBClusterResponse>}
+   */
+  createDatabse(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.createDBCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createDBSnapshot function of RDS
+   * @param {CreateDBSnapshotMessage} params - Data required for createDBSnapshot
+   * @returns {Promise<createDBSnapshotResponse>}
+   */
+  createSnapshots(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.createDBSnapshot(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteDBCluster function of RDS
+   * @param {DeleteDBClusterMessage} params - Data required for deleteDBCluster
+   * @returns {Promise<deleteDBClusterResponse>}
+   */
+  deleteDatabase(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.deleteDBCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteDBSnapshot function of RDS
+   * @param {DeleteDBSnapshotMessage} params - Data required for deleteDBSnapshot
+   * @returns {Promise<deleteDBSnapshotResponse>}
+   */
+  deleteDBSnapshot(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.deleteDBSnapshot(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the modifyDBCluster function of RDS
+   * @param {ModifyDBClusterMessage} params - Data required for modifyDBCluster
+   * @returns {Promise<modifyDBClusterResponse>}
+   */
+  modifyDB(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.modifyDBCluster(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the rebootDBInstance function of RDS
+   * @param {RebootDBInstanceMessage} params - Data required for rebootDBInstance
+   * @returns {Promise<rebootDBInstanceResponse>}
+   */
+  restoreDatabase(params) {
+    return new Promise((resolve, reject) => {
+      this._rDS.rebootDBInstance(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_RDBMS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_database_aws-noSql.js.html b/docs/AWS_database_aws-noSql.js.html new file mode 100644 index 00000000..61ec1e7d --- /dev/null +++ b/docs/AWS_database_aws-noSql.js.html @@ -0,0 +1,317 @@ + + + + + + AWS/database/aws-noSql.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/database/aws-noSql.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a DynamoDB object
+ * @category AWS
+ */
+class AWS_NoSql {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._dynamoDB = new this._AWS.DynamoDB({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createTable function of DynamoDB
+   * @param {CreateTableInput} params - Data required for createTable
+   * @returns {Promise<createTableResponse>}
+   */
+  createTable(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.createTable(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteItem function of DynamoDB
+   * @param {DeleteItemInput} params - Data required for deleteItem
+   * @returns {Promise<deleteItemResponse>}
+   */
+  deleteItem(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.deleteItem(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteTable function of DynamoDB
+   * @param {DeleteTableInput} params - Data required for deleteTable
+   * @returns {Promise<deleteTableResponse>}
+   */
+  deleteTable(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.deleteTable(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the putItem function of DynamoDB
+   * @param {PutItemInput} params - Data required for putItem
+   * @returns {Promise<putItemResponse>}
+   */
+  createItem(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.putItem(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the query function of DynamoDB
+   * @param {QueryInput} params - Data required for query
+   * @returns {Promise<queryResponse>}
+   */
+  query(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.query(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the updateItem function of DynamoDB
+   * @param {UpdateItemInput} params - Data required for updateItem
+   * @returns {Promise<updateItemResponse>}
+   */
+  updateItem(params) {
+    return new Promise((resolve, reject) => {
+      this._dynamoDB.updateItem(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_NoSql;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_database_aws-noSqlIndexed.js.html b/docs/AWS_database_aws-noSqlIndexed.js.html new file mode 100644 index 00000000..cd97c11d --- /dev/null +++ b/docs/AWS_database_aws-noSqlIndexed.js.html @@ -0,0 +1,365 @@ + + + + + + AWS/database/aws-noSqlIndexed.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/database/aws-noSqlIndexed.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a SimpleDB object
+ * @category AWS
+ */
+class AWS_NoSqlIndexed {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._simpleDB = new this._AWS.SimpleDB({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the batchDeleteAttributes function of SimpleDB
+   * @param {BatchDeleteAttributesRequest} params - Data required for batchDeleteAttributes
+   * @returns {Promise<batchDeleteAttributesResponse>}
+   */
+  batchDelete(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.batchDeleteAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the batchPutAttributes function of SimpleDB
+   * @param {BatchPutAttributesRequest} params - Data required for batchPutAttributes
+   * @returns {Promise<batchPutAttributesResponse>}
+   */
+  batchWrite(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.batchPutAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createDomain function of SimpleDB
+   * @param {CreateDomainRequest} params - Data required for createDomain
+   * @returns {Promise<createDomainResponse>}
+   */
+  createCollection(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.createDomain(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteAttributes function of SimpleDB
+   * @param {DeleteAttributesRequest} params - Data required for deleteAttributes
+   * @returns {Promise<deleteAttributesResponse>}
+   */
+  deleteAttribute(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.deleteAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteDomain function of SimpleDB
+   * @param {DeleteDomainRequest} params - Data required for deleteDomain
+   * @returns {Promise<deleteDomainResponse>}
+   */
+  deleteCollection(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.deleteDomain(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the getAttributes function of SimpleDB
+   * @param {GetAttributesRequest} params - Data required for getAttributes
+   * @returns {Promise<getAttributesResponse>}
+   */
+  getAttributes(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.getAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listDomains function of SimpleDB
+   * @param {ListDomainsRequest} params - Data required for listDomains
+   * @returns {Promise<listDomainsResponse>}
+   */
+  listCollections(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.listDomains(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the putAttributes function of SimpleDB
+   * @param {PutAttributesRequest} params - Data required for putAttributes
+   * @returns {Promise<putAttributesResponse>}
+   */
+  setAttribute(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.putAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the select function of SimpleDB
+   * @param {SelectRequest} params - Data required for select
+   * @returns {Promise<selectResponse>}
+   */
+  query(params) {
+    return new Promise((resolve, reject) => {
+      this._simpleDB.select(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_NoSqlIndexed;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_management_aws-keyManagement.js.html b/docs/AWS_management_aws-keyManagement.js.html new file mode 100644 index 00000000..47e94aff --- /dev/null +++ b/docs/AWS_management_aws-keyManagement.js.html @@ -0,0 +1,301 @@ + + + + + + AWS/management/aws-keyManagement.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/management/aws-keyManagement.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a KMS object
+ * @category AWS
+ */
+class AWS_KeyManagement {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._kMS = new this._AWS.KMS({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createKey function of KMS
+   * @param {CreateKeyRequest} params - Data required for createKey
+   * @returns {Promise<createKeyResponse>}
+   */
+  createKey(params) {
+    return new Promise((resolve, reject) => {
+      this._kMS.createKey(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteCustomKeyStore function of KMS
+   * @param {DeleteCustomKeyStoreRequest} params - Data required for deleteCustomKeyStore
+   * @returns {Promise<deleteCustomKeyStoreResponse>}
+   */
+  deleteKey(params) {
+    return new Promise((resolve, reject) => {
+      this._kMS.deleteCustomKeyStore(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeKey function of KMS
+   * @param {DescribeKeyRequest} params - Data required for describeKey
+   * @returns {Promise<describeKeyResponse>}
+   */
+  describeKey(params) {
+    return new Promise((resolve, reject) => {
+      this._kMS.describeKey(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the putKeyPolicy function of KMS
+   * @param {PutKeyPolicyRequest} params - Data required for putKeyPolicy
+   * @returns {Promise<putKeyPolicyResponse>}
+   */
+  putKeyPolicy(params) {
+    return new Promise((resolve, reject) => {
+      this._kMS.putKeyPolicy(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the updateKeyDescription function of KMS
+   * @param {UpdateKeyDescriptionRequest} params - Data required for updateKeyDescription
+   * @returns {Promise<updateKeyDescriptionResponse>}
+   */
+  update(params) {
+    return new Promise((resolve, reject) => {
+      this._kMS.updateKeyDescription(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_KeyManagement;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_management_aws-monitoring.js.html b/docs/AWS_management_aws-monitoring.js.html new file mode 100644 index 00000000..b6175c00 --- /dev/null +++ b/docs/AWS_management_aws-monitoring.js.html @@ -0,0 +1,285 @@ + + + + + + AWS/management/aws-monitoring.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/management/aws-monitoring.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a CloudWatch object
+ * @category AWS
+ */
+class AWS_Monitoring {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._cloudWatch = new this._AWS.CloudWatch({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the deleteAlarms function of CloudWatch
+   * @param {DeleteAlarmsInput} params - Data required for deleteAlarms
+   * @returns {Promise<deleteAlarmsResponse>}
+   */
+  deleteAlarm(params) {
+    return new Promise((resolve, reject) => {
+      this._cloudWatch.deleteAlarms(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the getMetricData function of CloudWatch
+   * @param {GetMetricDataInput} params - Data required for getMetricData
+   * @returns {Promise<getMetricDataResponse>}
+   */
+  getMetricData(params) {
+    return new Promise((resolve, reject) => {
+      this._cloudWatch.getMetricData(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listMetrics function of CloudWatch
+   * @param {ListMetricsInput} params - Data required for listMetrics
+   * @returns {Promise<listMetricsResponse>}
+   */
+  listAlarms(params) {
+    return new Promise((resolve, reject) => {
+      this._cloudWatch.listMetrics(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the putMetricAlarm function of CloudWatch
+   * @param {PutMetricAlarmInput} params - Data required for putMetricAlarm
+   * @returns {Promise<putMetricAlarmResponse>}
+   */
+  updateAlarm(params) {
+    return new Promise((resolve, reject) => {
+      this._cloudWatch.putMetricAlarm(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_Monitoring;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_management_aws-notificationService.js.html b/docs/AWS_management_aws-notificationService.js.html new file mode 100644 index 00000000..079207b8 --- /dev/null +++ b/docs/AWS_management_aws-notificationService.js.html @@ -0,0 +1,349 @@ + + + + + + AWS/management/aws-notificationService.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/management/aws-notificationService.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a SNS object
+ * @category AWS
+ */
+class AWS_NotificationService {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._sNS = new this._AWS.SNS({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createTopic function of SNS
+   * @param {CreateTopicInput} params - Data required for createTopic
+   * @returns {Promise<createTopicResponse>}
+   */
+  createTopic(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.createTopic(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteTopic function of SNS
+   * @param {DeleteTopicInput} params - Data required for deleteTopic
+   * @returns {Promise<deleteTopicResponse>}
+   */
+  deleteTopic(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.deleteTopic(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the getTopicAttributes function of SNS
+   * @param {GetTopicAttributesInput} params - Data required for getTopicAttributes
+   * @returns {Promise<getTopicAttributesResponse>}
+   */
+  getTopicAttributes(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.getTopicAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listSubscriptions function of SNS
+   * @param {ListSubscriptionsInput} params - Data required for listSubscriptions
+   * @returns {Promise<listSubscriptionsResponse>}
+   */
+  listSubscriptions(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.listSubscriptions(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listTopics function of SNS
+   * @param {ListTopicsInput} params - Data required for listTopics
+   * @returns {Promise<listTopicsResponse>}
+   */
+  listTopics(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.listTopics(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the publish function of SNS
+   * @param {PublishInput} params - Data required for publish
+   * @returns {Promise<publishResponse>}
+   */
+  publish(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.publish(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the subscribe function of SNS
+   * @param {SubscribeInput} params - Data required for subscribe
+   * @returns {Promise<subscribeResponse>}
+   */
+  subscribe(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.subscribe(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the unsubscribe function of SNS
+   * @param {UnsubscribeInput} params - Data required for unsubscribe
+   * @returns {Promise<unsubscribeResponse>}
+   */
+  unsubscribe(params) {
+    return new Promise((resolve, reject) => {
+      this._sNS.unsubscribe(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_NotificationService;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_network_aws-DNS.js.html b/docs/AWS_network_aws-DNS.js.html new file mode 100644 index 00000000..b50ca8fc --- /dev/null +++ b/docs/AWS_network_aws-DNS.js.html @@ -0,0 +1,285 @@ + + + + + + AWS/network/aws-DNS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/network/aws-DNS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Route53 object
+ * @category AWS
+ */
+class AWS_DNS {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._route53 = new this._AWS.Route53({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the changeResourceRecordSets function of Route53
+   * @param {ChangeResourceRecordSetsRequest} params - Data required for changeResourceRecordSets
+   * @returns {Promise<changeResourceRecordSetsResponse>}
+   */
+  changeRecordSets(params) {
+    return new Promise((resolve, reject) => {
+      this._route53.changeResourceRecordSets(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createHostedZone function of Route53
+   * @param {CreateHostedZoneRequest} params - Data required for createHostedZone
+   * @returns {Promise<createHostedZoneResponse>}
+   */
+  createZone(params) {
+    return new Promise((resolve, reject) => {
+      this._route53.createHostedZone(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteHostedZone function of Route53
+   * @param {DeleteHostedZoneRequest} params - Data required for deleteHostedZone
+   * @returns {Promise<deleteHostedZoneResponse>}
+   */
+  deleteZone(params) {
+    return new Promise((resolve, reject) => {
+      this._route53.deleteHostedZone(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listHostedZones function of Route53
+   * @param {ListHostedZonesRequest} params - Data required for listHostedZones
+   * @returns {Promise<listHostedZonesResponse>}
+   */
+  listZones(params) {
+    return new Promise((resolve, reject) => {
+      this._route53.listHostedZones(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_DNS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_network_aws-loadBalancer.js.html b/docs/AWS_network_aws-loadBalancer.js.html new file mode 100644 index 00000000..5ccdcb1f --- /dev/null +++ b/docs/AWS_network_aws-loadBalancer.js.html @@ -0,0 +1,301 @@ + + + + + + AWS/network/aws-loadBalancer.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

AWS/network/aws-loadBalancer.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a ELB object
+ * @category AWS
+ */
+class AWS_LoadBalancer {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._eLB = new this._AWS.ELB({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the addTags function of ELB
+   * @param {AddTagsInput} params - Data required for addTags
+   * @returns {Promise<addTagsResponse>}
+   */
+  addTags(params) {
+    return new Promise((resolve, reject) => {
+      this._eLB.addTags(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createLoadBalancer function of ELB
+   * @param {CreateAccessPointInput} params - Data required for createLoadBalancer
+   * @returns {Promise<createLoadBalancerResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._eLB.createLoadBalancer(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteLoadBalancer function of ELB
+   * @param {DeleteAccessPointInput} params - Data required for deleteLoadBalancer
+   * @returns {Promise<deleteLoadBalancerResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._eLB.deleteLoadBalancer(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeLoadBalancerAttributes function of ELB
+   * @param {DescribeLoadBalancerAttributesInput} params - Data required for describeLoadBalancerAttributes
+   * @returns {Promise<describeLoadBalancerAttributesResponse>}
+   */
+  describe(params) {
+    return new Promise((resolve, reject) => {
+      this._eLB.describeLoadBalancerAttributes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeLoadBalancers function of ELB
+   * @param {DescribeAccessPointsInput} params - Data required for describeLoadBalancers
+   * @returns {Promise<describeLoadBalancersResponse>}
+   */
+  list(params) {
+    return new Promise((resolve, reject) => {
+      this._eLB.describeLoadBalancers(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_LoadBalancer;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_paas.html b/docs/AWS_paas.html index e6b8aba4..e747542e 100644 --- a/docs/AWS_paas.html +++ b/docs/AWS_paas.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -221,12 +235,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 12 + AWS/appServices/aws-paaS.js, + line 12

@@ -293,12 +313,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 24 + AWS/appServices/aws-paaS.js, + line 24

@@ -374,12 +400,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 40 + AWS/appServices/aws-paaS.js, + line 40

@@ -453,12 +485,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 56 + AWS/appServices/aws-paaS.js, + line 56

@@ -536,12 +574,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 72 + AWS/appServices/aws-paaS.js, + line 72

@@ -615,12 +659,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 91 + AWS/appServices/aws-paaS.js, + line 91

@@ -663,12 +713,18 @@

- View Source - AWS/aws-paaS.js, - line 106 + AWS/appServices/aws-paaS.js, + line 106

@@ -742,12 +798,18 @@

Parameters:

- View Source - AWS/aws-paaS.js, - line 122 + AWS/appServices/aws-paaS.js, + line 122

@@ -825,12 +887,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 138 + AWS/appServices/aws-paaS.js, + line 138

@@ -905,12 +973,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 172 + AWS/appServices/aws-paaS.js, + line 172

@@ -956,12 +1030,18 @@

- View Source - AWS/aws-paaS.js, - line 156 + AWS/appServices/aws-paaS.js, + line 156

@@ -1039,12 +1119,18 @@

Parameters:

- View Source - AWS/aws-paaS.js, - line 188 + AWS/appServices/aws-paaS.js, + line 188

@@ -1119,12 +1205,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 207 + AWS/appServices/aws-paaS.js, + line 207

@@ -1198,12 +1290,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 223 + AWS/appServices/aws-paaS.js, + line 223

@@ -1279,12 +1377,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 239 + AWS/appServices/aws-paaS.js, + line 239

@@ -1358,12 +1462,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 255 + AWS/appServices/aws-paaS.js, + line 255

@@ -1437,12 +1547,18 @@
Parameters:

- View Source - AWS/aws-paaS.js, - line 271 + AWS/appServices/aws-paaS.js, + line 271

diff --git a/docs/AWS_security_aws-IAM.js.html b/docs/AWS_security_aws-IAM.js.html new file mode 100644 index 00000000..a5171001 --- /dev/null +++ b/docs/AWS_security_aws-IAM.js.html @@ -0,0 +1,301 @@ + + + + + + AWS/security/aws-IAM.js + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+
+

Source

+

AWS/security/aws-IAM.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a IAM object
+ * @category AWS
+ */
+class AWS_IAM {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._iAM = new this._AWS.IAM({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the attachGroupPolicy function of IAM
+   * @param {AttachGroupPolicyRequest} params - Data required for attachGroupPolicy
+   * @returns {Promise<attachGroupPolicyResponse>}
+   */
+  attachGroupPolicy(params) {
+    return new Promise((resolve, reject) => {
+      this._iAM.attachGroupPolicy(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the createGroup function of IAM
+   * @param {CreateGroupRequest} params - Data required for createGroup
+   * @returns {Promise<createGroupResponse>}
+   */
+  createGroup(params) {
+    return new Promise((resolve, reject) => {
+      this._iAM.createGroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteGroup function of IAM
+   * @param {DeleteGroupRequest} params - Data required for deleteGroup
+   * @returns {Promise<deleteGroupResponse>}
+   */
+  deleteGroup(params) {
+    return new Promise((resolve, reject) => {
+      this._iAM.deleteGroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the detachGroupPolicy function of IAM
+   * @param {DetachGroupPolicyRequest} params - Data required for detachGroupPolicy
+   * @returns {Promise<detachGroupPolicyResponse>}
+   */
+  detachGroupPolicy(params) {
+    return new Promise((resolve, reject) => {
+      this._iAM.detachGroupPolicy(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the getGroup function of IAM
+   * @param {GetGroupRequest} params - Data required for getGroup
+   * @returns {Promise<getGroupResponse>}
+   */
+  describe(params) {
+    return new Promise((resolve, reject) => {
+      this._iAM.getGroup(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_IAM;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_storage_aws-archivalStorage.js.html b/docs/AWS_storage_aws-archivalStorage.js.html new file mode 100644 index 00000000..fca18ed7 --- /dev/null +++ b/docs/AWS_storage_aws-archivalStorage.js.html @@ -0,0 +1,301 @@ + + + + + + AWS/storage/aws-archivalStorage.js + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+
+

Source

+

AWS/storage/aws-archivalStorage.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Glacier object
+ * @category AWS
+ */
+class AWS_ArchivalStorage {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._glacier = new this._AWS.Glacier({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createVault function of Glacier
+   * @param {CreateVaultInput} params - Data required for createVault
+   * @returns {Promise<createVaultResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._glacier.createVault(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteArchive function of Glacier
+   * @param {DeleteArchiveInput} params - Data required for deleteArchive
+   * @returns {Promise<deleteArchiveResponse>}
+   */
+  deleteFiles(params) {
+    return new Promise((resolve, reject) => {
+      this._glacier.deleteArchive(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteVault function of Glacier
+   * @param {DeleteVaultInput} params - Data required for deleteVault
+   * @returns {Promise<deleteVaultResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._glacier.deleteVault(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the initiateMultipartUpload function of Glacier
+   * @param {InitiateMultipartUploadInput} params - Data required for initiateMultipartUpload
+   * @returns {Promise<initiateMultipartUploadResponse>}
+   */
+  upload(params) {
+    return new Promise((resolve, reject) => {
+      this._glacier.initiateMultipartUpload(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listParts function of Glacier
+   * @param {ListPartsInput} params - Data required for listParts
+   * @returns {Promise<listPartsResponse>}
+   */
+  list(params) {
+    return new Promise((resolve, reject) => {
+      this._glacier.listParts(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_ArchivalStorage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_storage_aws-blockStorage.js.html b/docs/AWS_storage_aws-blockStorage.js.html new file mode 100644 index 00000000..05c1f074 --- /dev/null +++ b/docs/AWS_storage_aws-blockStorage.js.html @@ -0,0 +1,285 @@ + + + + + + AWS/storage/aws-blockStorage.js + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+
+

Source

+

AWS/storage/aws-blockStorage.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a EC2 object
+ * @category AWS
+ */
+class AWS_BlockStorage {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._eC2 = new this._AWS.EC2({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createVolume function of EC2
+   * @param {CreateVolumeRequest} params - Data required for createVolume
+   * @returns {Promise<createVolumeResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.createVolume(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteVolume function of EC2
+   * @param {DeleteVolumeRequest} params - Data required for deleteVolume
+   * @returns {Promise<deleteVolumeResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.deleteVolume(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeVolumeAttribute function of EC2
+   * @param {DescribeVolumeAttributeRequest} params - Data required for describeVolumeAttribute
+   * @returns {Promise<describeVolumeAttributeResponse>}
+   */
+  describe(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.describeVolumeAttribute(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the describeVolumes function of EC2
+   * @param {DescribeVolumesRequest} params - Data required for describeVolumes
+   * @returns {Promise<describeVolumesResponse>}
+   */
+  list(params) {
+    return new Promise((resolve, reject) => {
+      this._eC2.describeVolumes(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_BlockStorage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/AWS_storage_aws-storageBucket.js.html b/docs/AWS_storage_aws-storageBucket.js.html new file mode 100644 index 00000000..8520c1f3 --- /dev/null +++ b/docs/AWS_storage_aws-storageBucket.js.html @@ -0,0 +1,300 @@ + + + + + + AWS/storage/aws-storageBucket.js + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+
+
+

Source

+

AWS/storage/aws-storageBucket.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a S3 object
+ * @category AWS
+ */
+class AWS_StorageBucket {
+  /**
+   *
+   * @param {module} aws AWS SDK
+   * @param {object} options SDK options
+   */
+  constructor(aws, options) {
+    this._AWS = aws;
+    this._apiVersion = options.apiVersion;
+    this._s3 = new this._AWS.S3({
+      apiVersion: this._apiVersion
+    });
+  }
+  /**
+   * Trigers the createBucket function of S3
+   * @param {CreateBucketRequest} params - Data required for createBucket
+   * @returns {Promise<createBucketResponse>}
+   */
+  create(params) {
+    return new Promise((resolve, reject) => {
+      this._s3.createBucket(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteBucket function of S3
+   * @param {DeleteBucketRequest} params - Data required for deleteBucket
+   * @returns {Promise<deleteBucketResponse>}
+   */
+  delete(params) {
+    return new Promise((resolve, reject) => {
+      this._s3.deleteBucket(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the deleteObjects function of S3
+   * @param {DeleteObjectsRequest} params - Data required for deleteObjects
+   * @returns {Promise<deleteObjectsResponse>}
+   */
+  deleteFiles(params) {
+    return new Promise((resolve, reject) => {
+      this._s3.deleteObjects(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the listBuckets function of S3
+   * @returns {Promise<listBucketsResponse>}
+   */
+  list() {
+    return new Promise((resolve, reject) => {
+      this._s3.listBuckets((error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+  /**
+   * Trigers the uploadPart function of S3
+   * @param {UploadPartRequest} params - Data required for uploadPart
+   * @returns {Promise<uploadPartResponse>}
+   */
+  upload(params) {
+    return new Promise((resolve, reject) => {
+      this._s3.uploadPart(params, (error, data) => {
+        if (error) {
+          reject(error);
+        } else {
+          resolve(data);
+        }
+      });
+    });
+  }
+}
+module.exports = AWS_StorageBucket;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_BlockStorage.html b/docs/Azure_BlockStorage.html index 0c93076e..6d495019 100644 --- a/docs/Azure_BlockStorage.html +++ b/docs/Azure_BlockStorage.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 12 @@ -333,15 +348,16 @@

Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 23 @@ -449,15 +465,16 @@

Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 54 @@ -565,15 +582,16 @@

Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 85 @@ -651,15 +669,16 @@

Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 114 @@ -781,15 +800,16 @@

Parameters:

View Source - Azure/azure-blockStorage.jsAzure/storage/azure-blockStorage.js, - line 144 diff --git a/docs/Azure_ComputeInstance.html b/docs/Azure_ComputeInstance.html index 6fdd2e7c..c87775b1 100644 --- a/docs/Azure_ComputeInstance.html +++ b/docs/Azure_ComputeInstance.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -213,15 +227,17 @@
Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 12 @@ -334,15 +350,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 23 @@ -450,15 +467,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 177 @@ -552,15 +570,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 53 @@ -668,15 +687,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 146 @@ -784,15 +804,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 84 @@ -900,15 +921,16 @@

Parameters:

View Source - Azure/azure-computeInstance.jsAzure/compute/azure-computeInstance.js, - line 115 diff --git a/docs/Azure_Container.html b/docs/Azure_Container.html index aaa2b494..56af419e 100644 --- a/docs/Azure_Container.html +++ b/docs/Azure_Container.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,14 +225,17 @@
Parameters:

- View Source - Azure/azure-container.jsAzure/compute/azure-container.js, - line 12 @@ -333,14 +350,16 @@

Parameters:

- View Source - Azure/azure-container.jsAzure/compute/azure-container.js, - line 23 @@ -450,14 +469,16 @@

Parameters:

- View Source - Azure/azure-container.jsAzure/compute/azure-container.js, - line 64 @@ -565,14 +586,16 @@

Parameters:

- View Source - Azure/azure-container.jsAzure/compute/azure-container.js, - line 95 @@ -649,14 +672,17 @@

Parameters:

- View Source - Azure/azure-container.jsAzure/compute/azure-container.js, - line 124 diff --git a/docs/Azure_DNS.html b/docs/Azure_DNS.html index 6d4dde4a..742701f7 100644 --- a/docs/Azure_DNS.html +++ b/docs/Azure_DNS.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,14 +225,18 @@
Parameters:

- View Source - Azure/azure-DNS.jsAzure/network/azure-DNS.js, - line 12 + line 12

@@ -359,14 +377,16 @@
Parameters:

- View Source - Azure/azure-DNS.jsAzure/network/azure-DNS.js, - line 115 + line 115

@@ -484,14 +504,16 @@
Parameters:

- View Source - Azure/azure-DNS.jsAzure/network/azure-DNS.js, - line 23 + line 23

@@ -596,14 +618,16 @@
Parameters:

- View Source - Azure/azure-DNS.jsAzure/network/azure-DNS.js, - line 54 + line 54

@@ -678,14 +702,16 @@
Parameters:

- View Source - Azure/azure-DNS.jsAzure/network/azure-DNS.js, - line 83 + line 83

diff --git a/docs/Azure_KeyManagement.html b/docs/Azure_KeyManagement.html index e1906b8b..53564519 100644 --- a/docs/Azure_KeyManagement.html +++ b/docs/Azure_KeyManagement.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,17 @@
Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 12 @@ -332,15 +348,16 @@

Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 23 @@ -448,15 +465,16 @@

Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 54 @@ -564,15 +582,16 @@

Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 117 @@ -708,15 +727,16 @@

Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 150 @@ -837,15 +857,16 @@

Parameters:

View Source - Azure/azure-keyManagement.jsAzure/management/azure-keyManagement.js, - line 86 diff --git a/docs/Azure_Kubernetes.html b/docs/Azure_Kubernetes.html index 2cc2c9b7..7a539b89 100644 --- a/docs/Azure_Kubernetes.html +++ b/docs/Azure_Kubernetes.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 12 @@ -333,14 +348,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 23 @@ -477,14 +495,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 182 @@ -593,14 +614,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 59 @@ -722,14 +746,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 226 @@ -836,14 +863,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 149 @@ -963,14 +993,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 268 @@ -1047,14 +1080,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 120 @@ -1161,14 +1197,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 304 @@ -1279,14 +1318,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 335 @@ -1406,14 +1448,17 @@

Parameters:

- View Source - Azure/azure-kubernetes.jsAzure/compute/azure-kubernetes.js, - line 91 diff --git a/docs/Azure_LoadBalancer.html b/docs/Azure_LoadBalancer.html index 72212aa4..59c00476 100644 --- a/docs/Azure_LoadBalancer.html +++ b/docs/Azure_LoadBalancer.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 12 @@ -332,15 +347,16 @@

Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 119 @@ -461,15 +477,16 @@

Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 23 @@ -577,15 +594,16 @@

Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 59 @@ -693,15 +711,16 @@

Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 160 @@ -795,15 +814,16 @@

Parameters:

View Source - Azure/azure-loadBalancer.jsAzure/network/azure-loadBalancer.js, - line 89 diff --git a/docs/Azure_Monitoring.html b/docs/Azure_Monitoring.html index b02a85ec..1effdb62 100644 --- a/docs/Azure_Monitoring.html +++ b/docs/Azure_Monitoring.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 12 @@ -331,14 +346,17 @@

Parameters:

- View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 23 @@ -445,14 +463,17 @@

Parameters:

- View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 54 @@ -559,14 +580,17 @@

Parameters:

- View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 149 @@ -643,14 +667,17 @@

Parameters:

- View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 120 @@ -772,14 +799,17 @@

Parameters:

- View Source - Azure/azure-monitoring.jsAzure/management/azure-monitoring.js, - line 86 diff --git a/docs/Azure_NoSql.html b/docs/Azure_NoSql.html index 0b300da6..8a64a956 100644 --- a/docs/Azure_NoSql.html +++ b/docs/Azure_NoSql.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,14 +225,16 @@
Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 12 @@ -347,14 +363,18 @@

Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 24 + line 24

@@ -472,14 +492,18 @@
Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 68 + line 68

@@ -597,14 +621,16 @@
Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 181 @@ -711,14 +737,16 @@

Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 104 @@ -859,14 +887,16 @@

Parameters:

- View Source - Azure/azure-noSql.jsAzure/database/azure-noSql.js, - line 137 diff --git a/docs/Azure_PaaS.html b/docs/Azure_PaaS.html new file mode 100644 index 00000000..2c2bae2a --- /dev/null +++ b/docs/Azure_PaaS.html @@ -0,0 +1,1764 @@ + + + + + + Azure_PaaS + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Class

+

Azure_PaaS

+
+ +
+
+

+ Azure_PaaS(azureRestSdk) +

+ +
+

Class to create a PaaS object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new Azure_PaaS(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
azureRestSdk + module + +

Azure Rest SDK

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + checkDNSAvailability(optionsopt) + → {Promise.<checkAvailabilityResponse>} + +

+ +
+

+ Trigers the checkAvailability function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 368 + +

+
+ +
+
+
+
+
+ + + Promise.<checkAvailabilityResponse> +
+
+
+
+
+ +
+

+ # + + + create(resourceGroupName, name, siteEnvelope, optionsopt) + → {Promise.<createOrUpdateResponse>} + +

+ +
+

Trigers the createOrUpdate function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
siteEnvelope + TypeReference + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 23 + +

+
+ +
+
+
+
+
+ + + Promise.<createOrUpdateResponse> +
+
+
+
+
+ +
+

+ # + + + createConfigTemplate(resourceGroupName, name, siteEnvelope, slot, + optionsopt) + → {Promise.<createOrUpdateSlotResponse>} + +

+ +
+

+ Trigers the createOrUpdateSlot function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
siteEnvelope + TypeReference + +

Mandatory parameter

+
slot + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 263 + +

+
+ +
+
+
+
+
+ + + Promise.<createOrUpdateSlotResponse> +
+
+
+
+
+ +
+

+ # + + + createEnvironment(resourceGroupName, name, hostingEnvironmentEnvelope, + optionsopt) + → {Promise.<createOrUpdateResponse>} + +

+ +
+

Trigers the createOrUpdate function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
+ hostingEnvironmentEnvelope + + TypeReference + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 178 + +

+
+ +
+
+
+
+
+ + + Promise.<createOrUpdateResponse> +
+
+
+
+
+ +
+

+ # + + + delete(resourceGroupName, name, optionsopt) + → {Promise.<deleteMethodResponse>} + +

+ +
+

Trigers the deleteMethod function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 115 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteMethodResponse> +
+
+
+
+
+ +
+

+ # + + + deleteConfigTemplate(resourceGroupName, name, slot, optionsopt) + → {Promise.<deleteSlotResponse>} + +

+ +
+

Trigers the deleteSlot function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
slot + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 339 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteSlotResponse> +
+
+
+
+
+ +
+

+ # + + + describe(resourceGroupName, name, optionsopt) + → {Promise.<getResponse>} + +

+ +
+

Trigers the get function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 86 + +

+
+ +
+
+
+
+
+ + + Promise.<getResponse> +
+
+
+
+
+ +
+

+ # + + + describeConfigSettings(resourceGroupName, name, slot, optionsopt) + → {Promise.<getSlotResponse>} + +

+ +
+

Trigers the getSlot function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
slot + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 307 + +

+
+ +
+
+
+
+
+ + + Promise.<getSlotResponse> +
+
+
+
+
+ +
+

+ # + + + restart(resourceGroupName, name, optionsopt) + → {Promise.<restartResponse>} + +

+ +
+

Trigers the restart function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 146 + +

+
+ +
+
+
+
+
+ + + Promise.<restartResponse> +
+
+
+
+
+ +
+

+ # + + + terminateEnvironment(resourceGroupName, name, optionsopt) + → {Promise.<deleteMethodResponse>} + +

+ +
+

Trigers the deleteMethod function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 397 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteMethodResponse> +
+
+
+
+
+ +
+

+ # + + + update(resourceGroupName, name, siteEnvelope, optionsopt) + → {Promise.<updateResponse>} + +

+ +
+

Trigers the update function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
siteEnvelope + TypeReference + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 55 + +

+
+ +
+
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+ +
+

+ # + + + updateEnvironment(resourceGroupName, name, hostingEnvironmentEnvelope, + optionsopt) + → {Promise.<updateResponse>} + +

+ +
+

Trigers the update function of appservice

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDescription
resourceGroupName + StringKeyword + +

Mandatory parameter

+
name + StringKeyword + +

Mandatory parameter

+
+ hostingEnvironmentEnvelope + + TypeReference + +

Mandatory parameter

+
options + TypeReference + <optional>
+

Optional parameter

+
+
+ +
+

+ View Source + + Azure/appServices/azure-paaS.js, + line 220 + +

+
+ +
+
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_RDBMS.html b/docs/Azure_RDBMS.html index 5f8cb94a..32d06d40 100644 --- a/docs/Azure_RDBMS.html +++ b/docs/Azure_RDBMS.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,14 +225,16 @@
Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 12 @@ -344,14 +360,18 @@

Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 24 + line 24

@@ -484,14 +504,16 @@
Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 106 @@ -611,14 +633,18 @@

Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 68 + line 68

@@ -751,14 +777,16 @@
Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 151 @@ -896,14 +924,16 @@

Parameters:

- View Source - Azure/azure-RDBMS.jsAzure/database/azure-RDBMS.js, - line 196 diff --git a/docs/Azure_StorageBucket.html b/docs/Azure_StorageBucket.html index 349124dd..f2d08628 100644 --- a/docs/Azure_StorageBucket.html +++ b/docs/Azure_StorageBucket.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - Azure/azure-storageBucket.jsAzure/storage/azure-storageBucket.js, - line 12 @@ -348,15 +363,16 @@

Parameters:

View Source - Azure/azure-storageBucket.jsAzure/storage/azure-storageBucket.js, - line 24 @@ -477,15 +493,16 @@

Parameters:

View Source - Azure/azure-storageBucket.jsAzure/storage/azure-storageBucket.js, - line 68 @@ -593,15 +610,16 @@

Parameters:

View Source - Azure/azure-storageBucket.jsAzure/storage/azure-storageBucket.js, - line 104 diff --git a/docs/Azure_appServices_azure-paaS.js.html b/docs/Azure_appServices_azure-paaS.js.html new file mode 100644 index 00000000..c15b297a --- /dev/null +++ b/docs/Azure_appServices_azure-paaS.js.html @@ -0,0 +1,623 @@ + + + + + + Azure/appServices/azure-paaS.js + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Source

+

Azure/appServices/azure-paaS.js

+
+ +
+
+
const { WebSiteManagementClient } = require("@azure/arm-appservice");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a PaaS object
+ * @category Azure
+ */
+class Azure_PaaS {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} siteEnvelope - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(resourceGroupName, name, siteEnvelope, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .createOrUpdate(resourceGroupName, name, siteEnvelope, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} siteEnvelope - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  update(resourceGroupName, name, siteEnvelope, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .update(resourceGroupName, name, siteEnvelope, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describe(resourceGroupName, name, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps.get(resourceGroupName, name, options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, name, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .deleteMethod(resourceGroupName, name, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the restart function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<restartResponse>}
+   */
+  restart(resourceGroupName, name, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .restart(resourceGroupName, name, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createOrUpdate function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} hostingEnvironmentEnvelope - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createEnvironment(
+    resourceGroupName,
+    name,
+    hostingEnvironmentEnvelope,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.appServiceEnvironments
+            .createOrUpdate(
+              resourceGroupName,
+              name,
+              hostingEnvironmentEnvelope,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} hostingEnvironmentEnvelope - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  updateEnvironment(
+    resourceGroupName,
+    name,
+    hostingEnvironmentEnvelope,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.appServiceEnvironments
+            .update(
+              resourceGroupName,
+              name,
+              hostingEnvironmentEnvelope,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createOrUpdateSlot function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} siteEnvelope - Mandatory parameter
+   * @param {StringKeyword} slot - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateSlotResponse>}
+   */
+  createConfigTemplate(
+    resourceGroupName,
+    name,
+    siteEnvelope,
+    slot,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .createOrUpdateSlot(
+              resourceGroupName,
+              name,
+              siteEnvelope,
+              slot,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getSlot function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {StringKeyword} slot - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getSlotResponse>}
+   */
+  describeConfigSettings(resourceGroupName, name, slot, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .getSlot(resourceGroupName, name, slot, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteSlot function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {StringKeyword} slot - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteSlotResponse>}
+   */
+  deleteConfigTemplate(resourceGroupName, name, slot, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.webApps
+            .deleteSlot(resourceGroupName, name, slot, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the checkAvailability function of appservice
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<checkAvailabilityResponse>}
+   */
+  checkDNSAvailability(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.domains.checkAvailability(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of appservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  terminateEnvironment(resourceGroupName, name, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new WebSiteManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.appServiceEnvironments
+            .deleteMethod(resourceGroupName, name, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_PaaS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_compute_azure-computeInstance.js.html b/docs/Azure_compute_azure-computeInstance.js.html new file mode 100644 index 00000000..8c59194c --- /dev/null +++ b/docs/Azure_compute_azure-computeInstance.js.html @@ -0,0 +1,403 @@ + + + + + + Azure/compute/azure-computeInstance.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/compute/azure-computeInstance.js

+
+ +
+
+
const { ComputeManagementClient } = require("@azure/arm-compute");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a ComputeInstance object
+ * @category Azure
+ */
+class Azure_ComputeInstance {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vmName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(resourceGroupName, vmName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .createOrUpdate(resourceGroupName, vmName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  list(resourceGroupName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .list(resourceGroupName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the start function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vmName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<startResponse>}
+   */
+  start(resourceGroupName, vmName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .start(resourceGroupName, vmName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the powerOff function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vmName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<powerOffResponse>}
+   */
+  stop(resourceGroupName, vmName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .powerOff(resourceGroupName, vmName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the restart function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vmName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<restartResponse>}
+   */
+  reboot(resourceGroupName, vmName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .restart(resourceGroupName, vmName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vmName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  destroy(resourceGroupName, vmName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.virtualMachines
+            .deleteMethod(resourceGroupName, vmName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_ComputeInstance;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_compute_azure-container.js.html b/docs/Azure_compute_azure-container.js.html new file mode 100644 index 00000000..6fa5a6ad --- /dev/null +++ b/docs/Azure_compute_azure-container.js.html @@ -0,0 +1,348 @@ + + + + + + Azure/compute/azure-container.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/compute/azure-container.js

+
+ +
+
+
const { ContainerServiceClient } = require("@azure/arm-containerservice");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Container object
+ * @category Azure
+ */
+class Azure_Container {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} containerServiceName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(
+    resourceGroupName,
+    containerServiceName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.containerServices
+            .createOrUpdate(
+              resourceGroupName,
+              containerServiceName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} containerServiceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, containerServiceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.containerServices
+            .deleteMethod(resourceGroupName, containerServiceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} containerServiceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describe(resourceGroupName, containerServiceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.containerServices
+            .get(resourceGroupName, containerServiceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of containerservice
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  list(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.containerServices.list(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_Container;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_compute_azure-kubernetes.js.html b/docs/Azure_compute_azure-kubernetes.js.html new file mode 100644 index 00000000..f4d8069e --- /dev/null +++ b/docs/Azure_compute_azure-kubernetes.js.html @@ -0,0 +1,561 @@ + + + + + + Azure/compute/azure-kubernetes.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/compute/azure-kubernetes.js

+
+ +
+
+
const { ContainerServiceClient } = require("@azure/arm-containerservice");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Kubernetes object
+ * @category Azure
+ */
+class Azure_Kubernetes {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(resourceGroupName, resourceName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters
+            .createOrUpdate(
+              resourceGroupName,
+              resourceName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, resourceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters
+            .deleteMethod(resourceGroupName, resourceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateTags function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateTagsResponse>}
+   */
+  updateTags(resourceGroupName, resourceName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters
+            .updateTags(resourceGroupName, resourceName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of containerservice
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  listClusters(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters.list(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describeCluster(resourceGroupName, resourceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters
+            .get(resourceGroupName, resourceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createOrUpdate function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {StringKeyword} agentPoolName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createNodeGroup(
+    resourceGroupName,
+    resourceName,
+    agentPoolName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.agentPools
+            .createOrUpdate(
+              resourceGroupName,
+              resourceName,
+              agentPoolName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {StringKeyword} agentPoolName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  deleteNodegroup(
+    resourceGroupName,
+    resourceName,
+    agentPoolName,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.agentPools
+            .deleteMethod(
+              resourceGroupName,
+              resourceName,
+              agentPoolName,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {StringKeyword} agentPoolName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describeNodeGroup(
+    resourceGroupName,
+    resourceName,
+    agentPoolName,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.agentPools
+            .get(resourceGroupName, resourceName, agentPoolName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  listNodegroups(resourceGroupName, resourceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.agentPools
+            .list(resourceGroupName, resourceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the rotateClusterCertificates function of containerservice
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} resourceName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<rotateClusterCertificatesResponse>}
+   */
+  updateConfig(resourceGroupName, resourceName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ContainerServiceClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedClusters
+            .rotateClusterCertificates(resourceGroupName, resourceName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_Kubernetes;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_database_azure-RDBMS.js.html b/docs/Azure_database_azure-RDBMS.js.html new file mode 100644 index 00000000..97bb3205 --- /dev/null +++ b/docs/Azure_database_azure-RDBMS.js.html @@ -0,0 +1,434 @@ + + + + + + Azure/database/azure-RDBMS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/database/azure-RDBMS.js

+
+ +
+
+
const { SqlManagementClient } = require("@azure/arm-sql");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a RDBMS object
+ * @category Azure
+ */
+class Azure_RDBMS {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of sql
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} serverName - Mandatory parameter
+   * @param {StringKeyword} databaseName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createDatabse(
+    resourceGroupName,
+    serverName,
+    databaseName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new SqlManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.databases
+            .createOrUpdate(
+              resourceGroupName,
+              serverName,
+              databaseName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of sql
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} serverName - Mandatory parameter
+   * @param {StringKeyword} databaseName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  deleteDatabase(
+    resourceGroupName,
+    serverName,
+    databaseName,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new SqlManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.databases
+            .deleteMethod(resourceGroupName, serverName, databaseName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the exportMethod function of sql
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} serverName - Mandatory parameter
+   * @param {StringKeyword} databaseName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<exportMethodResponse>}
+   */
+  createSnapshots(
+    resourceGroupName,
+    serverName,
+    databaseName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new SqlManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.databases
+            .exportMethod(
+              resourceGroupName,
+              serverName,
+              databaseName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of sql
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} serverName - Mandatory parameter
+   * @param {StringKeyword} databaseName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  modifyDB(
+    resourceGroupName,
+    serverName,
+    databaseName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new SqlManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.databases
+            .update(
+              resourceGroupName,
+              serverName,
+              databaseName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the completeRestore function of sql
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} managedInstanceName - Mandatory parameter
+   * @param {StringKeyword} databaseName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<completeRestoreResponse>}
+   */
+  restoreDatabase(
+    resourceGroupName,
+    managedInstanceName,
+    databaseName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new SqlManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.managedDatabases
+            .completeRestore(
+              resourceGroupName,
+              managedInstanceName,
+              databaseName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_RDBMS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_database_azure-noSql.js.html b/docs/Azure_database_azure-noSql.js.html new file mode 100644 index 00000000..10d2f42a --- /dev/null +++ b/docs/Azure_database_azure-noSql.js.html @@ -0,0 +1,412 @@ + + + + + + Azure/database/azure-noSql.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/database/azure-noSql.js

+
+ +
+
+
const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a NoSql object
+ * @category Azure
+ */
+class Azure_NoSql {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createUpdateTable function of cosmosdb
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} tableName - Mandatory parameter
+   * @param {TypeReference} createUpdateTableParameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createUpdateTableResponse>}
+   */
+  createCollection(
+    resourceGroupName,
+    accountName,
+    tableName,
+    createUpdateTableParameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new CosmosDBManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.tableResources
+            .createUpdateTable(
+              resourceGroupName,
+              accountName,
+              tableName,
+              createUpdateTableParameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteTable function of cosmosdb
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} tableName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteTableResponse>}
+   */
+  deleteCollection(
+    resourceGroupName,
+    accountName,
+    tableName,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new CosmosDBManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.tableResources
+            .deleteTable(resourceGroupName, accountName, tableName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listTables function of cosmosdb
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listTablesResponse>}
+   */
+  listCollections(resourceGroupName, accountName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new CosmosDBManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.tableResources
+            .listTables(resourceGroupName, accountName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateTableThroughput function of cosmosdb
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} tableName - Mandatory parameter
+   * @param {TypeReference} updateThroughputParameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateTableThroughputResponse>}
+   */
+  setAttribute(
+    resourceGroupName,
+    accountName,
+    tableName,
+    updateThroughputParameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new CosmosDBManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.tableResources
+            .updateTableThroughput(
+              resourceGroupName,
+              accountName,
+              tableName,
+              updateThroughputParameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getTable function of cosmosdb
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} tableName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getTableResponse>}
+   */
+  getAttributes(
+    resourceGroupName,
+    accountName,
+    tableName,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new CosmosDBManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.tableResources
+            .getTable(resourceGroupName, accountName, tableName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_NoSql;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_management_azure-keyManagement.js.html b/docs/Azure_management_azure-keyManagement.js.html new file mode 100644 index 00000000..d3c56150 --- /dev/null +++ b/docs/Azure_management_azure-keyManagement.js.html @@ -0,0 +1,388 @@ + + + + + + Azure/management/azure-keyManagement.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/management/azure-keyManagement.js

+
+ +
+
+
const { KeyVaultManagementClient } = require("@azure/arm-keyvault");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a KeyManagement object
+ * @category Azure
+ */
+class Azure_KeyManagement {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of keyvault
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vaultName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createKey(resourceGroupName, vaultName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new KeyVaultManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.vaults
+            .createOrUpdate(resourceGroupName, vaultName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of keyvault
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vaultName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  deleteKey(resourceGroupName, vaultName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new KeyVaultManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.vaults
+            .deleteMethod(resourceGroupName, vaultName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of keyvault
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vaultName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  update(resourceGroupName, vaultName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new KeyVaultManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.vaults
+            .update(resourceGroupName, vaultName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of keyvault
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vaultName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describeKey(resourceGroupName, vaultName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new KeyVaultManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.vaults
+            .get(resourceGroupName, vaultName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateAccessPolicy function of keyvault
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} vaultName - Mandatory parameter
+   * @param {TypeReference} operationKind - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateAccessPolicyResponse>}
+   */
+  putKeyPolicy(
+    resourceGroupName,
+    vaultName,
+    operationKind,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new KeyVaultManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.vaults
+            .updateAccessPolicy(
+              resourceGroupName,
+              vaultName,
+              operationKind,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_KeyManagement;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_management_azure-monitoring.js.html b/docs/Azure_management_azure-monitoring.js.html new file mode 100644 index 00000000..d9853981 --- /dev/null +++ b/docs/Azure_management_azure-monitoring.js.html @@ -0,0 +1,375 @@ + + + + + + Azure/management/azure-monitoring.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/management/azure-monitoring.js

+
+ +
+
+
const { MonitorManagementClient } = require("@azure/arm-monitor");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Monitoring object
+ * @category Azure
+ */
+class Azure_Monitoring {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of monitor
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} ruleName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createAlarm(resourceGroupName, ruleName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new MonitorManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.alertRules
+            .createOrUpdate(resourceGroupName, ruleName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of monitor
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} ruleName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  deleteAlarm(resourceGroupName, ruleName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new MonitorManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.alertRules
+            .deleteMethod(resourceGroupName, ruleName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of monitor
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} ruleName - Mandatory parameter
+   * @param {TypeReference} alertRulesResource - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  updateAlarm(
+    resourceGroupName,
+    ruleName,
+    alertRulesResource,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new MonitorManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.alertRules
+            .update(resourceGroupName, ruleName, alertRulesResource, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listBySubscription function of monitor
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listBySubscriptionResponse>}
+   */
+  listAlarms(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new MonitorManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.alertRules.listBySubscription(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of monitor
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} ruleName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  getMetricData(resourceGroupName, ruleName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new MonitorManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.alertRules
+            .get(resourceGroupName, ruleName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_Monitoring;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_network_azure-DNS.js.html b/docs/Azure_network_azure-DNS.js.html new file mode 100644 index 00000000..c74b9043 --- /dev/null +++ b/docs/Azure_network_azure-DNS.js.html @@ -0,0 +1,355 @@ + + + + + + Azure/network/azure-DNS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/network/azure-DNS.js

+
+ +
+
+
const { DnsManagementClient } = require("@azure/arm-dns");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a DNS object
+ * @category Azure
+ */
+class Azure_DNS {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of dns
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} zoneName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  createZone(resourceGroupName, zoneName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new DnsManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.zones
+            .createOrUpdate(resourceGroupName, zoneName, parameters, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of dns
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} zoneName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  deleteZone(resourceGroupName, zoneName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new DnsManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.zones
+            .deleteMethod(resourceGroupName, zoneName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of dns
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  listZones(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new DnsManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.zones.list(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createOrUpdate function of dns
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} zoneName - Mandatory parameter
+   * @param {StringKeyword} relativeRecordSetName - Mandatory parameter
+   * @param {TypeReference} recordType - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  changeRecordSets(
+    resourceGroupName,
+    zoneName,
+    relativeRecordSetName,
+    recordType,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new DnsManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.recordSets
+            .createOrUpdate(
+              resourceGroupName,
+              zoneName,
+              relativeRecordSetName,
+              recordType,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_DNS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_network_azure-loadBalancer.js.html b/docs/Azure_network_azure-loadBalancer.js.html new file mode 100644 index 00000000..bd3bf7d5 --- /dev/null +++ b/docs/Azure_network_azure-loadBalancer.js.html @@ -0,0 +1,386 @@ + + + + + + Azure/network/azure-loadBalancer.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/network/azure-loadBalancer.js

+
+ +
+
+
const { NetworkManagementClient } = require("@azure/arm-network");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a LoadBalancer object
+ * @category Azure
+ */
+class Azure_LoadBalancer {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of network
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} loadBalancerName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(resourceGroupName, loadBalancerName, parameters, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new NetworkManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.loadBalancers
+            .createOrUpdate(
+              resourceGroupName,
+              loadBalancerName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of network
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} loadBalancerName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, loadBalancerName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new NetworkManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.loadBalancers
+            .deleteMethod(resourceGroupName, loadBalancerName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of network
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  list(resourceGroupName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new NetworkManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.loadBalancers.list(resourceGroupName, options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateTags function of network
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} loadBalancerName - Mandatory parameter
+   * @param {TypeReference} parameters - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateTagsResponse>}
+   */
+  addTags(
+    resourceGroupName,
+    loadBalancerName,
+    parameters,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new NetworkManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.loadBalancers
+            .updateTags(
+              resourceGroupName,
+              loadBalancerName,
+              parameters,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of network
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} loadBalancerName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describe(resourceGroupName, loadBalancerName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new NetworkManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.loadBalancers
+            .get(resourceGroupName, loadBalancerName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_LoadBalancer;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_paas.html b/docs/Azure_paas.html index 0849a0ef..2c2bae2a 100644 --- a/docs/Azure_paas.html +++ b/docs/Azure_paas.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,14 +225,17 @@
Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 12 @@ -288,14 +305,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 368 @@ -416,14 +435,18 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 23 + line 23

@@ -557,14 +580,16 @@
Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 263 @@ -686,14 +711,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 178 @@ -800,14 +827,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 115 @@ -928,14 +957,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 339 @@ -1042,14 +1073,18 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 86 + line 86

@@ -1168,14 +1203,16 @@
Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 307 @@ -1282,14 +1319,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 146 @@ -1396,14 +1435,16 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 397 @@ -1524,14 +1565,18 @@

Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 55 + line 55

@@ -1651,14 +1696,16 @@
Parameters:

- View Source - Azure/azure-paaS.jsAzure/appServices/azure-paaS.js, - line 220 diff --git a/docs/Azure_storage_azure-blockStorage.js.html b/docs/Azure_storage_azure-blockStorage.js.html new file mode 100644 index 00000000..ad929f47 --- /dev/null +++ b/docs/Azure_storage_azure-blockStorage.js.html @@ -0,0 +1,370 @@ + + + + + + Azure/storage/azure-blockStorage.js + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Source

+

Azure/storage/azure-blockStorage.js

+
+ +
+
+
const { ComputeManagementClient } = require("@azure/arm-compute");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a BlockStorage object
+ * @category Azure
+ */
+class Azure_BlockStorage {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the createOrUpdate function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} diskName - Mandatory parameter
+   * @param {TypeReference} disk - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createOrUpdateResponse>}
+   */
+  create(resourceGroupName, diskName, disk, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.disks
+            .createOrUpdate(resourceGroupName, diskName, disk, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} diskName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, diskName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.disks
+            .deleteMethod(resourceGroupName, diskName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the get function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} diskName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getResponse>}
+   */
+  describe(resourceGroupName, diskName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.disks
+            .get(resourceGroupName, diskName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of compute
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  list(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.disks.list(options).then(result => {
+            resolve(result);
+          });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the update function of compute
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} diskName - Mandatory parameter
+   * @param {TypeReference} disk - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<updateResponse>}
+   */
+  update(resourceGroupName, diskName, disk, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new ComputeManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.disks
+            .update(resourceGroupName, diskName, disk, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_BlockStorage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Azure_storage_azure-storageBucket.js.html b/docs/Azure_storage_azure-storageBucket.js.html new file mode 100644 index 00000000..ad7ea856 --- /dev/null +++ b/docs/Azure_storage_azure-storageBucket.js.html @@ -0,0 +1,330 @@ + + + + + + Azure/storage/azure-storageBucket.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Azure/storage/azure-storageBucket.js

+
+ +
+
+
const { StorageManagementClient } = require("@azure/arm-storage");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a StorageBucket object
+ * @category Azure
+ */
+class Azure_StorageBucket {
+  /**
+   *
+   * @param {module} azureRestSdk Azure Rest SDK
+   */
+  constructor(azureRestSdk) {
+    this._azureRestSdk = azureRestSdk;
+  }
+  /**
+   * Trigers the create function of storage
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} containerName - Mandatory parameter
+   * @param {TypeReference} blobContainer - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<createResponse>}
+   */
+  create(
+    resourceGroupName,
+    accountName,
+    containerName,
+    blobContainer,
+    options = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new StorageManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.blobContainers
+            .create(
+              resourceGroupName,
+              accountName,
+              containerName,
+              blobContainer,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteMethod function of storage
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {StringKeyword} containerName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteMethodResponse>}
+   */
+  delete(resourceGroupName, accountName, containerName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new StorageManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.blobContainers
+            .deleteMethod(
+              resourceGroupName,
+              accountName,
+              containerName,
+              options
+            )
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the list function of storage
+   * @param {StringKeyword} resourceGroupName - Mandatory parameter
+   * @param {StringKeyword} accountName - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<listResponse>}
+   */
+  list(resourceGroupName, accountName, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._azureRestSdk
+        .loginWithServicePrincipalSecretWithAuthResponse(
+          process.env.AZURE_CLIENT_ID,
+          process.env.AZURE_CLIENT_SECRET,
+          process.env.AZURE_TENANT_ID
+        )
+        .then(authres => {
+          const client = new StorageManagementClient(
+            authres.credentials,
+            process.env.AZURE_SUBSCRIPTION_ID
+          );
+          client.blobContainers
+            .list(resourceGroupName, accountName, options)
+            .then(result => {
+              resolve(result);
+            });
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = Azure_StorageBucket;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_BlockStorage.html b/docs/DO_BlockStorage.html new file mode 100644 index 00000000..fdb9a525 --- /dev/null +++ b/docs/DO_BlockStorage.html @@ -0,0 +1,616 @@ + + + + + + DO_BlockStorage + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_BlockStorage

+
+ +
+
+

+ DO_BlockStorage(do, options) +

+ +
+

Class to create a Volumes object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_BlockStorage(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/storage/do-blockStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(options) + → {Promise.<createResponse>} + +

+ +
+

Trigers the create function of Volumes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + VolumeCreationOptions + +

Data required for create

+
+
+ +
+

+ View Source + + DO/storage/do-blockStorage.js, + line 35 + +

+
+ +
+
+
+
+
+ + + Promise.<createResponse> +
+
+
+
+
+ +
+

+ # + + + delete(volumeId) + → {Promise.<deleteByIdResponse>} + +

+ +
+

Trigers the deleteById function of Volumes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
volumeId + StringKeyword + +

Data required for deleteById

+
+
+ +
+

+ View Source + + DO/storage/do-blockStorage.js, + line 61 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteByIdResponse> +
+
+
+
+
+ +
+

+ # + + + describe(volumeId) + → {Promise.<getByIdResponse>} + +

+ +
+

Trigers the getById function of Volumes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
volumeId + StringKeyword + +

Data required for getById

+
+
+ +
+

+ View Source + + DO/storage/do-blockStorage.js, + line 48 + +

+
+ +
+
+
+
+
+ + + Promise.<getByIdResponse> +
+
+
+
+
+ +
+

+ # + + + list(region) + → {Promise.<getAllResponse>} + +

+ +
+

Trigers the getAll function of Volumes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
region + StringKeyword + +

Data required for getAll

+
+
+ +
+

+ View Source + + DO/storage/do-blockStorage.js, + line 22 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_ComputeInstance.html b/docs/DO_ComputeInstance.html new file mode 100644 index 00000000..ecdc96d4 --- /dev/null +++ b/docs/DO_ComputeInstance.html @@ -0,0 +1,666 @@ + + + + + + DO_ComputeInstance + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_ComputeInstance

+
+ +
+
+

+ DO_ComputeInstance(do, options) +

+ +
+

Class to create a Droplets object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_ComputeInstance(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/compute/do-computeInstance.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(options) + → {Promise.<createResponse>} + +

+ +
+

Trigers the create function of Droplets

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + DropletCreationRequest + +

Data required for create

+
+
+ +
+

+ View Source + + DO/compute/do-computeInstance.js, + line 43 + +

+
+ +
+
+
+
+
+ + + Promise.<createResponse> +
+
+
+
+
+ +
+

+ # + + + destroy(dropletId) + → {Promise.<deleteByIdResponse>} + +

+ +
+

Trigers the deleteById function of Droplets

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dropletId + StringKeyword + +

Data required for deleteById

+
+
+ +
+

+ View Source + + DO/compute/do-computeInstance.js, + line 56 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteByIdResponse> +
+
+
+
+
+ +
+

+ # + + + list(tagName, includeAll, page, pageSize) + → {Promise.<getAllResponse>} + +

+ +
+

Trigers the getAll function of Droplets

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tagName + StringKeyword + +

Data required for getAll

+
includeAll + BooleanKeyword + +

Data required for getAll

+
page + NumberKeyword + +

Data required for getAll

+
pageSize + NumberKeyword + +

Data required for getAll

+
+
+ +
+

+ View Source + + DO/compute/do-computeInstance.js, + line 25 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllResponse> +
+
+
+
+
+ +
+

+ # + + + stop(dropletId, action) + → {Promise.<requestActionResponse>} + +

+ +
+

Trigers the requestAction function of Droplets

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dropletId + StringKeyword + +

Data required for requestAction

+
action + AnyKeyword + +

Data required for requestAction

+
+
+ +
+

+ View Source + + DO/compute/do-computeInstance.js, + line 70 + +

+
+ +
+
+
+
+
+ + + Promise.<requestActionResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_DNS.html b/docs/DO_DNS.html new file mode 100644 index 00000000..34ef3746 --- /dev/null +++ b/docs/DO_DNS.html @@ -0,0 +1,789 @@ + + + + + + DO_DNS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_DNS

+
+ +
+
+

+ DO_DNS(do, options) +

+ +
+

Class to create a Domains object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_DNS(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + changeRecordSets(domainName, recordId, options) + → {Promise.<updateRecordResponse>} + +

+ +
+

Trigers the updateRecord function of Domains

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
domainName + StringKeyword + +

Data required for updateRecord

+
recordId + StringKeyword + +

Data required for updateRecord

+
options + DomainRecordRequestOptions + +

Data required for updateRecord

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 89 + +

+
+ +
+
+
+
+
+ + + Promise.<updateRecordResponse> +
+
+
+
+
+ +
+

+ # + + + createRecord(domainName, options) + → {Promise.<createRecordResponse>} + +

+ +
+

Trigers the createRecord function of Domains

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
domainName + StringKeyword + +

Data required for createRecord

+
options + DomainRecordRequestOptions + +

Data required for createRecord

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 46 + +

+
+ +
+
+
+
+
+ + + Promise.<createRecordResponse> +
+
+
+
+
+ +
+

+ # + + + deleteRecord(domainName, recordId) + → {Promise.<deleteRecordResponse>} + +

+ +
+

Trigers the deleteRecord function of Domains

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
domainName + StringKeyword + +

Data required for deleteRecord

+
recordId + StringKeyword + +

Data required for deleteRecord

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 74 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteRecordResponse> +
+
+
+
+
+ +
+

+ # + + + getRecord(domainName, recordId) + → {Promise.<getRecordResponse>} + +

+ +
+

Trigers the getRecord function of Domains

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
domainName + StringKeyword + +

Data required for getRecord

+
recordId + StringKeyword + +

Data required for getRecord

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 60 + +

+
+ +
+
+
+
+
+ + + Promise.<getRecordResponse> +
+
+
+
+
+ +
+

+ # + + + getRecords(domainName, tagName, includeAll, page, + pageSize) + → {Promise.<getAllRecordsResponse>} + +

+ +
+

Trigers the getAllRecords function of Domains

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
domainName + StringKeyword + +

Data required for getAllRecords

+
tagName + StringKeyword + +

Data required for getAllRecords

+
includeAll + BooleanKeyword + +

Data required for getAllRecords

+
page + NumberKeyword + +

Data required for getAllRecords

+
pageSize + NumberKeyword + +

Data required for getAllRecords

+
+
+ +
+

+ View Source + + DO/network/do-DNS.js, + line 26 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllRecordsResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_KeyManagement.html b/docs/DO_KeyManagement.html new file mode 100644 index 00000000..3f928109 --- /dev/null +++ b/docs/DO_KeyManagement.html @@ -0,0 +1,656 @@ + + + + + + DO_KeyManagement + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_KeyManagement

+
+ +
+
+

+ DO_KeyManagement(do, options) +

+ +
+

Class to create a Keys object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_KeyManagement(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/management/do-keyManagement.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createKey(addKeyRequest) + → {Promise.<addResponse>} + +

+ +
+

Trigers the add function of Keys

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
addKeyRequest + AddKeyRequest + +

Data required for add

+
+
+ +
+

+ View Source + + DO/management/do-keyManagement.js, + line 56 + +

+
+ +
+
+
+
+
+ + + Promise.<addResponse> +
+
+
+
+
+ +
+

+ # + + + deleteKey(identifier) + → {Promise.<deleteResponse>} + +

+ +
+

Trigers the delete function of Keys

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
identifier + StringKeyword + +

Data required for delete

+
+
+ +
+

+ View Source + + DO/management/do-keyManagement.js, + line 69 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteResponse> +
+
+
+
+
+ +
+

+ # + + + describeKey(keyId) + → {Promise.<getByIdResponse>} + +

+ +
+

Trigers the getById function of Keys

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
keyId + NumberKeyword + +

Data required for getById

+
+
+ +
+

+ View Source + + DO/management/do-keyManagement.js, + line 43 + +

+
+ +
+
+
+
+
+ + + Promise.<getByIdResponse> +
+
+
+
+
+ +
+

+ # + + + list(tagName, includeAll, page, pageSize) + → {Promise.<getAllResponse>} + +

+ +
+

Trigers the getAll function of Keys

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tagName + StringKeyword + +

Data required for getAll

+
includeAll + BooleanKeyword + +

Data required for getAll

+
page + NumberKeyword + +

Data required for getAll

+
pageSize + NumberKeyword + +

Data required for getAll

+
+
+ +
+

+ View Source + + DO/management/do-keyManagement.js, + line 25 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_Kubernetes.html b/docs/DO_Kubernetes.html new file mode 100644 index 00000000..76f9498e --- /dev/null +++ b/docs/DO_Kubernetes.html @@ -0,0 +1,1035 @@ + + + + + + DO_Kubernetes + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_Kubernetes

+
+ +
+
+

+ DO_Kubernetes(do, options) +

+ +
+

Class to create a Kubernetes object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_Kubernetes(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(options) + → {Promise.<createResponse>} + +

+ +
+

Trigers the create function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + NewClusterRequest + +

Data required for create

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 37 + +

+
+ +
+
+
+
+
+ + + Promise.<createResponse> +
+
+
+
+
+ +
+

+ # + + + createNodeGroup(clusterId, nodePool) + → {Promise.<addNodePoolResponse>} + +

+ +
+

Trigers the addNodePool function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for addNodePool

+
nodePool + ClusterNodePool + +

Data required for addNodePool

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 112 + +

+
+ +
+
+
+
+
+ + + Promise.<addNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + delete(clusterId) + → {Promise.<deleteResponse>} + +

+ +
+

Trigers the delete function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for delete

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 63 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteResponse> +
+
+
+
+
+ +
+

+ # + + + deleteNodegroup(clusterId, nodePoolId) + → {Promise.<deleteNodePoolResponse>} + +

+ +
+

Trigers the deleteNodePool function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for deleteNodePool

+
nodePoolId + StringKeyword + +

Data required for deleteNodePool

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 126 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + describeCluster(clusterId) + → {Promise.<getByIdResponse>} + +

+ +
+

Trigers the getById function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for getById

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 50 + +

+
+ +
+
+
+
+
+ + + Promise.<getByIdResponse> +
+
+
+
+
+ +
+

+ # + + + describeNodeGroup(clusterId, nodePoolId) + → {Promise.<getNodePoolByIdResponse>} + +

+ +
+

Trigers the getNodePoolById function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for getNodePoolById

+
nodePoolId + StringKeyword + +

Data required for getNodePoolById

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 98 + +

+
+ +
+
+
+
+
+ + + Promise.<getNodePoolByIdResponse> +
+
+
+
+
+ +
+

+ # + + + listClusters(includeAll, page, pageSize) + → {Promise.<getClustersResponse>} + +

+ +
+

Trigers the getClusters function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
includeAll + BooleanKeyword + +

Data required for getClusters

+
page + NumberKeyword + +

Data required for getClusters

+
pageSize + NumberKeyword + +

Data required for getClusters

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 24 + +

+
+ +
+
+
+
+
+ + + Promise.<getClustersResponse> +
+
+
+
+
+ +
+

+ # + + + listNodegroups(clusterId, includeAll, page, pageSize) + → {Promise.<getNodePoolsResponse>} + +

+ +
+

Trigers the getNodePools function of Kubernetes

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for getNodePools

+
includeAll + BooleanKeyword + +

Data required for getNodePools

+
page + NumberKeyword + +

Data required for getNodePools

+
pageSize + NumberKeyword + +

Data required for getNodePools

+
+
+ +
+

+ View Source + + DO/compute/do-kubernetes.js, + line 79 + +

+
+ +
+
+
+
+
+ + + Promise.<getNodePoolsResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_LoadBalancer.html b/docs/DO_LoadBalancer.html new file mode 100644 index 00000000..efe3a761 --- /dev/null +++ b/docs/DO_LoadBalancer.html @@ -0,0 +1,599 @@ + + + + + + DO_LoadBalancer + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_LoadBalancer

+
+ +
+
+

+ DO_LoadBalancer(do, options) +

+ +
+

Class to create a LoadBalancers object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_LoadBalancer(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/network/do-loadBalancer.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(options) + → {Promise.<createResponse>} + +

+ +
+

Trigers the create function of LoadBalancers

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
options + LoadBalancerCreationOptions + +

Data required for create

+
+
+ +
+

+ View Source + + DO/network/do-loadBalancer.js, + line 22 + +

+
+ +
+
+
+
+
+ + + Promise.<createResponse> +
+
+
+
+
+ +
+

+ # + + + delete(loadBalancerId) + → {Promise.<deleteResponse>} + +

+ +
+

Trigers the delete function of LoadBalancers

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
loadBalancerId + StringKeyword + +

Data required for delete

+
+
+ +
+

+ View Source + + DO/network/do-loadBalancer.js, + line 61 + +

+
+ +
+
+
+
+
+ + + Promise.<deleteResponse> +
+
+
+
+
+ +
+

+ # + + + list() + → {Promise.<getAllResponse>} + +

+ +
+

Trigers the getAll function of LoadBalancers

+
+ +
+

+ View Source + + DO/network/do-loadBalancer.js, + line 34 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllResponse> +
+
+
+
+
+ +
+

+ # + + + update(loadBalancerId, options) + → {Promise.<updateResponse>} + +

+ +
+

Trigers the update function of LoadBalancers

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
loadBalancerId + StringKeyword + +

Data required for update

+
options + AnyKeyword + +

Data required for update

+
+
+ +
+

+ View Source + + DO/network/do-loadBalancer.js, + line 48 + +

+
+ +
+
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_NoSql.html b/docs/DO_NoSql.html new file mode 100644 index 00000000..6a92ae2f --- /dev/null +++ b/docs/DO_NoSql.html @@ -0,0 +1,659 @@ + + + + + + DO_NoSql + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_NoSql

+
+ +
+
+

+ DO_NoSql(do, options) +

+ +
+

Class to create a Databases object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_NoSql(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/database/do-noSql.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createCluster(clusterOptions) + → {Promise.<createClusterResponse>} + +

+ +
+

Trigers the createCluster function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterOptions + DatabaseCreateClusterRequest + +

Data required for createCluster

+
+
+ +
+

+ View Source + + DO/database/do-noSql.js, + line 43 + +

+
+ +
+
+
+
+
+ + + Promise.<createClusterResponse> +
+
+
+
+
+ +
+

+ # + + + getCluster(clusterId) + → {Promise.<getClusterByIdResponse>} + +

+ +
+

Trigers the getClusterById function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for getClusterById

+
+
+ +
+

+ View Source + + DO/database/do-noSql.js, + line 56 + +

+
+ +
+
+
+
+
+ + + Promise.<getClusterByIdResponse> +
+
+
+
+
+ +
+

+ # + + + getClusters(tagName, includeAll, page, pageSize) + → {Promise.<getAllClustersResponse>} + +

+ +
+

Trigers the getAllClusters function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tagName + StringKeyword + +

Data required for getAllClusters

+
includeAll + BooleanKeyword + +

Data required for getAllClusters

+
page + NumberKeyword + +

Data required for getAllClusters

+
pageSize + NumberKeyword + +

Data required for getAllClusters

+
+
+ +
+

+ View Source + + DO/database/do-noSql.js, + line 25 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllClustersResponse> +
+
+
+
+
+ +
+

+ # + + + updateCluster(clusterId, configuration) + → {Promise.<resizeClusterResponse>} + +

+ +
+

Trigers the resizeCluster function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for resizeCluster

+
configuration + DatabaseResizeClusterRequest + +

Data required for resizeCluster

+
+
+ +
+

+ View Source + + DO/database/do-noSql.js, + line 70 + +

+
+ +
+
+
+
+
+ + + Promise.<resizeClusterResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_RDBMS.html b/docs/DO_RDBMS.html new file mode 100644 index 00000000..1b593e7d --- /dev/null +++ b/docs/DO_RDBMS.html @@ -0,0 +1,659 @@ + + + + + + DO_RDBMS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_RDBMS

+
+ +
+
+

+ DO_RDBMS(do, options) +

+ +
+

Class to create a Databases object

+
+
+ +
+
+
+
+
+
+ Constructor +
+ +

+ # + + + new DO_RDBMS(do, options) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
do + module +

DO SDK

options + object + +

SDK options

+
+
+ +
+

+ View Source + + DO/database/do-RDBMS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createCluster(clusterOptions) + → {Promise.<createClusterResponse>} + +

+ +
+

Trigers the createCluster function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterOptions + DatabaseCreateClusterRequest + +

Data required for createCluster

+
+
+ +
+

+ View Source + + DO/database/do-RDBMS.js, + line 43 + +

+
+ +
+
+
+
+
+ + + Promise.<createClusterResponse> +
+
+
+
+
+ +
+

+ # + + + getCluster(clusterId) + → {Promise.<getClusterByIdResponse>} + +

+ +
+

Trigers the getClusterById function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for getClusterById

+
+
+ +
+

+ View Source + + DO/database/do-RDBMS.js, + line 56 + +

+
+ +
+
+
+
+
+ + + Promise.<getClusterByIdResponse> +
+
+
+
+
+ +
+

+ # + + + getClusters(tagName, includeAll, page, pageSize) + → {Promise.<getAllClustersResponse>} + +

+ +
+

Trigers the getAllClusters function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tagName + StringKeyword + +

Data required for getAllClusters

+
includeAll + BooleanKeyword + +

Data required for getAllClusters

+
page + NumberKeyword + +

Data required for getAllClusters

+
pageSize + NumberKeyword + +

Data required for getAllClusters

+
+
+ +
+

+ View Source + + DO/database/do-RDBMS.js, + line 25 + +

+
+ +
+
+
+
+
+ + + Promise.<getAllClustersResponse> +
+
+
+
+
+ +
+

+ # + + + updateCluster(clusterId, configuration) + → {Promise.<resizeClusterResponse>} + +

+ +
+

Trigers the resizeCluster function of Databases

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clusterId + StringKeyword + +

Data required for resizeCluster

+
configuration + DatabaseResizeClusterRequest + +

Data required for resizeCluster

+
+
+ +
+

+ View Source + + DO/database/do-RDBMS.js, + line 70 + +

+
+ +
+
+
+
+
+ + + Promise.<resizeClusterResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_compute_do-computeInstance.js.html b/docs/DO_compute_do-computeInstance.js.html new file mode 100644 index 00000000..95f0d633 --- /dev/null +++ b/docs/DO_compute_do-computeInstance.js.html @@ -0,0 +1,280 @@ + + + + + + DO/compute/do-computeInstance.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/compute/do-computeInstance.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Droplets object
+ * @category Digital Ocean
+ */
+class DO_ComputeInstance {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._droplets = this._instance.droplets;
+  }
+  /**
+   * Trigers the getAll function of Droplets
+   * @param {StringKeyword} tagName - Data required for getAll
+   * @param {BooleanKeyword} includeAll - Data required for getAll
+   * @param {NumberKeyword} page - Data required for getAll
+   * @param {NumberKeyword} pageSize - Data required for getAll
+   * @returns {Promise<getAllResponse>}
+   */
+  list(
+    tagName,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._droplets
+        .getAll(tagName, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the create function of Droplets
+   * @param {DropletCreationRequest} options - Data required for create
+   * @returns {Promise<createResponse>}
+   */
+  create(options) {
+    return new Promise((resolve, reject) => {
+      this._droplets
+        .create(options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the deleteById function of Droplets
+   * @param {StringKeyword} dropletId - Data required for deleteById
+   * @returns {Promise<deleteByIdResponse>}
+   */
+  destroy(dropletId) {
+    return new Promise((resolve, reject) => {
+      this._droplets
+        .deleteById(dropletId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the requestAction function of Droplets
+   * @param {StringKeyword} dropletId - Data required for requestAction
+   * @param {AnyKeyword} action - Data required for requestAction
+   * @returns {Promise<requestActionResponse>}
+   */
+  stop(dropletId, action) {
+    return new Promise((resolve, reject) => {
+      this._droplets
+        .requestAction(dropletId, action)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_ComputeInstance;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_compute_do-kubernetes.js.html b/docs/DO_compute_do-kubernetes.js.html new file mode 100644 index 00000000..835d1e77 --- /dev/null +++ b/docs/DO_compute_do-kubernetes.js.html @@ -0,0 +1,336 @@ + + + + + + DO/compute/do-kubernetes.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/compute/do-kubernetes.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Kubernetes object
+ * @category Digital Ocean
+ */
+class DO_Kubernetes {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._kubernetes = this._instance.kubernetes;
+  }
+  /**
+   * Trigers the getClusters function of Kubernetes
+   * @param {BooleanKeyword} includeAll - Data required for getClusters
+   * @param {NumberKeyword} page - Data required for getClusters
+   * @param {NumberKeyword} pageSize - Data required for getClusters
+   * @returns {Promise<getClustersResponse>}
+   */
+  listClusters(includeAll = undefined, page = undefined, pageSize = undefined) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .getClusters(includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the create function of Kubernetes
+   * @param {NewClusterRequest} options - Data required for create
+   * @returns {Promise<createResponse>}
+   */
+  create(options) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .create(options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getById function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for getById
+   * @returns {Promise<getByIdResponse>}
+   */
+  describeCluster(clusterId) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .getById(clusterId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the delete function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for delete
+   * @returns {Promise<deleteResponse>}
+   */
+  delete(clusterId) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .delete(clusterId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getNodePools function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for getNodePools
+   * @param {BooleanKeyword} includeAll - Data required for getNodePools
+   * @param {NumberKeyword} page - Data required for getNodePools
+   * @param {NumberKeyword} pageSize - Data required for getNodePools
+   * @returns {Promise<getNodePoolsResponse>}
+   */
+  listNodegroups(
+    clusterId,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .getNodePools(clusterId, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getNodePoolById function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for getNodePoolById
+   * @param {StringKeyword} nodePoolId - Data required for getNodePoolById
+   * @returns {Promise<getNodePoolByIdResponse>}
+   */
+  describeNodeGroup(clusterId, nodePoolId) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .getNodePoolById(clusterId, nodePoolId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the addNodePool function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for addNodePool
+   * @param {ClusterNodePool} nodePool - Data required for addNodePool
+   * @returns {Promise<addNodePoolResponse>}
+   */
+  createNodeGroup(clusterId, nodePool) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .addNodePool(clusterId, nodePool)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the deleteNodePool function of Kubernetes
+   * @param {StringKeyword} clusterId - Data required for deleteNodePool
+   * @param {StringKeyword} nodePoolId - Data required for deleteNodePool
+   * @returns {Promise<deleteNodePoolResponse>}
+   */
+  deleteNodegroup(clusterId, nodePoolId) {
+    return new Promise((resolve, reject) => {
+      this._kubernetes
+        .deleteNodePool(clusterId, nodePoolId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_Kubernetes;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_database_do-RDBMS.js.html b/docs/DO_database_do-RDBMS.js.html new file mode 100644 index 00000000..2b869d10 --- /dev/null +++ b/docs/DO_database_do-RDBMS.js.html @@ -0,0 +1,280 @@ + + + + + + DO/database/do-RDBMS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/database/do-RDBMS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Databases object
+ * @category Digital Ocean
+ */
+class DO_RDBMS {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._databases = this._instance.databases;
+  }
+  /**
+   * Trigers the getAllClusters function of Databases
+   * @param {StringKeyword} tagName - Data required for getAllClusters
+   * @param {BooleanKeyword} includeAll - Data required for getAllClusters
+   * @param {NumberKeyword} page - Data required for getAllClusters
+   * @param {NumberKeyword} pageSize - Data required for getAllClusters
+   * @returns {Promise<getAllClustersResponse>}
+   */
+  getClusters(
+    tagName,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .getAllClusters(tagName, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the createCluster function of Databases
+   * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster
+   * @returns {Promise<createClusterResponse>}
+   */
+  createCluster(clusterOptions) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .createCluster(clusterOptions)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getClusterById function of Databases
+   * @param {StringKeyword} clusterId - Data required for getClusterById
+   * @returns {Promise<getClusterByIdResponse>}
+   */
+  getCluster(clusterId) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .getClusterById(clusterId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the resizeCluster function of Databases
+   * @param {StringKeyword} clusterId - Data required for resizeCluster
+   * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster
+   * @returns {Promise<resizeClusterResponse>}
+   */
+  updateCluster(clusterId, configuration) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .resizeCluster(clusterId, configuration)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_RDBMS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_database_do-noSql.js.html b/docs/DO_database_do-noSql.js.html new file mode 100644 index 00000000..c09ef51d --- /dev/null +++ b/docs/DO_database_do-noSql.js.html @@ -0,0 +1,280 @@ + + + + + + DO/database/do-noSql.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/database/do-noSql.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Databases object
+ * @category Digital Ocean
+ */
+class DO_NoSql {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._databases = this._instance.databases;
+  }
+  /**
+   * Trigers the getAllClusters function of Databases
+   * @param {StringKeyword} tagName - Data required for getAllClusters
+   * @param {BooleanKeyword} includeAll - Data required for getAllClusters
+   * @param {NumberKeyword} page - Data required for getAllClusters
+   * @param {NumberKeyword} pageSize - Data required for getAllClusters
+   * @returns {Promise<getAllClustersResponse>}
+   */
+  getClusters(
+    tagName,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .getAllClusters(tagName, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the createCluster function of Databases
+   * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster
+   * @returns {Promise<createClusterResponse>}
+   */
+  createCluster(clusterOptions) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .createCluster(clusterOptions)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getClusterById function of Databases
+   * @param {StringKeyword} clusterId - Data required for getClusterById
+   * @returns {Promise<getClusterByIdResponse>}
+   */
+  getCluster(clusterId) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .getClusterById(clusterId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the resizeCluster function of Databases
+   * @param {StringKeyword} clusterId - Data required for resizeCluster
+   * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster
+   * @returns {Promise<resizeClusterResponse>}
+   */
+  updateCluster(clusterId, configuration) {
+    return new Promise((resolve, reject) => {
+      this._databases
+        .resizeCluster(clusterId, configuration)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_NoSql;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_management_do-keyManagement.js.html b/docs/DO_management_do-keyManagement.js.html new file mode 100644 index 00000000..96f6c784 --- /dev/null +++ b/docs/DO_management_do-keyManagement.js.html @@ -0,0 +1,279 @@ + + + + + + DO/management/do-keyManagement.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/management/do-keyManagement.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Keys object
+ * @category Digital Ocean
+ */
+class DO_KeyManagement {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._keys = this._instance.keys;
+  }
+  /**
+   * Trigers the getAll function of Keys
+   * @param {StringKeyword} tagName - Data required for getAll
+   * @param {BooleanKeyword} includeAll - Data required for getAll
+   * @param {NumberKeyword} page - Data required for getAll
+   * @param {NumberKeyword} pageSize - Data required for getAll
+   * @returns {Promise<getAllResponse>}
+   */
+  list(
+    tagName,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._keys
+        .getAll(tagName, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getById function of Keys
+   * @param {NumberKeyword} keyId - Data required for getById
+   * @returns {Promise<getByIdResponse>}
+   */
+  describeKey(keyId) {
+    return new Promise((resolve, reject) => {
+      this._keys
+        .getById(keyId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the add function of Keys
+   * @param {AddKeyRequest} addKeyRequest - Data required for add
+   * @returns {Promise<addResponse>}
+   */
+  createKey(addKeyRequest) {
+    return new Promise((resolve, reject) => {
+      this._keys
+        .add(addKeyRequest)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the delete function of Keys
+   * @param {StringKeyword} identifier - Data required for delete
+   * @returns {Promise<deleteResponse>}
+   */
+  deleteKey(identifier) {
+    return new Promise((resolve, reject) => {
+      this._keys
+        .delete(identifier)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_KeyManagement;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_network_do-DNS.js.html b/docs/DO_network_do-DNS.js.html new file mode 100644 index 00000000..b76e6d1a --- /dev/null +++ b/docs/DO_network_do-DNS.js.html @@ -0,0 +1,299 @@ + + + + + + DO/network/do-DNS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/network/do-DNS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Domains object
+ * @category Digital Ocean
+ */
+class DO_DNS {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._domains = this._instance.domains;
+  }
+  /**
+   * Trigers the getAllRecords function of Domains
+   * @param {StringKeyword} domainName - Data required for getAllRecords
+   * @param {StringKeyword} tagName - Data required for getAllRecords
+   * @param {BooleanKeyword} includeAll - Data required for getAllRecords
+   * @param {NumberKeyword} page - Data required for getAllRecords
+   * @param {NumberKeyword} pageSize - Data required for getAllRecords
+   * @returns {Promise<getAllRecordsResponse>}
+   */
+  getRecords(
+    domainName,
+    tagName,
+    includeAll = undefined,
+    page = undefined,
+    pageSize = undefined
+  ) {
+    return new Promise((resolve, reject) => {
+      this._domains
+        .getAllRecords(domainName, tagName, includeAll, page, pageSize)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the createRecord function of Domains
+   * @param {StringKeyword} domainName - Data required for createRecord
+   * @param {DomainRecordRequestOptions} options - Data required for createRecord
+   * @returns {Promise<createRecordResponse>}
+   */
+  createRecord(domainName, options) {
+    return new Promise((resolve, reject) => {
+      this._domains
+        .createRecord(domainName, options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getRecord function of Domains
+   * @param {StringKeyword} domainName - Data required for getRecord
+   * @param {StringKeyword} recordId - Data required for getRecord
+   * @returns {Promise<getRecordResponse>}
+   */
+  getRecord(domainName, recordId) {
+    return new Promise((resolve, reject) => {
+      this._domains
+        .getRecord(domainName, recordId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the deleteRecord function of Domains
+   * @param {StringKeyword} domainName - Data required for deleteRecord
+   * @param {StringKeyword} recordId - Data required for deleteRecord
+   * @returns {Promise<deleteRecordResponse>}
+   */
+  deleteRecord(domainName, recordId) {
+    return new Promise((resolve, reject) => {
+      this._domains
+        .deleteRecord(domainName, recordId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the updateRecord function of Domains
+   * @param {StringKeyword} domainName - Data required for updateRecord
+   * @param {StringKeyword} recordId - Data required for updateRecord
+   * @param {DomainRecordRequestOptions} options - Data required for updateRecord
+   * @returns {Promise<updateRecordResponse>}
+   */
+  changeRecordSets(domainName, recordId, options) {
+    return new Promise((resolve, reject) => {
+      this._domains
+        .updateRecord(domainName, recordId, options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_DNS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_network_do-loadBalancer.js.html b/docs/DO_network_do-loadBalancer.js.html new file mode 100644 index 00000000..c3b54edb --- /dev/null +++ b/docs/DO_network_do-loadBalancer.js.html @@ -0,0 +1,271 @@ + + + + + + DO/network/do-loadBalancer.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/network/do-loadBalancer.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a LoadBalancers object
+ * @category Digital Ocean
+ */
+class DO_LoadBalancer {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._loadBalancers = this._instance.loadBalancers;
+  }
+  /**
+   * Trigers the create function of LoadBalancers
+   * @param {LoadBalancerCreationOptions} options - Data required for create
+   * @returns {Promise<createResponse>}
+   */
+  create(options) {
+    return new Promise((resolve, reject) => {
+      this._loadBalancers
+        .create(options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getAll function of LoadBalancers
+   * @returns {Promise<getAllResponse>}
+   */
+  list() {
+    return new Promise((resolve, reject) => {
+      this._loadBalancers
+        .getAll()
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the update function of LoadBalancers
+   * @param {StringKeyword} loadBalancerId - Data required for update
+   * @param {AnyKeyword} options - Data required for update
+   * @returns {Promise<updateResponse>}
+   */
+  update(loadBalancerId, options) {
+    return new Promise((resolve, reject) => {
+      this._loadBalancers
+        .update(loadBalancerId, options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the delete function of LoadBalancers
+   * @param {StringKeyword} loadBalancerId - Data required for delete
+   * @returns {Promise<deleteResponse>}
+   */
+  delete(loadBalancerId) {
+    return new Promise((resolve, reject) => {
+      this._loadBalancers
+        .delete(loadBalancerId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_LoadBalancer;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/DO_storage_do-blockStorage.js.html b/docs/DO_storage_do-blockStorage.js.html new file mode 100644 index 00000000..594caa58 --- /dev/null +++ b/docs/DO_storage_do-blockStorage.js.html @@ -0,0 +1,271 @@ + + + + + + DO/storage/do-blockStorage.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

DO/storage/do-blockStorage.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Volumes object
+ * @category Digital Ocean
+ */
+class DO_BlockStorage {
+  /**
+   *
+   * @param {module} do DO SDK
+   * @param {object} options SDK options
+   */
+  constructor(dosdk, dotoken) {
+    this._DO = dosdk;
+    this._instance = new this._DO(dotoken);
+    this._volumes = this._instance.volumes;
+  }
+  /**
+   * Trigers the getAll function of Volumes
+   * @param {StringKeyword} region - Data required for getAll
+   * @returns {Promise<getAllResponse>}
+   */
+  list(region) {
+    return new Promise((resolve, reject) => {
+      this._volumes
+        .getAll(region)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the create function of Volumes
+   * @param {VolumeCreationOptions} options - Data required for create
+   * @returns {Promise<createResponse>}
+   */
+  create(options) {
+    return new Promise((resolve, reject) => {
+      this._volumes
+        .create(options)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the getById function of Volumes
+   * @param {StringKeyword} volumeId - Data required for getById
+   * @returns {Promise<getByIdResponse>}
+   */
+  describe(volumeId) {
+    return new Promise((resolve, reject) => {
+      this._volumes
+        .getById(volumeId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+  /**
+   * Trigers the deleteById function of Volumes
+   * @param {StringKeyword} volumeId - Data required for deleteById
+   * @returns {Promise<deleteByIdResponse>}
+   */
+  delete(volumeId) {
+    return new Promise((resolve, reject) => {
+      this._volumes
+        .deleteById(volumeId)
+        .then(data => resolve(data))
+        .catch(err => reject(err));
+    });
+  }
+}
+module.exports = DO_BlockStorage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/GCP_KeyManagement.html b/docs/GCP_KeyManagement.html index deef9151..bcb73345 100644 --- a/docs/GCP_KeyManagement.html +++ b/docs/GCP_KeyManagement.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,16 +226,17 @@
Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, line 12 @@ -305,15 +320,17 @@

Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, - line 21 @@ -410,15 +427,17 @@

Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, - line 39 @@ -511,15 +530,17 @@

Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, - line 75 @@ -628,15 +649,17 @@

Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, - line 94 @@ -729,15 +752,17 @@

Parameters:

View Source - googleCloud/gcp-keyManagement.jsgoogleCloud/management/gcp-keyManagement.js, - line 57 diff --git a/docs/GCP_Kubernetes.html b/docs/GCP_Kubernetes.html index 0ebb44e6..80be1395 100644 --- a/docs/GCP_Kubernetes.html +++ b/docs/GCP_Kubernetes.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,16 @@
Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 12 @@ -304,15 +319,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 21 @@ -405,15 +421,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 93 @@ -506,15 +523,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 39 @@ -607,15 +625,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 111 @@ -708,15 +727,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 75 @@ -809,15 +829,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 129 @@ -910,15 +931,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 57 @@ -1011,15 +1033,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 147 @@ -1112,15 +1135,16 @@

Parameters:

View Source - googleCloud/gcp-kubernetes.jsgoogleCloud/compute/gcp-kubernetes.js, - line 165 diff --git a/docs/GCP_Monitoring.html b/docs/GCP_Monitoring.html index 0f415564..42d0155a 100644 --- a/docs/GCP_Monitoring.html +++ b/docs/GCP_Monitoring.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,17 @@
Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 13 @@ -304,15 +320,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 23 @@ -405,15 +423,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 41 @@ -509,15 +529,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 95 @@ -610,15 +632,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 77 @@ -690,15 +714,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 112 @@ -791,15 +817,17 @@

Parameters:

View Source - googleCloud/gcp-monitoring.jsgoogleCloud/management/gcp-monitoring.js, - line 59 diff --git a/docs/GCP_NoSql.html b/docs/GCP_NoSql.html index 897575fe..17297011 100644 --- a/docs/GCP_NoSql.html +++ b/docs/GCP_NoSql.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -210,14 +224,17 @@
Parameters:

- View Source - googleCloud/gcp-noSql.jsgoogleCloud/database/gcp-noSql.js, - line 12 @@ -300,14 +317,17 @@

Parameters:

- View Source - googleCloud/gcp-noSql.jsgoogleCloud/database/gcp-noSql.js, - line 21 @@ -399,14 +419,17 @@

Parameters:

- View Source - googleCloud/gcp-noSql.jsgoogleCloud/database/gcp-noSql.js, - line 39 @@ -498,14 +521,17 @@

Parameters:

- View Source - googleCloud/gcp-noSql.jsgoogleCloud/database/gcp-noSql.js, - line 75 @@ -597,14 +623,17 @@

Parameters:

- View Source - googleCloud/gcp-noSql.jsgoogleCloud/database/gcp-noSql.js, - line 57 diff --git a/docs/GCP_NotificationService.html b/docs/GCP_NotificationService.html index b907b4a9..8682584c 100644 --- a/docs/GCP_NotificationService.html +++ b/docs/GCP_NotificationService.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -214,17 +228,17 @@
Parameters:

View Source googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 13 @@ -308,16 +322,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 23 @@ -410,16 +425,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 41 @@ -512,16 +528,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 59 @@ -617,16 +634,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 77 @@ -719,16 +737,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 131 @@ -821,16 +840,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 113 @@ -925,16 +945,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 95 @@ -1029,16 +1050,17 @@

Parameters:

View Source - googleCloud/gcp-notificationService.jsgoogleCloud/management/gcp-notificationService.js, line 149 diff --git a/docs/GCP_RDBMS.html b/docs/GCP_RDBMS.html index a2c39625..193883b9 100644 --- a/docs/GCP_RDBMS.html +++ b/docs/GCP_RDBMS.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -210,14 +224,17 @@
Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 12 @@ -300,14 +317,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 21 @@ -399,14 +419,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 57 @@ -502,14 +525,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 130 @@ -601,14 +627,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 39 @@ -700,14 +729,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 111 @@ -799,14 +831,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 75 @@ -898,14 +933,17 @@

Parameters:

- View Source - googleCloud/gcp-RDBMS.jsgoogleCloud/database/gcp-RDBMS.js, - line 93 diff --git a/docs/GCP_Translation.html b/docs/GCP_Translation.html index 9d729359..5dd4b71e 100644 --- a/docs/GCP_Translation.html +++ b/docs/GCP_Translation.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -212,15 +226,17 @@
Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 12 @@ -306,15 +322,17 @@

Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 39 @@ -407,15 +425,17 @@

Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 75 @@ -508,15 +528,17 @@

Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 93 @@ -609,15 +631,17 @@

Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 57 @@ -710,15 +734,17 @@

Parameters:

View Source - googleCloud/gcp-translation.jsgoogleCloud/artificialinteligence/gcp-translation.js, - line 21 diff --git a/docs/GCP_dns.html b/docs/GCP_dns.html index 1f873bde..7821b59d 100644 --- a/docs/GCP_dns.html +++ b/docs/GCP_dns.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -210,14 +224,16 @@
Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 12 @@ -314,14 +330,16 @@

Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 59 @@ -427,14 +445,16 @@

Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 39 @@ -542,14 +562,16 @@

Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 79 @@ -626,14 +648,16 @@

Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 20 @@ -753,14 +777,16 @@

Parameters:

- View Source - googleCloud/gcp-DNS.jsgoogleCloud/network/gcp-DNS.js, - line 100 diff --git a/docs/GCP_storage.html b/docs/GCP_storage.html index 5f3ef7a3..883ef0c3 100644 --- a/docs/GCP_storage.html +++ b/docs/GCP_storage.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -211,16 +225,17 @@
Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 12 @@ -304,16 +319,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 81 @@ -406,15 +422,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 81 @@ -523,16 +541,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 22 @@ -641,15 +660,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 22 @@ -727,16 +748,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 98 @@ -814,15 +836,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 98 @@ -915,16 +939,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 62 @@ -1017,15 +1042,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 62 @@ -1149,16 +1176,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 43 @@ -1282,15 +1310,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 43 @@ -1381,16 +1411,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, line 12 @@ -1474,16 +1505,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 81 @@ -1576,15 +1608,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 81 @@ -1693,16 +1727,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 22 @@ -1811,15 +1846,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 22 @@ -1897,16 +1934,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 98 @@ -1984,15 +2022,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 98 @@ -2085,16 +2125,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 62 @@ -2187,15 +2228,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 62 @@ -2319,16 +2362,17 @@

Parameters:

View Source - googleCloud/gcp-archivalStorage.jsgoogleCloud/storage/gcp-archivalStorage.js, line 43 @@ -2452,15 +2496,17 @@

Parameters:

View Source - googleCloud/gcp-storageBucket.jsgoogleCloud/storage/gcp-storageBucket.js, - line 43 diff --git a/docs/googleCloud_artificialinteligence_gcp-translation.js.html b/docs/googleCloud_artificialinteligence_gcp-translation.js.html new file mode 100644 index 00000000..98a19fb0 --- /dev/null +++ b/docs/googleCloud_artificialinteligence_gcp-translation.js.html @@ -0,0 +1,307 @@ + + + + + + googleCloud/artificialinteligence/gcp-translation.js + + + + + + + + + + + + + + + + +

+ + +
+ +
+
+
+

Source

+

googleCloud/artificialinteligence/gcp-translation.js

+
+ +
+
+
const { TranslationServiceClient } = require("@google-cloud/translate");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Translation object
+ * @category Google Cloud
+ */
+class GCP_Translation {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._translationServiceClient = new TranslationServiceClient(config);
+  }
+  /**
+   * Trigers the translateText function of undefined
+   * @param {TypeReference} request - Data required for translateText
+   * @param {TypeReference} [options] - Data required for translateText
+   * @returns {Promise<translateTextResponse>}
+   */
+  translate(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._translationServiceClient
+        .translateText(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the batchTranslateText function of undefined
+   * @param {TypeReference} request - Data required for batchTranslateText
+   * @param {TypeReference} [options] - Data required for batchTranslateText
+   * @returns {Promise<batchTranslateTextResponse>}
+   */
+  batchTranslate(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._translationServiceClient
+        .batchTranslateText(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getGlossary function of undefined
+   * @param {TypeReference} request - Data required for getGlossary
+   * @param {TypeReference} [options] - Data required for getGlossary
+   * @returns {Promise<getGlossaryResponse>}
+   */
+  getGlossary(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._translationServiceClient
+        .getGlossary(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createGlossary function of undefined
+   * @param {TypeReference} request - Data required for createGlossary
+   * @param {TypeReference} [options] - Data required for createGlossary
+   * @returns {Promise<createGlossaryResponse>}
+   */
+  createGlossary(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._translationServiceClient
+        .createGlossary(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the detectLanguage function of undefined
+   * @param {TypeReference} request - Data required for detectLanguage
+   * @param {TypeReference} [options] - Data required for detectLanguage
+   * @returns {Promise<detectLanguageResponse>}
+   */
+  detectLanguage(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._translationServiceClient
+        .detectLanguage(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_Translation;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_compute_gcp-kubernetes.js.html b/docs/googleCloud_compute_gcp-kubernetes.js.html new file mode 100644 index 00000000..589b6189 --- /dev/null +++ b/docs/googleCloud_compute_gcp-kubernetes.js.html @@ -0,0 +1,379 @@ + + + + + + googleCloud/compute/gcp-kubernetes.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/compute/gcp-kubernetes.js

+
+ +
+
+
const { ClusterManagerClient } = require("@google-cloud/container");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Kubernetes object
+ * @category Google Cloud
+ */
+class GCP_Kubernetes {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._clusterManagerClient = new ClusterManagerClient(config);
+  }
+  /**
+   * Trigers the createCluster function of undefined
+   * @param {TypeReference} request - Data required for createCluster
+   * @param {TypeReference} [options] - Data required for createCluster
+   * @returns {Promise<createClusterResponse>}
+   */
+  create(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .createCluster(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteCluster function of undefined
+   * @param {TypeReference} request - Data required for deleteCluster
+   * @param {TypeReference} [options] - Data required for deleteCluster
+   * @returns {Promise<deleteClusterResponse>}
+   */
+  delete(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .deleteCluster(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listClusters function of undefined
+   * @param {TypeReference} request - Data required for listClusters
+   * @param {TypeReference} [options] - Data required for listClusters
+   * @returns {Promise<listClustersResponse>}
+   */
+  listClusters(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .listClusters(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getCluster function of undefined
+   * @param {TypeReference} request - Data required for getCluster
+   * @param {TypeReference} [options] - Data required for getCluster
+   * @returns {Promise<getClusterResponse>}
+   */
+  describeCluster(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .getCluster(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createNodePool function of undefined
+   * @param {TypeReference} request - Data required for createNodePool
+   * @param {TypeReference} [options] - Data required for createNodePool
+   * @returns {Promise<createNodePoolResponse>}
+   */
+  createNodeGroup(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .createNodePool(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteNodePool function of undefined
+   * @param {TypeReference} request - Data required for deleteNodePool
+   * @param {TypeReference} [options] - Data required for deleteNodePool
+   * @returns {Promise<deleteNodePoolResponse>}
+   */
+  deleteNodegroup(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .deleteNodePool(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getNodePool function of undefined
+   * @param {TypeReference} request - Data required for getNodePool
+   * @param {TypeReference} [options] - Data required for getNodePool
+   * @returns {Promise<getNodePoolResponse>}
+   */
+  describeNodeGroup(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .getNodePool(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listNodePools function of undefined
+   * @param {TypeReference} request - Data required for listNodePools
+   * @param {TypeReference} [options] - Data required for listNodePools
+   * @returns {Promise<listNodePoolsResponse>}
+   */
+  listNodegroups(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .listNodePools(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the setAddonsConfig function of undefined
+   * @param {TypeReference} request - Data required for setAddonsConfig
+   * @param {TypeReference} [options] - Data required for setAddonsConfig
+   * @returns {Promise<setAddonsConfigResponse>}
+   */
+  updateConfig(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._clusterManagerClient
+        .setAddonsConfig(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_Kubernetes;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_database_gcp-RDBMS.js.html b/docs/googleCloud_database_gcp-RDBMS.js.html new file mode 100644 index 00000000..688c5d29 --- /dev/null +++ b/docs/googleCloud_database_gcp-RDBMS.js.html @@ -0,0 +1,335 @@ + + + + + + googleCloud/database/gcp-RDBMS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/database/gcp-RDBMS.js

+
+ +
+
+
const { DatabaseAdminClient } = require("@google-cloud/spanner");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a RDBMS object
+ * @category Google Cloud
+ */
+class GCP_RDBMS {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._databaseAdminClient = new DatabaseAdminClient(config);
+  }
+  /**
+   * Trigers the createDatabase function of undefined
+   * @param {TypeReference} request - Data required for createDatabase
+   * @param {TypeReference} [options] - Data required for createDatabase
+   * @returns {Promise<createDatabaseResponse>}
+   */
+  createDatabse(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .createDatabase(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the dropDatabase function of undefined
+   * @param {TypeReference} request - Data required for dropDatabase
+   * @param {TypeReference} [options] - Data required for dropDatabase
+   * @returns {Promise<dropDatabaseResponse>}
+   */
+  deleteDatabase(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .dropDatabase(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createBackup function of undefined
+   * @param {TypeReference} request - Data required for createBackup
+   * @param {TypeReference} [options] - Data required for createBackup
+   * @returns {Promise<createBackupResponse>}
+   */
+  createSnapshots(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .createBackup(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateDatabaseDdl function of undefined
+   * @param {TypeReference} request - Data required for updateDatabaseDdl
+   * @param {TypeReference} [options] - Data required for updateDatabaseDdl
+   * @returns {Promise<updateDatabaseDdlResponse>}
+   */
+  modifyDB(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .updateDatabaseDdl(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the restoreDatabase function of undefined
+   * @param {TypeReference} request - Data required for restoreDatabase
+   * @param {TypeReference} [options] - Data required for restoreDatabase
+   * @returns {Promise<restoreDatabaseResponse>}
+   */
+  restoreDatabase(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .restoreDatabase(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteBackup function of undefined
+   * @param {TypeReference} request - Data required for deleteBackup
+   * @param {TypeReference} [options] - Data required for deleteBackup
+   * @returns {Promise<deleteBackupResponse>}
+   */
+  deleteDBSnapshot(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._databaseAdminClient
+        .deleteBackup(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the databasePath function of undefined
+   * @param {StringKeyword} project - Data required for databasePath
+   * @param {StringKeyword} instance - Data required for databasePath
+   * @param {StringKeyword} database - Data required for databasePath
+   * @returns {Promise<databasePathResponse>}
+   */
+  databasePath(project, instance, database) {
+    return this._databaseAdminClient.databasePath(project, instance, database);
+  }
+}
+module.exports = GCP_RDBMS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_database_gcp-noSql.js.html b/docs/googleCloud_database_gcp-noSql.js.html new file mode 100644 index 00000000..e6665281 --- /dev/null +++ b/docs/googleCloud_database_gcp-noSql.js.html @@ -0,0 +1,280 @@ + + + + + + googleCloud/database/gcp-noSql.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/database/gcp-noSql.js

+
+ +
+
+
const { FirestoreClient } = require("@google-cloud/firestore");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a NoSql object
+ * @category Google Cloud
+ */
+class GCP_NoSql {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._firestoreClient = new FirestoreClient(config);
+  }
+  /**
+   * Trigers the createDocument function of undefined
+   * @param {TypeReference} request - Data required for createDocument
+   * @param {TypeReference} [options] - Data required for createDocument
+   * @returns {Promise<createDocumentResponse>}
+   */
+  createItem(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._firestoreClient
+        .createDocument(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteDocument function of undefined
+   * @param {TypeReference} request - Data required for deleteDocument
+   * @param {TypeReference} [options] - Data required for deleteDocument
+   * @returns {Promise<deleteDocumentResponse>}
+   */
+  deleteItem(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._firestoreClient
+        .deleteDocument(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateDocument function of undefined
+   * @param {TypeReference} request - Data required for updateDocument
+   * @param {TypeReference} [options] - Data required for updateDocument
+   * @returns {Promise<updateDocumentResponse>}
+   */
+  updateItem(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._firestoreClient
+        .updateDocument(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the runQuery function of undefined
+   * @param {TypeReference} [request] - Data required for runQuery
+   * @param {TypeReference} [options] - Data required for runQuery
+   * @returns {Promise<runQueryResponse>}
+   */
+  query(request = undefined, options = undefined) {
+    return this._firestoreClient.runQuery(request, options);
+  }
+}
+module.exports = GCP_NoSql;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_management_gcp-keyManagement.js.html b/docs/googleCloud_management_gcp-keyManagement.js.html new file mode 100644 index 00000000..06dc57c0 --- /dev/null +++ b/docs/googleCloud_management_gcp-keyManagement.js.html @@ -0,0 +1,308 @@ + + + + + + googleCloud/management/gcp-keyManagement.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/management/gcp-keyManagement.js

+
+ +
+
+
const { KeyManagementServiceClient } = require("@google-cloud/kms");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a KeyManagement object
+ * @category Google Cloud
+ */
+class GCP_KeyManagement {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._keyManagementServiceClient = new KeyManagementServiceClient(config);
+  }
+  /**
+   * Trigers the createCryptoKey function of undefined
+   * @param {TypeReference} request - Data required for createCryptoKey
+   * @param {TypeReference} [options] - Data required for createCryptoKey
+   * @returns {Promise<createCryptoKeyResponse>}
+   */
+  createKey(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._keyManagementServiceClient
+        .createCryptoKey(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the destroyCryptoKeyVersion function of undefined
+   * @param {TypeReference} request - Data required for destroyCryptoKeyVersion
+   * @param {TypeReference} [options] - Data required for destroyCryptoKeyVersion
+   * @returns {Promise<destroyCryptoKeyVersionResponse>}
+   */
+  deleteKey(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._keyManagementServiceClient
+        .destroyCryptoKeyVersion(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateCryptoKey function of undefined
+   * @param {TypeReference} request - Data required for updateCryptoKey
+   * @param {TypeReference} [options] - Data required for updateCryptoKey
+   * @returns {Promise<updateCryptoKeyResponse>}
+   */
+  update(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._keyManagementServiceClient
+        .updateCryptoKey(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getCryptoKey function of undefined
+   * @param {TypeReference} request - Data required for getCryptoKey
+   * @param {TypeReference} [options] - Data required for getCryptoKey
+   * @returns {Promise<getCryptoKeyResponse>}
+   */
+  describeKey(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._keyManagementServiceClient
+        .getCryptoKey(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the setIamPolicy function of undefined
+   * @param {TypeReference} request - Data required for setIamPolicy
+   * @param {UnionType} [options] - Data required for setIamPolicy
+   * @param {TypeReference} [callback] - Data required for setIamPolicy
+   * @returns {Promise<setIamPolicyResponse>}
+   */
+  putKeyPolicy(request, options = undefined, callback = undefined) {
+    return new Promise((resolve, reject) => {
+      this._keyManagementServiceClient
+        .setIamPolicy(request, options, callback)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_KeyManagement;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_management_gcp-monitoring.js.html b/docs/googleCloud_management_gcp-monitoring.js.html new file mode 100644 index 00000000..edd07080 --- /dev/null +++ b/docs/googleCloud_management_gcp-monitoring.js.html @@ -0,0 +1,317 @@ + + + + + + googleCloud/management/gcp-monitoring.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/management/gcp-monitoring.js

+
+ +
+
+
const { AlertPolicyServiceClient } = require("@google-cloud/monitoring");
+const { MetricServiceClient } = require("@google-cloud/monitoring");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a Monitoring object
+ * @category Google Cloud
+ */
+class GCP_Monitoring {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._alertPolicyServiceClient = new AlertPolicyServiceClient(config);
+    this._metricServiceClient = new MetricServiceClient(config);
+  }
+  /**
+   * Trigers the createAlertPolicy function of undefined
+   * @param {TypeReference} request - Data required for createAlertPolicy
+   * @param {TypeReference} [options] - Data required for createAlertPolicy
+   * @returns {Promise<createAlertPolicyResponse>}
+   */
+  createAlarm(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._alertPolicyServiceClient
+        .createAlertPolicy(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteAlertPolicy function of undefined
+   * @param {TypeReference} request - Data required for deleteAlertPolicy
+   * @param {TypeReference} [options] - Data required for deleteAlertPolicy
+   * @returns {Promise<deleteAlertPolicyResponse>}
+   */
+  deleteAlarm(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._alertPolicyServiceClient
+        .deleteAlertPolicy(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the updateAlertPolicy function of undefined
+   * @param {TypeReference} request - Data required for updateAlertPolicy
+   * @param {TypeReference} [options] - Data required for updateAlertPolicy
+   * @returns {Promise<updateAlertPolicyResponse>}
+   */
+  updateAlarm(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._alertPolicyServiceClient
+        .updateAlertPolicy(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listAlertPolicies function of undefined
+   * @param {TypeReference} request - Data required for listAlertPolicies
+   * @param {TypeReference} [options] - Data required for listAlertPolicies
+   * @returns {Promise<listAlertPoliciesResponse>}
+   */
+  listAlarms(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._alertPolicyServiceClient
+        .listAlertPolicies(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getMetricDescriptor function of undefined
+   * @param {TypeReference} request - Data required for getMetricDescriptor
+   * @param {TypeReference} [options] - Data required for getMetricDescriptor
+   * @returns {Promise<getMetricDescriptorResponse>}
+   */
+  getMetricData(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._metricServiceClient
+        .getMetricDescriptor(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the projectPath function of undefined
+   * @param {StringKeyword} project - Data required for projectPath
+   * @returns {Promise<projectPathResponse>}
+   */
+  projectPath(project) {
+    return this._alertPolicyServiceClient.projectPath(project);
+  }
+}
+module.exports = GCP_Monitoring;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_management_gcp-notificationService.js.html b/docs/googleCloud_management_gcp-notificationService.js.html new file mode 100644 index 00000000..1c7c5b4f --- /dev/null +++ b/docs/googleCloud_management_gcp-notificationService.js.html @@ -0,0 +1,363 @@ + + + + + + googleCloud/management/gcp-notificationService.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/management/gcp-notificationService.js

+
+ +
+
+
const { PublisherClient } = require("@google-cloud/pubsub");
+const { SubscriberClient } = require("@google-cloud/pubsub");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a NotificationService object
+ * @category Google Cloud
+ */
+class GCP_NotificationService {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._publisherClient = new PublisherClient(config);
+    this._subscriberClient = new SubscriberClient(config);
+  }
+  /**
+   * Trigers the createTopic function of undefined
+   * @param {TypeReference} request - Data required for createTopic
+   * @param {TypeReference} [options] - Data required for createTopic
+   * @returns {Promise<createTopicResponse>}
+   */
+  createTopic(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .createTopic(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteTopic function of undefined
+   * @param {TypeReference} request - Data required for deleteTopic
+   * @param {TypeReference} [options] - Data required for deleteTopic
+   * @returns {Promise<deleteTopicResponse>}
+   */
+  deleteTopic(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .deleteTopic(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getTopic function of undefined
+   * @param {TypeReference} request - Data required for getTopic
+   * @param {TypeReference} [options] - Data required for getTopic
+   * @returns {Promise<getTopicResponse>}
+   */
+  getTopicAttributes(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .getTopic(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listTopicSubscriptions function of undefined
+   * @param {TypeReference} request - Data required for listTopicSubscriptions
+   * @param {TypeReference} [options] - Data required for listTopicSubscriptions
+   * @returns {Promise<listTopicSubscriptionsResponse>}
+   */
+  listSubscriptions(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .listTopicSubscriptions(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createSubscription function of undefined
+   * @param {TypeReference} request - Data required for createSubscription
+   * @param {TypeReference} [options] - Data required for createSubscription
+   * @returns {Promise<createSubscriptionResponse>}
+   */
+  subscribe(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._subscriberClient
+        .createSubscription(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the publish function of undefined
+   * @param {TypeReference} request - Data required for publish
+   * @param {TypeReference} [options] - Data required for publish
+   * @returns {Promise<publishResponse>}
+   */
+  publish(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .publish(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the listTopics function of undefined
+   * @param {TypeReference} request - Data required for listTopics
+   * @param {TypeReference} [options] - Data required for listTopics
+   * @returns {Promise<listTopicsResponse>}
+   */
+  listTopics(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._publisherClient
+        .listTopics(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the deleteSubscription function of undefined
+   * @param {TypeReference} request - Data required for deleteSubscription
+   * @param {TypeReference} [options] - Data required for deleteSubscription
+   * @returns {Promise<deleteSubscriptionResponse>}
+   */
+  unsubscribe(request, options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._subscriberClient
+        .deleteSubscription(request, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_NotificationService;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_network_gcp-DNS.js.html b/docs/googleCloud_network_gcp-DNS.js.html new file mode 100644 index 00000000..eedca724 --- /dev/null +++ b/docs/googleCloud_network_gcp-DNS.js.html @@ -0,0 +1,305 @@ + + + + + + googleCloud/network/gcp-DNS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/network/gcp-DNS.js

+
+ +
+
+
const { DNS } = require("@google-cloud/dns");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a dns object
+ * @category Google Cloud
+ */
+class GCP_dns {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._dns = new DNS(config);
+  }
+  /**
+   * Trigers the getZones function of dns
+   * @param {TypeReference} [query] - Optional parameter
+   * @returns {Promise<getZonesResponse>}
+   */
+  listZones(query = undefined) {
+    return new Promise((resolve, reject) => {
+      this._dns
+        .getZones(query)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the create function of dns
+   * @param {string} [identifier] - Optional parameter
+   * @param {DNS} dns - Mandatory parameter
+   * @param {TypeReference} config - Mandatory parameter
+   * @returns {Promise<createResponse>}
+   */
+  createZone(dns, config, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      dns
+        .zone(identifier)
+        .create(config)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createChange function of dns
+   * @param {string} [identifier] - Optional parameter
+   * @param {DNS} dns - Mandatory parameter
+   * @param {TypeReference} config - Mandatory parameter
+   * @returns {Promise<createChangeResponse>}
+   */
+  changeRecordSets(dns, config, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      dns
+        .zone(identifier)
+        .createChange(config)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the delete function of dns
+   * @param {string} [identifier] - Optional parameter
+   * @param {DNS} dns - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<deleteResponse>}
+   */
+  deleteZone(dns, options = undefined, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      dns
+        .zone(identifier)
+        .delete(options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the record function of dns
+   * @param {string} [identifier] - Optional parameter
+   * @param {DNS} dns - Mandatory parameter
+   * @param {StringKeyword} type - Mandatory parameter
+   * @param {TypeReference} metadata - Mandatory parameter
+   * @returns {Promise<recordResponse>}
+   */
+  record(dns, type, metadata) {
+    return this.dns.record(type, metadata);
+  }
+}
+module.exports = GCP_dns;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_storage_gcp-archivalStorage.js.html b/docs/googleCloud_storage_gcp-archivalStorage.js.html new file mode 100644 index 00000000..996e42f3 --- /dev/null +++ b/docs/googleCloud_storage_gcp-archivalStorage.js.html @@ -0,0 +1,312 @@ + + + + + + googleCloud/storage/gcp-archivalStorage.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/storage/gcp-archivalStorage.js

+
+ +
+
+
const { Storage } = require("@google-cloud/storage");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a storage object
+ * @category Google Cloud
+ */
+class GCP_storage {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._storage = new Storage(config);
+  }
+  /**
+   * Trigers the deleteFiles function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Storage} storage - Mandatory parameter
+   * @param {TypeReference} [query] - Optional parameter
+   * @returns {Promise<deleteFilesResponse>}
+   */
+  deleteFiles(storage, query = undefined, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      storage
+        .bucket(identifier)
+        .deleteFiles(query)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the upload function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Storage} storage - Mandatory parameter
+   * @param {StringKeyword} pathString - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<uploadResponse>}
+   */
+  upload(storage, pathString, options = undefined, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      storage
+        .bucket(identifier)
+        .upload(pathString, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the makePublic function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Bucket} bucket - Mandatory parameter
+   * @returns {Promise<makePublicResponse>}
+   */
+  makePublic(bucket, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      bucket
+        .file(identifier)
+        .makePublic()
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createBucket function of storage
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [metadata] - Optional parameter
+   * @returns {Promise<createBucketResponse>}
+   */
+  create(name, metadata = undefined) {
+    return new Promise((resolve, reject) => {
+      this._storage
+        .createBucket(name, metadata)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getBuckets function of storage
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getBucketsResponse>}
+   */
+  list(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._storage
+        .getBuckets(options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_storage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_storage_gcp-storageBucket.js.html b/docs/googleCloud_storage_gcp-storageBucket.js.html new file mode 100644 index 00000000..6f879963 --- /dev/null +++ b/docs/googleCloud_storage_gcp-storageBucket.js.html @@ -0,0 +1,312 @@ + + + + + + googleCloud/storage/gcp-storageBucket.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

googleCloud/storage/gcp-storageBucket.js

+
+ +
+
+
const { Storage } = require("@google-cloud/storage");
+/*This is an auto generated class, please do not change.*/
+/**
+ * Class to create a storage object
+ * @category Google Cloud
+ */
+class GCP_storage {
+  /**
+   *
+   * @param {object} config Configuration object
+   */
+  constructor(config) {
+    this._storage = new Storage(config);
+  }
+  /**
+   * Trigers the deleteFiles function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Storage} storage - Mandatory parameter
+   * @param {TypeReference} [query] - Optional parameter
+   * @returns {Promise<deleteFilesResponse>}
+   */
+  deleteFiles(storage, query = undefined, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      storage
+        .bucket(identifier)
+        .deleteFiles(query)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the upload function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Storage} storage - Mandatory parameter
+   * @param {StringKeyword} pathString - Mandatory parameter
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<uploadResponse>}
+   */
+  upload(storage, pathString, options = undefined, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      storage
+        .bucket(identifier)
+        .upload(pathString, options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the makePublic function of storage
+   * @param {string} [identifier] - Optional parameter
+   * @param {Bucket} bucket - Mandatory parameter
+   * @returns {Promise<makePublicResponse>}
+   */
+  makePublic(bucket, identifier = undefined) {
+    return new Promise((resolve, reject) => {
+      bucket
+        .file(identifier)
+        .makePublic()
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the createBucket function of storage
+   * @param {StringKeyword} name - Mandatory parameter
+   * @param {TypeReference} [metadata] - Optional parameter
+   * @returns {Promise<createBucketResponse>}
+   */
+  create(name, metadata = undefined) {
+    return new Promise((resolve, reject) => {
+      this._storage
+        .createBucket(name, metadata)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+  /**
+   * Trigers the getBuckets function of storage
+   * @param {TypeReference} [options] - Optional parameter
+   * @returns {Promise<getBucketsResponse>}
+   */
+  list(options = undefined) {
+    return new Promise((resolve, reject) => {
+      this._storage
+        .getBuckets(options)
+        .then(result => {
+          resolve(result);
+        })
+        .catch(err => {
+          reject(err);
+        });
+    });
+  }
+}
+module.exports = GCP_storage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/index.html b/docs/index.html index e7e80ab4..21444047 100644 --- a/docs/index.html +++ b/docs/index.html @@ -119,6 +119,20 @@

Classes

+
+

Digital Ocean

+

Classes

+ +

Google Cloud

Classes

@@ -151,158 +165,10 @@

-

- +

NodeCloud

@@ -353,9 +219,42 @@

NodeCloud

alt="contributions welcome" />

-

Introduction

+

Table of Content

+ +

Introduction

- NodeCloud ☁️ is standard library + NodeCloud ☁️ is a standard library to get a single API on the open cloud with multiple providers. It is a NodeJs library which comes with plugins for each cloud provider. NodeCloud's aim is to abstract away the differences @@ -370,10 +269,10 @@

Introduction

  • you are looking for an abstract cloud API which can switch - between cloud providers with less code changes + between cloud providers with fewer code changes
  • - you are an open source enthusiast who is into cloud + you are an open-source enthusiast who is into cloud engineering or code generation
  • @@ -390,41 +289,396 @@

    📘 Supported Service Providers

  • AliCloud
  • - If your required cloud service provider is not listed here, we'd - love your help to add it :) + 📢 if your required cloud provider plugin is not listed here, + we'd love your help to add it :)

    -

    Getting Started

    +

    Getting Started

    - In order to use NodeCloud , you will need to follow + In order to use NodeCloud, you will need to follow the following steps:

    1️⃣ Download NodeCloud common module
    - Head on over to NPM or Yarn to - download the latest version of NodeCloud. + Head on over to NPM or Yarn to download the latest version of + NodeCloud.

    -
    npm i @nodecloud/common --save
    +              
    npm i @nodecloud/common
     or
     yarn add @nodecloud/common
     

    - 2️⃣ Download atleast one NodeClod cloud provider - plugin
    - Once installed @nodecloud/common, + 2️⃣ Download at least one NodeCloud plugin
    + Once @nodecloud/common is installed, you need to + install the plugins to interact with different cloud providers. + The below table shows the available plugins maintained by ScoRe + Lab. There can be other community-driven plugins that you will + be able to use with NodeCloud.

    +

    NodeCloud Plugins

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    PluginInstallation
    AWS plugin + yarn add @nodecloud/aws-plugin or + npm i @nodecloud/aws-plugin +
    Azure plugin + yarn add @nodecloud/gcp-plugin or + npm i @nodecloud/gcp-plugin +
    Google Cloud plugin + yarn add @nodecloud/azure-plugin or + npm i @nodecloud/azure-plugin +
    Digital Ocean plugin + yarn add @nodecloud/do-plugin or + npm i @nodecloud/do-plugin +
    Alibaba plugin + yarn add nodecloud-ali-plugin or + npm i nodecloud-ali-plugin +
    +

    3️⃣ Create the NodeCloud config file

    +

    + Create the .nc.config.js file in the project root + in the following format. +

    +

    + Content of .nc.config.js file is assumed as the following + structure. It is an array of supported providers. +

    +
      +
    1. + name : Provider identifier, this can be used to + identify the plugin at a glance. +
    2. +
    3. + tag : Tag name that will be used to load the + given provider internally. +
    4. +
    5. plugin : Plugin module
    6. +
    7. configPath : Provider configuration file
    8. +
    +

    + This config file can contain an array of objects for all + providers and all will be loaded. Supported values for name : + aws, azure, alicloud, digitalocean, google +

    +

    Example

    +
    const nodeCloudAwsPlugin = require("@nodecloud/aws-plugin");
    +const nodeCloudGcpPlugin = require("@nodecloud/gcp-plugin");
    +const nodeCloudAzurePlugin = require("@nodecloud/azure-plugin");
    +const nodeCloudDoPlugin = require("@nodecloud/do-plugin");
    +
    +const providers = [
    +  {
    +    name: "aws",
    +    tag: "aws",
    +    plugin: nodeCloudAwsPlugin,
    +    configPath: "C:\\Users\\Rajitha\\opensource\\aws_cred.json"
    +  },
    +  {
    +    name: "google",
    +    tag: "google",
    +    plugin: nodeCloudGcpPlugin,
    +    configPath: {
    +      projectId: "astral-hold-276807",
    +      keyFilename: "C:\\Users\\Rajitha\\opensource\\gcp_cred.json"
    +    }
    +  },
    +  {
    +    name: "azure",
    +    tag: "azure",
    +    plugin: nodeCloudAzurePlugin
    +  },
    +  {
    +    name: "digitalocean",
    +    tag: "do",
    +    plugin: nodeCloudDoPlugin
    +  }
    +];
    +module.exports = providers;
    +
    +

    4️⃣ Enjoy the awesomeness of NodeCloud

    +

    + Congratulations! You just configured NodeCloud in your project. + Let's start with some cloud interactions. +

    +

    The below code is an example of usage in AWS.

    +
    const nc = require("@nodecloud/common"); // NodeCloud common module
    +const optionsProvider = {
    +  overrideProviders: false
    +};
    +const ncProviders = nc.getProviders(optionsProvider);
    +const options = {
    +  apiVersion: "2017-11-01"
    +};
    +
    +const computeModule = ncProviders.aws.compute(options);
    +
    +function launchInstance() {
    +  const instanceParams = {
    +    ImageId: "ami-07ebfd5b3428b6f4d", // Image of Ubuntu Server 18.04 LTS
    +    InstanceType: "t2.micro",
    +    KeyName: "nodeCloud", // key name of Key pair
    +    MinCount: 1,
    +    MaxCount: 1
    +  };
    +
    +  // create AWS EC2 instance
    +  computeModule
    +    .create(instanceParams)
    +    .then(res => {
    +      console.log(`All done ! ${res}`);
    +    })
    +    .catch(err => {
    +      console.log(`Oops something happened ${err}`);
    +    });
    +}
    +
    +function stopInstance() {
    +  const params = {
    +    InstanceIds: ["i-0928af5c626f85da9"],
    +    DryRun: false
    +  };
    +
    +  // stop AWS EC2 instance
    +  computeModule
    +    .stop(params)
    +    .then(res => {
    +      console.log(res);
    +    })
    +    .catch(err => {
    +      console.log(err);
    +    });
    +}
    +
    +

    Overriding Providers

    +

    + NodeCloud officially supports AWS, GCP, Azure, DigitalOcean and + AliCloud. If you want to use a community-driven plugin override + the providers' list as follows. +

    +
    const nodeCloud = require("nodecloud");
    +const options = {
    +  overrideProviders: true
    +};
    +const ncProviders = nodeCloud.getProviders(options);
    +
    +

    📟 Service Types

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Service CategoryServiceAWSGCPAzureDigitalOceanAliCloud
    ComputeIaaSEC2Compute EngineVirtual MachineDropletsECS
    FaasAWS Lambda*Cloud Functions*Azure Functions*-Function Compute*
    ContainersECS, EKSGoogle Kubernetes Engine + AKS, Azure Service Fabric* + DO Kubernetes + Container Service*, Container Service for Kubernetes* +
    Containers (without infrastructure)AWS Fargate*Cloud Run*--ECI*
    PaasAWS Elastic BeanstalkApp Engine*App Service- + Simple Application Server* +
    StorageObject StorageS3Cloud StorageAzure Blob StorageSpaces*Bucket (OSS)
    Block StorageEBSPersistent DisksDisk StorageVolumesNAS*
    NetworkingLoad BalancerELBCloud Load Balancing*Azure Load BalancerDO Load BalancerSLB
    Peering/Dedicated InterconnectDirect ConnectCloud Interconnect*ExpressRoute*-Express Connect*
    DNSRoute53Google Domains, Cloud DNSAzure DNSDO DNSAlibaba Cloud DNS*
    DatabasesRDBMS + 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) +
    NoSQL: key-valueDynamoDB + Cloud Firestore, Cloud Bigtable* + Table StorageManaged Databases(Redis)*ApsaraDB for Redis*
    NoSQL: indexedAmazon SimpleDB*Cloud FirestoreCosmos DB-ApsaraDB for MongoDB*
    Security/ AuthorizationIdentity Access ManagementAWS IAMCloud IAM* + Azure Active Directory*, Azure Role Based Access Control* + - + Resource Access Management* +
    ManagementKey ManagementAWS-KMS--Do-Keys-
    +

    *yet to be implemented

    Contributing ❤️

    NodeCloud relies on the passionate members of its community to keep delivering impactful tools to people all over the world. + Contributions of any kind are welcome!

    - Before contributing, be sure to consult NodeClouds's - contribution guidelines. As a member of our community, you must - abide by our Code Of Conduct. + You can help us in many ways. Including new features, bug + fixing, error reporting and documentation. Before contributing, + be sure to consult NodeClouds's contribution guidelines. As a + member of our community, you must abide by our Code Of Conduct.

    💻 Development setup

    @@ -450,25 +704,147 @@

    💻 Development setup

    git clone git@github.com:your-username/nodecloud.git
    +              >git clone https://github.com/your-username/nodecloud.git
     

    3️⃣ Bootstrapping the repository
    You'll then want to navigate within the folder that was just created that contains all of the content of the forked repository. There you'll want to run the installation script to - get the updated version of all the third party dependencies. + get the updated version of all the third-party dependencies.

    cd nodecloud
    -yarn install
    +yarn
    +
    +

    Important Notes for Developers 😎

    +

    + ❇️ This project is based on + Lerna and Yarn workspaces + where there are multiple projects in the same repository. It's + better to get some background knowledge about these before + making any changes in the code. Check the + lerna.json for the current configuration. +

    +

    + ❇️ @nodecloud/aws-plugin , + @nodecloud/gcp-plugin , + @nodecloud/azure-plugin and + @nodecloud/common are Lerna managed + yarn workspaces where the generator is another + standalone yarn workspace. +

    +

    + ❇️ + Never use NPM client to install third-party + dependencies. This project does not contain a + package-lock.json instead it contains a + yarn.lock file. Using npm i to install + NPM modules will harm the project structure. +

    +

    + ❇️ Use lerna commands when installing third-party + libraries in Lerna managed yarn workspaces. For example, the + below command will add the + @google-cloud/translate npm module to the project + @nodecloud/gcp-plugin . +

    +
    lerna add @google-cloud/translate --scope=@nodecloud/gcp-plugin
    +
    +

    + ❇️ Adding a common dependency to ALL packages +

    +
    lerna add the-dep-name
    +
    +

    ❇️ Adding Dev dependencies

    +

    + If you have common dev dependencies, it’s better to specify them + in the workspace root package.json. For instance, this can be + dependencies like Jest, Husky, Storybook, Eslint, Prettier, etc. +

    +
    yarn add husky --dev -W
    +
    +

    + Adding the -W flag makes it explicit that we’re adding the + dependency to the workspace root. +

    +

    ❇️ Removing Dependencies

    +
    lerna exec -- yarn remove dep-name
    +
    +

    + ❇️ Use symlinks when you want to make changes while testing them + out in a demo project.** Do not use npm link** instead use yarn + linking +

    +
    yarn link
    +
    +

    You should see output like:

    +

    + success Registered "@nodecloud/gcp-plugin". info + You can now run + yarn link "@nodecloud/gcp-plugin" in + the projects where you want to use this module and it will be + used instead. +

    +

    + Now that our package is symlinked, run the following command to + link the package to your project. +

    +
    yarn link @nodecloud/gcp-plugin
    +
    +

    + ❇️ The API documentation is generated using JSDoc. Be mindful + when making any changes to the auto-generated comments in + JavaScript classes. If you have generated new classes run the + following command to generate the API documentation. +

    +
    yarn doc or `jsdoc -c jsdoc.json`
    +
    +

    + ❇️ The JSDoc configuration can be found in the + jsdoc.json file. Currently, it is configured with + the + better-docs + template. +

    +

    + ❇️ The code generation component ( generator yarn + workspace) is developed using the TypeScript compiler API. It is + better to have an understanding of Abstract Syntax trees, + Parsers, and transformers when making code changes in the + generator. +

    +

    + ❇️ Please run prettier before committing code to put it in a + nice looking format. +

    +
    lerna run prettier or yarn pretty-quick
     

    Test Changes

    - When you start making changes to the code on your local branch, - you'll need to test those changes. Before your code can be - accepted into the master branch, it will have to pass all of the - tests in yarn workspaces. To test changes, run the following - commands: + Mocha and Chai is configured to run + unit tests in this project. When you start making changes to the + code on your local branch, you'll need to test those changes. + Before your code can be accepted into the master branch, it will + have to pass all of the tests in yarn workspaces. To test + changes, run the following commands:

    1️⃣ Save Current Changes
    @@ -482,53 +858,29 @@

    Test Changes

    To make sure that the application is properly updated, run the tests. If you add elements that do not have tests to prove whether they work correctly or not, please include them in your - pull request. + pull request. When you run the below test command + Lerna will execute all the tests in the packages of + this monorepo.

    yarn test
     
    -

    NodeCloud Plugins

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    PluginPurpose
    AWS plugin - Contains Amazon web services NodeCloud, JavaScript classes - are automatically generated by a code generator -
    Azure pluginAzuren
    Google Cloud plugin
    Alibaba plugin
    Digital Ocean plugin
    -

    NodeCloud Code Generation Component

    -

    Contributors 🌟

    +

    NodeCloud Code Generation tool

    - Contributions of any kind welcome! You can help us in many ways. - Including new features, bug fixing, error reporting and - documentation. + This is where the magic happens✨. We don't code any JavaScript + classes in NodeCloud plugins, instead, they are automatically + generated by a code generation tool. This automating process is + currently working for AWS, Azure and Google Cloud. Once you add + a service in node-cloud.yml in the required format + for the generator, run + tsc main && node main to generate the + service. You will immediately see the output in + generatedClasses directory inside the + generator . More information about the generation + tool can be found in the ReadME of + generator workspace.

    📜 License

    -

    MIT

    +

    MIT @ leopardslab

    diff --git a/examples/compute/do-droplet.js b/examples/compute/do-droplet.js new file mode 100644 index 00000000..b9db118f --- /dev/null +++ b/examples/compute/do-droplet.js @@ -0,0 +1,59 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +// get compute object for Digital Ocean +const droplet = ncProviders.do.compute(); + +function launchInstance() { + const instanceParams = { + name: "digitalocean.fi", + region: "nyc3", + size: "s-1vcpu-1gb", + image: "ubuntu-16-04-x64", + ssh_keys: null, + backups: false, + ipv6: true, + user_data: null, + private_networking: null, + volumes: null, + tags: ["web"] + }; + + // create DO Droplet instance + droplet + .create(instanceParams) + .then(res => { + console.log(`All done ! ${res}`); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//list Instances +function listInstances() { + droplet + .list() + .then(res => { + console.log("Instances are" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//destroy an Instance +function destroyInstance() { + let instanceId = "3164444"; + droplet + .destroy(instanceId) + .then(res => { + console.log("Output is" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} diff --git a/examples/compute/do-ks.js b/examples/compute/do-ks.js new file mode 100644 index 00000000..8c398cd3 --- /dev/null +++ b/examples/compute/do-ks.js @@ -0,0 +1,143 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const kubernetes = ncProviders.do.kubernetes(); + +//Create Kubernetes cluster +function createCluster() { + let clusterDetails = { + name: "Nodecloud", + region: "nyc1", + version: "1.18.6-do.0", + node_pools: [ + { + size: "s-1vcpu-2gb", + count: 3, + name: "worker-pool" + } + ] + }; + + kubernetes.create(clusterDetails).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Get Cluster details +function getClusterDetails() { + let clusterID = "bd5f5959-5e1e-4205-a714-a914373942af"; + kubernetes.describeCluster(clusterID).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +// Get all clusters +function getAllClusters() { + /* The nextToken value returned from a previous ListClusters request where maxResults was used and the results + exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the + nextToken value. The maximum number of clusters you can get through this request is 100, use the nextToken parameter + to get the rest clusters using a another request*/ + const limitation = { + maxResults: 20 + // nextToken: 'STRING_VALUE' -- optional + }; + + // Limitation can be a empty empty object as well, where it will give 100 clusters max + + kubernetes.listClusters(limitation).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Delete cluster +function deleteCluster() { + let clusterID = "bd5f5959-5e1e-4205-a714-a914373942af"; + kubernetes.deleteCluster(clusterID).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Create a Node Group +function createNodeGroup() { + let groupDetails = { + size: "s-1vcpu-2gb", + count: 3, + name: "new-pool", + tags: ["frontend"], + auto_scale: true, + min_nodes: 3, + max_nodes: 6 + }; + + kubernetes.createNodeGroup(clusterID, groupDetails).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Delete a node group +function deleteNodeGroup() { + let nodePoolID = "bd5f5959-5e1e-4205-a714-a914373942af"; + let clusterID = "bd5f5959-5e1e-4205-a714-a914373942af"; + kubernetes.deleteNodegroup(clusterID, nodePoolID).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Get details of Node Group +function describeNodeGroup() { + let nodePoolID = "bd5f5959-5e1e-4205-a714-a914373942af"; + let clusterID = "bd5f5959-5e1e-4205-a714-a914373942af"; + kubernetes.describeNodeGroup(clusterID, nodePoolID).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} + +//Get all Nodegroups +function listNodeGroups() { + let clusterID = "bd5f5959-5e1e-4205-a714-a914373942af"; + kubernetes.listNodegroups(clusterID).then( + result => { + console.log("Output :", result); + }, + error => { + console.error("Error :", error); + } + ); +} diff --git a/examples/management/do-keyManagement.js b/examples/management/do-keyManagement.js new file mode 100644 index 00000000..18c39ad4 --- /dev/null +++ b/examples/management/do-keyManagement.js @@ -0,0 +1,60 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const keyManagement = ncProviders.do.keyManagement(); + +//Craete a Key +function createKey() { + let options = { + public_key: + "ssh-rsa AEXAMPLEaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example", + name: "My SSH Public Key" + }; + keyManagement + .createKey(options) + .then(res => { + console.log("Output is" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} +//Delete a Key +function deleteKey() { + let keyIdentifier = "512189"; + keyManagement + .deleteKey(keyIdentifier) + .then(res => { + console.log("Output is" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//Get details of a key +function getKey() { + let keyIdentifier = "512189"; + keyManagement + .describeKey(keyIdentifier) + .then(res => { + console.log("Output is" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//Get all keys +function getAllKeys() { + keyManagement + .list() + .then(res => { + console.log("Output is" + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} diff --git a/examples/network/do-dns.js b/examples/network/do-dns.js new file mode 100644 index 00000000..a6e38d31 --- /dev/null +++ b/examples/network/do-dns.js @@ -0,0 +1,87 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const dns = ncProviders.do.dns(); + +const domainName = "example.com"; + +// Create a DNS Record +function createRecord() { + let domainCreateOptions = { + type: "A", + name: "www", + data: "162.10.66.0", + priority: null, + port: null, + ttl: 1800, + weight: null, + flags: null, + tag: null + }; + + dns + .createRecord(domainName, domainCreateOptions) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Get all DNS records +function getAllRecords() { + dns + .getRecords(domainName) + .then(records => { + console.log("Records are: ", records); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Get a DNS record +function getRecord() { + let recordID = "3352896"; + dns + .getRecord(domainName, recordID) + .then(result => { + console.log("Record are: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Delete a DNS record +function deleteRecord() { + let recordID = "3352896"; + dns + .deleteRecord(domainName, recordID) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Change a DNS record +function changeRecord() { + let recordID = "3352896"; + let options = { + name: "blog", + type: "CNAME" + }; + changeRecordSets(domainName, recordID, options) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} diff --git a/examples/network/do-lb.js b/examples/network/do-lb.js new file mode 100644 index 00000000..91ce12be --- /dev/null +++ b/examples/network/do-lb.js @@ -0,0 +1,113 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const lb = ncProviders.do.loadbalancer(); + +//Create a LoadBalancer +function create() { + let options = { + name: "example-lb-01", + region: "nyc3", + forwarding_rules: [ + { + entry_protocol: "http", + entry_port: 80, + target_protocol: "http", + target_port: 80 + }, + { + entry_protocol: "https", + entry_port: 443, + target_protocol: "https", + target_port: 443, + tls_passthrough: true + } + ], + droplet_ids: [] + }; + + lb.create(options) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//List all loadbalancers +function listAllLoadBalancers() { + lb.list() + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Delete a loadbalancer +function deleteLoadBalancer() { + let lbId = "4de7ac8b-495b-4884-9a69-1050c6793cd6"; + lb.delete(lbId) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Update a loadbalancer +function updateLoadBalancer() { + let lbId = "4de7ac8b-495b-4884-9a69-1050c6793cd6"; + let options = { + name: "updated-example-lb-01", + region: "nyc3", + droplet_ids: [3164444, 3164445], + algorithm: "round_robin", + forwarding_rules: [ + { + entry_protocol: "http", + entry_port: 80, + target_protocol: "http", + target_port: 80, + certificate_id: "", + tls_passthrough: false + }, + { + entry_protocol: "https", + entry_port: 443, + target_protocol: "https", + target_port: 443, + certificate_id: "", + tls_passthrough: true + } + ], + health_check: { + protocol: "http", + port: 80, + path: "/", + check_interval_seconds: 10, + response_timeout_seconds: 5, + healthy_threshold: 5, + unhealthy_threshold: 3 + }, + sticky_sessions: { + type: "none" + }, + redirect_http_to_https: false, + enable_proxy_protocol: true, + enable_backend_keepalive: true, + vpc_uuid: "c33931f2-a26a-4e61-b85c-4e95a2ec431b" + }; + lb.update(lbId, options) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} diff --git a/examples/storage/do-blockStorage.js b/examples/storage/do-blockStorage.js new file mode 100644 index 00000000..96138695 --- /dev/null +++ b/examples/storage/do-blockStorage.js @@ -0,0 +1,66 @@ +const nodeCloud = require("../../lib/"); +const optionsProvider = { + overrideProviders: false +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const volume = ncProviders.do.blockStorage(); + +//List all volumes +function listVolumes() { + let region = "nyc1"; + volume + .list(region) + .then(result => { + console.log("Volumes are: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Create a volume +function createVolume() { + let option = { + size_gigabytes: 10, + name: "ext4_example", + description: "Block store for examples", + region: "nyc1", + filesystem_type: "ext4", + filesystem_label: "ext4_volume_01" + }; + volume + .create(option) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Get details of a Volume +function describeVolume() { + let volumeId = "506f78a4-e098-11e5-ad9f-000f53306ae1"; + volume + .describe(volumeId) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} + +//Delete a volume +function deleteVolume() { + let volumeId = "506f78a4-e098-11e5-ad9f-000f53306ae1"; + volume + .delete(volumeId) + .then(result => { + console.log("Output is: ", result); + }) + .catch(err => { + console.log("Error is: ", err); + }); +} diff --git a/generator/README.md b/generator/README.md index 9fbdc073..d5d70d46 100644 --- a/generator/README.md +++ b/generator/README.md @@ -1,4 +1,4 @@ -# Code Generation Tool +# Code Generation Tool ![ts](https://flat.badgen.net/badge/Built%20With/TypeScript/blue) @@ -7,9 +7,9 @@ [![Mailing list : Scorelab](https://img.shields.io/badge/Mailing%20list-Scorelab-blue.svg)](https://groups.google.com/g/score-community) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-ff69b4.svg?style=flat)](https://github.com/leopardslab/nodecloud/issues) -## Code Generation in NodeCloud +## Code Generation in NodeCloud -This is where new source code is generated by assembling bits and pieces. The aim of this generator is to fill the JavaScript clases in NodeCloud plugins. This code generation process is based on TypeScript compiler API. This procress can be mainly divided into three main parts, +This is where new source code is generated by assembling bits and pieces. The aim of this generator is to fill the JavaScript clases in NodeCloud plugins. This code generation process is based on TypeScript compiler API. This procress can be mainly divided into three main parts, 1. Parsing the type definition files of cloud SDKs 2. Traversing through the **Abstract Syntax Tree** of the source code and collecting required data @@ -19,13 +19,13 @@ A high level idea of the code generator can be taken from the below rich picture ![Rich picture](https://raw.githubusercontent.com/rajitha1998/waterme-Project/master/code_generation_tool.png) -The execution of the generator starts form the `main.ts` file, where the basic information regarding the service classes are taken from the `node-cloud.yml` file and depending on the cloud provider the basic information is directed to the respective generator(e.g. - Azure generator). +The execution of the generator starts form the `main.ts` file, where the basic information regarding the service classes are taken from the `node-cloud.yml` file and depending on the cloud provider the basic information is directed to the respective generator(e.g. - Azure generator). ## Structure of `node-cloud.yml` file -* AWS +- AWS -``` +``` AWS: create: elasticbeanstalk.d.ts createApplication ``` @@ -35,9 +35,9 @@ AWS:

    -* Azure +- Azure -``` +``` Azure: create: arm-containerservice managedClusters.d.ts createOrUpdate ``` @@ -47,14 +47,14 @@ Azure:

    -* Google Cloud (client based) +- Google Cloud (client based) -``` +``` GCP: create: container v1 cluster_manager_client.d.ts createCluster ``` -``` +``` GCP: getMetricData: monitoring v3 metric_service_client.d.ts getMetricDescriptor projectPath: monitoring v3 alert_policy_service_client.d.ts projectPath @@ -67,9 +67,9 @@ GCP:

    -* Google Cloud (class based) +- Google Cloud (class based) -``` +``` GCP: mainClass: DNS createZone: dns zone.d.ts create @@ -82,6 +82,18 @@ GCP: For the class-based SDKs there is a minor change in the `node-cloud.yml` to record the main class of an SDK. For the above scenario, it’s the DNS class. +- Digital Ocean + +``` +DO: + describeCluster: kubernetes.d.ts getById +``` + +

    + + +

    + ## 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. This retured Node is another **Abstract Syntax Tree** since a class declaration itself is another **Abstract Syntax Tree**. @@ -92,10 +104,36 @@ These functions are located in the generators of the each cloud providers. Each ## 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. +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. + +- `addFunctions`: In this transformation the basic structure of the code is created. Method Nodes are created to the number of functions in the `classData` object. If there are imports related to the class those statments are also added to the dummy **Abstract Syntax Tree**. + +- `addIdentifiers`: In this transformation all the Identifier nodes are updated. After this transformation the code is logically compelete. All the neccessary code parts are added and finalized such as parameter names, parameter types, client names, class name, package names, SDK function names etc. + +- `addComments`: This transformation aims to auto-generate the API documentation. All the comments are added to the structure required by `JSDoc`. The `@category` is used to categorize the generated classes depending on the cloud provider. This tag is from the `better-docs` template used with `JSDoc`. + +## Understanding the directory structure of generator + +The code generation component of nodecloud is present in generator folder. It is a separate workspace/module managed using lerna. + +

    + +

    + +## Understanding the code generator tool + +The code generation tool is using typescript compiler api to extract and analyse cloud SDK's and then making the classes for nodelcloud out of it. +The tool works in this flow: + +

    + +

    + +The entry point of nodecloud is the main.ts file which you provide to typescript to generate the js file and then run the same. Inside the main file we fetch services from YML file and one by one pass the SDK file path and service name to generator function. -* `addFunctions`: In this transformation the basic structure of the code is created. Method Nodes are created to the number of functions in the `classData` object. If there are imports related to the class those statments are also added to the dummy **Abstract Syntax Tree**. +Inside generator we first call the parser to get the needed class and extract functions, parameters,etc needed for building Nodecloud classes. All this data is then passed onto the +transformer which transforms the dummy class into an working Nodecloud class for that specific service. All these classes are then written into the Js file. -* `addIdentifiers`: In this transformation all the Identifier nodes are updated. After this transformation the code is logically compelete. All the neccessary code parts are added and finalized such as parameter names, parameter types, client names, class name, package names, SDK function names etc. +## Running the code generation tool -* `addComments`: This transformation aims to auto-generate the API documentation. All the comments are added to the structure required by `JSDoc`. The `@category` is used to categorize the generated classes depending on the cloud provider. This tag is from the `better-docs` template used with `JSDoc`. +- To build classes run `tsc main && node main` or 'yarn run tool' if inside generator directory and `yarn run generator` if inside nodecloud directory. diff --git a/generator/dummyClasses/do.js b/generator/dummyClasses/do.js new file mode 100644 index 00000000..3d2dff0c --- /dev/null +++ b/generator/dummyClasses/do.js @@ -0,0 +1,23 @@ +class ClassName { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._sdkClassName = this._instance.SDKClassName; + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/generatedClasses/AWS/aws-paas.js b/generator/generatedClasses/AWS/appServices/aws-paaS.js similarity index 100% rename from generator/generatedClasses/AWS/aws-paas.js rename to generator/generatedClasses/AWS/appServices/aws-paaS.js diff --git a/generator/generatedClasses/AWS/aws-translation.js b/generator/generatedClasses/AWS/artificialinteligence/aws-translation.js similarity index 100% rename from generator/generatedClasses/AWS/aws-translation.js rename to generator/generatedClasses/AWS/artificialinteligence/aws-translation.js diff --git a/generator/generatedClasses/AWS/aws-computeInstance.js b/generator/generatedClasses/AWS/compute/aws-computeInstance.js similarity index 100% rename from generator/generatedClasses/AWS/aws-computeInstance.js rename to generator/generatedClasses/AWS/compute/aws-computeInstance.js diff --git a/generator/generatedClasses/AWS/aws-container.js b/generator/generatedClasses/AWS/compute/aws-container.js similarity index 100% rename from generator/generatedClasses/AWS/aws-container.js rename to generator/generatedClasses/AWS/compute/aws-container.js diff --git a/generator/generatedClasses/AWS/aws-kubernetes.js b/generator/generatedClasses/AWS/compute/aws-kubernetes.js similarity index 100% rename from generator/generatedClasses/AWS/aws-kubernetes.js rename to generator/generatedClasses/AWS/compute/aws-kubernetes.js diff --git a/generator/generatedClasses/AWS/aws-RDBMS.js b/generator/generatedClasses/AWS/database/aws-RDBMS.js similarity index 100% rename from generator/generatedClasses/AWS/aws-RDBMS.js rename to generator/generatedClasses/AWS/database/aws-RDBMS.js diff --git a/generator/generatedClasses/AWS/aws-noSql.js b/generator/generatedClasses/AWS/database/aws-noSql.js similarity index 100% rename from generator/generatedClasses/AWS/aws-noSql.js rename to generator/generatedClasses/AWS/database/aws-noSql.js diff --git a/generator/generatedClasses/AWS/aws-noSqlIndexed.js b/generator/generatedClasses/AWS/database/aws-noSqlIndexed.js similarity index 100% rename from generator/generatedClasses/AWS/aws-noSqlIndexed.js rename to generator/generatedClasses/AWS/database/aws-noSqlIndexed.js diff --git a/generator/generatedClasses/AWS/aws-keyManagement.js b/generator/generatedClasses/AWS/management/aws-keyManagement.js similarity index 100% rename from generator/generatedClasses/AWS/aws-keyManagement.js rename to generator/generatedClasses/AWS/management/aws-keyManagement.js diff --git a/generator/generatedClasses/AWS/aws-monitoring.js b/generator/generatedClasses/AWS/management/aws-monitoring.js similarity index 100% rename from generator/generatedClasses/AWS/aws-monitoring.js rename to generator/generatedClasses/AWS/management/aws-monitoring.js diff --git a/generator/generatedClasses/AWS/aws-notificationService.js b/generator/generatedClasses/AWS/management/aws-notificationService.js similarity index 100% rename from generator/generatedClasses/AWS/aws-notificationService.js rename to generator/generatedClasses/AWS/management/aws-notificationService.js diff --git a/generator/generatedClasses/AWS/aws-DNS.js b/generator/generatedClasses/AWS/network/aws-DNS.js similarity index 100% rename from generator/generatedClasses/AWS/aws-DNS.js rename to generator/generatedClasses/AWS/network/aws-DNS.js diff --git a/generator/generatedClasses/AWS/aws-loadBalancer.js b/generator/generatedClasses/AWS/network/aws-loadBalancer.js similarity index 100% rename from generator/generatedClasses/AWS/aws-loadBalancer.js rename to generator/generatedClasses/AWS/network/aws-loadBalancer.js diff --git a/generator/generatedClasses/AWS/aws-IAM.js b/generator/generatedClasses/AWS/security/aws-IAM.js similarity index 100% rename from generator/generatedClasses/AWS/aws-IAM.js rename to generator/generatedClasses/AWS/security/aws-IAM.js diff --git a/generator/generatedClasses/AWS/aws-archivalStorage.js b/generator/generatedClasses/AWS/storage/aws-archivalStorage.js similarity index 100% rename from generator/generatedClasses/AWS/aws-archivalStorage.js rename to generator/generatedClasses/AWS/storage/aws-archivalStorage.js diff --git a/generator/generatedClasses/AWS/aws-blockStorage.js b/generator/generatedClasses/AWS/storage/aws-blockStorage.js similarity index 100% rename from generator/generatedClasses/AWS/aws-blockStorage.js rename to generator/generatedClasses/AWS/storage/aws-blockStorage.js diff --git a/generator/generatedClasses/AWS/aws-storageBucket.js b/generator/generatedClasses/AWS/storage/aws-storageBucket.js similarity index 100% rename from generator/generatedClasses/AWS/aws-storageBucket.js rename to generator/generatedClasses/AWS/storage/aws-storageBucket.js diff --git a/generator/generatedClasses/Azure/azure-paas.js b/generator/generatedClasses/Azure/appServices/azure-paaS.js similarity index 100% rename from generator/generatedClasses/Azure/azure-paas.js rename to generator/generatedClasses/Azure/appServices/azure-paaS.js diff --git a/generator/generatedClasses/Azure/azure-computeInstance.js b/generator/generatedClasses/Azure/compute/azure-computeInstance.js similarity index 100% rename from generator/generatedClasses/Azure/azure-computeInstance.js rename to generator/generatedClasses/Azure/compute/azure-computeInstance.js diff --git a/generator/generatedClasses/Azure/azure-container.js b/generator/generatedClasses/Azure/compute/azure-container.js similarity index 100% rename from generator/generatedClasses/Azure/azure-container.js rename to generator/generatedClasses/Azure/compute/azure-container.js diff --git a/generator/generatedClasses/Azure/azure-kubernetes.js b/generator/generatedClasses/Azure/compute/azure-kubernetes.js similarity index 100% rename from generator/generatedClasses/Azure/azure-kubernetes.js rename to generator/generatedClasses/Azure/compute/azure-kubernetes.js diff --git a/generator/generatedClasses/Azure/azure-RDBMS.js b/generator/generatedClasses/Azure/database/azure-RDBMS.js similarity index 100% rename from generator/generatedClasses/Azure/azure-RDBMS.js rename to generator/generatedClasses/Azure/database/azure-RDBMS.js diff --git a/generator/generatedClasses/Azure/azure-noSql.js b/generator/generatedClasses/Azure/database/azure-noSql.js similarity index 100% rename from generator/generatedClasses/Azure/azure-noSql.js rename to generator/generatedClasses/Azure/database/azure-noSql.js diff --git a/generator/generatedClasses/Azure/azure-keyManagement.js b/generator/generatedClasses/Azure/management/azure-keyManagement.js similarity index 100% rename from generator/generatedClasses/Azure/azure-keyManagement.js rename to generator/generatedClasses/Azure/management/azure-keyManagement.js diff --git a/generator/generatedClasses/Azure/azure-monitoring.js b/generator/generatedClasses/Azure/management/azure-monitoring.js similarity index 100% rename from generator/generatedClasses/Azure/azure-monitoring.js rename to generator/generatedClasses/Azure/management/azure-monitoring.js diff --git a/generator/generatedClasses/Azure/azure-DNS.js b/generator/generatedClasses/Azure/network/azure-DNS.js similarity index 100% rename from generator/generatedClasses/Azure/azure-DNS.js rename to generator/generatedClasses/Azure/network/azure-DNS.js diff --git a/generator/generatedClasses/Azure/azure-loadBalancer.js b/generator/generatedClasses/Azure/network/azure-loadBalancer.js similarity index 100% rename from generator/generatedClasses/Azure/azure-loadBalancer.js rename to generator/generatedClasses/Azure/network/azure-loadBalancer.js diff --git a/generator/generatedClasses/Azure/azure-blockStorage.js b/generator/generatedClasses/Azure/storage/azure-blockStorage.js similarity index 100% rename from generator/generatedClasses/Azure/azure-blockStorage.js rename to generator/generatedClasses/Azure/storage/azure-blockStorage.js diff --git a/generator/generatedClasses/Azure/azure-storageBucket.js b/generator/generatedClasses/Azure/storage/azure-storageBucket.js similarity index 100% rename from generator/generatedClasses/Azure/azure-storageBucket.js rename to generator/generatedClasses/Azure/storage/azure-storageBucket.js diff --git a/generator/generatedClasses/DO/compute/do-computeInstance.js b/generator/generatedClasses/DO/compute/do-computeInstance.js new file mode 100644 index 00000000..7f925773 --- /dev/null +++ b/generator/generatedClasses/DO/compute/do-computeInstance.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Droplets object + * @category Digital Ocean + */ +class DO_ComputeInstance { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._droplets = this._instance.droplets; + } + /** + * Trigers the getAll function of Droplets + * @param {StringKeyword} tagName - Data required for getAll + * @param {BooleanKeyword} includeAll - Data required for getAll + * @param {NumberKeyword} page - Data required for getAll + * @param {NumberKeyword} pageSize - Data required for getAll + * @returns {Promise} + */ + list( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._droplets + .getAll(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Droplets + * @param {DropletCreationRequest} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._droplets + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteById function of Droplets + * @param {StringKeyword} dropletId - Data required for deleteById + * @returns {Promise} + */ + destroy(dropletId) { + return new Promise((resolve, reject) => { + this._droplets + .deleteById(dropletId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the requestAction function of Droplets + * @param {StringKeyword} dropletId - Data required for requestAction + * @param {AnyKeyword} action - Data required for requestAction + * @returns {Promise} + */ + stop(dropletId, action) { + return new Promise((resolve, reject) => { + this._droplets + .requestAction(dropletId, action) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_ComputeInstance; diff --git a/generator/generatedClasses/DO/compute/do-kubernetes.js b/generator/generatedClasses/DO/compute/do-kubernetes.js new file mode 100644 index 00000000..ae3db733 --- /dev/null +++ b/generator/generatedClasses/DO/compute/do-kubernetes.js @@ -0,0 +1,135 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Kubernetes object + * @category Digital Ocean + */ +class DO_Kubernetes { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._kubernetes = this._instance.kubernetes; + } + /** + * Trigers the getClusters function of Kubernetes + * @param {BooleanKeyword} includeAll - Data required for getClusters + * @param {NumberKeyword} page - Data required for getClusters + * @param {NumberKeyword} pageSize - Data required for getClusters + * @returns {Promise} + */ + listClusters(includeAll = undefined, page = undefined, pageSize = undefined) { + return new Promise((resolve, reject) => { + this._kubernetes + .getClusters(includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Kubernetes + * @param {NewClusterRequest} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._kubernetes + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getById + * @returns {Promise} + */ + describeCluster(clusterId) { + return new Promise((resolve, reject) => { + this._kubernetes + .getById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of Kubernetes + * @param {StringKeyword} clusterId - Data required for delete + * @returns {Promise} + */ + delete(clusterId) { + return new Promise((resolve, reject) => { + this._kubernetes + .delete(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getNodePools + * @param {BooleanKeyword} includeAll - Data required for getNodePools + * @param {NumberKeyword} page - Data required for getNodePools + * @param {NumberKeyword} pageSize - Data required for getNodePools + * @returns {Promise} + */ + listNodegroups( + clusterId, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._kubernetes + .getNodePools(clusterId, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePoolById function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getNodePoolById + * @param {StringKeyword} nodePoolId - Data required for getNodePoolById + * @returns {Promise} + */ + describeNodeGroup(clusterId, nodePoolId) { + return new Promise((resolve, reject) => { + this._kubernetes + .getNodePoolById(clusterId, nodePoolId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the addNodePool function of Kubernetes + * @param {StringKeyword} clusterId - Data required for addNodePool + * @param {ClusterNodePool} nodePool - Data required for addNodePool + * @returns {Promise} + */ + createNodeGroup(clusterId, nodePool) { + return new Promise((resolve, reject) => { + this._kubernetes + .addNodePool(clusterId, nodePool) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of Kubernetes + * @param {StringKeyword} clusterId - Data required for deleteNodePool + * @param {StringKeyword} nodePoolId - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodegroup(clusterId, nodePoolId) { + return new Promise((resolve, reject) => { + this._kubernetes + .deleteNodePool(clusterId, nodePoolId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_Kubernetes; diff --git a/generator/generatedClasses/DO/database/do-RDBMS.js b/generator/generatedClasses/DO/database/do-RDBMS.js new file mode 100644 index 00000000..9363be19 --- /dev/null +++ b/generator/generatedClasses/DO/database/do-RDBMS.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Databases object + * @category Digital Ocean + */ +class DO_RDBMS { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._databases = this._instance.databases; + } + /** + * Trigers the getAllClusters function of Databases + * @param {StringKeyword} tagName - Data required for getAllClusters + * @param {BooleanKeyword} includeAll - Data required for getAllClusters + * @param {NumberKeyword} page - Data required for getAllClusters + * @param {NumberKeyword} pageSize - Data required for getAllClusters + * @returns {Promise} + */ + getClusters( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._databases + .getAllClusters(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createCluster function of Databases + * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster + * @returns {Promise} + */ + createCluster(clusterOptions) { + return new Promise((resolve, reject) => { + this._databases + .createCluster(clusterOptions) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getClusterById function of Databases + * @param {StringKeyword} clusterId - Data required for getClusterById + * @returns {Promise} + */ + getCluster(clusterId) { + return new Promise((resolve, reject) => { + this._databases + .getClusterById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the resizeCluster function of Databases + * @param {StringKeyword} clusterId - Data required for resizeCluster + * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster + * @returns {Promise} + */ + updateCluster(clusterId, configuration) { + return new Promise((resolve, reject) => { + this._databases + .resizeCluster(clusterId, configuration) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_RDBMS; diff --git a/generator/generatedClasses/DO/database/do-noSql.js b/generator/generatedClasses/DO/database/do-noSql.js new file mode 100644 index 00000000..808b12d4 --- /dev/null +++ b/generator/generatedClasses/DO/database/do-noSql.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Databases object + * @category Digital Ocean + */ +class DO_NoSql { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._databases = this._instance.databases; + } + /** + * Trigers the getAllClusters function of Databases + * @param {StringKeyword} tagName - Data required for getAllClusters + * @param {BooleanKeyword} includeAll - Data required for getAllClusters + * @param {NumberKeyword} page - Data required for getAllClusters + * @param {NumberKeyword} pageSize - Data required for getAllClusters + * @returns {Promise} + */ + getClusters( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._databases + .getAllClusters(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createCluster function of Databases + * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster + * @returns {Promise} + */ + createCluster(clusterOptions) { + return new Promise((resolve, reject) => { + this._databases + .createCluster(clusterOptions) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getClusterById function of Databases + * @param {StringKeyword} clusterId - Data required for getClusterById + * @returns {Promise} + */ + getCluster(clusterId) { + return new Promise((resolve, reject) => { + this._databases + .getClusterById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the resizeCluster function of Databases + * @param {StringKeyword} clusterId - Data required for resizeCluster + * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster + * @returns {Promise} + */ + updateCluster(clusterId, configuration) { + return new Promise((resolve, reject) => { + this._databases + .resizeCluster(clusterId, configuration) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_NoSql; diff --git a/generator/generatedClasses/DO/management/do-keyManagement.js b/generator/generatedClasses/DO/management/do-keyManagement.js new file mode 100644 index 00000000..ec2921ee --- /dev/null +++ b/generator/generatedClasses/DO/management/do-keyManagement.js @@ -0,0 +1,78 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Keys object + * @category Digital Ocean + */ +class DO_KeyManagement { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._keys = this._instance.keys; + } + /** + * Trigers the getAll function of Keys + * @param {StringKeyword} tagName - Data required for getAll + * @param {BooleanKeyword} includeAll - Data required for getAll + * @param {NumberKeyword} page - Data required for getAll + * @param {NumberKeyword} pageSize - Data required for getAll + * @returns {Promise} + */ + list( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._keys + .getAll(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Keys + * @param {NumberKeyword} keyId - Data required for getById + * @returns {Promise} + */ + describeKey(keyId) { + return new Promise((resolve, reject) => { + this._keys + .getById(keyId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the add function of Keys + * @param {AddKeyRequest} addKeyRequest - Data required for add + * @returns {Promise} + */ + createKey(addKeyRequest) { + return new Promise((resolve, reject) => { + this._keys + .add(addKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of Keys + * @param {StringKeyword} identifier - Data required for delete + * @returns {Promise} + */ + deleteKey(identifier) { + return new Promise((resolve, reject) => { + this._keys + .delete(identifier) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_KeyManagement; diff --git a/generator/generatedClasses/DO/network/do-DNS.js b/generator/generatedClasses/DO/network/do-DNS.js new file mode 100644 index 00000000..377e3bb7 --- /dev/null +++ b/generator/generatedClasses/DO/network/do-DNS.js @@ -0,0 +1,98 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Domains object + * @category Digital Ocean + */ +class DO_DNS { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._domains = this._instance.domains; + } + /** + * Trigers the getAllRecords function of Domains + * @param {StringKeyword} domainName - Data required for getAllRecords + * @param {StringKeyword} tagName - Data required for getAllRecords + * @param {BooleanKeyword} includeAll - Data required for getAllRecords + * @param {NumberKeyword} page - Data required for getAllRecords + * @param {NumberKeyword} pageSize - Data required for getAllRecords + * @returns {Promise} + */ + getRecords( + domainName, + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._domains + .getAllRecords(domainName, tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRecord function of Domains + * @param {StringKeyword} domainName - Data required for createRecord + * @param {DomainRecordRequestOptions} options - Data required for createRecord + * @returns {Promise} + */ + createRecord(domainName, options) { + return new Promise((resolve, reject) => { + this._domains + .createRecord(domainName, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRecord function of Domains + * @param {StringKeyword} domainName - Data required for getRecord + * @param {StringKeyword} recordId - Data required for getRecord + * @returns {Promise} + */ + getRecord(domainName, recordId) { + return new Promise((resolve, reject) => { + this._domains + .getRecord(domainName, recordId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRecord function of Domains + * @param {StringKeyword} domainName - Data required for deleteRecord + * @param {StringKeyword} recordId - Data required for deleteRecord + * @returns {Promise} + */ + deleteRecord(domainName, recordId) { + return new Promise((resolve, reject) => { + this._domains + .deleteRecord(domainName, recordId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRecord function of Domains + * @param {StringKeyword} domainName - Data required for updateRecord + * @param {StringKeyword} recordId - Data required for updateRecord + * @param {DomainRecordRequestOptions} options - Data required for updateRecord + * @returns {Promise} + */ + changeRecordSets(domainName, recordId, options) { + return new Promise((resolve, reject) => { + this._domains + .updateRecord(domainName, recordId, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_DNS; diff --git a/generator/generatedClasses/DO/network/do-loadBalancer.js b/generator/generatedClasses/DO/network/do-loadBalancer.js new file mode 100644 index 00000000..c1d64d0b --- /dev/null +++ b/generator/generatedClasses/DO/network/do-loadBalancer.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancers object + * @category Digital Ocean + */ +class DO_LoadBalancer { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._loadBalancers = this._instance.loadBalancers; + } + /** + * Trigers the create function of LoadBalancers + * @param {LoadBalancerCreationOptions} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._loadBalancers + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getAll function of LoadBalancers + * @returns {Promise} + */ + list() { + return new Promise((resolve, reject) => { + this._loadBalancers + .getAll() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the update function of LoadBalancers + * @param {StringKeyword} loadBalancerId - Data required for update + * @param {AnyKeyword} options - Data required for update + * @returns {Promise} + */ + update(loadBalancerId, options) { + return new Promise((resolve, reject) => { + this._loadBalancers + .update(loadBalancerId, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of LoadBalancers + * @param {StringKeyword} loadBalancerId - Data required for delete + * @returns {Promise} + */ + delete(loadBalancerId) { + return new Promise((resolve, reject) => { + this._loadBalancers + .delete(loadBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_LoadBalancer; diff --git a/generator/generatedClasses/DO/storage/do-blockStorage.js b/generator/generatedClasses/DO/storage/do-blockStorage.js new file mode 100644 index 00000000..2a2c86f5 --- /dev/null +++ b/generator/generatedClasses/DO/storage/do-blockStorage.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Volumes object + * @category Digital Ocean + */ +class DO_BlockStorage { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._volumes = this._instance.volumes; + } + /** + * Trigers the getAll function of Volumes + * @param {StringKeyword} region - Data required for getAll + * @returns {Promise} + */ + list(region) { + return new Promise((resolve, reject) => { + this._volumes + .getAll(region) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Volumes + * @param {VolumeCreationOptions} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._volumes + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Volumes + * @param {StringKeyword} volumeId - Data required for getById + * @returns {Promise} + */ + describe(volumeId) { + return new Promise((resolve, reject) => { + this._volumes + .getById(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteById function of Volumes + * @param {StringKeyword} volumeId - Data required for deleteById + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._volumes + .deleteById(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_BlockStorage; diff --git a/generator/generatedClasses/googleCloud/gcp-translation.js b/generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-translation.js rename to generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js diff --git a/generator/generatedClasses/googleCloud/gcp-kubernetes.js b/generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-kubernetes.js rename to generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js diff --git a/generator/generatedClasses/googleCloud/gcp-RDBMS.js b/generator/generatedClasses/googleCloud/database/gcp-RDBMS.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-RDBMS.js rename to generator/generatedClasses/googleCloud/database/gcp-RDBMS.js diff --git a/generator/generatedClasses/googleCloud/gcp-noSql.js b/generator/generatedClasses/googleCloud/database/gcp-noSql.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-noSql.js rename to generator/generatedClasses/googleCloud/database/gcp-noSql.js diff --git a/generator/generatedClasses/googleCloud/gcp-keyManagement.js b/generator/generatedClasses/googleCloud/management/gcp-keyManagement.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-keyManagement.js rename to generator/generatedClasses/googleCloud/management/gcp-keyManagement.js diff --git a/generator/generatedClasses/googleCloud/gcp-monitoring.js b/generator/generatedClasses/googleCloud/management/gcp-monitoring.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-monitoring.js rename to generator/generatedClasses/googleCloud/management/gcp-monitoring.js diff --git a/generator/generatedClasses/googleCloud/gcp-notificationService.js b/generator/generatedClasses/googleCloud/management/gcp-notificationService.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-notificationService.js rename to generator/generatedClasses/googleCloud/management/gcp-notificationService.js diff --git a/generator/generatedClasses/googleCloud/gcp-DNS.js b/generator/generatedClasses/googleCloud/network/gcp-DNS.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-DNS.js rename to generator/generatedClasses/googleCloud/network/gcp-DNS.js diff --git a/generator/generatedClasses/googleCloud/gcp-archivalStorage.js b/generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-archivalStorage.js rename to generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js diff --git a/generator/generatedClasses/googleCloud/gcp-storageBucket.js b/generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js similarity index 100% rename from generator/generatedClasses/googleCloud/gcp-storageBucket.js rename to generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js diff --git a/generator/generators/aws/generator.js b/generator/generators/aws/generator.js index e06edbfb..33d55ba9 100644 --- a/generator/generators/aws/generator.js +++ b/generator/generators/aws/generator.js @@ -197,7 +197,7 @@ function generateAWSClass(serviceClass, serviceName) { var sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(" ")[0]; parser_1.getAST(sdkFile).then(function(result) { return __awaiter(_this, void 0, void 0, function() { - var sdkClassAst, classData, output, filePath, e_1; + var sdkClassAst, classData, output, filePath, dir, e_1; return __generator(this, function(_a) { switch (_a.label) { case 0: @@ -211,16 +211,26 @@ function generateAWSClass(serviceClass, serviceName) { case 2: output = _a.sent(); filePath = void 0; + dir = helper_1.getDir(serviceName); + if ( + !fs.existsSync(process.cwd() + "/generatedClasses/AWS/" + dir) + ) { + fs.mkdirSync(process.cwd() + "/generatedClasses/AWS/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/AWS/aws-" + + "/generatedClasses/AWS/" + + dir + + "/aws-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/AWS/aws-" + + "/generatedClasses/AWS/" + + dir + + "/aws-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/aws/generator.ts b/generator/generators/aws/generator.ts index 1290e65e..b35fd6ba 100644 --- a/generator/generators/aws/generator.ts +++ b/generator/generators/aws/generator.ts @@ -2,7 +2,7 @@ import * as fs from "fs"; import { createSourceFile, ScriptTarget, SyntaxKind } from "typescript"; import { getAST } from "../../parsers/aws/parser"; import { transform } from "../../transformers/aws/transformer"; -import { filters, groupers, printFile } from "../lib/helper"; +import { filters, groupers, printFile, getDir } from "../lib/helper"; interface FunctionData { functionName: string; @@ -94,13 +94,24 @@ export function generateAWSClass(serviceClass, serviceName) { classData.serviceName = serviceName; const output = await transform(dummyAst, classData); let filePath; + const dir = getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/AWS/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/AWS/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = - process.cwd() + "/generatedClasses/AWS/aws-" + serviceName + ".js"; + process.cwd() + + "/generatedClasses/AWS/" + + dir + + "/aws-" + + serviceName + + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/AWS/aws-" + + "/generatedClasses/AWS/" + + dir + + "/aws-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/azure/generator.js b/generator/generators/azure/generator.js index 6e249580..cf75bcc8 100644 --- a/generator/generators/azure/generator.js +++ b/generator/generators/azure/generator.js @@ -202,7 +202,7 @@ function extractSDKData(sdkFiles, methods) { exports.extractSDKData = extractSDKData; function generateAzureClass(serviceClass, serviceName) { return __awaiter(this, void 0, void 0, function() { - var methods, files, sdkFiles, classData, output, filePath; + var methods, files, sdkFiles, classData, output, filePath, dir; var _this = this; return __generator(this, function(_a) { switch (_a.label) { @@ -268,16 +268,26 @@ function generateAzureClass(serviceClass, serviceName) { return [4 /*yield*/, transformer_1.transform(dummyAst, classData)]; case 2: output = _a.sent(); + dir = helper_1.getDir(serviceName); + if ( + !fs.existsSync(process.cwd() + "/generatedClasses/Azure/" + dir) + ) { + fs.mkdirSync(process.cwd() + "/generatedClasses/Azure/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/Azure/azure-" + + "/generatedClasses/Azure/" + + dir + + "/azure-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/Azure/azure-" + + "/generatedClasses/Azure/" + + dir + + "/azure-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/azure/generator.ts b/generator/generators/azure/generator.ts index 6c9c22bc..ebba8205 100644 --- a/generator/generators/azure/generator.ts +++ b/generator/generators/azure/generator.ts @@ -1,7 +1,7 @@ import * as fs from "fs"; import { SyntaxKind, createSourceFile, ScriptTarget } from "typescript"; import { getAST } from "../../parsers/azure/parser"; -import { groupers, filters, printFile } from "../lib/helper"; +import { groupers, filters, printFile, getDir } from "../lib/helper"; import { transform } from "../../transformers/azure/transformer"; interface FunctionData { @@ -125,13 +125,24 @@ export async function generateAzureClass(serviceClass, serviceName) { classData.serviceName = serviceName; const output = await transform(dummyAst, classData); let filePath; + const dir = getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/Azure/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/Azure/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = - process.cwd() + "/generatedClasses/Azure/azure-" + serviceName + ".js"; + process.cwd() + + "/generatedClasses/Azure/" + + dir + + "/azure-" + + serviceName + + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/Azure/azure-" + + "/generatedClasses/Azure/" + + dir + + "/azure-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/do/generator.js b/generator/generators/do/generator.js new file mode 100644 index 00000000..56ae7d57 --- /dev/null +++ b/generator/generators/do/generator.js @@ -0,0 +1,247 @@ +"use strict"; +var __awaiter = + (this && this.__awaiter) || + function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P + ? value + : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done + ? resolve(result.value) + : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +var __generator = + (this && this.__generator) || + function(thisArg, body) { + var _ = { + label: 0, + sent: function() { + if (t[0] & 1) throw t[1]; + return t[1]; + }, + trys: [], + ops: [] + }, + f, + y, + t, + g; + return ( + (g = { next: verb(0), throw: verb(1), return: verb(2) }), + typeof Symbol === "function" && + (g[Symbol.iterator] = function() { + return this; + }), + g + ); + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) + try { + if ( + ((f = 1), + y && + (t = + op[0] & 2 + ? y["return"] + : op[0] + ? y["throw"] || ((t = y["return"]) && t.call(y), 0) + : y.next) && + !(t = t.call(y, op[1])).done) + ) + return t; + if (((y = 0), t)) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if ( + !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) && + (op[0] === 6 || op[0] === 2) + ) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; +exports.__esModule = true; +exports.generateDOClass = exports.extractSDKData = void 0; +var fs = require("fs"); +var typescript_1 = require("typescript"); +var parser_1 = require("../../parsers/do/parser"); +var transformer_1 = require("../../transformers/do/transformer"); +var helper_1 = require("../lib/helper"); +var dummyFile = process.cwd() + "/dummyClasses/do.js"; +var dummyAst = typescript_1.createSourceFile( + dummyFile, + fs.readFileSync(dummyFile).toString(), + typescript_1.ScriptTarget.Latest, + true +); +function extractSDKData(sdkClassAst, serviceClass) { + var methods = []; + var functions = []; + Object.keys(serviceClass).map(function(key, index) { + functions.push(serviceClass[key].split(" ")[1]); + }); + sdkClassAst.members.map(function(method) { + if (method.name && functions.includes(method.name.text)) { + var name_1; + Object.keys(serviceClass).map(function(key, index) { + if (serviceClass[key].split(" ")[1] === method.name.text) { + name_1 = key; + } + }); + var parameters_1 = []; + method.parameters.map(function(param) { + if (param.name.text !== "callback") { + var parameter = { + name: param.name.text, + optional: param.questionToken ? true : false, + type: typescript_1.SyntaxKind[param.type.kind], + typeName: null + }; + if (parameter.type === "TypeReference" && param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + parameters_1.push(parameter); + } + }); + methods.push({ + functionName: name_1.toString(), + SDKFunctionName: method.name.text.toString(), + params: parameters_1 + }); + } + }); + var classData = { + className: sdkClassAst.name.text, + functions: methods, + serviceName: null + }; + return classData; +} +exports.extractSDKData = extractSDKData; +function generateDOClass(serviceClass, serviceName) { + var _this = this; + var sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(" ")[0]; + parser_1.getAST(sdkFile).then(function(result) { + return __awaiter(_this, void 0, void 0, function() { + var sdkClassAst, classData, output, filePath, dir, e_1; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + sdkClassAst = result; + _a.label = 1; + case 1: + _a.trys.push([1, 3, , 4]); + classData = extractSDKData(sdkClassAst, serviceClass); + classData.serviceName = serviceName; + return [4 /*yield*/, transformer_1.transform(dummyAst, classData)]; + case 2: + output = _a.sent(); + filePath = void 0; + dir = helper_1.getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/DO/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/DO/" + dir); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + "/generatedClasses/DO/" + + dir + + "/do-" + + serviceName + + ".js"; + } else { + filePath = + process.cwd() + + "/generatedClasses/DO/" + + dir + + "/do-" + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + ".js"; + } + helper_1.printFile(filePath, output); + return [3 /*break*/, 4]; + case 3: + e_1 = _a.sent(); + console.error(e_1); + return [3 /*break*/, 4]; + case 4: + return [2 /*return*/]; + } + }); + }); + }); +} +exports.generateDOClass = generateDOClass; diff --git a/generator/generators/do/generator.ts b/generator/generators/do/generator.ts new file mode 100644 index 00000000..89868580 --- /dev/null +++ b/generator/generators/do/generator.ts @@ -0,0 +1,122 @@ +import * as fs from "fs"; +import { createSourceFile, ScriptTarget, SyntaxKind } from "typescript"; +import { getAST } from "../../parsers/do/parser"; +import { transform } from "../../transformers/do/transformer"; +import { printFile, getDir } from "../lib/helper"; + +interface FunctionData { + functionName: string; + SDKFunctionName: string; + params: param[]; +} + +interface param { + name: string; + type: string; + typeName: string; +} + +interface ClassData { + className: string; + functions: FunctionData[]; + serviceName: string; +} + +const dummyFile = process.cwd() + "/dummyClasses/do.js"; + +const dummyAst = createSourceFile( + dummyFile, + fs.readFileSync(dummyFile).toString(), + ScriptTarget.Latest, + true +); + +export function extractSDKData(sdkClassAst, serviceClass) { + let methods: FunctionData[] = []; + const functions = []; + + Object.keys(serviceClass).map((key, index) => { + functions.push(serviceClass[key].split(" ")[1]); + }); + + sdkClassAst.members.map(method => { + if (method.name && functions.includes(method.name.text)) { + let name; + Object.keys(serviceClass).map((key, index) => { + if (serviceClass[key].split(" ")[1] === method.name.text) { + name = key; + } + }); + + const parameters = []; + method.parameters.map(param => { + if (param.name.text !== "callback") { + const parameter = { + name: param.name.text, + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + typeName: null + }; + + if (parameter.type === "TypeReference" && param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + + parameters.push(parameter); + } + }); + + methods.push({ + functionName: name.toString(), + SDKFunctionName: method.name.text.toString(), + params: parameters + }); + } + }); + + const classData: ClassData = { + className: sdkClassAst.name.text, + functions: methods, + serviceName: null + }; + + return classData; +} + +export function generateDOClass(serviceClass, serviceName) { + const sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(" ")[0]; + getAST(sdkFile).then(async result => { + const sdkClassAst = result; + try { + const classData: ClassData = extractSDKData(sdkClassAst, serviceClass); + classData.serviceName = serviceName; + const output = await transform(dummyAst, classData); + let filePath; + const dir = getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/DO/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/DO/" + dir); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + "/generatedClasses/DO/" + + dir + + "/do-" + + serviceName + + ".js"; + } else { + filePath = + process.cwd() + + "/generatedClasses/DO/" + + dir + + "/do-" + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + ".js"; + } + printFile(filePath, output); + } catch (e) { + console.error(e); + } + }); +} diff --git a/generator/generators/googleCloud/generator.js b/generator/generators/googleCloud/generator.js index 367b370a..664103f9 100644 --- a/generator/generators/googleCloud/generator.js +++ b/generator/generators/googleCloud/generator.js @@ -333,7 +333,8 @@ function generateClassBasedCode(methods, data, serviceName) { extractedData, groupedMethods, output, - filePath; + filePath, + dir; var _this = this; return __generator(this, function(_a) { switch (_a.label) { @@ -403,16 +404,30 @@ function generateClassBasedCode(methods, data, serviceName) { ]; case 3: output = _a.sent(); + dir = helper_1.getDir(serviceName); + if ( + !fs.existsSync( + process.cwd() + "/generatedClasses/googleCloud/" + dir + ) + ) { + fs.mkdirSync( + process.cwd() + "/generatedClasses/googleCloud/" + dir + ); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; @@ -425,7 +440,7 @@ function generateClassBasedCode(methods, data, serviceName) { } function generateClientBasedCode(methods, serviceName) { return __awaiter(this, void 0, void 0, function() { - var files, sdkFiles, groupedMethods, classData, output, filePath; + var files, sdkFiles, groupedMethods, classData, output, filePath, dir; var _this = this; return __generator(this, function(_a) { switch (_a.label) { @@ -495,16 +510,30 @@ function generateClientBasedCode(methods, serviceName) { ]; case 3: output = _a.sent(); + dir = helper_1.getDir(serviceName); + if ( + !fs.existsSync( + process.cwd() + "/generatedClasses/googleCloud/" + dir + ) + ) { + fs.mkdirSync( + process.cwd() + "/generatedClasses/googleCloud/" + dir + ); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/googleCloud/generator.ts b/generator/generators/googleCloud/generator.ts index de0e5d42..2a1972c4 100644 --- a/generator/generators/googleCloud/generator.ts +++ b/generator/generators/googleCloud/generator.ts @@ -2,7 +2,7 @@ import * as fs from "fs"; import * as path from "path"; import { SyntaxKind, createSourceFile, ScriptTarget } from "typescript"; import { getAST } from "../../parsers/googleCloud/parser"; -import { filters, groupers, printFile } from "../lib/helper"; +import { filters, groupers, printFile, getDir } from "../lib/helper"; import { clientBasedTransform } from "../../transformers/googleCloud/clientBasedTransformer"; import { classBasedTransform } from "../../transformers/googleCloud/classBasedTransformer"; @@ -256,16 +256,24 @@ async function generateClassBasedCode(methods, data, serviceName) { const output = await classBasedTransform(dummyAst, data); let filePath; + const dir = getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/googleCloud/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/googleCloud/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; @@ -309,16 +317,24 @@ async function generateClientBasedCode(methods, serviceName) { const output = await clientBasedTransform(dummyAst, classData); let filePath; + const dir = getDir(serviceName); + if (!fs.existsSync(process.cwd() + "/generatedClasses/googleCloud/" + dir)) { + fs.mkdirSync(process.cwd() + "/generatedClasses/googleCloud/" + dir); + } if (/^[A-Z]*$/.test(serviceName)) { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName + ".js"; } else { filePath = process.cwd() + - "/generatedClasses/googleCloud/gcp-" + + "/generatedClasses/googleCloud/" + + dir + + "/gcp-" + serviceName.charAt(0).toLowerCase() + serviceName.slice(1) + ".js"; diff --git a/generator/generators/lib/helper.js b/generator/generators/lib/helper.js index 70762002..5cdd24ce 100644 --- a/generator/generators/lib/helper.js +++ b/generator/generators/lib/helper.js @@ -1,6 +1,6 @@ "use strict"; exports.__esModule = true; -exports.filters = exports.groupers = exports.printFile = void 0; +exports.getDir = exports.filters = exports.groupers = exports.printFile = void 0; var fs = require("fs"); var awsHelper_1 = require("../lib/aws/awsHelper"); var gcpHelper_1 = require("../lib/googleCloud/gcpHelper"); @@ -8,6 +8,16 @@ var azureHelper_1 = require("../lib/azure/azureHelper"); var awsHelper_2 = require("../lib/aws/awsHelper"); var gcpHelper_2 = require("../lib/googleCloud/gcpHelper"); var azureHelper_2 = require("../lib/azure/azureHelper"); +var dirMap = { + appServices: ["PaaS"], + compute: ["ComputeInstance", "Kubernetes", "Container"], + database: ["NoSqlIndexed", "RDBMS", "NoSql"], + management: ["Monitoring", "KeyManagement", "NotificationService"], + network: ["DNS", "LoadBalancer"], + security: ["IAM"], + storage: ["StorageBucket", "BlockStorage", "ArchivalStorage"], + artificialinteligence: ["Translation"] +}; function printFile(fileName, data) { fs.writeFile(fileName, data, function(err) { if (err) throw err; @@ -26,3 +36,12 @@ var filters = { azure: azureHelper_2.filterAzureMethods }; exports.filters = filters; +var getDir = function(service) { + for (var dir in dirMap) { + if (dirMap[dir].includes(service)) { + return dir; + } + } + throw new Error("Not a valid service: " + service); +}; +exports.getDir = getDir; diff --git a/generator/generators/lib/helper.ts b/generator/generators/lib/helper.ts index 0cbf7b78..44558f3c 100644 --- a/generator/generators/lib/helper.ts +++ b/generator/generators/lib/helper.ts @@ -8,6 +8,17 @@ import { filterAWSMethods } from "../lib/aws/awsHelper"; import { filterGCPMethods } from "../lib/googleCloud/gcpHelper"; import { filterAzureMethods } from "../lib/azure/azureHelper"; +const dirMap = { + appServices: ["PaaS"], + compute: ["ComputeInstance", "Kubernetes", "Container"], + database: ["NoSqlIndexed", "RDBMS", "NoSql"], + management: ["Monitoring", "KeyManagement", "NotificationService"], + network: ["DNS", "LoadBalancer"], + security: ["IAM"], + storage: ["StorageBucket", "BlockStorage", "ArchivalStorage"], + artificialinteligence: ["Translation"] +}; + export function printFile(fileName, data) { fs.writeFile(fileName, data, function(err) { if (err) throw err; @@ -26,4 +37,13 @@ const filters = { azure: filterAzureMethods }; -export { groupers, filters }; +const getDir = (service: string): string => { + for (var dir in dirMap) { + if (dirMap[dir].includes(service)) { + return dir; + } + } + throw new Error("Not a valid service: " + service); +}; + +export { groupers, filters, getDir }; diff --git a/generator/main.js b/generator/main.js index 5cf066ad..4f556141 100644 --- a/generator/main.js +++ b/generator/main.js @@ -5,6 +5,7 @@ var fs = require("fs"); var generator_1 = require("./generators/aws/generator"); var generator_2 = require("./generators/azure/generator"); var generator_3 = require("./generators/googleCloud/generator"); +var generator_4 = require("./generators/do/generator"); try { var services_1 = yaml.safeLoad(fs.readFileSync("node-cloud.yml", "utf8")); Object.keys(services_1).map(function(service, index) { @@ -15,6 +16,8 @@ try { generator_1.generateAWSClass(services_1[service][provider], service); } else if (provider === "GCP") { generator_3.generateGCPClass(services_1[service][provider], service); + } else if (provider == "DO") { + generator_4.generateDOClass(services_1[service][provider], service); } }); }); diff --git a/generator/main.ts b/generator/main.ts index 26ab6d1f..4246cdd1 100644 --- a/generator/main.ts +++ b/generator/main.ts @@ -3,6 +3,7 @@ import * as fs from "fs"; import { generateAWSClass } from "./generators/aws/generator"; import { generateAzureClass } from "./generators/azure/generator"; import { generateGCPClass } from "./generators/googleCloud/generator"; +import { generateDOClass } from "./generators/do/generator"; try { const services = yaml.safeLoad(fs.readFileSync("node-cloud.yml", "utf8")); @@ -14,6 +15,8 @@ try { generateAWSClass(services[service][provider], service); } else if (provider === "GCP") { generateGCPClass(services[service][provider], service); + } else if (provider == "DO") { + generateDOClass(services[service][provider], service); } }); }); diff --git a/generator/node-cloud.yml b/generator/node-cloud.yml index ee5a6eba..88d97d24 100644 --- a/generator/node-cloud.yml +++ b/generator/node-cloud.yml @@ -17,6 +17,12 @@ ComputeInstance: reboot: arm-compute virtualMachines.d.ts restart destroy: arm-compute virtualMachines.d.ts deleteMethod # GCP: This SDK currenlty doesn't contain type definition files + DO: + create: droplets.d.ts create + list: droplets.d.ts getAll + destroy: droplets.d.ts deleteById + start: droplets.d.ts requestAction + stop: droplets.d.ts requestAction StorageBucket: AWS: @@ -103,6 +109,15 @@ Kubernetes: describeNodeGroup: eks.d.ts describeNodegroup listNodegroups: eks.d.ts listNodegroups updateConfig: eks.d.ts updateClusterConfig + DO: + create: kubernetes.d.ts create + delete: kubernetes.d.ts delete + listClusters: kubernetes.d.ts getClusters + describeCluster: kubernetes.d.ts getById + createNodeGroup: kubernetes.d.ts addNodePool + deleteNodegroup: kubernetes.d.ts deleteNodePool + describeNodeGroup: kubernetes.d.ts getNodePoolById + listNodegroups: kubernetes.d.ts getNodePools Monitoring: GCP: @@ -171,6 +186,11 @@ RDBMS: restoreDatabase: spanner v1 database_admin_client.d.ts restoreDatabase deleteDBSnapshot: spanner v1 database_admin_client.d.ts deleteBackup databasePath: spanner v1 database_admin_client.d.ts databasePath + DO: + createCluster: databases.d.ts createCluster + getClusters: databases.d.ts getAllClusters + getCluster: databases.d.ts getClusterById + updateCluster: databases.d.ts resizeCluster NoSql: AWS: @@ -191,6 +211,11 @@ NoSql: deleteItem: firestore v1 firestore_client.d.ts deleteDocument updateItem: firestore v1 firestore_client.d.ts updateDocument query: firestore v1 firestore_client.d.ts runQuery + DO: + createCluster: databases.d.ts createCluster + getClusters: databases.d.ts getAllClusters + getCluster: databases.d.ts getClusterById + updateCluster: databases.d.ts resizeCluster DNS: AWS: @@ -210,6 +235,12 @@ DNS: listZones: dns index.d.ts getZones changeRecordSets: dns zone.d.ts createChange record: dns zone.d.ts record + DO: + createRecord: domains.d.ts createRecord + deleteRecord: domains.d.ts deleteRecord + getRecords: domains.d.ts getAllRecords + getRecord: domains.d.ts getRecord + changeRecordSets: domains.d.ts updateRecord LoadBalancer: AWS: @@ -224,6 +255,11 @@ LoadBalancer: list: arm-network loadBalancers.d.ts list addTags: arm-network loadBalancers.d.ts updateTags describe: arm-network loadBalancers.d.ts get + DO: + create: load-balancers.d.ts create + delete: load-balancers.d.ts delete + list: load-balancers.d.ts getAll + update: load-balancers.d.ts update IAM: AWS: @@ -284,6 +320,11 @@ KeyManagement: update: kms v1 key_management_service_client.d.ts updateCryptoKey describeKey: kms v1 key_management_service_client.d.ts getCryptoKey putKeyPolicy: kms v1 key_management_service_client.d.ts setIamPolicy + DO: + createKey: keys.d.ts add + deleteKey: keys.d.ts delete + list: keys.d.ts getAll + describeKey: keys.d.ts getById NotificationService: AWS: @@ -317,3 +358,8 @@ BlockStorage: describe: arm-compute disks.d.ts get list: arm-compute disks.d.ts list update: arm-compute disks.d.ts update + DO: + create: volumes.d.ts create + delete: volumes.d.ts deleteById + list: volumes.d.ts getAll + describe: volumes.d.ts getById diff --git a/generator/package.json b/generator/package.json index ccbf64f3..aea86bb9 100644 --- a/generator/package.json +++ b/generator/package.json @@ -10,7 +10,8 @@ "code-generation" ], "scripts": { - "test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --colors test/**/*.ts" + "test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --colors test/**/*.ts", + "tool": "tsc main && node main" }, "dependencies": { "@azure/arm-appservice": "^6.0.0", @@ -30,6 +31,7 @@ "@google-cloud/translate": "^6.0.0", "aws-sdk": "^2.686.0", "config": "^1.26.1", + "do-wrapper": "^4.5.1", "js-yaml": "^3.14.0", "key-mirror": "^1.0.1", "lodash": "^4.17.19", diff --git a/generator/parsers/do/parser.js b/generator/parsers/do/parser.js new file mode 100644 index 00000000..3e03d611 --- /dev/null +++ b/generator/parsers/do/parser.js @@ -0,0 +1,194 @@ +"use strict"; +var __awaiter = + (this && this.__awaiter) || + function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P + ? value + : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done + ? resolve(result.value) + : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +var __generator = + (this && this.__generator) || + function(thisArg, body) { + var _ = { + label: 0, + sent: function() { + if (t[0] & 1) throw t[1]; + return t[1]; + }, + trys: [], + ops: [] + }, + f, + y, + t, + g; + return ( + (g = { next: verb(0), throw: verb(1), return: verb(2) }), + typeof Symbol === "function" && + (g[Symbol.iterator] = function() { + return this; + }), + g + ); + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) + try { + if ( + ((f = 1), + y && + (t = + op[0] & 2 + ? y["return"] + : op[0] + ? y["throw"] || ((t = y["return"]) && t.call(y), 0) + : y.next) && + !(t = t.call(y, op[1])).done) + ) + return t; + if (((y = 0), t)) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if ( + !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) && + (op[0] === 6 || op[0] === 2) + ) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; +exports.__esModule = true; +exports.getAST = void 0; +var fs = require("fs"); +var path = require("path"); +var typescript_1 = require("typescript"); +function getAST(sdkFileName) { + var _this = this; + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + var file, ast, cloned_1, error_1; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 2, , 3]); + file = path.join( + __dirname, + "../../../node_modules/do-wrapper/dist/modules/" + + sdkFileName.toLowerCase() + ); + ast = typescript_1.createSourceFile( + file, + fs.readFileSync(file).toString(), + typescript_1.ScriptTarget.Latest, + true + ); + cloned_1 = null; + return [ + 4 /*yield*/, + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === "ClassDeclaration" + ) { + cloned_1 = Object.assign({}, child); + } + }) + ]; + case 1: + _a.sent(); + if (!cloned_1) { + reject(new Error("Class not found!")); + } else { + resolve(cloned_1); + } + return [3 /*break*/, 3]; + case 2: + error_1 = _a.sent(); + if (error_1.code === "ENOENT") { + reject(new Error("File not found!")); + } else { + reject(error_1); + } + return [3 /*break*/, 3]; + case 3: + return [2 /*return*/]; + } + }); + }); + }); +} +exports.getAST = getAST; diff --git a/generator/parsers/do/parser.ts b/generator/parsers/do/parser.ts new file mode 100644 index 00000000..093f24a7 --- /dev/null +++ b/generator/parsers/do/parser.ts @@ -0,0 +1,41 @@ +import * as fs from "fs"; +import * as path from "path"; +import { createSourceFile, ScriptTarget, SyntaxKind } from "typescript"; + +export function getAST(sdkFileName) { + return new Promise(async (resolve, reject) => { + try { + const file = path.join( + __dirname, + "../../../node_modules/do-wrapper/dist/modules/" + + sdkFileName.toLowerCase() + ); + const ast = createSourceFile( + file, + fs.readFileSync(file).toString(), + ScriptTarget.Latest, + true + ); + + let cloned = null; + + await ast.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); + + if (!cloned) { + reject(new Error("Class not found!")); + } else { + resolve(cloned); + } + } catch (error) { + if (error.code === "ENOENT") { + reject(new Error("File not found!")); + } else { + reject(error); + } + } + }); +} diff --git a/generator/test/generators/do/dummyData/invalidDataset_1/sdkFile.txt b/generator/test/generators/do/dummyData/invalidDataset_1/sdkFile.txt new file mode 100644 index 00000000..28ece6c1 --- /dev/null +++ b/generator/test/generators/do/dummyData/invalidDataset_1/sdkFile.txt @@ -0,0 +1,90 @@ +import RequestHelper from "../request-helper"; +import { BaseModule } from "./base-module"; +import { ClusterNodePool, ClusterNodePoolUpdateOptions, NewClusterRequest } from "../types/kubernetes"; +export default class Kubernetes extends BaseModule { + private basePath; + private baseOptions; + constructor(pageSize: number, requestHelper: RequestHelper); + /** + * Get the Kubernetes Feature Availability + * @returns Promise + */ + getAvailability(): Promise; + /** + * Get all Kubernetes Clusters + * @param [includeAll] return all Kubernetes Clusters, paginated (optional) + * @param [page] the specific page of Kubernetes Clusters to return (optional) + * @param [pageSize] the number of Kubernetes Clusters to return per page (optional) + * @returns Promise + */ + getClusters(includeAll?: boolean, page?: number, pageSize?: number): Promise; + /** + * Create a new Kubernetes Cluster + * @param options the options for the new Kubernetes Cluster + * @returns Promise + */ + create(options: NewClusterRequest): Promise; + /** + * Get a Kubernetes Cluster by its identifier + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + getById(clusterId: string): Promise; + /** + * Get the kubeconfig for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + getKubeconfig(clusterId: string): Promise; + /** + * Delete a Kubernetes Cluster by its identifier + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + delete(clusterId: string): Promise; + /** + * Get the Node Pools for a Kubernetes Cluster + * @param clusterId the Cluster identifier + * @param [includeAll] return all Node Pools, paginated (optional) + * @param [page] the specific page of Node Pools to return (optional) + * @param [pageSize] the number of Node Pools to return per page (optional) + * @returns Promise + */ + getNodePools(clusterId: string, includeAll?: boolean, page?: number, pageSize?: number): Promise; + /** + * Get a specific Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + getNodePoolById(clusterId: string, nodePoolId: string): Promise; + /** + * Add a Node Pool to a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePool the Node Pool configuration options + * @returns Promise + */ + addNodePool(clusterId: string, nodePool: ClusterNodePool): Promise; + /** + * Update a specific Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @param nodePoolOptions the Node Pool options + * @returns Promise + */ + updateNodePool(clusterId: string, nodePoolId: string, nodePoolOptions: ClusterNodePoolUpdateOptions): Promise; + /** + * Delete a Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + deleteNodePool(clusterId: string, nodePoolId: string): Promise; + /** + * Recycle a Node Pool on a Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + recycleNodePool(clusterId: string, nodePoolId: string): Promise; +} diff --git a/generator/test/generators/do/dummyData/invalidDataset_1/serviceClass.json b/generator/test/generators/do/dummyData/invalidDataset_1/serviceClass.json new file mode 100644 index 00000000..c7f48a36 --- /dev/null +++ b/generator/test/generators/do/dummyData/invalidDataset_1/serviceClass.json @@ -0,0 +1,8 @@ +{ + "create": "kubernetes.d.ts create", + "delete": "kubernetes.d.ts", + "listClusters": "kubernetes.d.ts getClusters", + "createNodeGroup": "kubernetes.d.ts addNodePool", + "deleteNodegroup": " kubernetes.d.ts deleteNodePool", + "listNodegroups": "kubernetes.d.ts getNodePools" +} diff --git a/generator/test/generators/do/dummyData/invalidDataset_2/sdkFile.txt b/generator/test/generators/do/dummyData/invalidDataset_2/sdkFile.txt new file mode 100644 index 00000000..b75b7b1d --- /dev/null +++ b/generator/test/generators/do/dummyData/invalidDataset_2/sdkFile.txt @@ -0,0 +1,8 @@ +import RequestHelper from "../request-helper"; +import { BaseModule } from "./base-module"; +import { ClusterNodePool, ClusterNodePoolUpdateOptions, NewClusterRequest } from "../types/kubernetes"; +export default class Kubernetes extends BaseModule { +} + + + \ No newline at end of file diff --git a/generator/test/generators/do/dummyData/invalidDataset_2/serviceClass.json b/generator/test/generators/do/dummyData/invalidDataset_2/serviceClass.json new file mode 100644 index 00000000..5f225dc8 --- /dev/null +++ b/generator/test/generators/do/dummyData/invalidDataset_2/serviceClass.json @@ -0,0 +1,8 @@ +{ + "create": "kubernetes.d.ts create", + "delete": "kubernetes.d.ts delete", + "listClusters": "kubernetes.d.ts getClusters", + "createNodeGroup": "kubernetes.d.ts addNodePool", + "deleteNodegroup": " kubernetes.d.ts deleteNodePool", + "listNodegroups": "kubernetes.d.ts getNodePools" +} diff --git a/generator/test/generators/do/dummyData/validDataset/sdkFile.txt b/generator/test/generators/do/dummyData/validDataset/sdkFile.txt new file mode 100644 index 00000000..28ece6c1 --- /dev/null +++ b/generator/test/generators/do/dummyData/validDataset/sdkFile.txt @@ -0,0 +1,90 @@ +import RequestHelper from "../request-helper"; +import { BaseModule } from "./base-module"; +import { ClusterNodePool, ClusterNodePoolUpdateOptions, NewClusterRequest } from "../types/kubernetes"; +export default class Kubernetes extends BaseModule { + private basePath; + private baseOptions; + constructor(pageSize: number, requestHelper: RequestHelper); + /** + * Get the Kubernetes Feature Availability + * @returns Promise + */ + getAvailability(): Promise; + /** + * Get all Kubernetes Clusters + * @param [includeAll] return all Kubernetes Clusters, paginated (optional) + * @param [page] the specific page of Kubernetes Clusters to return (optional) + * @param [pageSize] the number of Kubernetes Clusters to return per page (optional) + * @returns Promise + */ + getClusters(includeAll?: boolean, page?: number, pageSize?: number): Promise; + /** + * Create a new Kubernetes Cluster + * @param options the options for the new Kubernetes Cluster + * @returns Promise + */ + create(options: NewClusterRequest): Promise; + /** + * Get a Kubernetes Cluster by its identifier + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + getById(clusterId: string): Promise; + /** + * Get the kubeconfig for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + getKubeconfig(clusterId: string): Promise; + /** + * Delete a Kubernetes Cluster by its identifier + * @param clusterId the identifier of the Cluster + * @returns Promise + */ + delete(clusterId: string): Promise; + /** + * Get the Node Pools for a Kubernetes Cluster + * @param clusterId the Cluster identifier + * @param [includeAll] return all Node Pools, paginated (optional) + * @param [page] the specific page of Node Pools to return (optional) + * @param [pageSize] the number of Node Pools to return per page (optional) + * @returns Promise + */ + getNodePools(clusterId: string, includeAll?: boolean, page?: number, pageSize?: number): Promise; + /** + * Get a specific Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + getNodePoolById(clusterId: string, nodePoolId: string): Promise; + /** + * Add a Node Pool to a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePool the Node Pool configuration options + * @returns Promise + */ + addNodePool(clusterId: string, nodePool: ClusterNodePool): Promise; + /** + * Update a specific Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @param nodePoolOptions the Node Pool options + * @returns Promise + */ + updateNodePool(clusterId: string, nodePoolId: string, nodePoolOptions: ClusterNodePoolUpdateOptions): Promise; + /** + * Delete a Node Pool for a Kubernetes Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + deleteNodePool(clusterId: string, nodePoolId: string): Promise; + /** + * Recycle a Node Pool on a Cluster + * @param clusterId the identifier of the Cluster + * @param nodePoolId the identifier of the Node Pool + * @returns Promise + */ + recycleNodePool(clusterId: string, nodePoolId: string): Promise; +} diff --git a/generator/test/generators/do/dummyData/validDataset/serviceClass.json b/generator/test/generators/do/dummyData/validDataset/serviceClass.json new file mode 100644 index 00000000..5f225dc8 --- /dev/null +++ b/generator/test/generators/do/dummyData/validDataset/serviceClass.json @@ -0,0 +1,8 @@ +{ + "create": "kubernetes.d.ts create", + "delete": "kubernetes.d.ts delete", + "listClusters": "kubernetes.d.ts getClusters", + "createNodeGroup": "kubernetes.d.ts addNodePool", + "deleteNodegroup": " kubernetes.d.ts deleteNodePool", + "listNodegroups": "kubernetes.d.ts getNodePools" +} diff --git a/generator/test/generators/do/generator.test.ts b/generator/test/generators/do/generator.test.ts new file mode 100644 index 00000000..a4d8cdd7 --- /dev/null +++ b/generator/test/generators/do/generator.test.ts @@ -0,0 +1,85 @@ +import { expect } from "chai"; +import { extractSDKData } from "../../../generators/do/generator"; +import { readSourceFile, readJsonData } from "../lib/helper"; +import { SyntaxKind } from "typescript"; + +describe("Digital Ocean generator extractSDKData", () => { + context("with valid methods and valid AST", () => { + it("should return extracted class data", async () => { + const sdkFile: any = await readSourceFile("validDataset", "do"); + const data: any = await readJsonData( + "validDataset", + "do", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an("object"); + expect(result.functions).to.be.an("array"); + expect(result.className).to.be.string; + } else { + console.error("Error in cloning class"); + } + }); + }); + + context("with invalid method data:missing method name", () => { + it("should drop invalid method", async () => { + const sdkFile: any = await readSourceFile("invalidDataset_1", "do"); + const data: any = await readJsonData( + "invalidDataset_1", + "do", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + expect( + extractSDKData(cloned, data).functions.length < + Object.keys(data).length + ).to.be.true; + } else { + console.error("Error in cloning class"); + } + }); + }); + + context("Digital Ocean with no functions", () => { + it("should return empty array of methods", async () => { + const sdkFile: any = await readSourceFile("invalidDataset_2", "do"); + const data: any = await readJsonData( + "invalidDataset_2", + "do", + "serviceClass" + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === "ClassDeclaration") { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an("object"); + expect(result.functions).to.be.an("array"); + expect(result.className).to.be.string; + expect(result.functions.length).to.eql(0); + } else { + console.error("Error in cloning class"); + } + }); + }); +}); diff --git a/generator/test/parsers/do/parser.test.ts b/generator/test/parsers/do/parser.test.ts new file mode 100644 index 00000000..40283a04 --- /dev/null +++ b/generator/test/parsers/do/parser.test.ts @@ -0,0 +1,33 @@ +import { expect } from "chai"; +import { getAST } from "../../../parsers/do/parser"; +import { SyntaxKind } from "typescript"; + +describe("Digital Ocean parser getAST", () => { + context("With existing file", () => { + it("Should return Abstract syntax tree of the class", async () => { + const ast: any = await getAST("droplets.d.ts"); + expect(ast).to.be.an("object"); + expect(SyntaxKind[ast.kind] === "ClassDeclaration").to.be.true; + }); + }); + + context("With non-existing file", () => { + it("should return File not found Error", async () => { + try { + await getAST("unknown.d.ts"); + } catch (error) { + expect(error.message).to.eql("File not found!"); + } + }); + }); + + context("With wrong format file", () => { + it("Should return class not found Error", async () => { + try { + await getAST("../types/common.d.ts"); + } catch (error) { + expect(error.message).to.eql("Class not found!"); + } + }); + }); +}); diff --git a/generator/test/transformers/do/dummyData/invalidDataset_1/data.json b/generator/test/transformers/do/dummyData/invalidDataset_1/data.json new file mode 100644 index 00000000..3ffb12f3 --- /dev/null +++ b/generator/test/transformers/do/dummyData/invalidDataset_1/data.json @@ -0,0 +1,102 @@ +{ + "className": "Kubernetes", + "functions": [ + { + "functionName": "listClusters", + "SDKFunctionName": "getClusters", + "params": [ + { + "name": "includeAll", + "optional": true, + "type": "BooleanKeyword", + "typeName": null + }, + { + "name": "page", + "optional": true, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "pageSize", + "optional": true, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "create", + "SDKFunctionName": "create", + "params": [ + { + "name": "options", + "optional": false, + "type": "TypeReference", + "typeName": "NewClusterRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "delete", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + } + ] + }, + { + "functionName": "listNodegroups", + "SDKFunctionName": "getNodePools", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + }, + { + "name": "includeAll", + "optional": true, + "type": "BooleanKeyword", + "typeName": null + }, + { + "name": "page", + "optional": true, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "pageSize", + "optional": true, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "createNodeGroup", + "SDKFunctionName": "addNodePool", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + }, + { + "name": "nodePool", + "optional": false, + "type": "TypeReference", + "typeName": "ClusterNodePool" + } + ] + } + ], + "serviceName": "Kubernetes" +} diff --git a/generator/test/transformers/do/dummyData/invalidDataset_1/sourceFile.js b/generator/test/transformers/do/dummyData/invalidDataset_1/sourceFile.js new file mode 100644 index 00000000..65255823 --- /dev/null +++ b/generator/test/transformers/do/dummyData/invalidDataset_1/sourceFile.js @@ -0,0 +1,9 @@ +class ClassName { + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._sdkClassName = this._instance.SDKClassName; + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/do/dummyData/invalidDataset_2/data.json b/generator/test/transformers/do/dummyData/invalidDataset_2/data.json new file mode 100644 index 00000000..ab217e60 --- /dev/null +++ b/generator/test/transformers/do/dummyData/invalidDataset_2/data.json @@ -0,0 +1,15 @@ +{ + "functions": [ + { + "SDKFunctionName": "getClusters", + "params": [ + { + "name": "includeAll", + "optional": false, + "type": "TypeReference", + "invalid": true + } + ] + } + ] +} diff --git a/generator/test/transformers/do/dummyData/invalidDataset_2/sourceFile.js b/generator/test/transformers/do/dummyData/invalidDataset_2/sourceFile.js new file mode 100644 index 00000000..2fbb140f --- /dev/null +++ b/generator/test/transformers/do/dummyData/invalidDataset_2/sourceFile.js @@ -0,0 +1,18 @@ +class ClassName { + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._sdkClassName = this._instance.SDKClassName; + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/do/dummyData/validDataset/data.json b/generator/test/transformers/do/dummyData/validDataset/data.json new file mode 100644 index 00000000..3ffb12f3 --- /dev/null +++ b/generator/test/transformers/do/dummyData/validDataset/data.json @@ -0,0 +1,102 @@ +{ + "className": "Kubernetes", + "functions": [ + { + "functionName": "listClusters", + "SDKFunctionName": "getClusters", + "params": [ + { + "name": "includeAll", + "optional": true, + "type": "BooleanKeyword", + "typeName": null + }, + { + "name": "page", + "optional": true, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "pageSize", + "optional": true, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "create", + "SDKFunctionName": "create", + "params": [ + { + "name": "options", + "optional": false, + "type": "TypeReference", + "typeName": "NewClusterRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "delete", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + } + ] + }, + { + "functionName": "listNodegroups", + "SDKFunctionName": "getNodePools", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + }, + { + "name": "includeAll", + "optional": true, + "type": "BooleanKeyword", + "typeName": null + }, + { + "name": "page", + "optional": true, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "pageSize", + "optional": true, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "createNodeGroup", + "SDKFunctionName": "addNodePool", + "params": [ + { + "name": "clusterId", + "optional": false, + "type": "StringKeyword", + "typeName": null + }, + { + "name": "nodePool", + "optional": false, + "type": "TypeReference", + "typeName": "ClusterNodePool" + } + ] + } + ], + "serviceName": "Kubernetes" +} diff --git a/generator/test/transformers/do/dummyData/validDataset/sourceFile.js b/generator/test/transformers/do/dummyData/validDataset/sourceFile.js new file mode 100644 index 00000000..2fbb140f --- /dev/null +++ b/generator/test/transformers/do/dummyData/validDataset/sourceFile.js @@ -0,0 +1,18 @@ +class ClassName { + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._sdkClassName = this._instance.SDKClassName; + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/do/transformer.test.ts b/generator/test/transformers/do/transformer.test.ts new file mode 100644 index 00000000..c2654c78 --- /dev/null +++ b/generator/test/transformers/do/transformer.test.ts @@ -0,0 +1,70 @@ +import { expect } from "chai"; +import { transform } from "../../../transformers/do/transformer"; +import { createSourceFile, ScriptTarget, isSourceFile } from "typescript"; +import { readJsonData, readSourceFile } from "../lib/helper"; + +interface TestData { + AST: any; + data: any; +} + +describe("Digital Ocean transformer transform", () => { + context("Valid source code and valid data", () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile("validDataset", "do"); + testData.data = await readJsonData("validDataset", "do"); + }); + + it("Should return a String", async () => { + const result = await transform(testData.AST, testData.data); + expect(result).to.be.string; + }); + + it("Should return a Javascript code in String format", async () => { + const result = await transform(testData.AST, testData.data); + try { + const sourceCode = createSourceFile( + "someClass.js", + result, + ScriptTarget.Latest + ); + expect(isSourceFile(sourceCode)).to.be.true; + } catch (error) { + console.log(error); + } + }); + }); + + context("Invalid source code and valid data", () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile("invalidDataset_1", "do"); + testData.data = await readJsonData("invalidDataset_1", "do"); + }); + + it("Should return a validation Error", async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql("Code is invalid"); + } + }); + }); + + context("Valid source code and invalid data", () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile("invalidDataset_2", "do"); + testData.data = await readJsonData("invalidDataset_2", "do"); + }); + + it("Should return a validation Error", async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql("Input is invalid"); + } + }); + }); +}); diff --git a/generator/transformers/do/transformer.js b/generator/transformers/do/transformer.js new file mode 100644 index 00000000..81a0bc68 --- /dev/null +++ b/generator/transformers/do/transformer.js @@ -0,0 +1,433 @@ +"use strict"; +var __awaiter = + (this && this.__awaiter) || + function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P + ? value + : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done + ? resolve(result.value) + : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +var __generator = + (this && this.__generator) || + function(thisArg, body) { + var _ = { + label: 0, + sent: function() { + if (t[0] & 1) throw t[1]; + return t[1]; + }, + trys: [], + ops: [] + }, + f, + y, + t, + g; + return ( + (g = { next: verb(0), throw: verb(1), return: verb(2) }), + typeof Symbol === "function" && + (g[Symbol.iterator] = function() { + return this; + }), + g + ); + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) + try { + if ( + ((f = 1), + y && + (t = + op[0] & 2 + ? y["return"] + : op[0] + ? y["throw"] || ((t = y["return"]) && t.call(y), 0) + : y.next) && + !(t = t.call(y, op[1])).done) + ) + return t; + if (((y = 0), t)) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if ( + !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) && + (op[0] === 6 || op[0] === 2) + ) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; +exports.__esModule = true; +exports.transform = void 0; +var ts = require("typescript"); +var lodash_1 = require("lodash"); +var dummyIdentifiers = [ + "ClassName", + "_sdkClassName", + "SDKClassName", + "SDKFunctionName" +]; +var printer = ts.createPrinter({ + newLine: ts.NewLineKind.LineFeed, + removeComments: false +}); +function addMultiLineComment(node, comment) { + ts.addSyntheticLeadingComment( + node, + ts.SyntaxKind.MultiLineCommentTrivia, + comment, + true + ); +} +function runTransformation(sourceCode, transformMethod) { + return new Promise(function(resolve, reject) { + try { + var result = ts.transform(sourceCode, [transformMethod]); + var transformedNodes = result.transformed[0]; + var output = printer.printNode( + ts.EmitHint.SourceFile, + transformedNodes, + sourceCode + ); + resolve(output); + } catch (error) { + reject(error); + } + }); +} +function toSourceFile(sourceCode) { + return ts.createSourceFile( + "dummyClass.js", + sourceCode, + ts.ScriptTarget.Latest, + true + ); +} +/* + * The Transform function to be called from generator + */ +function transform(code, classData) { + return __awaiter(this, void 0, void 0, function() { + var addFunctions, + addIdentifiers, + addComments, + node, + result_1, + result_2, + result_3; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + addFunctions = function(context) { + return function(rootNode) { + function visit(node) { + if (ts.isClassDeclaration(node)) { + var functions_1 = []; + classData.functions.map(function(method) { + var clonedNode = Object.assign({}, node.members[1]); + // console.log("Cloned Node..........\n");//sdadas + // console.log(clonedNode);//asdasdasdasd + clonedNode.name = ts.createIdentifier(method.functionName); + functions_1.push(clonedNode); + }); + var updatedClass = ts.updateClassDeclaration( + node, + node.decorators, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + ts.createNodeArray([node.members[0]].concat(functions_1)) + ); + return updatedClass; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + addIdentifiers = function(context) { + return function(rootNode) { + var count = 0; + function visit(node) { + if (ts.isMethodDeclaration(node)) { + var parameters = classData.functions[count].params.map( + function(param) { + var paramNode = ts.createParameter( + undefined, + undefined, + undefined, + param.name + ); + if (param.optional) { + paramNode.initializer = ts.createIdentifier( + "undefined" + ); + } + return paramNode; + } + ); + node.parameters = parameters; + } + if ( + ts.isIdentifier(node) && + dummyIdentifiers.includes(node.text) + ) { + var updatedIdentifier = void 0; + switch (node.text) { + case "ClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier("DO_" + classData.serviceName) + ); + break; + case "_sdkClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + "_" + + classData.className.charAt(0).toLowerCase() + + classData.className.substr(1) + ) + ); + break; + case "SDKClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.className.charAt(0).toLowerCase() + + classData.className.substr(1) + ) + ); + break; + case "SDKFunctionName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count].SDKFunctionName + ) + ); + count++; + } + return updatedIdentifier; + } + if (ts.isCallExpression(node)) { + node.expression.forEachChild(function(childNode) { + if ( + ts.isIdentifier(childNode) && + childNode.text === "SDKFunctionName" + ) { + var args = classData.functions[count].params.map(function( + param + ) { + return ts.createIdentifier(param.name); + }); + node.arguments = args.concat(node.arguments); + } + }); + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + addComments = function(context) { + return function(rootNode) { + var count = 0; + function visit(node) { + if (ts.isClassDeclaration(node)) { + addMultiLineComment( + node, + "This is an auto generated class, please do not change." + ); + var comment = + "*\n* Class to create a " + + classData.className + + " object\n* @category Digital Ocean \n"; + addMultiLineComment(node, comment); + } + if (ts.isMethodDeclaration(node)) { + var parameters = classData.functions[count].params.map( + function(param) { + var statment; + if (param.optional) { + if (param.type == "TypeReference") + statment = + "* @param {" + + param.typeName + + "} " + + param.name + + " - Data required for " + + classData.functions[count].SDKFunctionName; + else + statment = + "* @param {" + + param.type + + "} " + + param.name + + " - Data required for " + + classData.functions[count].SDKFunctionName; + } else { + if (param.type == "TypeReference") + statment = + "* @param {" + + param.typeName + + "} " + + param.name + + " - Data required for " + + classData.functions[count].SDKFunctionName; + else + statment = + "* @param {" + + param.type + + "} " + + param.name + + " - Data required for " + + classData.functions[count].SDKFunctionName; + } + return statment; + } + ); + var comment = void 0; + if (parameters.length > 0) { + var paramStatments_1 = ""; + parameters.map(function(param) { + paramStatments_1 = paramStatments_1.concat( + paramStatments_1 === "" ? "" + param : "\n" + param + ); + }); + comment = + "*\n* Trigers the " + + classData.functions[count].SDKFunctionName + + " function of " + + classData.className + + "\n" + + paramStatments_1 + + "\n* @returns {Promise<" + + classData.functions[count].SDKFunctionName + + "Response>}\n"; + } else { + comment = + "*\n* Trigers the " + + classData.functions[count].SDKFunctionName + + " function of " + + classData.className + + "\n* @returns {Promise<" + + classData.functions[count].SDKFunctionName + + "Response>}\n"; + } + addMultiLineComment(node, comment); + count++; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + node = code.statements.find(function(stm) { + return ts.isClassDeclaration(stm); + }); + if (!classData.className || !classData.functions) { + throw new Error("Input is invalid"); + } + if ( + !node || + !node.members.some(function(member) { + return ts.isMethodDeclaration(member); + }) + ) { + throw new Error("Code is invalid"); + } + code = lodash_1.cloneDeep(code); + return [4 /*yield*/, runTransformation(code, addFunctions)]; + case 1: + result_1 = _a.sent(); + return [ + 4 /*yield*/, + runTransformation(toSourceFile(result_1), addIdentifiers) + ]; + case 2: + result_2 = _a.sent(); + return [ + 4 /*yield*/, + runTransformation(toSourceFile(result_2), addComments) + ]; + case 3: + result_3 = _a.sent(); + return [2 /*return*/, result_3]; + } + }); + }); +} +exports.transform = transform; diff --git a/generator/transformers/do/transformer.ts b/generator/transformers/do/transformer.ts new file mode 100644 index 00000000..1e5d05d5 --- /dev/null +++ b/generator/transformers/do/transformer.ts @@ -0,0 +1,267 @@ +import * as ts from "typescript"; +import { cloneDeep } from "lodash"; + +const dummyIdentifiers = [ + "ClassName", + "_sdkClassName", + "SDKClassName", + "SDKFunctionName" +]; + +const printer: ts.Printer = ts.createPrinter({ + newLine: ts.NewLineKind.LineFeed, + removeComments: false +}); + +function addMultiLineComment(node, comment: string) { + ts.addSyntheticLeadingComment( + node, + ts.SyntaxKind.MultiLineCommentTrivia, + comment, + true + ); +} + +function runTransformation(sourceCode, transformMethod): Promise { + return new Promise((resolve, reject) => { + try { + const result = ts.transform(sourceCode, [transformMethod]); + const transformedNodes = result.transformed[0]; + const output = printer.printNode( + ts.EmitHint.SourceFile, + transformedNodes, + sourceCode + ); + resolve(output); + } catch (error) { + reject(error); + } + }); +} + +function toSourceFile(sourceCode: string): ts.SourceFile { + return ts.createSourceFile( + "dummyClass.js", + sourceCode, + ts.ScriptTarget.Latest, + true + ); +} + +/* + * The Transform function to be called from generator + */ + +export async function transform( + code: ts.SourceFile, + classData: any +): Promise { + /* + * Transformation function for adding Functions + */ + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + let functions: any = []; + classData.functions.map(method => { + const clonedNode = Object.assign({}, node.members[1]); + // console.log("Cloned Node..........\n");//sdadas + // console.log(clonedNode);//asdasdasdasd + clonedNode.name = ts.createIdentifier(method.functionName); + functions.push(clonedNode); + }); + + const updatedClass = ts.updateClassDeclaration( + node, + node.decorators, + node.modifiers, + node.name, + node.typeParameters, + node.heritageClauses, + ts.createNodeArray([node.members[0]].concat(functions)) + ); + + return updatedClass; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + /* + * Transformation function for adding Identifiers/Parameters + */ + const addIdentifiers = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + let count = 0; + function visit(node: ts.Node): ts.Node { + if (ts.isMethodDeclaration(node)) { + const parameters = classData.functions[count].params.map(param => { + const paramNode = ts.createParameter( + undefined, + undefined, + undefined, + param.name + ); + + if (param.optional) { + paramNode.initializer = ts.createIdentifier("undefined"); + } + + return paramNode; + }); + + node.parameters = parameters; + } + + if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { + let updatedIdentifier; + + switch (node.text) { + case "ClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier("DO_" + classData.serviceName) + ); + break; + case "_sdkClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + "_" + + classData.className.charAt(0).toLowerCase() + + classData.className.substr(1) + ) + ); + break; + case "SDKClassName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.className.charAt(0).toLowerCase() + + classData.className.substr(1) + ) + ); + break; + case "SDKFunctionName": + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier(classData.functions[count].SDKFunctionName) + ); + count++; + } + + return updatedIdentifier; + } + + if (ts.isCallExpression(node)) { + node.expression.forEachChild(childNode => { + if ( + ts.isIdentifier(childNode) && + childNode.text === "SDKFunctionName" + ) { + const args = classData.functions[count].params.map(param => + ts.createIdentifier(param.name) + ); + node.arguments = args.concat(node.arguments); + } + }); + } + + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + /* + *Transformation function for adding comments + */ + + const addComments = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + let count = 0; + + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + addMultiLineComment( + node, + "This is an auto generated class, please do not change." + ); + const comment = `* +* Class to create a ${classData.className} object +* @category Digital Ocean +`; + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + let parameters = classData.functions[count].params.map(param => { + let statment; + + if (param.optional) { + if (param.type == "TypeReference") + statment = `* @param {${param.typeName}} ${param.name} - Data required for ${classData.functions[count].SDKFunctionName}`; + else + statment = `* @param {${param.type}} ${param.name} - Data required for ${classData.functions[count].SDKFunctionName}`; + } else { + if (param.type == "TypeReference") + statment = `* @param {${param.typeName}} ${param.name} - Data required for ${classData.functions[count].SDKFunctionName}`; + else + statment = `* @param {${param.type}} ${param.name} - Data required for ${classData.functions[count].SDKFunctionName}`; + } + return statment; + }); + + let comment; + if (parameters.length > 0) { + let paramStatments: string = ""; + parameters.map(param => { + paramStatments = paramStatments.concat( + paramStatments === "" ? `${param}` : `\n${param}` + ); + }); + + comment = `* +* Trigers the ${classData.functions[count].SDKFunctionName} function of ${classData.className} +${paramStatments} +* @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} +`; + } else { + comment = `* +* Trigers the ${classData.functions[count].SDKFunctionName} function of ${classData.className} +* @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} +`; + } + + addMultiLineComment(node, comment); + count++; + } + + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + /* + * Code to get node and run tranformations + */ + const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); + + if (!classData.className || !classData.functions) { + throw new Error("Input is invalid"); + } + + if (!node || !node.members.some(member => ts.isMethodDeclaration(member))) { + throw new Error("Code is invalid"); + } + + code = cloneDeep(code); + + const result_1 = await runTransformation(code, addFunctions); + const result_2 = await runTransformation( + toSourceFile(result_1), + addIdentifiers + ); + const result_3 = await runTransformation(toSourceFile(result_2), addComments); + return result_3; +} diff --git a/package.json b/package.json index 9bbbce5a..1bc56a9b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "lint": "lerna run lint", "prettier": "lerna run prettier", "format": "prettier --write", - "doc": "jsdoc -c jsdoc.json" + "doc": "jsdoc -c jsdoc.json", + "generator": " cd generator && tsc main.ts && node main.js" }, "repository": { "type": "git", diff --git a/packages/do-plugin/compute/do-computeInstance.js b/packages/do-plugin/compute/do-computeInstance.js new file mode 100644 index 00000000..7f925773 --- /dev/null +++ b/packages/do-plugin/compute/do-computeInstance.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Droplets object + * @category Digital Ocean + */ +class DO_ComputeInstance { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._droplets = this._instance.droplets; + } + /** + * Trigers the getAll function of Droplets + * @param {StringKeyword} tagName - Data required for getAll + * @param {BooleanKeyword} includeAll - Data required for getAll + * @param {NumberKeyword} page - Data required for getAll + * @param {NumberKeyword} pageSize - Data required for getAll + * @returns {Promise} + */ + list( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._droplets + .getAll(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Droplets + * @param {DropletCreationRequest} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._droplets + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteById function of Droplets + * @param {StringKeyword} dropletId - Data required for deleteById + * @returns {Promise} + */ + destroy(dropletId) { + return new Promise((resolve, reject) => { + this._droplets + .deleteById(dropletId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the requestAction function of Droplets + * @param {StringKeyword} dropletId - Data required for requestAction + * @param {AnyKeyword} action - Data required for requestAction + * @returns {Promise} + */ + stop(dropletId, action) { + return new Promise((resolve, reject) => { + this._droplets + .requestAction(dropletId, action) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_ComputeInstance; diff --git a/packages/do-plugin/compute/do-kubernetes.js b/packages/do-plugin/compute/do-kubernetes.js new file mode 100644 index 00000000..ae3db733 --- /dev/null +++ b/packages/do-plugin/compute/do-kubernetes.js @@ -0,0 +1,135 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Kubernetes object + * @category Digital Ocean + */ +class DO_Kubernetes { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._kubernetes = this._instance.kubernetes; + } + /** + * Trigers the getClusters function of Kubernetes + * @param {BooleanKeyword} includeAll - Data required for getClusters + * @param {NumberKeyword} page - Data required for getClusters + * @param {NumberKeyword} pageSize - Data required for getClusters + * @returns {Promise} + */ + listClusters(includeAll = undefined, page = undefined, pageSize = undefined) { + return new Promise((resolve, reject) => { + this._kubernetes + .getClusters(includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Kubernetes + * @param {NewClusterRequest} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._kubernetes + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getById + * @returns {Promise} + */ + describeCluster(clusterId) { + return new Promise((resolve, reject) => { + this._kubernetes + .getById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of Kubernetes + * @param {StringKeyword} clusterId - Data required for delete + * @returns {Promise} + */ + delete(clusterId) { + return new Promise((resolve, reject) => { + this._kubernetes + .delete(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getNodePools + * @param {BooleanKeyword} includeAll - Data required for getNodePools + * @param {NumberKeyword} page - Data required for getNodePools + * @param {NumberKeyword} pageSize - Data required for getNodePools + * @returns {Promise} + */ + listNodegroups( + clusterId, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._kubernetes + .getNodePools(clusterId, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePoolById function of Kubernetes + * @param {StringKeyword} clusterId - Data required for getNodePoolById + * @param {StringKeyword} nodePoolId - Data required for getNodePoolById + * @returns {Promise} + */ + describeNodeGroup(clusterId, nodePoolId) { + return new Promise((resolve, reject) => { + this._kubernetes + .getNodePoolById(clusterId, nodePoolId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the addNodePool function of Kubernetes + * @param {StringKeyword} clusterId - Data required for addNodePool + * @param {ClusterNodePool} nodePool - Data required for addNodePool + * @returns {Promise} + */ + createNodeGroup(clusterId, nodePool) { + return new Promise((resolve, reject) => { + this._kubernetes + .addNodePool(clusterId, nodePool) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of Kubernetes + * @param {StringKeyword} clusterId - Data required for deleteNodePool + * @param {StringKeyword} nodePoolId - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodegroup(clusterId, nodePoolId) { + return new Promise((resolve, reject) => { + this._kubernetes + .deleteNodePool(clusterId, nodePoolId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_Kubernetes; diff --git a/packages/do-plugin/database/do-RDBMS.js b/packages/do-plugin/database/do-RDBMS.js new file mode 100644 index 00000000..9363be19 --- /dev/null +++ b/packages/do-plugin/database/do-RDBMS.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Databases object + * @category Digital Ocean + */ +class DO_RDBMS { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._databases = this._instance.databases; + } + /** + * Trigers the getAllClusters function of Databases + * @param {StringKeyword} tagName - Data required for getAllClusters + * @param {BooleanKeyword} includeAll - Data required for getAllClusters + * @param {NumberKeyword} page - Data required for getAllClusters + * @param {NumberKeyword} pageSize - Data required for getAllClusters + * @returns {Promise} + */ + getClusters( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._databases + .getAllClusters(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createCluster function of Databases + * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster + * @returns {Promise} + */ + createCluster(clusterOptions) { + return new Promise((resolve, reject) => { + this._databases + .createCluster(clusterOptions) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getClusterById function of Databases + * @param {StringKeyword} clusterId - Data required for getClusterById + * @returns {Promise} + */ + getCluster(clusterId) { + return new Promise((resolve, reject) => { + this._databases + .getClusterById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the resizeCluster function of Databases + * @param {StringKeyword} clusterId - Data required for resizeCluster + * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster + * @returns {Promise} + */ + updateCluster(clusterId, configuration) { + return new Promise((resolve, reject) => { + this._databases + .resizeCluster(clusterId, configuration) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_RDBMS; diff --git a/packages/do-plugin/database/do-noSql.js b/packages/do-plugin/database/do-noSql.js new file mode 100644 index 00000000..808b12d4 --- /dev/null +++ b/packages/do-plugin/database/do-noSql.js @@ -0,0 +1,79 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Databases object + * @category Digital Ocean + */ +class DO_NoSql { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._databases = this._instance.databases; + } + /** + * Trigers the getAllClusters function of Databases + * @param {StringKeyword} tagName - Data required for getAllClusters + * @param {BooleanKeyword} includeAll - Data required for getAllClusters + * @param {NumberKeyword} page - Data required for getAllClusters + * @param {NumberKeyword} pageSize - Data required for getAllClusters + * @returns {Promise} + */ + getClusters( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._databases + .getAllClusters(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createCluster function of Databases + * @param {DatabaseCreateClusterRequest} clusterOptions - Data required for createCluster + * @returns {Promise} + */ + createCluster(clusterOptions) { + return new Promise((resolve, reject) => { + this._databases + .createCluster(clusterOptions) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getClusterById function of Databases + * @param {StringKeyword} clusterId - Data required for getClusterById + * @returns {Promise} + */ + getCluster(clusterId) { + return new Promise((resolve, reject) => { + this._databases + .getClusterById(clusterId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the resizeCluster function of Databases + * @param {StringKeyword} clusterId - Data required for resizeCluster + * @param {DatabaseResizeClusterRequest} configuration - Data required for resizeCluster + * @returns {Promise} + */ + updateCluster(clusterId, configuration) { + return new Promise((resolve, reject) => { + this._databases + .resizeCluster(clusterId, configuration) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_NoSql; diff --git a/packages/do-plugin/do.js b/packages/do-plugin/do.js new file mode 100644 index 00000000..42b70964 --- /dev/null +++ b/packages/do-plugin/do.js @@ -0,0 +1,66 @@ +const droplet = require("./compute/do-computeInstance"); +const kubernetes = require("./compute/do-kubernetes"); +const doSql = require("./database/do-RDBMS"); +const doNosql = require("./database/do-noSql"); +const loadBalancer = require("./network/do-loadBalancer"); +const doDNS = require("./network/do-DNS"); +const keyVault = require("./management/do-keyManagement"); +const volume = require("./storage/do-blockStorage"); + +class Do { + constructor(dosdk) { + this._dosdk = dosdk; + + if (!process.env.DO_TOKEN) { + throw new Error("Provide credentials"); + } + + this.token = process.env.DO_TOKEN; + return { + getSDK: () => this._dosdk, + getToken: () => this.token, + compute: this.droplet, + blockStorage: this.volume, + loadbalancer: this.loadBalancer, + dns: this.doDNS, + rdbms: this.doSql, + noSql: this.doNosql, + kubernetes: this.kubernetes, + keyManagement: this.keyVault + }; + } + + droplet() { + return new droplet(this.getSDK(), this.getToken()); + } + + kubernetes() { + return new kubernetes(this.getSDK(), this.getToken()); + } + + doSql() { + return new doSql(this.getSDK(), this.getToken()); + } + + doDNS() { + return new doDNS(this.getSDK(), this.getToken()); + } + + doNosql() { + return new doNosql(this.getSDK(), this.getToken()); + } + + loadBalancer() { + return new loadBalancer(this.getSDK(), this.getToken()); + } + + keyVault() { + return new keyVault(this.getSDK(), this.getToken()); + } + + volume() { + return new volume(this.getSDK(), this.getToken()); + } +} + +module.exports = Do; diff --git a/packages/do-plugin/index.js b/packages/do-plugin/index.js new file mode 100644 index 00000000..c4acab86 --- /dev/null +++ b/packages/do-plugin/index.js @@ -0,0 +1,8 @@ +const doSDK = require("do-wrapper").default; +const doPlugin = require("./do"); + +const ncDoPlugin = () => { + return new doPlugin(doSDK); +}; + +module.exports = ncDoPlugin; diff --git a/packages/do-plugin/management/do-keyManagement.js b/packages/do-plugin/management/do-keyManagement.js new file mode 100644 index 00000000..ec2921ee --- /dev/null +++ b/packages/do-plugin/management/do-keyManagement.js @@ -0,0 +1,78 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Keys object + * @category Digital Ocean + */ +class DO_KeyManagement { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._keys = this._instance.keys; + } + /** + * Trigers the getAll function of Keys + * @param {StringKeyword} tagName - Data required for getAll + * @param {BooleanKeyword} includeAll - Data required for getAll + * @param {NumberKeyword} page - Data required for getAll + * @param {NumberKeyword} pageSize - Data required for getAll + * @returns {Promise} + */ + list( + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._keys + .getAll(tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Keys + * @param {NumberKeyword} keyId - Data required for getById + * @returns {Promise} + */ + describeKey(keyId) { + return new Promise((resolve, reject) => { + this._keys + .getById(keyId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the add function of Keys + * @param {AddKeyRequest} addKeyRequest - Data required for add + * @returns {Promise} + */ + createKey(addKeyRequest) { + return new Promise((resolve, reject) => { + this._keys + .add(addKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of Keys + * @param {StringKeyword} identifier - Data required for delete + * @returns {Promise} + */ + deleteKey(identifier) { + return new Promise((resolve, reject) => { + this._keys + .delete(identifier) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_KeyManagement; diff --git a/packages/do-plugin/network/do-DNS.js b/packages/do-plugin/network/do-DNS.js new file mode 100644 index 00000000..377e3bb7 --- /dev/null +++ b/packages/do-plugin/network/do-DNS.js @@ -0,0 +1,98 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Domains object + * @category Digital Ocean + */ +class DO_DNS { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._domains = this._instance.domains; + } + /** + * Trigers the getAllRecords function of Domains + * @param {StringKeyword} domainName - Data required for getAllRecords + * @param {StringKeyword} tagName - Data required for getAllRecords + * @param {BooleanKeyword} includeAll - Data required for getAllRecords + * @param {NumberKeyword} page - Data required for getAllRecords + * @param {NumberKeyword} pageSize - Data required for getAllRecords + * @returns {Promise} + */ + getRecords( + domainName, + tagName, + includeAll = undefined, + page = undefined, + pageSize = undefined + ) { + return new Promise((resolve, reject) => { + this._domains + .getAllRecords(domainName, tagName, includeAll, page, pageSize) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRecord function of Domains + * @param {StringKeyword} domainName - Data required for createRecord + * @param {DomainRecordRequestOptions} options - Data required for createRecord + * @returns {Promise} + */ + createRecord(domainName, options) { + return new Promise((resolve, reject) => { + this._domains + .createRecord(domainName, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRecord function of Domains + * @param {StringKeyword} domainName - Data required for getRecord + * @param {StringKeyword} recordId - Data required for getRecord + * @returns {Promise} + */ + getRecord(domainName, recordId) { + return new Promise((resolve, reject) => { + this._domains + .getRecord(domainName, recordId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRecord function of Domains + * @param {StringKeyword} domainName - Data required for deleteRecord + * @param {StringKeyword} recordId - Data required for deleteRecord + * @returns {Promise} + */ + deleteRecord(domainName, recordId) { + return new Promise((resolve, reject) => { + this._domains + .deleteRecord(domainName, recordId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRecord function of Domains + * @param {StringKeyword} domainName - Data required for updateRecord + * @param {StringKeyword} recordId - Data required for updateRecord + * @param {DomainRecordRequestOptions} options - Data required for updateRecord + * @returns {Promise} + */ + changeRecordSets(domainName, recordId, options) { + return new Promise((resolve, reject) => { + this._domains + .updateRecord(domainName, recordId, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_DNS; diff --git a/packages/do-plugin/network/do-loadBalancer.js b/packages/do-plugin/network/do-loadBalancer.js new file mode 100644 index 00000000..c1d64d0b --- /dev/null +++ b/packages/do-plugin/network/do-loadBalancer.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancers object + * @category Digital Ocean + */ +class DO_LoadBalancer { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._loadBalancers = this._instance.loadBalancers; + } + /** + * Trigers the create function of LoadBalancers + * @param {LoadBalancerCreationOptions} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._loadBalancers + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getAll function of LoadBalancers + * @returns {Promise} + */ + list() { + return new Promise((resolve, reject) => { + this._loadBalancers + .getAll() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the update function of LoadBalancers + * @param {StringKeyword} loadBalancerId - Data required for update + * @param {AnyKeyword} options - Data required for update + * @returns {Promise} + */ + update(loadBalancerId, options) { + return new Promise((resolve, reject) => { + this._loadBalancers + .update(loadBalancerId, options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the delete function of LoadBalancers + * @param {StringKeyword} loadBalancerId - Data required for delete + * @returns {Promise} + */ + delete(loadBalancerId) { + return new Promise((resolve, reject) => { + this._loadBalancers + .delete(loadBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_LoadBalancer; diff --git a/packages/do-plugin/package.json b/packages/do-plugin/package.json new file mode 100644 index 00000000..782aa297 --- /dev/null +++ b/packages/do-plugin/package.json @@ -0,0 +1,18 @@ +{ + "name": "@nodecloud/do-plugin", + "version": "2.0.0", + "description": "NodeCloud Digital Ocean plugin", + "main": "index.js", + "scripts": { + "prettier": "yarn pretty-quick" + }, + "keywords": [ + "nodecloud", + "nodecloud-Digital-Ocean" + ], + "author": "Scorelab", + "license": "Apache-2.0", + "dependencies": { + "do-wrapper": "^4.5.1" + } +} diff --git a/packages/do-plugin/storage/do-blockStorage.js b/packages/do-plugin/storage/do-blockStorage.js new file mode 100644 index 00000000..2a2c86f5 --- /dev/null +++ b/packages/do-plugin/storage/do-blockStorage.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a Volumes object + * @category Digital Ocean + */ +class DO_BlockStorage { + /** + * + * @param {module} do DO SDK + * @param {object} options SDK options + */ + constructor(dosdk, dotoken) { + this._DO = dosdk; + this._instance = new this._DO(dotoken); + this._volumes = this._instance.volumes; + } + /** + * Trigers the getAll function of Volumes + * @param {StringKeyword} region - Data required for getAll + * @returns {Promise} + */ + list(region) { + return new Promise((resolve, reject) => { + this._volumes + .getAll(region) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the create function of Volumes + * @param {VolumeCreationOptions} options - Data required for create + * @returns {Promise} + */ + create(options) { + return new Promise((resolve, reject) => { + this._volumes + .create(options) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getById function of Volumes + * @param {StringKeyword} volumeId - Data required for getById + * @returns {Promise} + */ + describe(volumeId) { + return new Promise((resolve, reject) => { + this._volumes + .getById(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteById function of Volumes + * @param {StringKeyword} volumeId - Data required for deleteById + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._volumes + .deleteById(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = DO_BlockStorage; diff --git a/yarn.lock b/yarn.lock index 5e182888..b69fd7c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1640,6 +1640,18 @@ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= +"@sindresorhus/is@^4.0.0": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.0.1.tgz#d26729db850fa327b7cacc5522252194404226f5" + integrity sha512-Qm9hBEBu18wt1PO2flE7LPb30BHMQt1eQgbV76YntdNk73XZGpn3izvGTYxbGgzXKgbCjiia0uxTd3aTNQrY/g== + +"@szmarczak/http-timer@^4.0.5": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.5.tgz#bfbd50211e9dfa51ba07da58a14cdfd333205152" + integrity sha512-PyRA9sm1Yayuj5OIoJ1hGt2YISX45w9WcFbh6ddT0Z/0yaFxOtGLInr4jUfU1EAFVs0Yfyfev4RNwBlUaHdlDQ== + dependencies: + defer-to-connect "^2.0.0" + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" @@ -1657,6 +1669,16 @@ dependencies: "@types/babel-types" "*" +"@types/cacheable-request@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.1.tgz#5d22f3dded1fd3a84c0bbeb5039a7419c2c91976" + integrity sha512-ykFq2zmBGOCbpIXtoVbz4SKY5QriWPh3AjyU4G74RYbtt5yOc5OfaY75ftjg7mikMOla1CTGpX3lLbuJh8DTrQ== + dependencies: + "@types/http-cache-semantics" "*" + "@types/keyv" "*" + "@types/node" "*" + "@types/responselike" "*" + "@types/chai@^4.2.12": version "4.2.12" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.12.tgz#6160ae454cd89dae05adc3bb97997f488b608201" @@ -1682,6 +1704,18 @@ "@types/minimatch" "*" "@types/node" "*" +"@types/http-cache-semantics@*": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a" + integrity sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A== + +"@types/keyv@*": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.1.tgz#e45a45324fca9dab716ab1230ee249c9fb52cfa7" + integrity sha512-MPtoySlAZQ37VoLaPcTHCu1RWJ4llDkULYZIzOYxlhxBqYPB0RsRlmMU0R6tahtFe27mIdkHV+551ZWV4PLmVw== + dependencies: + "@types/node" "*" + "@types/lodash@^4.14.158": version "4.14.158" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.158.tgz#b38ea8b6fe799acd076d7a8d7ab71c26ef77f785" @@ -1753,6 +1787,13 @@ "@types/duplexify" "*" "@types/node" "*" +"@types/responselike@*", "@types/responselike@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29" + integrity sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA== + dependencies: + "@types/node" "*" + "@types/stack-trace@0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/stack-trace/-/stack-trace-0.0.29.tgz#eb7a7c60098edb35630ed900742a5ecb20cfcb4d" @@ -2331,6 +2372,24 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +cacheable-lookup@^5.0.3: + version "5.0.4" + resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" + integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== + +cacheable-request@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.1.tgz#062031c2856232782ed694a257fa35da93942a58" + integrity sha512-lt0mJ6YAnsrBErpTMWeu5kl/tg9xMAWjavYTN6VQXM1A/teBITuNcccXsCxF0tDQQJf9DfAaX5O4e0zp0KlfZw== + dependencies: + clone-response "^1.0.2" + get-stream "^5.1.0" + http-cache-semantics "^4.0.0" + keyv "^4.0.0" + lowercase-keys "^2.0.0" + normalize-url "^4.1.0" + responselike "^2.0.0" + call-me-maybe@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" @@ -2572,6 +2631,13 @@ clone-deep@^4.0.1: kind-of "^6.0.2" shallow-clone "^3.0.0" +clone-response@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" + integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= + dependencies: + mimic-response "^1.0.0" + clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -2994,6 +3060,13 @@ decode-uri-component@^0.2.0: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= +decompress-response@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" + integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== + dependencies: + mimic-response "^3.1.0" + dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" @@ -3016,6 +3089,11 @@ defaults@^1.0.3: dependencies: clone "^1.0.2" +defer-to-connect@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" + integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== + define-properties@^1.1.2, define-properties@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" @@ -3095,6 +3173,13 @@ dns-zonefile@0.2.6: resolved "https://registry.yarnpkg.com/dns-zonefile/-/dns-zonefile-0.2.6.tgz#9daf46d9001bcba4b9133ac307ae1128e50d3c8a" integrity sha512-8hkrtLbVNqCgnRQv8jjit8MnGzqYBouxoP/WMAObbN0aPr43hy/Ml+VxMXKC75lRz2DEwUFN2SNpVnrrQWobew== +do-wrapper@^4.5.1: + version "4.5.1" + resolved "https://registry.yarnpkg.com/do-wrapper/-/do-wrapper-4.5.1.tgz#5eb5a2d6f73c0f00d9b38021640463cd265650bf" + integrity sha512-E2I3xvDS306UwzpuQYL4wz5Fm+RvtV0cxOBPiWsflAEOA06mcBxAEUXvMeox9L6WI7R1PMiEhHLdo/s52JqUAQ== + dependencies: + got "^11.8.2" + doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -3745,6 +3830,13 @@ get-stream@^4.0.0, get-stream@^4.1.0: dependencies: pump "^3.0.0" +get-stream@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" + integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== + dependencies: + pump "^3.0.0" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -3919,6 +4011,23 @@ google-p12-pem@^3.0.0: dependencies: node-forge "^0.9.0" +got@^11.8.2: + version "11.8.2" + resolved "https://registry.yarnpkg.com/got/-/got-11.8.2.tgz#7abb3959ea28c31f3576f1576c1effce23f33599" + integrity sha512-D0QywKgIe30ODs+fm8wMZiAcZjypcCodPNuMz5H9Mny7RJ+IjJ10BdmGW7OM7fHXP+O7r6ZwapQ/YQmMSvB0UQ== + dependencies: + "@sindresorhus/is" "^4.0.0" + "@szmarczak/http-timer" "^4.0.5" + "@types/cacheable-request" "^6.0.1" + "@types/responselike" "^1.0.0" + cacheable-lookup "^5.0.3" + cacheable-request "^7.0.1" + decompress-response "^6.0.0" + http2-wrapper "^1.0.0-beta.5.2" + lowercase-keys "^2.0.0" + p-cancelable "^2.0.0" + responselike "^2.0.0" + graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0, graceful-fs@^4.2.2: version "4.2.4" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" @@ -4068,6 +4177,11 @@ http-cache-semantics@^3.8.1: resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== +http-cache-semantics@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" + integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== + http-proxy-agent@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405" @@ -4094,6 +4208,14 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" +http2-wrapper@^1.0.0-beta.5.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/http2-wrapper/-/http2-wrapper-1.0.3.tgz#b8f55e0c1f25d4ebd08b3b0c2c079f9590800b3d" + integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== + dependencies: + quick-lru "^5.1.1" + resolve-alpn "^1.0.0" + https-proxy-agent@^2.2.3: version "2.2.4" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" @@ -4693,6 +4815,11 @@ json-bigint@^0.3.0: dependencies: bignumber.js "^9.0.0" +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-parse-better-errors@^1.0.0, json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -4792,6 +4919,13 @@ key-mirror@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/key-mirror/-/key-mirror-1.0.1.tgz#0a132d5c8a82a3a4fcd7df732ff9510d04ab366b" +keyv@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.0.3.tgz#4f3aa98de254803cafcd2896734108daa35e4254" + integrity sha512-zdGa2TOpSZPq5mU6iowDARnMBZgtCqJ11dJROFi6tg6kTn4nuUdU09lFyLFSaHrWqpIJ+EBq4E8/Dc0Vx5vLdA== + dependencies: + json-buffer "3.0.1" + kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -5044,6 +5178,11 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" +lowercase-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" + integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== + lru-cache@^4.0.1, lru-cache@^4.1.5: version "4.1.5" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" @@ -5266,6 +5405,16 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +mimic-response@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" + integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== + min-indent@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" @@ -5579,6 +5728,11 @@ normalize-url@^3.3.0: resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== +normalize-url@^4.1.0: + version "4.5.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" + integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== + npm-bundled@^1.0.1: version "1.1.1" resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b" @@ -5771,6 +5925,11 @@ osenv@^0.1.4, osenv@^0.1.5: os-homedir "^1.0.0" os-tmpdir "^1.0.0" +p-cancelable@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-2.1.1.tgz#aab7fbd416582fa32a3db49859c122487c5ed2cf" + integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== + p-defer@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-3.0.0.tgz#d1dceb4ee9b2b604b1d94ffec83760175d4e6f83" @@ -6389,6 +6548,11 @@ quick-lru@^4.0.1: resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== +quick-lru@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932" + integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== + react-ace@^6.5.0: version "6.6.0" resolved "https://registry.yarnpkg.com/react-ace/-/react-ace-6.6.0.tgz#a79457ef03c3b1f8d4fc598a003b1d6ad464f1a0" @@ -6664,6 +6828,11 @@ requizzle@^0.2.3: dependencies: lodash "^4.17.14" +resolve-alpn@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/resolve-alpn/-/resolve-alpn-1.1.2.tgz#30b60cfbb0c0b8dc897940fe13fe255afcdd4d28" + integrity sha512-8OyfzhAtA32LVUsJSke3auIyINcwdh5l3cvYKdKO0nvsYSKuiLfTM5i78PJswFPT8y6cPW+L1v6/hE95chcpDA== + resolve-cwd@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" @@ -6698,6 +6867,13 @@ resolve@^1.10.0: dependencies: path-parse "^1.0.6" +responselike@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.0.tgz#26391bcc3174f750f9a79eacc40a12a5c42d7723" + integrity sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw== + dependencies: + lowercase-keys "^2.0.0" + restore-cursor@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"