diff --git a/README.md b/README.md index 34788296..2b8f9d58 100644 --- a/README.md +++ b/README.md @@ -19,18 +19,18 @@ Table of Content -- [Introduction](#introduction) -- [Supported Service Providers](#-supported-service-providers) -- [Getting Started](#getting-started) - - [NodeCloud Plugins](#nodecloud-plugins) - - [Example](#example) -- [Overriding Providers](#overriding-providers) -- [Service Types](#-service-types) -- [Development setup](#-development-setup) -- [Important Notes for Developers](#important-notes-for-developers-) -- [Test Changes](#test-changes) -- [NodeCloud Code Generation tool](#nodecloud-code-generation-tool) -- [License](#-license) +- [Introduction](#introduction) +- [Supported Service Providers](#-supported-service-providers) +- [Getting Started](#getting-started) + - [NodeCloud Plugins](#nodecloud-plugins) + - [Example](#example) +- [Overriding Providers](#overriding-providers) +- [Service Types](#-service-types) +- [Development setup](#-development-setup) +- [Important Notes for Developers](#important-notes-for-developers-) +- [Test Changes](#test-changes) +- [NodeCloud Code Generation tool](#nodecloud-code-generation-tool) +- [License](#-license) # Introduction @@ -38,18 +38,20 @@ Table of Content NodeCloud will be useful to you if: -- you work on a project which uses multiple cloud providers -- you are looking for an abstract cloud API which can switch between cloud providers with fewer code changes -- you are an open-source enthusiast who is into cloud engineering or code generation -- you want to improve your skills in NodeJS, Typescript and cloud service providers +- you work on a project which uses multiple cloud providers +- you are looking for an abstract cloud API which can switch between cloud providers with fewer code changes +- you are an open-source enthusiast who is into cloud engineering or code generation +- you want to improve your skills in NodeJS, Typescript and cloud service providers ## 📘 Supported Service Providers -- Amazon Web Services (AWS) -- Azure -- Google Cloud Platform (GCP) -- DigitalOcean -- AliCloud +- Amazon Web Services (AWS) +- Azure +- Google Cloud Platform (GCP) +- DigitalOcean +- AliCloud +- Oracle +- Linode _📢 if your required cloud provider plugin is not listed here, we'd love your help to add it :)_ @@ -71,13 +73,15 @@ 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` | | -| 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` | +| 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` | +| Oracle plugin | `yarn add @nodecloud-oracle-plugin` or `npm i @nodecloud-oracle-plugin` | +| Linode plugin | `yarn add @nodecloud-linode-plugin` or `npm i @nodecloud-linode-plugin` | **3️⃣ Create the NodeCloud config file** @@ -95,37 +99,49 @@ This config file can contain an array of objects for all providers and all will ### Example ```js -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 nodeCloudAwsPlugin = require('@nodecloud/aws-plugin'); +const nodeCloudGcpPlugin = require('@nodecloud/gcp-plugin'); +const nodeCloudAzurePlugin = require('@nodecloud/azure-plugin'); +const nodeCloudDoPlugin = require('@nodecloud/do-plugin'); +const nodeCloudOraclePlugin = require('@nodecloud/oracle-plugin'); +const nodeCloudLinodePlugin = require('@nodecloud/linode-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 - } + { + 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, + }, + { + name: 'oracle', + tag: 'oracle', + plugin: nodeCloudOraclePlugin, + }, + { + name: 'linode', + tag: 'linode', + plugin: nodeCloudLinodePlugin, + }, ]; module.exports = providers; ``` @@ -137,52 +153,52 @@ Congratulations! You just configured NodeCloud in your project. Let's start with The below code is an example of usage in AWS. ```js -const nc = require("@nodecloud/common"); // NodeCloud common module +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); 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}`); - }); + 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); - }); + const params = { + InstanceIds: ['i-0928af5c626f85da9'], + DryRun: false, + }; + + // stop AWS EC2 instance + computeModule + .stop(params) + .then(res => { + console.log(res); + }) + .catch(err => { + console.log(err); + }); } ``` @@ -191,32 +207,35 @@ function stopInstance() { NodeCloud officially supports AWS, GCP, Azure, DigitalOcean and AliCloud. If you want to use a community-driven plugin override the providers' list as follows. ```js -const nodeCloud = require("nodecloud"); +const nodeCloud = require('nodecloud'); const options = { - overrideProviders: true + overrideProviders: true, }; const ncProviders = nodeCloud.getProviders(options); ``` ## 📟 Service Types -| Service Category | Service | AWS | GCP | Azure | DigitalOcean | AliCloud | -| ----------------------- | ----------------------------------- | :-----------------------------------: | :-------------------------------: | :---------------------------------------------------------------------: | :---------------------------------------: | :---------------------------------------------------: | -| 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 (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) | -| | 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 | - | +| Service Category | Service | AWS | GCP | Azure | DigitalOcean | AliCloud | Linode | Oracle | +| ----------------------- | ----------------------------------- | :-----------------------------------: | :-------------------------------: | :---------------------------------------------------------------------: | :---------------------------------------: | :---------------------------------------------------: | :---------------------------: | :-------------------: | +| Compute | IaaS | EC2 | Compute Engine | Virtual Machine | Droplets | ECS | Linodes | OCI ContainerInstance | +| | 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* | LKS | OCI ContainerEngine | +| | 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) | Object Storage | OCI Object Storage | +| | Block Storage | EBS | Persistent Disks | Disk Storage | Volumes | NAS\* | - | OCI Volume | +| Networking | Load Balancer | ELB | Cloud Load Balancing\* | Azure Load Balancer | DO Load Balancer | SLB | Node Balancer | OCI LoadBalancer | +| | Peering/Dedicated Interconnect | Direct Connect | Cloud Interconnect\* | ExpressRoute\* | - | Express Connect\* | - | - | +| | DNS | Route53 | Google Domains, Cloud DNS | Azure DNS | DO DNS | Alibaba Cloud DNS\* | Domains | OCI DNS | +| Databases | RDBMS | RDS, Amazon Aurora*, Amazon Redshift* | Cloud SQL\*, Cloud Spanner | SQL Database, Azure Database for MySQL*, Azure Database for PostgreSQL* | Managed Databases(PostgreSQL\* and MySQL) | ApsaraDB (MySQL, MariaDB TX, SQL Server, PostgreSQL) | Database(Postgres and Myssql) | OCI Mysql | +| | NoSQL: key-value | DynamoDB | Cloud Firestore, Cloud Bigtable\* | Table Storage | Managed Databases(Redis)\* | ApsaraDB for Redis\* | - | OCI MongoDb | +| | NoSQL: indexed | Amazon SimpleDB\* | Cloud Firestore | Cosmos DB | - | ApsaraDB for MongoDB\* | - | - | +| Security/ Authorization | Identity Access Management | AWS IAM | Cloud IAM\* | Azure Active Directory*, Azure Role Based Access Control* | - | Resource Access Management\* | - | - | +| Management | Key Management | AWS-KMS | - | - | Do-Keys | - | Monitoring | OCI KeyManagement | +| Firewalls | Firewalls | - | - | - | - | - | Firewalls | - | +| Images | Images | - | - | - | - | - | Images | - | +| Blockchain | Blockchain | - | - | - | - | - | - | OCI Blockchain | \*yet to be implemented diff --git a/assets/generator/high_level_diagrams/linode.png b/assets/generator/high_level_diagrams/linode.png new file mode 100644 index 00000000..e3cb3c33 Binary files /dev/null and b/assets/generator/high_level_diagrams/linode.png differ diff --git a/assets/generator/high_level_diagrams/linode_diagram.png b/assets/generator/high_level_diagrams/linode_diagram.png new file mode 100644 index 00000000..a5b56c14 Binary files /dev/null and b/assets/generator/high_level_diagrams/linode_diagram.png differ diff --git a/assets/generator/high_level_diagrams/oracle.png b/assets/generator/high_level_diagrams/oracle.png new file mode 100644 index 00000000..3ba89645 Binary files /dev/null and b/assets/generator/high_level_diagrams/oracle.png differ diff --git a/assets/generator/high_level_diagrams/oracle2.png b/assets/generator/high_level_diagrams/oracle2.png new file mode 100644 index 00000000..c776e000 Binary files /dev/null and b/assets/generator/high_level_diagrams/oracle2.png differ diff --git a/assets/generator/high_level_diagrams/oracle_diagram.png b/assets/generator/high_level_diagrams/oracle_diagram.png new file mode 100644 index 00000000..6c93bad2 Binary files /dev/null and b/assets/generator/high_level_diagrams/oracle_diagram.png differ diff --git a/assets/generator/high_level_diagrams/oracle_diagram2.png b/assets/generator/high_level_diagrams/oracle_diagram2.png new file mode 100644 index 00000000..3230a019 Binary files /dev/null and b/assets/generator/high_level_diagrams/oracle_diagram2.png differ diff --git a/docs/AWS_ArchivalStorage.html b/docs/AWS_ArchivalStorage.html index b1e7c0c8..1d706a42 100644 --- a/docs/AWS_ArchivalStorage.html +++ b/docs/AWS_ArchivalStorage.html @@ -1,705 +1,1003 @@ - - - - AWS_ArchivalStorage - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_ArchivalStorage

-
- -
-
-

- AWS_ArchivalStorage(aws, options) -

- -
-

Class to create a Glacier object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_ArchivalStorage(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(params) - → {Promise.<createVaultResponse>} - -

- -
-

Trigers the createVault function of Glacier

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateVaultInput - -

Data required for createVault

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createVaultResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteVaultResponse>} - -

- -
-

Trigers the deleteVault function of Glacier

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteVaultInput - -

Data required for deleteVault

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<deleteVaultResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(params) - → {Promise.<deleteArchiveResponse>} - -

- -
-

Trigers the deleteArchive function of Glacier

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteArchiveInput - -

Data required for deleteArchive

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<deleteArchiveResponse> -
-
-
-
-
- -
-

- # - - - list(params) - → {Promise.<listPartsResponse>} - -

- -
-

Trigers the listParts function of Glacier

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListPartsInput - -

Data required for listParts

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<listPartsResponse> -
-
-
-
-
- -
-

- # - - - upload(params) - → - {Promise.<initiateMultipartUploadResponse>} - -

- -
-

- Trigers the initiateMultipartUpload function of Glacier -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - InitiateMultipartUploadInput - -

Data required for initiateMultipartUpload

-
-
- -
-

- View Source - - AWS/storage/aws-archivalStorage.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<initiateMultipartUploadResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_ArchivalStorage + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_ArchivalStorage

+
+ +
+
+

+ AWS_ArchivalStorage(aws, options) +

+ +
+

Class to create a Glacier object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createVault function + of Glacier +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateVaultInput + +

+ Data required + for createVault +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createVaultResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteVault function + of Glacier +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteVaultInput + +

+ Data required + for deleteVault +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteVaultResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(params) + → + {Promise.<deleteArchiveResponse>} + +

+ +
+

+ Trigers the deleteArchive + function of Glacier +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteArchiveInput + +

+ Data required + for + deleteArchive +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteArchiveResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the listParts function + of Glacier +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListPartsInput + +

+ Data required + for listParts +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listPartsResponse> +
+
+
+
+
+ +
+

+ # + + + upload(params) + → + {Promise.<initiateMultipartUploadResponse>} + +

+ +
+

+ Trigers the + initiateMultipartUpload function + of Glacier +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + InitiateMultipartUploadInput + +

+ Data required + for + initiateMultipartUpload +

+
+
+ +
+

+ View Source + + AWS/storage/aws-archivalStorage.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<initiateMultipartUploadResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_BlockStorage.html b/docs/AWS_BlockStorage.html index 3654425f..b230dc6a 100644 --- a/docs/AWS_BlockStorage.html +++ b/docs/AWS_BlockStorage.html @@ -1,624 +1,897 @@ - - - - AWS_BlockStorage - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_BlockStorage

-
- -
-
-

- AWS_BlockStorage(aws, options) -

- -
-

Class to create a EC2 object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_BlockStorage(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/storage/aws-blockStorage.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(params) - → {Promise.<createVolumeResponse>} - -

- -
-

Trigers the createVolume function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateVolumeRequest - -

Data required for createVolume

-
-
- -
-

- View Source - - AWS/storage/aws-blockStorage.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createVolumeResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteVolumeResponse>} - -

- -
-

Trigers the deleteVolume function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteVolumeRequest - -

Data required for deleteVolume

-
-
- -
-

- View Source - - AWS/storage/aws-blockStorage.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<deleteVolumeResponse> -
-
-
-
-
- -
-

- # - - - describe(params) - → - {Promise.<describeVolumeAttributeResponse>} - -

- -
-

Trigers the describeVolumeAttribute function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeVolumeAttributeRequest - -

Data required for describeVolumeAttribute

-
-
- -
-

- View Source - - AWS/storage/aws-blockStorage.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<describeVolumeAttributeResponse> -
-
-
-
-
- -
-

- # - - - list(params) - → {Promise.<describeVolumesResponse>} - -

- -
-

Trigers the describeVolumes function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeVolumesRequest - -

Data required for describeVolumes

-
-
- -
-

- View Source - - AWS/storage/aws-blockStorage.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<describeVolumesResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_BlockStorage + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_BlockStorage

+
+ +
+
+

+ AWS_BlockStorage(aws, options) +

+ +
+

Class to create a EC2 object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/storage/aws-blockStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createVolume + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateVolumeRequest + +

+ Data required + for createVolume +

+
+
+ +
+

+ View Source + + AWS/storage/aws-blockStorage.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createVolumeResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteVolume + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteVolumeRequest + +

+ Data required + for deleteVolume +

+
+
+ +
+

+ View Source + + AWS/storage/aws-blockStorage.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteVolumeResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the + describeVolumeAttribute function + of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeVolumeAttributeRequest + +

+ Data required + for + describeVolumeAttribute +

+
+
+ +
+

+ View Source + + AWS/storage/aws-blockStorage.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeVolumeAttributeResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the describeVolumes + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeVolumesRequest + +

+ Data required + for + describeVolumes +

+
+
+ +
+

+ View Source + + AWS/storage/aws-blockStorage.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeVolumesResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_ComputeInstance.html b/docs/AWS_ComputeInstance.html index 4a3b7829..4a730cae 100644 --- a/docs/AWS_ComputeInstance.html +++ b/docs/AWS_ComputeInstance.html @@ -1,1040 +1,1426 @@ - - - - AWS_ComputeInstance - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_ComputeInstance

-
- -
-
-

- AWS_ComputeInstance(aws, options) -

- -
-

Class to create a EC2 object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_ComputeInstance(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - addTags(params) - → {Promise.<createTagsResponse>} - -

- -
-

Trigers the createTags function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateTagsRequest - -

Data required for createTags

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createTagsResponse> -
-
-
-
-
- -
-

- # - - - create(params) - → {Promise.<runInstancesResponse>} - -

- -
-

Trigers the runInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - RunInstancesRequest - -

Data required for runInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<runInstancesResponse> -
-
-
-
-
- -
-

- # - - - destroy(params) - → {Promise.<terminateInstancesResponse>} - -

- -
-

Trigers the terminateInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - TerminateInstancesRequest - -

Data required for terminateInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 136 - -

-
- -
-
-
-
-
- - - Promise.<terminateInstancesResponse> -
-
-
-
-
- -
-

- # - - - list(params) - → {Promise.<describeInstancesResponse>} - -

- -
-

Trigers the describeInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeInstancesRequest - -

Data required for describeInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<describeInstancesResponse> -
-
-
-
-
- -
-

- # - - - monitor(params) - → {Promise.<monitorInstancesResponse>} - -

- -
-

Trigers the monitorInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - MonitorInstancesRequest - -

Data required for monitorInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<monitorInstancesResponse> -
-
-
-
-
- -
-

- # - - - reboot(params) - → {Promise.<rebootInstancesResponse>} - -

- -
-

Trigers the rebootInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - RebootInstancesRequest - -

Data required for rebootInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<rebootInstancesResponse> -
-
-
-
-
- -
-

- # - - - start(params) - → {Promise.<startInstancesResponse>} - -

- -
-

Trigers the startInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - StartInstancesRequest - -

Data required for startInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 104 - -

-
- -
-
-
-
-
- - - Promise.<startInstancesResponse> -
-
-
-
-
- -
-

- # - - - stop(params) - → {Promise.<stopInstancesResponse>} - -

- -
-

Trigers the stopInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - StopInstancesRequest - -

Data required for stopInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<stopInstancesResponse> -
-
-
-
-
- -
-

- # - - - unmonitor(params) - → {Promise.<unmonitorInstancesResponse>} - -

- -
-

Trigers the unmonitorInstances function of EC2

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UnmonitorInstancesRequest - -

Data required for unmonitorInstances

-
-
- -
-

- View Source - - AWS/compute/aws-computeInstance.js, - line 152 - -

-
- -
-
-
-
-
- - - Promise.<unmonitorInstancesResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_ComputeInstance + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_ComputeInstance

+
+ +
+
+

+ AWS_ComputeInstance(aws, options) +

+ +
+

Class to create a EC2 object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + addTags(params) + → + {Promise.<createTagsResponse>} + +

+ +
+

+ Trigers the createTags function + of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateTagsRequest + +

+ Data required + for createTags +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createTagsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the runInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + RunInstancesRequest + +

+ Data required + for runInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<runInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + destroy(params) + → + {Promise.<terminateInstancesResponse>} + +

+ +
+

+ Trigers the terminateInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + TerminateInstancesRequest + +

+ Data required + for + terminateInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 143 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<terminateInstancesResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the describeInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeInstancesRequest + +

+ Data required + for + describeInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + monitor(params) + → + {Promise.<monitorInstancesResponse>} + +

+ +
+

+ Trigers the monitorInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + MonitorInstancesRequest + +

+ Data required + for + monitorInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<monitorInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + reboot(params) + → + {Promise.<rebootInstancesResponse>} + +

+ +
+

+ Trigers the rebootInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + RebootInstancesRequest + +

+ Data required + for + rebootInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<rebootInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + start(params) + → + {Promise.<startInstancesResponse>} + +

+ +
+

+ Trigers the startInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + StartInstancesRequest + +

+ Data required + for + startInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 109 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<startInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + stop(params) + → + {Promise.<stopInstancesResponse>} + +

+ +
+

+ Trigers the stopInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + StopInstancesRequest + +

+ Data required + for + stopInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 126 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<stopInstancesResponse> +
+
+
+
+
+ +
+

+ # + + + unmonitor(params) + → + {Promise.<unmonitorInstancesResponse>} + +

+ +
+

+ Trigers the unmonitorInstances + function of EC2 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UnmonitorInstancesRequest + +

+ Data required + for + unmonitorInstances +

+
+
+ +
+

+ View Source + + AWS/compute/aws-computeInstance.js, + line 160 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<unmonitorInstancesResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_Container.html b/docs/AWS_Container.html index 266d768d..e463eca2 100644 --- a/docs/AWS_Container.html +++ b/docs/AWS_Container.html @@ -1,622 +1,894 @@ - - - - AWS_Container - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_Container

-
- -
-
-

- AWS_Container(aws, options) -

- -
-

Class to create a ECS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_Container(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/compute/aws-container.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(params) - → {Promise.<createClusterResponse>} - -

- -
-

Trigers the createCluster function of ECS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateClusterRequest - -

Data required for createCluster

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createClusterResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteClusterResponse>} - -

- -
-

Trigers the deleteCluster function of ECS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteClusterRequest - -

Data required for deleteCluster

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteClusterResponse> -
-
-
-
-
- -
-

- # - - - describe(params) - → {Promise.<describeClustersResponse>} - -

- -
-

Trigers the describeClusters function of ECS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeClustersRequest - -

Data required for describeClusters

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<describeClustersResponse> -
-
-
-
-
- -
-

- # - - - list(params) - → {Promise.<listClustersResponse>} - -

- -
-

Trigers the listClusters function of ECS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListClustersRequest - -

Data required for listClusters

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<listClustersResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_Container + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_Container

+
+ +
+
+

+ AWS_Container(aws, options) +

+ +
+

Class to create a ECS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createCluster + function of ECS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateClusterRequest + +

+ Data required + for + createCluster +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteCluster + function of ECS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteClusterRequest + +

+ Data required + for + deleteCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteClusterResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the describeClusters + function of ECS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeClustersRequest + +

+ Data required + for + describeClusters +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeClustersResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the listClusters + function of ECS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListClustersRequest + +

+ Data required + for listClusters +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<listClustersResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_DNS.html b/docs/AWS_DNS.html index b34b2a7e..4e51ed8c 100644 --- a/docs/AWS_DNS.html +++ b/docs/AWS_DNS.html @@ -1,615 +1,905 @@ - - - - AWS_DNS - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_DNS

-
- -
-
-

- AWS_DNS(aws, options) -

- -
-

Class to create a Route53 object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_DNS(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - changeRecordSets(params) - → - {Promise.<changeResourceRecordSetsResponse>} - -

- -
-

- Trigers the changeResourceRecordSets function of Route53 -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ChangeResourceRecordSetsRequest - -

Data required for changeResourceRecordSets

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<changeResourceRecordSetsResponse> -
-
-
-
-
- -
-

- # - - - createZone(params) - → {Promise.<createHostedZoneResponse>} - -

- -
-

Trigers the createHostedZone function of Route53

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateHostedZoneRequest - -

Data required for createHostedZone

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createHostedZoneResponse> -
-
-
-
-
- -
-

- # - - - deleteZone(params) - → {Promise.<deleteHostedZoneResponse>} - -

- -
-

Trigers the deleteHostedZone function of Route53

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteHostedZoneRequest - -

Data required for deleteHostedZone

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteHostedZoneResponse> -
-
-
-
-
- -
-

- # - - - listZones(params) - → {Promise.<listHostedZonesResponse>} - -

- -
-

Trigers the listHostedZones function of Route53

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListHostedZonesRequest - -

Data required for listHostedZones

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<listHostedZonesResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_DNS + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_DNS

+
+ +
+
+

+ AWS_DNS(aws, options) +

+ +
+

Class to create a Route53 object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + changeRecordSets(params) + → + {Promise.<changeResourceRecordSetsResponse>} + +

+ +
+

+ Trigers the + changeResourceRecordSets + function of Route53 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ChangeResourceRecordSetsRequest + +

+ Data required + for + changeResourceRecordSets +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<changeResourceRecordSetsResponse> +
+
+
+
+
+ +
+

+ # + + + createZone(params) + → + {Promise.<createHostedZoneResponse>} + +

+ +
+

+ Trigers the createHostedZone + function of Route53 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateHostedZoneRequest + +

+ Data required + for + createHostedZone +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createHostedZoneResponse> +
+
+
+
+
+ +
+

+ # + + + deleteZone(params) + → + {Promise.<deleteHostedZoneResponse>} + +

+ +
+

+ Trigers the deleteHostedZone + function of Route53 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteHostedZoneRequest + +

+ Data required + for + deleteHostedZone +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteHostedZoneResponse> +
+
+
+
+
+ +
+

+ # + + + listZones(params) + → + {Promise.<listHostedZonesResponse>} + +

+ +
+

+ Trigers the listHostedZones + function of Route53 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListHostedZonesRequest + +

+ Data required + for + listHostedZones +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<listHostedZonesResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_IAM.html b/docs/AWS_IAM.html index 6957c079..d31ae559 100644 --- a/docs/AWS_IAM.html +++ b/docs/AWS_IAM.html @@ -1,686 +1,1010 @@ - - - - AWS_IAM - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_IAM

-
- -
-
-

- AWS_IAM(aws, options) -

- -
-

Class to create a IAM object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_IAM(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - attachGroupPolicy(params) - → {Promise.<attachGroupPolicyResponse>} - -

- -
-

Trigers the attachGroupPolicy function of IAM

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - AttachGroupPolicyRequest - -

Data required for attachGroupPolicy

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<attachGroupPolicyResponse> -
-
-
-
-
- -
-

- # - - - createGroup(params) - → {Promise.<createGroupResponse>} - -

- -
-

Trigers the createGroup function of IAM

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateGroupRequest - -

Data required for createGroup

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createGroupResponse> -
-
-
-
-
- -
-

- # - - - deleteGroup(params) - → {Promise.<deleteGroupResponse>} - -

- -
-

Trigers the deleteGroup function of IAM

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteGroupRequest - -

Data required for deleteGroup

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteGroupResponse> -
-
-
-
-
- -
-

- # - - - describe(params) - → {Promise.<getGroupResponse>} - -

- -
-

Trigers the getGroup function of IAM

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - GetGroupRequest - -

Data required for getGroup

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<getGroupResponse> -
-
-
-
-
- -
-

- # - - - detachGroupPolicy(params) - → {Promise.<detachGroupPolicyResponse>} - -

- -
-

Trigers the detachGroupPolicy function of IAM

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DetachGroupPolicyRequest - -

Data required for detachGroupPolicy

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<detachGroupPolicyResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_IAM + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_IAM

+
+ +
+
+

+ AWS_IAM(aws, options) +

+ +
+

Class to create a IAM object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + attachGroupPolicy(params) + → + {Promise.<attachGroupPolicyResponse>} + +

+ +
+

+ Trigers the attachGroupPolicy + function of IAM +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + AttachGroupPolicyRequest + +

+ Data required + for + attachGroupPolicy +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<attachGroupPolicyResponse> +
+
+
+
+
+ +
+

+ # + + + createGroup(params) + → + {Promise.<createGroupResponse>} + +

+ +
+

+ Trigers the createGroup function + of IAM +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateGroupRequest + +

+ Data required + for createGroup +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createGroupResponse> +
+
+
+
+
+ +
+

+ # + + + deleteGroup(params) + → + {Promise.<deleteGroupResponse>} + +

+ +
+

+ Trigers the deleteGroup function + of IAM +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteGroupRequest + +

+ Data required + for deleteGroup +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteGroupResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the getGroup function of + IAM +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + GetGroupRequest + +

+ Data required + for getGroup +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<getGroupResponse> +
+
+
+
+
+ +
+

+ # + + + detachGroupPolicy(params) + → + {Promise.<detachGroupPolicyResponse>} + +

+ +
+

+ Trigers the detachGroupPolicy + function of IAM +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DetachGroupPolicyRequest + +

+ Data required + for + detachGroupPolicy +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<detachGroupPolicyResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_KeyManagement.html b/docs/AWS_KeyManagement.html index eef8b9f5..895da74d 100644 --- a/docs/AWS_KeyManagement.html +++ b/docs/AWS_KeyManagement.html @@ -1,708 +1,1009 @@ - - - - AWS_KeyManagement - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_KeyManagement

-
- -
-
-

- AWS_KeyManagement(aws, options) -

- -
-

Class to create a KMS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_KeyManagement(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createKey(params) - → {Promise.<createKeyResponse>} - -

- -
-

Trigers the createKey function of KMS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateKeyRequest - -

Data required for createKey

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createKeyResponse> -
-
-
-
-
- -
-

- # - - - deleteKey(params) - → - {Promise.<deleteCustomKeyStoreResponse>} - -

- -
-

Trigers the deleteCustomKeyStore function of KMS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteCustomKeyStoreRequest - -

Data required for deleteCustomKeyStore

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<deleteCustomKeyStoreResponse> -
-
-
-
-
- -
-

- # - - - describeKey(params) - → {Promise.<describeKeyResponse>} - -

- -
-

Trigers the describeKey function of KMS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeKeyRequest - -

Data required for describeKey

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<describeKeyResponse> -
-
-
-
-
- -
-

- # - - - putKeyPolicy(params) - → {Promise.<putKeyPolicyResponse>} - -

- -
-

Trigers the putKeyPolicy function of KMS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - PutKeyPolicyRequest - -

Data required for putKeyPolicy

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<putKeyPolicyResponse> -
-
-
-
-
- -
-

- # - - - update(params) - → - {Promise.<updateKeyDescriptionResponse>} - -

- -
-

Trigers the updateKeyDescription function of KMS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UpdateKeyDescriptionRequest - -

Data required for updateKeyDescription

-
-
- -
-

- View Source - - AWS/management/aws-keyManagement.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<updateKeyDescriptionResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_KeyManagement + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_KeyManagement

+
+ +
+
+

+ AWS_KeyManagement(aws, options) +

+ +
+

Class to create a KMS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createKey(params) + → + {Promise.<createKeyResponse>} + +

+ +
+

+ Trigers the createKey function + of KMS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateKeyRequest + +

+ Data required + for createKey +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createKeyResponse> +
+
+
+
+
+ +
+

+ # + + + deleteKey(params) + → + {Promise.<deleteCustomKeyStoreResponse>} + +

+ +
+

+ Trigers the deleteCustomKeyStore + function of KMS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteCustomKeyStoreRequest + +

+ Data required + for + deleteCustomKeyStore +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteCustomKeyStoreResponse> +
+
+
+
+
+ +
+

+ # + + + describeKey(params) + → + {Promise.<describeKeyResponse>} + +

+ +
+

+ Trigers the describeKey function + of KMS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeKeyRequest + +

+ Data required + for describeKey +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeKeyResponse> +
+
+
+
+
+ +
+

+ # + + + putKeyPolicy(params) + → + {Promise.<putKeyPolicyResponse>} + +

+ +
+

+ Trigers the putKeyPolicy + function of KMS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + PutKeyPolicyRequest + +

+ Data required + for putKeyPolicy +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<putKeyPolicyResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the updateKeyDescription + function of KMS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UpdateKeyDescriptionRequest + +

+ Data required + for + updateKeyDescription +

+
+
+ +
+

+ View Source + + AWS/management/aws-keyManagement.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateKeyDescriptionResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_Kubernetes.html b/docs/AWS_Kubernetes.html index bf3c8cd7..cbe81534 100644 --- a/docs/AWS_Kubernetes.html +++ b/docs/AWS_Kubernetes.html @@ -1,1113 +1,1554 @@ - - - - AWS_Kubernetes - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_Kubernetes

-
- -
-
-

- AWS_Kubernetes(aws, options) -

- -
-

Class to create a EKS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_Kubernetes(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(params) - → {Promise.<createClusterResponse>} - -

- -
-

Trigers the createCluster function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateClusterRequest - -

Data required for createCluster

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createClusterResponse> -
-
-
-
-
- -
-

- # - - - createNodeGroup(params) - → {Promise.<createNodegroupResponse>} - -

- -
-

Trigers the createNodegroup function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateNodegroupRequest - -

Data required for createNodegroup

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<createNodegroupResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteClusterResponse>} - -

- -
-

Trigers the deleteCluster function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteClusterRequest - -

Data required for deleteCluster

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<deleteClusterResponse> -
-
-
-
-
- -
-

- # - - - deleteNodegroup(params) - → {Promise.<deleteNodegroupResponse>} - -

- -
-

Trigers the deleteNodegroup function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteNodegroupRequest - -

Data required for deleteNodegroup

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<deleteNodegroupResponse> -
-
-
-
-
- -
-

- # - - - describeCluster(params) - → {Promise.<describeClusterResponse>} - -

- -
-

Trigers the describeCluster function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeClusterRequest - -

Data required for describeCluster

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<describeClusterResponse> -
-
-
-
-
- -
-

- # - - - describeNodeGroup(params) - → {Promise.<describeNodegroupResponse>} - -

- -
-

Trigers the describeNodegroup function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeNodegroupRequest - -

Data required for describeNodegroup

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 104 - -

-
- -
-
-
-
-
- - - Promise.<describeNodegroupResponse> -
-
-
-
-
- -
-

- # - - - listClusters(params) - → {Promise.<listClustersResponse>} - -

- -
-

Trigers the listClusters function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListClustersRequest - -

Data required for listClusters

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<listClustersResponse> -
-
-
-
-
- -
-

- # - - - listNodegroups(params) - → {Promise.<listNodegroupsResponse>} - -

- -
-

Trigers the listNodegroups function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListNodegroupsRequest - -

Data required for listNodegroups

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 136 - -

-
- -
-
-
-
-
- - - Promise.<listNodegroupsResponse> -
-
-
-
-
- -
-

- # - - - updateConfig(params) - → - {Promise.<updateClusterConfigResponse>} - -

- -
-

Trigers the updateClusterConfig function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UpdateClusterConfigRequest - -

Data required for updateClusterConfig

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 168 - -

-
- -
-
-
-
-
- - - Promise.<updateClusterConfigResponse> -
-
-
-
-
- -
-

- # - - - updateTags(params) - → {Promise.<tagResourceResponse>} - -

- -
-

Trigers the tagResource function of EKS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - TagResourceRequest - -

Data required for tagResource

-
-
- -
-

- View Source - - AWS/compute/aws-kubernetes.js, - line 152 - -

-
- -
-
-
-
-
- - - Promise.<tagResourceResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_Kubernetes + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_Kubernetes

+
+ +
+
+

+ AWS_Kubernetes(aws, options) +

+ +
+

Class to create a EKS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createCluster + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateClusterRequest + +

+ Data required + for + createCluster +

+
+
+ +
+

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

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

+ # + + + createNodeGroup(params) + → + {Promise.<createNodegroupResponse>} + +

+ +
+

+ Trigers the createNodegroup + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateNodegroupRequest + +

+ Data required + for + createNodegroup +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createNodegroupResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteCluster + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteClusterRequest + +

+ Data required + for + deleteCluster +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteClusterResponse> +
+
+
+
+
+ +
+

+ # + + + deleteNodegroup(params) + → + {Promise.<deleteNodegroupResponse>} + +

+ +
+

+ Trigers the deleteNodegroup + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteNodegroupRequest + +

+ Data required + for + deleteNodegroup +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteNodegroupResponse> +
+
+
+
+
+ +
+

+ # + + + describeCluster(params) + → + {Promise.<describeClusterResponse>} + +

+ +
+

+ Trigers the describeCluster + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeClusterRequest + +

+ Data required + for + describeCluster +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeClusterResponse> +
+
+
+
+
+ +
+

+ # + + + describeNodeGroup(params) + → + {Promise.<describeNodegroupResponse>} + +

+ +
+

+ Trigers the describeNodegroup + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeNodegroupRequest + +

+ Data required + for + describeNodegroup +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 109 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeNodegroupResponse> +
+
+
+
+
+ +
+

+ # + + + listClusters(params) + → + {Promise.<listClustersResponse>} + +

+ +
+

+ Trigers the listClusters + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListClustersRequest + +

+ Data required + for listClusters +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 126 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listClustersResponse> +
+
+
+
+
+ +
+

+ # + + + listNodegroups(params) + → + {Promise.<listNodegroupsResponse>} + +

+ +
+

+ Trigers the listNodegroups + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListNodegroupsRequest + +

+ Data required + for + listNodegroups +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 143 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listNodegroupsResponse> +
+
+
+
+
+ +
+

+ # + + + updateConfig(params) + → + {Promise.<updateClusterConfigResponse>} + +

+ +
+

+ Trigers the updateClusterConfig + function of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UpdateClusterConfigRequest + +

+ Data required + for + updateClusterConfig +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 177 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateClusterConfigResponse> +
+
+
+
+
+ +
+

+ # + + + updateTags(params) + → + {Promise.<tagResourceResponse>} + +

+ +
+

+ Trigers the tagResource function + of EKS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + TagResourceRequest + +

+ Data required + for tagResource +

+
+
+ +
+

+ View Source + + AWS/compute/aws-kubernetes.js, + line 160 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<tagResourceResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_LoadBalancer.html b/docs/AWS_LoadBalancer.html index f735f72b..a19ca662 100644 --- a/docs/AWS_LoadBalancer.html +++ b/docs/AWS_LoadBalancer.html @@ -1,710 +1,1005 @@ - - - - AWS_LoadBalancer - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_LoadBalancer

-
- -
-
-

- AWS_LoadBalancer(aws, options) -

- -
-

Class to create a ELB object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_LoadBalancer(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - addTags(params) - → {Promise.<addTagsResponse>} - -

- -
-

Trigers the addTags function of ELB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - AddTagsInput - -

Data required for addTags

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<addTagsResponse> -
-
-
-
-
- -
-

- # - - - create(params) - → {Promise.<createLoadBalancerResponse>} - -

- -
-

Trigers the createLoadBalancer function of ELB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateAccessPointInput - -

Data required for createLoadBalancer

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createLoadBalancerResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteLoadBalancerResponse>} - -

- -
-

Trigers the deleteLoadBalancer function of ELB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteAccessPointInput - -

Data required for deleteLoadBalancer

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteLoadBalancerResponse> -
-
-
-
-
- -
-

- # - - - describe(params) - → - {Promise.<describeLoadBalancerAttributesResponse>} - -

- -
-

- Trigers the describeLoadBalancerAttributes function of - ELB -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeLoadBalancerAttributesInput - -

- Data required for describeLoadBalancerAttributes -

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<describeLoadBalancerAttributesResponse> -
-
-
-
-
- -
-

- # - - - list(params) - → - {Promise.<describeLoadBalancersResponse>} - -

- -
-

Trigers the describeLoadBalancers function of ELB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DescribeAccessPointsInput - -

Data required for describeLoadBalancers

-
-
- -
-

- View Source - - AWS/network/aws-loadBalancer.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<describeLoadBalancersResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_LoadBalancer + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_LoadBalancer

+
+ +
+
+

+ AWS_LoadBalancer(aws, options) +

+ +
+

Class to create a ELB object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + addTags(params) + → + {Promise.<addTagsResponse>} + +

+ +
+

+ Trigers the addTags function of + ELB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + AddTagsInput + +

+ Data required + for addTags +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<addTagsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the createLoadBalancer + function of ELB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateAccessPointInput + +

+ Data required + for + createLoadBalancer +

+
+
+ +
+

+ View Source + + AWS/network/aws-loadBalancer.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createLoadBalancerResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteLoadBalancer + function of ELB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteAccessPointInput + +

+ Data required + for + deleteLoadBalancer +

+
+
+ +
+

+ View Source + + AWS/network/aws-loadBalancer.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteLoadBalancerResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the + describeLoadBalancerAttributes + function of ELB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeLoadBalancerAttributesInput + +

+ Data required + for + describeLoadBalancerAttributes +

+
+
+ +
+

+ View Source + + AWS/network/aws-loadBalancer.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeLoadBalancerAttributesResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the + describeLoadBalancers function + of ELB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DescribeAccessPointsInput + +

+ Data required + for + describeLoadBalancers +

+
+
+ +
+

+ View Source + + AWS/network/aws-loadBalancer.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<describeLoadBalancersResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_Monitoring.html b/docs/AWS_Monitoring.html index ce8e94b4..dbc6c7f2 100644 --- a/docs/AWS_Monitoring.html +++ b/docs/AWS_Monitoring.html @@ -1,617 +1,906 @@ - - - - AWS_Monitoring - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_Monitoring

-
- -
-
-

- AWS_Monitoring(aws, options) -

- -
-

Class to create a CloudWatch object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_Monitoring(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/management/aws-monitoring.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - deleteAlarm(params) - → {Promise.<deleteAlarmsResponse>} - -

- -
-

Trigers the deleteAlarms function of CloudWatch

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteAlarmsInput - -

Data required for deleteAlarms

-
-
- -
-

- View Source - - AWS/management/aws-monitoring.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<deleteAlarmsResponse> -
-
-
-
-
- -
-

- # - - - getMetricData(params) - → {Promise.<getMetricDataResponse>} - -

- -
-

Trigers the getMetricData function of CloudWatch

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - GetMetricDataInput - -

Data required for getMetricData

-
-
- -
-

- View Source - - AWS/management/aws-monitoring.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<getMetricDataResponse> -
-
-
-
-
- -
-

- # - - - listAlarms(params) - → {Promise.<listMetricsResponse>} - -

- -
-

Trigers the listMetrics function of CloudWatch

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListMetricsInput - -

Data required for listMetrics

-
-
- -
-

- View Source - - AWS/management/aws-monitoring.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<listMetricsResponse> -
-
-
-
-
- -
-

- # - - - updateAlarm(params) - → {Promise.<putMetricAlarmResponse>} - -

- -
-

Trigers the putMetricAlarm function of CloudWatch

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - PutMetricAlarmInput - -

Data required for putMetricAlarm

-
-
- -
-

- View Source - - AWS/management/aws-monitoring.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<putMetricAlarmResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_Monitoring + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_Monitoring

+
+ +
+
+

+ AWS_Monitoring(aws, options) +

+ +
+

Class to create a CloudWatch object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/management/aws-monitoring.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + deleteAlarm(params) + → + {Promise.<deleteAlarmsResponse>} + +

+ +
+

+ Trigers the deleteAlarms + function of CloudWatch +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteAlarmsInput + +

+ Data required + for deleteAlarms +

+
+
+ +
+

+ View Source + + AWS/management/aws-monitoring.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteAlarmsResponse> +
+
+
+
+
+ +
+

+ # + + + getMetricData(params) + → + {Promise.<getMetricDataResponse>} + +

+ +
+

+ Trigers the getMetricData + function of CloudWatch +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + GetMetricDataInput + +

+ Data required + for + getMetricData +

+
+
+ +
+

+ View Source + + AWS/management/aws-monitoring.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getMetricDataResponse> +
+
+
+
+
+ +
+

+ # + + + listAlarms(params) + → + {Promise.<listMetricsResponse>} + +

+ +
+

+ Trigers the listMetrics function + of CloudWatch +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListMetricsInput + +

+ Data required + for listMetrics +

+
+
+ +
+

+ View Source + + AWS/management/aws-monitoring.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listMetricsResponse> +
+
+
+
+
+ +
+

+ # + + + updateAlarm(params) + → + {Promise.<putMetricAlarmResponse>} + +

+ +
+

+ Trigers the putMetricAlarm + function of CloudWatch +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + PutMetricAlarmInput + +

+ Data required + for + putMetricAlarm +

+
+
+ +
+

+ View Source + + AWS/management/aws-monitoring.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<putMetricAlarmResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_NoSql.html b/docs/AWS_NoSql.html index 43a1f798..d9ac6896 100644 --- a/docs/AWS_NoSql.html +++ b/docs/AWS_NoSql.html @@ -1,762 +1,1114 @@ - - - - AWS_NoSql - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_NoSql

-
- -
-
-

- AWS_NoSql(aws, options) -

- -
-

Class to create a DynamoDB object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_NoSql(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createItem(params) - → {Promise.<putItemResponse>} - -

- -
-

Trigers the putItem function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - PutItemInput - -

Data required for putItem

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<putItemResponse> -
-
-
-
-
- -
-

- # - - - createTable(params) - → {Promise.<createTableResponse>} - -

- -
-

Trigers the createTable function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateTableInput - -

Data required for createTable

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createTableResponse> -
-
-
-
-
- -
-

- # - - - deleteItem(params) - → {Promise.<deleteItemResponse>} - -

- -
-

Trigers the deleteItem function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteItemInput - -

Data required for deleteItem

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteItemResponse> -
-
-
-
-
- -
-

- # - - - deleteTable(params) - → {Promise.<deleteTableResponse>} - -

- -
-

Trigers the deleteTable function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteTableInput - -

Data required for deleteTable

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteTableResponse> -
-
-
-
-
- -
-

- # - - - query(params) - → {Promise.<queryResponse>} - -

- -
-

Trigers the query function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - QueryInput - -

Data required for query

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<queryResponse> -
-
-
-
-
- -
-

- # - - - updateItem(params) - → {Promise.<updateItemResponse>} - -

- -
-

Trigers the updateItem function of DynamoDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UpdateItemInput - -

Data required for updateItem

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<updateItemResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_NoSql + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_NoSql

+
+ +
+
+

+ AWS_NoSql(aws, options) +

+ +
+

Class to create a DynamoDB object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createItem(params) + → + {Promise.<putItemResponse>} + +

+ +
+

+ Trigers the putItem function of + DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + PutItemInput + +

+ Data required + for putItem +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<putItemResponse> +
+
+
+
+
+ +
+

+ # + + + createTable(params) + → + {Promise.<createTableResponse>} + +

+ +
+

+ Trigers the createTable function + of DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateTableInput + +

+ Data required + for createTable +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createTableResponse> +
+
+
+
+
+ +
+

+ # + + + deleteItem(params) + → + {Promise.<deleteItemResponse>} + +

+ +
+

+ Trigers the deleteItem function + of DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteItemInput + +

+ Data required + for deleteItem +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteItemResponse> +
+
+
+
+
+ +
+

+ # + + + deleteTable(params) + → + {Promise.<deleteTableResponse>} + +

+ +
+

+ Trigers the deleteTable function + of DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteTableInput + +

+ Data required + for deleteTable +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteTableResponse> +
+
+
+
+
+ +
+

+ # + + + query(params) + → + {Promise.<queryResponse>} + +

+ +
+

+ Trigers the query function of + DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + QueryInput + +

+ Data required + for query +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<queryResponse> +
+
+
+
+
+ +
+

+ # + + + updateItem(params) + → + {Promise.<updateItemResponse>} + +

+ +
+

+ Trigers the updateItem function + of DynamoDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UpdateItemInput + +

+ Data required + for updateItem +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateItemResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_NoSqlIndexed.html b/docs/AWS_NoSqlIndexed.html index dc2c60b3..97dc52b0 100644 --- a/docs/AWS_NoSqlIndexed.html +++ b/docs/AWS_NoSqlIndexed.html @@ -1,1036 +1,1447 @@ - - - - AWS_NoSqlIndexed - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_NoSqlIndexed

-
- -
-
-

- AWS_NoSqlIndexed(aws, options) -

- -
-

Class to create a SimpleDB object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_NoSqlIndexed(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/database/aws-noSqlIndexed.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - batchDelete(params) - → - {Promise.<batchDeleteAttributesResponse>} - -

- -
-

- Trigers the batchDeleteAttributes function of SimpleDB -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - BatchDeleteAttributesRequest - -

Data required for batchDeleteAttributes

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<batchDeleteAttributesResponse> -
-
-
-
-
- -
-

- # - - - batchWrite(params) - → {Promise.<batchPutAttributesResponse>} - -

- -
-

Trigers the batchPutAttributes function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - BatchPutAttributesRequest - -

Data required for batchPutAttributes

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<batchPutAttributesResponse> -
-
-
-
-
- -
-

- # - - - createCollection(params) - → {Promise.<createDomainResponse>} - -

- -
-

Trigers the createDomain function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateDomainRequest - -

Data required for createDomain

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createDomainResponse> -
-
-
-
-
- -
-

- # - - - deleteAttribute(params) - → {Promise.<deleteAttributesResponse>} - -

- -
-

Trigers the deleteAttributes function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteAttributesRequest - -

Data required for deleteAttributes

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteAttributesResponse> -
-
-
-
-
- -
-

- # - - - deleteCollection(params) - → {Promise.<deleteDomainResponse>} - -

- -
-

Trigers the deleteDomain function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteDomainRequest - -

Data required for deleteDomain

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteDomainResponse> -
-
-
-
-
- -
-

- # - - - getAttributes(params) - → {Promise.<getAttributesResponse>} - -

- -
-

Trigers the getAttributes function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - GetAttributesRequest - -

Data required for getAttributes

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<getAttributesResponse> -
-
-
-
-
- -
-

- # - - - listCollections(params) - → {Promise.<listDomainsResponse>} - -

- -
-

Trigers the listDomains function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListDomainsRequest - -

Data required for listDomains

-
-
- -
-

- View Source - - AWS/database/aws-noSqlIndexed.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<listDomainsResponse> -
-
-
-
-
- -
-

- # - - - query(params) - → {Promise.<selectResponse>} - -

- -
-

Trigers the select function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - SelectRequest - -

Data required for select

-
-
- -
-

- View Source - - AWS/database/aws-noSqlIndexed.js, - line 152 - -

-
- -
-
-
-
-
- - - Promise.<selectResponse> -
-
-
-
-
- -
-

- # - - - setAttribute(params) - → {Promise.<putAttributesResponse>} - -

- -
-

Trigers the putAttributes function of SimpleDB

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - PutAttributesRequest - -

Data required for putAttributes

-
-
- -
-

- View Source - - AWS/database/aws-noSqlIndexed.js, - line 136 - -

-
- -
-
-
-
-
- - - Promise.<putAttributesResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_NoSqlIndexed + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_NoSqlIndexed

+
+ +
+
+

+ AWS_NoSqlIndexed(aws, options) +

+ +
+

Class to create a SimpleDB object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + batchDelete(params) + → + {Promise.<batchDeleteAttributesResponse>} + +

+ +
+

+ Trigers the + batchDeleteAttributes function + of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + BatchDeleteAttributesRequest + +

+ Data required + for + batchDeleteAttributes +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<batchDeleteAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + batchWrite(params) + → + {Promise.<batchPutAttributesResponse>} + +

+ +
+

+ Trigers the batchPutAttributes + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + BatchPutAttributesRequest + +

+ Data required + for + batchPutAttributes +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<batchPutAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + createCollection(params) + → + {Promise.<createDomainResponse>} + +

+ +
+

+ Trigers the createDomain + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateDomainRequest + +

+ Data required + for createDomain +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDomainResponse> +
+
+
+
+
+ +
+

+ # + + + deleteAttribute(params) + → + {Promise.<deleteAttributesResponse>} + +

+ +
+

+ Trigers the deleteAttributes + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteAttributesRequest + +

+ Data required + for + deleteAttributes +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + deleteCollection(params) + → + {Promise.<deleteDomainResponse>} + +

+ +
+

+ Trigers the deleteDomain + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteDomainRequest + +

+ Data required + for deleteDomain +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDomainResponse> +
+
+
+
+
+ +
+

+ # + + + getAttributes(params) + → + {Promise.<getAttributesResponse>} + +

+ +
+

+ Trigers the getAttributes + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + GetAttributesRequest + +

+ Data required + for + getAttributes +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 109 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + listCollections(params) + → + {Promise.<listDomainsResponse>} + +

+ +
+

+ Trigers the listDomains function + of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListDomainsRequest + +

+ Data required + for listDomains +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 126 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listDomainsResponse> +
+
+
+
+
+ +
+

+ # + + + query(params) + → + {Promise.<selectResponse>} + +

+ +
+

+ Trigers the select function of + SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + SelectRequest + +

+ Data required + for select +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 160 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<selectResponse> +
+
+
+
+
+ +
+

+ # + + + setAttribute(params) + → + {Promise.<putAttributesResponse>} + +

+ +
+

+ Trigers the putAttributes + function of SimpleDB +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + PutAttributesRequest + +

+ Data required + for + putAttributes +

+
+
+ +
+

+ View Source + + AWS/database/aws-noSqlIndexed.js, + line 143 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<putAttributesResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_NotificationService.html b/docs/AWS_NotificationService.html index ed6201aa..b70829d3 100644 --- a/docs/AWS_NotificationService.html +++ b/docs/AWS_NotificationService.html @@ -1,959 +1,1338 @@ - - - - AWS_NotificationService - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_NotificationService

-
- -
-
-

- AWS_NotificationService(aws, options) -

- -
-

Class to create a SNS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_NotificationService(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createTopic(params) - → {Promise.<createTopicResponse>} - -

- -
-

Trigers the createTopic function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateTopicInput - -

Data required for createTopic

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createTopicResponse> -
-
-
-
-
- -
-

- # - - - deleteTopic(params) - → {Promise.<deleteTopicResponse>} - -

- -
-

Trigers the deleteTopic function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteTopicInput - -

Data required for deleteTopic

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<deleteTopicResponse> -
-
-
-
-
- -
-

- # - - - getTopicAttributes(params) - → {Promise.<getTopicAttributesResponse>} - -

- -
-

Trigers the getTopicAttributes function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - GetTopicAttributesInput - -

Data required for getTopicAttributes

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<getTopicAttributesResponse> -
-
-
-
-
- -
-

- # - - - listSubscriptions(params) - → {Promise.<listSubscriptionsResponse>} - -

- -
-

Trigers the listSubscriptions function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListSubscriptionsInput - -

Data required for listSubscriptions

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<listSubscriptionsResponse> -
-
-
-
-
- -
-

- # - - - listTopics(params) - → {Promise.<listTopicsResponse>} - -

- -
-

Trigers the listTopics function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ListTopicsInput - -

Data required for listTopics

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<listTopicsResponse> -
-
-
-
-
- -
-

- # - - - publish(params) - → {Promise.<publishResponse>} - -

- -
-

Trigers the publish function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - PublishInput - -

Data required for publish

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 104 - -

-
- -
-
-
-
-
- - - Promise.<publishResponse> -
-
-
-
-
- -
-

- # - - - subscribe(params) - → {Promise.<subscribeResponse>} - -

- -
-

Trigers the subscribe function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - SubscribeInput - -

Data required for subscribe

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<subscribeResponse> -
-
-
-
-
- -
-

- # - - - unsubscribe(params) - → {Promise.<unsubscribeResponse>} - -

- -
-

Trigers the unsubscribe function of SNS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UnsubscribeInput - -

Data required for unsubscribe

-
-
- -
-

- View Source - - AWS/management/aws-notificationService.js, - line 136 - -

-
- -
-
-
-
-
- - - Promise.<unsubscribeResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_NotificationService + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_NotificationService

+
+ +
+
+

+ AWS_NotificationService(aws, options) +

+ +
+

Class to create a SNS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createTopic(params) + → + {Promise.<createTopicResponse>} + +

+ +
+

+ Trigers the createTopic function + of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateTopicInput + +

+ Data required + for createTopic +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createTopicResponse> +
+
+
+
+
+ +
+

+ # + + + deleteTopic(params) + → + {Promise.<deleteTopicResponse>} + +

+ +
+

+ Trigers the deleteTopic function + of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteTopicInput + +

+ Data required + for deleteTopic +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteTopicResponse> +
+
+
+
+
+ +
+

+ # + + + getTopicAttributes(params) + → + {Promise.<getTopicAttributesResponse>} + +

+ +
+

+ Trigers the getTopicAttributes + function of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + GetTopicAttributesInput + +

+ Data required + for + getTopicAttributes +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getTopicAttributesResponse> +
+
+
+
+
+ +
+

+ # + + + listSubscriptions(params) + → + {Promise.<listSubscriptionsResponse>} + +

+ +
+

+ Trigers the listSubscriptions + function of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListSubscriptionsInput + +

+ Data required + for + listSubscriptions +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listSubscriptionsResponse> +
+
+
+
+
+ +
+

+ # + + + listTopics(params) + → + {Promise.<listTopicsResponse>} + +

+ +
+

+ Trigers the listTopics function + of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ListTopicsInput + +

+ Data required + for listTopics +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listTopicsResponse> +
+
+
+
+
+ +
+

+ # + + + publish(params) + → + {Promise.<publishResponse>} + +

+ +
+

+ Trigers the publish function of + SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + PublishInput + +

+ Data required + for publish +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 109 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<publishResponse> +
+
+
+
+
+ +
+

+ # + + + subscribe(params) + → + {Promise.<subscribeResponse>} + +

+ +
+

+ Trigers the subscribe function + of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + SubscribeInput + +

+ Data required + for subscribe +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 126 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<subscribeResponse> +
+
+
+
+
+ +
+

+ # + + + unsubscribe(params) + → + {Promise.<unsubscribeResponse>} + +

+ +
+

+ Trigers the unsubscribe function + of SNS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UnsubscribeInput + +

+ Data required + for unsubscribe +

+
+
+ +
+

+ View Source + + AWS/management/aws-notificationService.js, + line 143 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<unsubscribeResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_PaaS.html b/docs/AWS_PaaS.html index 8463db91..eb3f2da1 100644 --- a/docs/AWS_PaaS.html +++ b/docs/AWS_PaaS.html @@ -1,1615 +1,2143 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_PaaS + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_PaaS

+
+ +
+
+

+ AWS_PaaS(aws, options) +

+ +
+

Class to create a ElasticBeanstalk object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 5365ffe6..b5deb00c 100644 --- a/docs/AWS_RDBMS.html +++ b/docs/AWS_RDBMS.html @@ -1,774 +1,1122 @@ - - - - AWS_RDBMS - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_RDBMS

-
- -
-
-

- AWS_RDBMS(aws, options) -

- -
-

Class to create a RDS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_RDBMS(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createDatabse(params) - → {Promise.<createDBClusterResponse>} - -

- -
-

Trigers the createDBCluster function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateDBClusterMessage - -

Data required for createDBCluster

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createDBClusterResponse> -
-
-
-
-
- -
-

- # - - - createSnapshots(params) - → {Promise.<createDBSnapshotResponse>} - -

- -
-

Trigers the createDBSnapshot function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateDBSnapshotMessage - -

Data required for createDBSnapshot

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createDBSnapshotResponse> -
-
-
-
-
- -
-

- # - - - deleteDatabase(params) - → {Promise.<deleteDBClusterResponse>} - -

- -
-

Trigers the deleteDBCluster function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteDBClusterMessage - -

Data required for deleteDBCluster

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteDBClusterResponse> -
-
-
-
-
- -
-

- # - - - deleteDBSnapshot(params) - → {Promise.<deleteDBSnapshotResponse>} - -

- -
-

Trigers the deleteDBSnapshot function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteDBSnapshotMessage - -

Data required for deleteDBSnapshot

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteDBSnapshotResponse> -
-
-
-
-
- -
-

- # - - - modifyDB(params) - → {Promise.<modifyDBClusterResponse>} - -

- -
-

Trigers the modifyDBCluster function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ModifyDBClusterMessage - -

Data required for modifyDBCluster

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<modifyDBClusterResponse> -
-
-
-
-
- -
-

- # - - - restoreDatabase(params) - → {Promise.<rebootDBInstanceResponse>} - -

- -
-

Trigers the rebootDBInstance function of RDS

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - RebootDBInstanceMessage - -

Data required for rebootDBInstance

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<rebootDBInstanceResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_RDBMS + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_RDBMS

+
+ +
+
+

+ AWS_RDBMS(aws, options) +

+ +
+

Class to create a RDS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createDatabse(params) + → + {Promise.<createDBClusterResponse>} + +

+ +
+

+ Trigers the createDBCluster + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateDBClusterMessage + +

+ Data required + for + createDBCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDBClusterResponse> +
+
+
+
+
+ +
+

+ # + + + createSnapshots(params) + → + {Promise.<createDBSnapshotResponse>} + +

+ +
+

+ Trigers the createDBSnapshot + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateDBSnapshotMessage + +

+ Data required + for + createDBSnapshot +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDBSnapshotResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDatabase(params) + → + {Promise.<deleteDBClusterResponse>} + +

+ +
+

+ Trigers the deleteDBCluster + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteDBClusterMessage + +

+ Data required + for + deleteDBCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDBClusterResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDBSnapshot(params) + → + {Promise.<deleteDBSnapshotResponse>} + +

+ +
+

+ Trigers the deleteDBSnapshot + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteDBSnapshotMessage + +

+ Data required + for + deleteDBSnapshot +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDBSnapshotResponse> +
+
+
+
+
+ +
+

+ # + + + modifyDB(params) + → + {Promise.<modifyDBClusterResponse>} + +

+ +
+

+ Trigers the modifyDBCluster + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ModifyDBClusterMessage + +

+ Data required + for + modifyDBCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<modifyDBClusterResponse> +
+
+
+
+
+ +
+

+ # + + + restoreDatabase(params) + → + {Promise.<rebootDBInstanceResponse>} + +

+ +
+

+ Trigers the rebootDBInstance + function of RDS +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + RebootDBInstanceMessage + +

+ Data required + for + rebootDBInstance +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<rebootDBInstanceResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_StorageBucket.html b/docs/AWS_StorageBucket.html index 2476a397..39564457 100644 --- a/docs/AWS_StorageBucket.html +++ b/docs/AWS_StorageBucket.html @@ -1,671 +1,959 @@ - - - - AWS_StorageBucket - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_StorageBucket

-
- -
-
-

- AWS_StorageBucket(aws, options) -

- -
-

Class to create a S3 object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_StorageBucket(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(params) - → {Promise.<createBucketResponse>} - -

- -
-

Trigers the createBucket function of S3

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - CreateBucketRequest - -

Data required for createBucket

-
-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createBucketResponse> -
-
-
-
-
- -
-

- # - - - delete(params) - → {Promise.<deleteBucketResponse>} - -

- -
-

Trigers the deleteBucket function of S3

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteBucketRequest - -

Data required for deleteBucket

-
-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<deleteBucketResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(params) - → {Promise.<deleteObjectsResponse>} - -

- -
-

Trigers the deleteObjects function of S3

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteObjectsRequest - -

Data required for deleteObjects

-
-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<deleteObjectsResponse> -
-
-
-
-
- -
-

- # - - - list() - → {Promise.<listBucketsResponse>} - -

- -
-

Trigers the listBuckets function of S3

-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 71 - -

-
- -
-
-
-
-
- - - Promise.<listBucketsResponse> -
-
-
-
-
- -
-

- # - - - upload(params) - → {Promise.<uploadPartResponse>} - -

- -
-

Trigers the uploadPart function of S3

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - UploadPartRequest - -

Data required for uploadPart

-
-
- -
-

- View Source - - AWS/storage/aws-storageBucket.js, - line 87 - -

-
- -
-
-
-
-
- - - Promise.<uploadPartResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_StorageBucket + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_StorageBucket

+
+ +
+
+

+ AWS_StorageBucket(aws, options) +

+ +
+

Class to create a S3 object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createBucket + function of S3 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + CreateBucketRequest + +

+ Data required + for createBucket +

+
+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBucketResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteBucket + function of S3 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteBucketRequest + +

+ Data required + for deleteBucket +

+
+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteBucketResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(params) + → + {Promise.<deleteObjectsResponse>} + +

+ +
+

+ Trigers the deleteObjects + function of S3 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteObjectsRequest + +

+ Data required + for + deleteObjects +

+
+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteObjectsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the listBuckets function + of S3 +

+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 74 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listBucketsResponse> +
+
+
+
+
+ +
+

+ # + + + upload(params) + → + {Promise.<uploadPartResponse>} + +

+ +
+

+ Trigers the uploadPart function + of S3 +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UploadPartRequest + +

+ Data required + for uploadPart +

+
+
+ +
+

+ View Source + + AWS/storage/aws-storageBucket.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadPartResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_Translation.html b/docs/AWS_Translation.html index 60a0bae6..2f18c0ab 100644 --- a/docs/AWS_Translation.html +++ b/docs/AWS_Translation.html @@ -1,720 +1,1017 @@ - - - - AWS_Translation - - - - - - - - - - - - - - - - - - -
-
- - - -
-
-
- -
-
-
-

Class

-

AWS_Translation

-
- -
-
-

- AWS_Translation(aws, options) -

- -
-

Class to create a Translate object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new AWS_Translation(aws, options) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
aws - module -

AWS SDK

options - object - -

SDK options

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - batchTranslate(params) - → - {Promise.<startTextTranslationJobResponse>} - -

- -
-

- Trigers the startTextTranslationJob function of - Translate -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - StartTextTranslationJobRequest - -

Data required for startTextTranslationJob

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 72 - -

-
- -
-
-
-
-
- - - Promise.<startTextTranslationJobResponse> -
-
-
-
-
- -
-

- # - - - createGlossary(params) - → {Promise.<importTerminologyResponse>} - -

- -
-

Trigers the importTerminology function of Translate

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - ImportTerminologyRequest - -

Data required for importTerminology

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 56 - -

-
- -
-
-
-
-
- - - Promise.<importTerminologyResponse> -
-
-
-
-
- -
-

- # - - - deleteGlossary(params) - → {Promise.<deleteTerminologyResponse>} - -

- -
-

Trigers the deleteTerminology function of Translate

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - DeleteTerminologyRequest - -

Data required for deleteTerminology

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<deleteTerminologyResponse> -
-
-
-
-
- -
-

- # - - - getGlossary(params) - → {Promise.<getTerminologyResponse>} - -

- -
-

Trigers the getTerminology function of Translate

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - GetTerminologyRequest - -

Data required for getTerminology

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 40 - -

-
- -
-
-
-
-
- - - Promise.<getTerminologyResponse> -
-
-
-
-
- -
-

- # - - - translate(params) - → {Promise.<translateTextResponse>} - -

- -
-

Trigers the translateText function of Translate

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
params - TranslateTextRequest - -

Data required for translateText

-
-
- -
-

- View Source - - AWS/artificialinteligence/aws-translation.js, - line 88 - -

-
- -
-
-
-
-
- - - Promise.<translateTextResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_Translation + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ +
+
+
+

Class

+

AWS_Translation

+
+ +
+
+

+ AWS_Translation(aws, options) +

+ +
+

Class to create a Translate object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ aws + + module + +

AWS SDK

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + batchTranslate(params) + → + {Promise.<startTextTranslationJobResponse>} + +

+ +
+

+ Trigers the + startTextTranslationJob function + of Translate +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + StartTextTranslationJobRequest + +

+ Data required + for + startTextTranslationJob +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<startTextTranslationJobResponse> +
+
+
+
+
+ +
+

+ # + + + createGlossary(params) + → + {Promise.<importTerminologyResponse>} + +

+ +
+

+ Trigers the importTerminology + function of Translate +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + ImportTerminologyRequest + +

+ Data required + for + importTerminology +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<importTerminologyResponse> +
+
+
+
+
+ +
+

+ # + + + deleteGlossary(params) + → + {Promise.<deleteTerminologyResponse>} + +

+ +
+

+ Trigers the deleteTerminology + function of Translate +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + DeleteTerminologyRequest + +

+ Data required + for + deleteTerminology +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 24 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteTerminologyResponse> +
+
+
+
+
+ +
+

+ # + + + getGlossary(params) + → + {Promise.<getTerminologyResponse>} + +

+ +
+

+ Trigers the getTerminology + function of Translate +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + GetTerminologyRequest + +

+ Data required + for + getTerminology +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getTerminologyResponse> +
+
+
+
+
+ +
+

+ # + + + translate(params) + → + {Promise.<translateTextResponse>} + +

+ +
+

+ Trigers the translateText + function of Translate +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + TranslateTextRequest + +

+ Data required + for + translateText +

+
+
+ +
+

+ View Source + + AWS/artificialinteligence/aws-translation.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<translateTextResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_appServices_aws-paaS.js.html b/docs/AWS_appServices_aws-paaS.js.html index dd75ff19..92d39d03 100644 --- a/docs/AWS_appServices_aws-paaS.js.html +++ b/docs/AWS_appServices_aws-paaS.js.html @@ -1,484 +1,627 @@ - - - - AWS/appServices/aws-paaS.js + + + + AWS/appServices/aws-paaS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + -
-
- - - -
-
-
- -
-
-
-

Source

-

AWS/appServices/aws-paaS.js

-
+ +
+ +
+
+
+

Source

+

AWS/appServices/aws-paaS.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 0450773b..7333e602 100644 --- a/docs/AWS_artificialinteligence_aws-translation.js.html +++ b/docs/AWS_artificialinteligence_aws-translation.js.html @@ -1,301 +1,442 @@ - - - - AWS/artificialinteligence/aws-translation.js + + + + AWS/artificialinteligence/aws-translation.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + -
- -
-
- -
-
-
-

Source

-

AWS/artificialinteligence/aws-translation.js

-
+ +
+ +
+
+
+

Source

+

AWS/artificialinteligence/aws-translation.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index e3d47c7f..f1863516 100644 --- a/docs/AWS_compute_aws-computeInstance.js.html +++ b/docs/AWS_compute_aws-computeInstance.js.html @@ -1,365 +1,510 @@ - - - - AWS/compute/aws-computeInstance.js + + + + AWS/compute/aws-computeInstance.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/compute/aws-computeInstance.js

-
+ +
+ +
+
+
+

Source

+

AWS/compute/aws-computeInstance.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 984e1db3..c1ef5a63 100644 --- a/docs/AWS_compute_aws-container.js.html +++ b/docs/AWS_compute_aws-container.js.html @@ -1,285 +1,425 @@ - - - - AWS/compute/aws-container.js + + + + AWS/compute/aws-container.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/compute/aws-container.js

-
+ +
+ +
+
+
+

Source

+

AWS/compute/aws-container.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index d971c0b1..7d371b9d 100644 --- a/docs/AWS_compute_aws-kubernetes.js.html +++ b/docs/AWS_compute_aws-kubernetes.js.html @@ -1,381 +1,527 @@ - - - - AWS/compute/aws-kubernetes.js + + + + AWS/compute/aws-kubernetes.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/compute/aws-kubernetes.js

-
+ +
+ +
+
+
+

Source

+

AWS/compute/aws-kubernetes.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 0de0e392..5e2c5aa4 100644 --- a/docs/AWS_database_aws-RDBMS.js.html +++ b/docs/AWS_database_aws-RDBMS.js.html @@ -1,317 +1,459 @@ - - - - AWS/database/aws-RDBMS.js + + + + AWS/database/aws-RDBMS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/database/aws-RDBMS.js

-
+ +
+ +
+
+
+

Source

+

AWS/database/aws-RDBMS.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 61ec1e7d..6de5810a 100644 --- a/docs/AWS_database_aws-noSql.js.html +++ b/docs/AWS_database_aws-noSql.js.html @@ -1,317 +1,459 @@ - - - - AWS/database/aws-noSql.js + + + + AWS/database/aws-noSql.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/database/aws-noSql.js

-
+ +
+ +
+
+
+

Source

+

AWS/database/aws-noSql.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index cd97c11d..e861d5ff 100644 --- a/docs/AWS_database_aws-noSqlIndexed.js.html +++ b/docs/AWS_database_aws-noSqlIndexed.js.html @@ -1,365 +1,510 @@ - - - - AWS/database/aws-noSqlIndexed.js + + + + AWS/database/aws-noSqlIndexed.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/database/aws-noSqlIndexed.js

-
+ +
+ +
+
+
+

Source

+

AWS/database/aws-noSqlIndexed.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 47e94aff..f1aa52f1 100644 --- a/docs/AWS_management_aws-keyManagement.js.html +++ b/docs/AWS_management_aws-keyManagement.js.html @@ -1,301 +1,442 @@ - - - - AWS/management/aws-keyManagement.js + + + + AWS/management/aws-keyManagement.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/management/aws-keyManagement.js

-
+ +
+ +
+
+
+

Source

+

AWS/management/aws-keyManagement.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index b6175c00..72ddedc8 100644 --- a/docs/AWS_management_aws-monitoring.js.html +++ b/docs/AWS_management_aws-monitoring.js.html @@ -1,285 +1,425 @@ - - - - AWS/management/aws-monitoring.js + + + + AWS/management/aws-monitoring.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/management/aws-monitoring.js

-
+ +
+ +
+
+
+

Source

+

AWS/management/aws-monitoring.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 079207b8..3bc3c945 100644 --- a/docs/AWS_management_aws-notificationService.js.html +++ b/docs/AWS_management_aws-notificationService.js.html @@ -1,349 +1,493 @@ - - - - AWS/management/aws-notificationService.js + + + + AWS/management/aws-notificationService.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/management/aws-notificationService.js

-
+ +
+ +
+
+
+

Source

+

AWS/management/aws-notificationService.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index b50ca8fc..491ceef7 100644 --- a/docs/AWS_network_aws-DNS.js.html +++ b/docs/AWS_network_aws-DNS.js.html @@ -1,285 +1,425 @@ - - - - AWS/network/aws-DNS.js + + + + AWS/network/aws-DNS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/network/aws-DNS.js

-
+ +
+ +
+
+
+

Source

+

AWS/network/aws-DNS.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 5ccdcb1f..3d6754a9 100644 --- a/docs/AWS_network_aws-loadBalancer.js.html +++ b/docs/AWS_network_aws-loadBalancer.js.html @@ -1,301 +1,442 @@ - - - - AWS/network/aws-loadBalancer.js + + + + AWS/network/aws-loadBalancer.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/network/aws-loadBalancer.js

-
+ +
+ +
+
+
+

Source

+

AWS/network/aws-loadBalancer.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 e747542e..eb3f2da1 100644 --- a/docs/AWS_paas.html +++ b/docs/AWS_paas.html @@ -1,1615 +1,2143 @@ - - - - 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 40 - -

-
- -
-
-
-
-
- - - 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 56 - -

-
- -
-
-
-
-
- - - 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 72 - -

-
- -
-
-
-
-
- - - 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 91 - -

-
- -
-
-
-
-
- - - Promise.<createEnvironmentResponse> -
-
-
-
-
- -
-

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

- -
-

- Trigers the createStorageLocation function of - ElasticBeanstalk -

-
- -
-

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

-
- -
-
-
-
-
- - - 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 122 - -

-
- -
-
-
-
-
- - - 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 138 - -

-
- -
-
-
-
-
- - - 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 172 - -

-
- -
-
-
-
-
- - - Promise.<describeApplicationsResponse> -
-
-
-
-
- -
-

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

- -
-

- Trigers the describeAccountAttributes function of - ElasticBeanstalk -

-
- -
-

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

-
- -
-
-
-
-
- - - 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 188 - -

-
- -
-
-
-
-
- - - 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 207 - -

-
- -
-
-
-
-
- - - 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 223 - -

-
- -
-
-
-
-
- - - 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 239 - -

-
- -
-
-
-
-
- - - 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 255 - -

-
- -
-
-
-
-
- - - 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 271 - -

-
- -
-
-
-
-
- - - Promise.<updateEnvironmentResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + AWS_PaaS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

AWS_PaaS

+
+ +
+
+

+ AWS_PaaS(aws, options) +

+ +
+

Class to create a ElasticBeanstalk object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + UpdateEnvironmentMessage + +

+ Data required + for + updateEnvironment +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateEnvironmentResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/AWS_security_aws-IAM.js.html b/docs/AWS_security_aws-IAM.js.html index a5171001..62a30f84 100644 --- a/docs/AWS_security_aws-IAM.js.html +++ b/docs/AWS_security_aws-IAM.js.html @@ -1,301 +1,442 @@ - - - - AWS/security/aws-IAM.js + + + + AWS/security/aws-IAM.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/security/aws-IAM.js

-
+ +
+ +
+
+
+

Source

+

AWS/security/aws-IAM.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index fca18ed7..1eabfdfe 100644 --- a/docs/AWS_storage_aws-archivalStorage.js.html +++ b/docs/AWS_storage_aws-archivalStorage.js.html @@ -1,301 +1,442 @@ - - - - AWS/storage/aws-archivalStorage.js + + + + AWS/storage/aws-archivalStorage.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/storage/aws-archivalStorage.js

-
+ +
+ +
+
+
+

Source

+

AWS/storage/aws-archivalStorage.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 05c1f074..59acce9f 100644 --- a/docs/AWS_storage_aws-blockStorage.js.html +++ b/docs/AWS_storage_aws-blockStorage.js.html @@ -1,285 +1,425 @@ - - - - AWS/storage/aws-blockStorage.js + + + + AWS/storage/aws-blockStorage.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/storage/aws-blockStorage.js

-
+ +
+ +
+
+
+

Source

+

AWS/storage/aws-blockStorage.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 index 8520c1f3..c1383ef0 100644 --- a/docs/AWS_storage_aws-storageBucket.js.html +++ b/docs/AWS_storage_aws-storageBucket.js.html @@ -1,300 +1,441 @@ - - - - AWS/storage/aws-storageBucket.js + + + + AWS/storage/aws-storageBucket.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

AWS/storage/aws-storageBucket.js

-
+ +
+ +
+
+
+

Source

+

AWS/storage/aws-storageBucket.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*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);
-        }
-      });
-    });
-  }
+    /**
+     *
+     * @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 6d495019..b621ad9e 100644 --- a/docs/Azure_BlockStorage.html +++ b/docs/Azure_BlockStorage.html @@ -1,868 +1,1304 @@ - - - - Azure_BlockStorage - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_BlockStorage

-
- -
-
-

- Azure_BlockStorage(azureRestSdk) -

- -
-

Class to create a BlockStorage object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_BlockStorage(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(resourceGroupName, diskName, disk, optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
diskName - StringKeyword - -

Mandatory parameter

-
disk - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - delete(resourceGroupName, diskName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
diskName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 54 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - describe(resourceGroupName, diskName, optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
diskName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 85 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of compute

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

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 114 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
- -
-

- # - - - update(resourceGroupName, diskName, disk, optionsopt) - → {Promise.<updateResponse>} - -

- -
-

Trigers the update function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
diskName - StringKeyword - -

Mandatory parameter

-
disk - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-blockStorage.js, - line 144 - -

-
- -
-
-
-
-
- - - Promise.<updateResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_BlockStorage + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_BlockStorage

+
+ +
+
+

+ Azure_BlockStorage(azureRestSdk) +

+ +
+

Class to create a BlockStorage object

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

+ # + + + new Azure_BlockStorage(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createOrUpdate + function of compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ diskName + + StringKeyword + +

+ Mandatory + parameter +

+
+ disk + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 23 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ diskName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 45 + +

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

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

+ +
+

+ Trigers the get function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ diskName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 67 + +

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

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

+ +
+

+ Trigers the list function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 87 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the update function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ diskName + + StringKeyword + +

+ Mandatory + parameter +

+
+ disk + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-blockStorage.js, + line 110 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_ComputeInstance.html b/docs/Azure_ComputeInstance.html index c87775b1..029d9d3b 100644 --- a/docs/Azure_ComputeInstance.html +++ b/docs/Azure_ComputeInstance.html @@ -1,989 +1,1469 @@ - - - - Azure_ComputeInstance - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_ComputeInstance

-
- -
-
-

- Azure_ComputeInstance(azureRestSdk) -

- -
-

Class to create a ComputeInstance object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_ComputeInstance(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(resourceGroupName, vmName, parameters, optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vmName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - destroy(resourceGroupName, vmName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vmName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 177 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - list(resourceGroupName, optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 53 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
- -
-

- # - - - reboot(resourceGroupName, vmName, optionsopt) - → {Promise.<restartResponse>} - -

- -
-

Trigers the restart function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vmName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 146 - -

-
- -
-
-
-
-
- - - Promise.<restartResponse> -
-
-
-
-
- -
-

- # - - - start(resourceGroupName, vmName, optionsopt) - → {Promise.<startResponse>} - -

- -
-

Trigers the start function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vmName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 84 - -

-
- -
-
-
-
-
- - - Promise.<startResponse> -
-
-
-
-
- -
-

- # - - - stop(resourceGroupName, vmName, optionsopt) - → {Promise.<powerOffResponse>} - -

- -
-

Trigers the powerOff function of compute

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vmName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-computeInstance.js, - line 115 - -

-
- -
-
-
-
-
- - - Promise.<powerOffResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_ComputeInstance + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_ComputeInstance

+
+ +
+
+

+ Azure_ComputeInstance(azureRestSdk) +

+ +
+

Class to create a ComputeInstance object

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

+ # + + + new + Azure_ComputeInstance(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createOrUpdate + function of compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vmName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 23 + +

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

+ # + + + destroy(resourceGroupName, vmName, + optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vmName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 132 + +

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

+ # + + + list(resourceGroupName, + optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 44 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+ +
+

+ # + + + reboot(resourceGroupName, vmName, + optionsopt) + → + {Promise.<restartResponse>} + +

+ +
+

+ Trigers the restart function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vmName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 110 + +

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

+ # + + + start(resourceGroupName, vmName, + optionsopt) + → + {Promise.<startResponse>} + +

+ +
+

+ Trigers the start function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vmName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 66 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<startResponse> +
+
+
+
+
+ +
+

+ # + + + stop(resourceGroupName, vmName, + optionsopt) + → + {Promise.<powerOffResponse>} + +

+ +
+

+ Trigers the powerOff function of + compute +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vmName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-computeInstance.js, + line 88 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<powerOffResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_Container.html b/docs/Azure_Container.html index 56af419e..6186e6be 100644 --- a/docs/Azure_Container.html +++ b/docs/Azure_Container.html @@ -1,741 +1,1112 @@ - - - - Azure_Container - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_Container

-
- -
-
-

- Azure_Container(azureRestSdk) -

- -
-

Class to create a Container object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_Container(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/compute/azure-container.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(resourceGroupName, containerServiceName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

- Trigers the createOrUpdate function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
- containerServiceName - - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-container.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - delete(resourceGroupName, containerServiceName, - optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

- Trigers the deleteMethod function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
- containerServiceName - - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-container.js, - line 64 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - describe(resourceGroupName, containerServiceName, - optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of containerservice

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
- containerServiceName - - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-container.js, - line 95 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of containerservice

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

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-container.js, - line 124 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_Container + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_Container

+
+ +
+
+

+ Azure_Container(azureRestSdk) +

+ +
+

Class to create a Container object

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

+ # + + + new Azure_Container(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/compute/azure-container.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createOrUpdate + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ containerServiceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-container.js, + line 23 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ containerServiceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-container.js, + line 45 + +

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

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

+ +
+

+ Trigers the get function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ containerServiceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-container.js, + line 67 + +

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

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

+ +
+

+ Trigers the list function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-container.js, + line 87 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_DNS.html b/docs/Azure_DNS.html index 742701f7..917d9aa9 100644 --- a/docs/Azure_DNS.html +++ b/docs/Azure_DNS.html @@ -1,768 +1,1202 @@ - - - - Azure_DNS - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_DNS

-
- -
-
-

- Azure_DNS(azureRestSdk) -

- -
-

Class to create a DNS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_DNS(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

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

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - changeRecordSets(resourceGroupName, zoneName, relativeRecordSetName, - recordType, parameters, optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
zoneName - StringKeyword - -

Mandatory parameter

-
- relativeRecordSetName - - StringKeyword - -

Mandatory parameter

-
recordType - TypeReference - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - createZone(resourceGroupName, zoneName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
zoneName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - deleteZone(resourceGroupName, zoneName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
zoneName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - listZones(optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of dns

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

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_DNS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_DNS

+
+ +
+
+

+ Azure_DNS(azureRestSdk) +

+ +
+

Class to create a DNS object

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

+ # + + + new Azure_DNS(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + changeRecordSets(resourceGroupName, + zoneName, + relativeRecordSetName, + recordType, parameters, + optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ zoneName + + StringKeyword + +

+ Mandatory + parameter +

+
+ relativeRecordSetName + + StringKeyword + +

+ Mandatory + parameter +

+
+ recordType + + TypeReference + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + createZone(resourceGroupName, + zoneName, parameters, + optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ zoneName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + deleteZone(resourceGroupName, + zoneName, optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ zoneName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + listZones(optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_KeyManagement.html b/docs/Azure_KeyManagement.html index 53564519..14ed2be3 100644 --- a/docs/Azure_KeyManagement.html +++ b/docs/Azure_KeyManagement.html @@ -1,925 +1,1432 @@ - - - - Azure_KeyManagement - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_KeyManagement

-
- -
-
-

- Azure_KeyManagement(azureRestSdk) -

- -
-

Class to create a KeyManagement object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_KeyManagement(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createKey(resourceGroupName, vaultName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of keyvault

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vaultName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - deleteKey(resourceGroupName, vaultName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of keyvault

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vaultName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 54 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - describeKey(resourceGroupName, vaultName, optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of keyvault

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vaultName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 117 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - putKeyPolicy(resourceGroupName, vaultName, operationKind, - parameters, optionsopt) - → {Promise.<updateAccessPolicyResponse>} - -

- -
-

Trigers the updateAccessPolicy function of keyvault

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vaultName - StringKeyword - -

Mandatory parameter

-
operationKind - TypeReference - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 150 - -

-
- -
-
-
-
-
- - - Promise.<updateAccessPolicyResponse> -
-
-
-
-
- -
-

- # - - - update(resourceGroupName, vaultName, parameters, - optionsopt) - → {Promise.<updateResponse>} - -

- -
-

Trigers the update function of keyvault

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
vaultName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-keyManagement.js, - line 86 - -

-
- -
-
-
-
-
- - - Promise.<updateResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_KeyManagement + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_KeyManagement

+
+ +
+
+

+ Azure_KeyManagement(azureRestSdk) +

+ +
+

Class to create a KeyManagement object

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

+ # + + + new Azure_KeyManagement(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createKey(resourceGroupName, + vaultName, parameters, + optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of keyvault +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vaultName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 23 + +

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

+ # + + + deleteKey(resourceGroupName, + vaultName, optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of keyvault +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vaultName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 45 + +

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

+ # + + + describeKey(resourceGroupName, + vaultName, optionsopt) + → + {Promise.<getResponse>} + +

+ +
+

+ Trigers the get function of + keyvault +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vaultName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 90 + +

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

+ # + + + putKeyPolicy(resourceGroupName, + vaultName, operationKind, + parameters, optionsopt) + → + {Promise.<updateAccessPolicyResponse>} + +

+ +
+

+ Trigers the updateAccessPolicy + function of keyvault +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vaultName + + StringKeyword + +

+ Mandatory + parameter +

+
+ operationKind + + TypeReference + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 114 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateAccessPolicyResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the update function of + keyvault +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ vaultName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-keyManagement.js, + line 68 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_Kubernetes.html b/docs/Azure_Kubernetes.html index 7a539b89..84dbf52e 100644 --- a/docs/Azure_Kubernetes.html +++ b/docs/Azure_Kubernetes.html @@ -1,1517 +1,2303 @@ - - - - Azure_Kubernetes - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_Kubernetes

-
- -
-
-

- Azure_Kubernetes(azureRestSdk) -

- -
-

Class to create a Kubernetes object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_Kubernetes(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(resourceGroupName, resourceName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

- Trigers the createOrUpdate function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - createNodeGroup(resourceGroupName, resourceName, agentPoolName, - parameters, optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

- Trigers the createOrUpdate function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
agentPoolName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 182 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - delete(resourceGroupName, resourceName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

- Trigers the deleteMethod function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 59 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - deleteNodegroup(resourceGroupName, resourceName, agentPoolName, - optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

- Trigers the deleteMethod function of containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
agentPoolName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 226 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - describeCluster(resourceGroupName, resourceName, optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of containerservice

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 149 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - describeNodeGroup(resourceGroupName, resourceName, agentPoolName, - optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of containerservice

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
agentPoolName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 268 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - listClusters(optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of containerservice

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

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
- -
-

- # - - - listNodegroups(resourceGroupName, resourceName, optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of containerservice

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 304 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
- -
-

- # - - - updateConfig(resourceGroupName, resourceName, optionsopt) - → - {Promise.<rotateClusterCertificatesResponse>} - -

- -
-

- Trigers the rotateClusterCertificates function of - containerservice -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 335 - -

-
- -
-
-
-
-
- - - Promise.<rotateClusterCertificatesResponse> -
-
-
-
-
- -
-

- # - - - updateTags(resourceGroupName, resourceName, parameters, - optionsopt) - → {Promise.<updateTagsResponse>} - -

- -
-

Trigers the updateTags function of containerservice

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
resourceName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/compute/azure-kubernetes.js, - line 91 - -

-
- -
-
-
-
-
- - - Promise.<updateTagsResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_Kubernetes + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_Kubernetes

+
+ +
+
+

+ Azure_Kubernetes(azureRestSdk) +

+ +
+

Class to create a Kubernetes object

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

+ # + + + new Azure_Kubernetes(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

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

+ +
+

+ Trigers the createOrUpdate + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 23 + +

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

+ # + + + createNodeGroup(resourceGroupName, + resourceName, agentPoolName, + parameters, optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ agentPoolName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 134 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 45 + +

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

+ # + + + deleteNodegroup(resourceGroupName, + resourceName, agentPoolName, + optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ agentPoolName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 157 + +

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

+ # + + + describeCluster(resourceGroupName, + resourceName, optionsopt) + → + {Promise.<getResponse>} + +

+ +
+

+ Trigers the get function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 110 + +

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

+ # + + + describeNodeGroup(resourceGroupName, + resourceName, agentPoolName, + optionsopt) + → + {Promise.<getResponse>} + +

+ +
+

+ Trigers the get function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ agentPoolName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 180 + +

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

+ # + + + listClusters(optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 88 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+ +
+

+ # + + + listNodegroups(resourceGroupName, + resourceName, optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of + containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 202 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+ +
+

+ # + + + updateConfig(resourceGroupName, + resourceName, optionsopt) + → + {Promise.<rotateClusterCertificatesResponse>} + +

+ +
+

+ Trigers the + rotateClusterCertificates + function of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 224 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<rotateClusterCertificatesResponse> +
+
+
+
+
+ +
+

+ # + + + updateTags(resourceGroupName, + resourceName, parameters, + optionsopt) + → + {Promise.<updateTagsResponse>} + +

+ +
+

+ Trigers the updateTags function + of containerservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ resourceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/compute/azure-kubernetes.js, + line 68 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateTagsResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_LoadBalancer.html b/docs/Azure_LoadBalancer.html index 59c00476..2384dfb3 100644 --- a/docs/Azure_LoadBalancer.html +++ b/docs/Azure_LoadBalancer.html @@ -1,882 +1,1341 @@ - - - - Azure_LoadBalancer - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_LoadBalancer

-
- -
-
-

- Azure_LoadBalancer(azureRestSdk) -

- -
-

Class to create a LoadBalancer object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_LoadBalancer(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - addTags(resourceGroupName, loadBalancerName, parameters, - optionsopt) - → {Promise.<updateTagsResponse>} - -

- -
-

Trigers the updateTags function of network

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
loadBalancerName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 119 - -

-
- -
-
-
-
-
- - - Promise.<updateTagsResponse> -
-
-
-
-
- -
-

- # - - - create(resourceGroupName, loadBalancerName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of network

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
loadBalancerName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - delete(resourceGroupName, loadBalancerName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of network

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
loadBalancerName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 59 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - describe(resourceGroupName, loadBalancerName, optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of network

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
loadBalancerName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 160 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - list(resourceGroupName, optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of network

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/network/azure-loadBalancer.js, - line 89 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_LoadBalancer + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_LoadBalancer

+
+ +
+
+

+ Azure_LoadBalancer(azureRestSdk) +

+ +
+

Class to create a LoadBalancer object

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

+ # + + + new Azure_LoadBalancer(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + addTags(resourceGroupName, + loadBalancerName, + parameters, optionsopt) + → + {Promise.<updateTagsResponse>} + +

+ +
+

+ Trigers the updateTags function + of network +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ loadBalancerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/network/azure-loadBalancer.js, + line 89 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateTagsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the createOrUpdate + function of network +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ loadBalancerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteMethod + function of network +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ loadBalancerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/network/azure-loadBalancer.js, + line 45 + +

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

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

+ +
+

+ Trigers the get function of + network +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ loadBalancerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/network/azure-loadBalancer.js, + line 111 + +

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

+ # + + + list(resourceGroupName, + optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of + network +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/network/azure-loadBalancer.js, + line 66 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_Monitoring.html b/docs/Azure_Monitoring.html index 1effdb62..222e8b4d 100644 --- a/docs/Azure_Monitoring.html +++ b/docs/Azure_Monitoring.html @@ -1,868 +1,1324 @@ - - - - Azure_Monitoring - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_Monitoring

-
- -
-
-

- Azure_Monitoring(azureRestSdk) -

- -
-

Class to create a Monitoring object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_Monitoring(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createAlarm(resourceGroupName, ruleName, parameters, - optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of monitor

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
ruleName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - deleteAlarm(resourceGroupName, ruleName, optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of monitor

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
ruleName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 54 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - getMetricData(resourceGroupName, ruleName, optionsopt) - → {Promise.<getResponse>} - -

- -
-

Trigers the get function of monitor

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
ruleName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 149 - -

-
- -
-
-
-
-
- - - Promise.<getResponse> -
-
-
-
-
- -
-

- # - - - listAlarms(optionsopt) - → {Promise.<listBySubscriptionResponse>} - -

- -
-

Trigers the listBySubscription function of monitor

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

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 120 - -

-
- -
-
-
-
-
- - - Promise.<listBySubscriptionResponse> -
-
-
-
-
- -
-

- # - - - updateAlarm(resourceGroupName, ruleName, alertRulesResource, - optionsopt) - → {Promise.<updateResponse>} - -

- -
-

Trigers the update function of monitor

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
ruleName - StringKeyword - -

Mandatory parameter

-
- alertRulesResource - - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/management/azure-monitoring.js, - line 86 - -

-
- -
-
-
-
-
- - - Promise.<updateResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_Monitoring + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_Monitoring

+
+ +
+
+

+ Azure_Monitoring(azureRestSdk) +

+ +
+

Class to create a Monitoring object

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

+ # + + + new Azure_Monitoring(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createAlarm(resourceGroupName, + ruleName, parameters, + optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of monitor +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ ruleName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 23 + +

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

+ # + + + deleteAlarm(resourceGroupName, + ruleName, optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of monitor +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ ruleName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 45 + +

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

+ # + + + getMetricData(resourceGroupName, + ruleName, optionsopt) + → + {Promise.<getResponse>} + +

+ +
+

+ Trigers the get function of + monitor +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ ruleName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 110 + +

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

+ # + + + listAlarms(optionsopt) + → + {Promise.<listBySubscriptionResponse>} + +

+ +
+

+ Trigers the listBySubscription + function of monitor +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 88 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listBySubscriptionResponse> +
+
+
+
+
+ +
+

+ # + + + updateAlarm(resourceGroupName, + ruleName, + alertRulesResource, + optionsopt) + → + {Promise.<updateResponse>} + +

+ +
+

+ Trigers the update function of + monitor +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ ruleName + + StringKeyword + +

+ Mandatory + parameter +

+
+ alertRulesResource + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/management/azure-monitoring.js, + line 68 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_NoSql.html b/docs/Azure_NoSql.html index 8a64a956..0b714098 100644 --- a/docs/Azure_NoSql.html +++ b/docs/Azure_NoSql.html @@ -1,955 +1,1494 @@ - - - - Azure_NoSql - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_NoSql

-
- -
-
-

- Azure_NoSql(azureRestSdk) -

- -
-

Class to create a NoSql object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_NoSql(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/database/azure-noSql.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createCollection(resourceGroupName, accountName, tableName, - createUpdateTableParameters, optionsopt) - → {Promise.<createUpdateTableResponse>} - -

- -
-

Trigers the createUpdateTable function of cosmosdb

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
tableName - StringKeyword - -

Mandatory parameter

-
- createUpdateTableParameters - - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createUpdateTableResponse> -
-
-
-
-
- -
-

- # - - - deleteCollection(resourceGroupName, accountName, tableName, - optionsopt) - → {Promise.<deleteTableResponse>} - -

- -
-

Trigers the deleteTable function of cosmosdb

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
tableName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteTableResponse> -
-
-
-
-
- -
-

- # - - - getAttributes(resourceGroupName, accountName, tableName, - optionsopt) - → {Promise.<getTableResponse>} - -

- -
-

Trigers the getTable function of cosmosdb

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
tableName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-noSql.js, - line 181 - -

-
- -
-
-
-
-
- - - Promise.<getTableResponse> -
-
-
-
-
- -
-

- # - - - listCollections(resourceGroupName, accountName, optionsopt) - → {Promise.<listTablesResponse>} - -

- -
-

Trigers the listTables function of cosmosdb

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-noSql.js, - line 104 - -

-
- -
-
-
-
-
- - - Promise.<listTablesResponse> -
-
-
-
-
- -
-

- # - - - setAttribute(resourceGroupName, accountName, tableName, - updateThroughputParameters, optionsopt) - → - {Promise.<updateTableThroughputResponse>} - -

- -
-

- Trigers the updateTableThroughput function of cosmosdb -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
tableName - StringKeyword - -

Mandatory parameter

-
- updateThroughputParameters - - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-noSql.js, - line 137 - -

-
- -
-
-
-
-
- - - Promise.<updateTableThroughputResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_NoSql + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_NoSql

+
+ +
+
+

+ Azure_NoSql(azureRestSdk) +

+ +
+

Class to create a NoSql object

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

+ # + + + new Azure_NoSql(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createCollection(resourceGroupName, + accountName, tableName, + createUpdateTableParameters, + optionsopt) + → + {Promise.<createUpdateTableResponse>} + +

+ +
+

+ Trigers the createUpdateTable + function of cosmosdb +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ tableName + + StringKeyword + +

+ Mandatory + parameter +

+
+ createUpdateTableParameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<createUpdateTableResponse> +
+
+
+
+
+ +
+

+ # + + + deleteCollection(resourceGroupName, + accountName, tableName, + optionsopt) + → + {Promise.<deleteTableResponse>} + +

+ +
+

+ Trigers the deleteTable function + of cosmosdb +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ tableName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteTableResponse> +
+
+
+
+
+ +
+

+ # + + + getAttributes(resourceGroupName, + accountName, tableName, + optionsopt) + → + {Promise.<getTableResponse>} + +

+ +
+

+ Trigers the getTable function of + cosmosdb +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ tableName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<getTableResponse> +
+
+
+
+
+ +
+

+ # + + + listCollections(resourceGroupName, + accountName, optionsopt) + → + {Promise.<listTablesResponse>} + +

+ +
+

+ Trigers the listTables function + of cosmosdb +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<listTablesResponse> +
+
+
+
+
+ +
+

+ # + + + setAttribute(resourceGroupName, + accountName, tableName, + updateThroughputParameters, + optionsopt) + → + {Promise.<updateTableThroughputResponse>} + +

+ +
+

+ Trigers the + updateTableThroughput function + of cosmosdb +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ tableName + + StringKeyword + +

+ Mandatory + parameter +

+
+ updateThroughputParameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateTableThroughputResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_PaaS.html b/docs/Azure_PaaS.html index 2c2bae2a..4d82c5d0 100644 --- a/docs/Azure_PaaS.html +++ b/docs/Azure_PaaS.html @@ -1,1764 +1,2681 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_PaaS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_PaaS

+
+ +
+
+

+ Azure_PaaS(azureRestSdk) +

+ +
+

Class to create a PaaS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the createOrUpdate + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 182 + +

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

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

+ +
+

+ Trigers the createOrUpdate + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 135 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteSlot function + of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 228 + +

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

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

+ +
+

+ Trigers the get function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getSlot function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 205 + +

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

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

+ +
+

+ Trigers the restart function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteMethod + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the update function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 46 + +

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

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

+ +
+

+ Trigers the update function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 158 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_RDBMS.html b/docs/Azure_RDBMS.html index 32d06d40..c000d413 100644 --- a/docs/Azure_RDBMS.html +++ b/docs/Azure_RDBMS.html @@ -1,992 +1,1576 @@ - - - - Azure_RDBMS - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_RDBMS

-
- -
-
-

- Azure_RDBMS(azureRestSdk) -

- -
-

Class to create a RDBMS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_RDBMS(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/database/azure-RDBMS.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createDatabse(resourceGroupName, serverName, databaseName, - parameters, optionsopt) - → {Promise.<createOrUpdateResponse>} - -

- -
-

Trigers the createOrUpdate function of sql

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
serverName - StringKeyword - -

Mandatory parameter

-
databaseName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<createOrUpdateResponse> -
-
-
-
-
- -
-

- # - - - createSnapshots(resourceGroupName, serverName, databaseName, - parameters, optionsopt) - → {Promise.<exportMethodResponse>} - -

- -
-

Trigers the exportMethod function of sql

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
serverName - StringKeyword - -

Mandatory parameter

-
databaseName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-RDBMS.js, - line 106 - -

-
- -
-
-
-
-
- - - Promise.<exportMethodResponse> -
-
-
-
-
- -
-

- # - - - deleteDatabase(resourceGroupName, serverName, databaseName, - optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of sql

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
serverName - StringKeyword - -

Mandatory parameter

-
databaseName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

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

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - modifyDB(resourceGroupName, serverName, databaseName, - parameters, optionsopt) - → {Promise.<updateResponse>} - -

- -
-

Trigers the update function of sql

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
serverName - StringKeyword - -

Mandatory parameter

-
databaseName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-RDBMS.js, - line 151 - -

-
- -
-
-
-
-
- - - Promise.<updateResponse> -
-
-
-
-
- -
-

- # - - - restoreDatabase(resourceGroupName, managedInstanceName, - databaseName, parameters, optionsopt) - → {Promise.<completeRestoreResponse>} - -

- -
-

Trigers the completeRestore function of sql

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
- managedInstanceName - - StringKeyword - -

Mandatory parameter

-
databaseName - StringKeyword - -

Mandatory parameter

-
parameters - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/database/azure-RDBMS.js, - line 196 - -

-
- -
-
-
-
-
- - - Promise.<completeRestoreResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_RDBMS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_RDBMS

+
+ +
+
+

+ Azure_RDBMS(azureRestSdk) +

+ +
+

Class to create a RDBMS object

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

+ # + + + new Azure_RDBMS(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

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

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createDatabse(resourceGroupName, + serverName, databaseName, + parameters, optionsopt) + → + {Promise.<createOrUpdateResponse>} + +

+ +
+

+ Trigers the createOrUpdate + function of sql +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ serverName + + StringKeyword + +

+ Mandatory + parameter +

+
+ databaseName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + createSnapshots(resourceGroupName, + serverName, databaseName, + parameters, optionsopt) + → + {Promise.<exportMethodResponse>} + +

+ +
+

+ Trigers the exportMethod + function of sql +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ serverName + + StringKeyword + +

+ Mandatory + parameter +

+
+ databaseName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<exportMethodResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDatabase(resourceGroupName, + serverName, databaseName, + optionsopt) + → + {Promise.<deleteMethodResponse>} + +

+ +
+

+ Trigers the deleteMethod + function of sql +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ serverName + + StringKeyword + +

+ Mandatory + parameter +

+
+ databaseName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + modifyDB(resourceGroupName, + serverName, databaseName, + parameters, optionsopt) + → + {Promise.<updateResponse>} + +

+ +
+

+ Trigers the update function of + sql +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ serverName + + StringKeyword + +

+ Mandatory + parameter +

+
+ databaseName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

+ # + + + restoreDatabase(resourceGroupName, + managedInstanceName, + databaseName, parameters, + optionsopt) + → + {Promise.<completeRestoreResponse>} + +

+ +
+

+ Trigers the completeRestore + function of sql +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ managedInstanceName + + StringKeyword + +

+ Mandatory + parameter +

+
+ databaseName + + StringKeyword + +

+ Mandatory + parameter +

+
+ parameters + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<completeRestoreResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_StorageBucket.html b/docs/Azure_StorageBucket.html index f2d08628..ba23f7bb 100644 --- a/docs/Azure_StorageBucket.html +++ b/docs/Azure_StorageBucket.html @@ -1,678 +1,1051 @@ - - - - Azure_StorageBucket - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

Azure_StorageBucket

-
- -
-
-

- Azure_StorageBucket(azureRestSdk) -

- -
-

Class to create a StorageBucket object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new Azure_StorageBucket(azureRestSdk) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
azureRestSdk - module - -

Azure Rest SDK

-
-
- -
-

- View Source - - Azure/storage/azure-storageBucket.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(resourceGroupName, accountName, containerName, - blobContainer, optionsopt) - → {Promise.<createResponse>} - -

- -
-

Trigers the create function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
containerName - StringKeyword - -

Mandatory parameter

-
blobContainer - TypeReference - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-storageBucket.js, - line 24 - -

-
- -
-
-
-
-
- - - Promise.<createResponse> -
-
-
-
-
- -
-

- # - - - delete(resourceGroupName, accountName, containerName, - optionsopt) - → {Promise.<deleteMethodResponse>} - -

- -
-

Trigers the deleteMethod function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
containerName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-storageBucket.js, - line 68 - -

-
- -
-
-
-
-
- - - Promise.<deleteMethodResponse> -
-
-
-
-
- -
-

- # - - - list(resourceGroupName, accountName, optionsopt) - → {Promise.<listResponse>} - -

- -
-

Trigers the list function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
resourceGroupName - StringKeyword - -

Mandatory parameter

-
accountName - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - Azure/storage/azure-storageBucket.js, - line 104 - -

-
- -
-
-
-
-
- - - Promise.<listResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_StorageBucket + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_StorageBucket

+
+ +
+
+

+ Azure_StorageBucket(azureRestSdk) +

+ +
+

Class to create a StorageBucket object

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

+ # + + + new Azure_StorageBucket(azureRestSdk) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ azureRestSdk + + module + +

+ Azure Rest + SDK +

+
+
+ +
+

+ View Source + + Azure/storage/azure-storageBucket.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(resourceGroupName, + accountName, containerName, + blobContainer, optionsopt) + → + {Promise.<createResponse>} + +

+ +
+

+ Trigers the create function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ containerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ blobContainer + + TypeReference + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-storageBucket.js, + line 24 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ containerName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-storageBucket.js, + line 47 + +

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

+ # + + + list(resourceGroupName, + accountName, optionsopt) + → + {Promise.<listResponse>} + +

+ +
+

+ Trigers the list function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ accountName + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + Azure/storage/azure-storageBucket.js, + line 69 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_appServices_azure-paaS.js.html b/docs/Azure_appServices_azure-paaS.js.html index c15b297a..0c070822 100644 --- a/docs/Azure_appServices_azure-paaS.js.html +++ b/docs/Azure_appServices_azure-paaS.js.html @@ -1,623 +1,623 @@ - - - - Azure/appServices/azure-paaS.js + + + + Azure/appServices/azure-paaS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/appServices/azure-paaS.js

-
+ +
+ +
+
+
+

Source

+

Azure/appServices/azure-paaS.js

+
-
-
-
const { WebSiteManagementClient } = require("@azure/arm-appservice");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index 8c59194c..79eb5709 100644 --- a/docs/Azure_compute_azure-computeInstance.js.html +++ b/docs/Azure_compute_azure-computeInstance.js.html @@ -1,403 +1,485 @@ - - - - Azure/compute/azure-computeInstance.js + + + + Azure/compute/azure-computeInstance.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/compute/azure-computeInstance.js

-
+ +
+ +
+
+
+

Source

+

Azure/compute/azure-computeInstance.js

+
-
-
-
const { ComputeManagementClient } = require("@azure/arm-compute");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index 6fa5a6ad..418bccee 100644 --- a/docs/Azure_compute_azure-container.js.html +++ b/docs/Azure_compute_azure-container.js.html @@ -1,348 +1,440 @@ - - - - Azure/compute/azure-container.js + + + + Azure/compute/azure-container.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/compute/azure-container.js

-
+ +
+ +
+
+
+

Source

+

Azure/compute/azure-container.js

+
-
-
-
const { ContainerServiceClient } = require("@azure/arm-containerservice");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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 index f4d8069e..6ed212eb 100644 --- a/docs/Azure_compute_azure-kubernetes.js.html +++ b/docs/Azure_compute_azure-kubernetes.js.html @@ -1,561 +1,577 @@ - - - - Azure/compute/azure-kubernetes.js + + + + Azure/compute/azure-kubernetes.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/compute/azure-kubernetes.js

-
+ +
+ +
+
+
+

Source

+

Azure/compute/azure-kubernetes.js

+
-
-
-
const { ContainerServiceClient } = require("@azure/arm-containerservice");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index 97bb3205..cfcdbb91 100644 --- a/docs/Azure_database_azure-RDBMS.js.html +++ b/docs/Azure_database_azure-RDBMS.js.html @@ -1,434 +1,472 @@ - - - - Azure/database/azure-RDBMS.js + + + + Azure/database/azure-RDBMS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/database/azure-RDBMS.js

-
+ +
+ +
+
+
+

Source

+

Azure/database/azure-RDBMS.js

+
-
-
-
const { SqlManagementClient } = require("@azure/arm-sql");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index 10d2f42a..dd2e9b25 100644 --- a/docs/Azure_database_azure-noSql.js.html +++ b/docs/Azure_database_azure-noSql.js.html @@ -1,412 +1,469 @@ - - - - Azure/database/azure-noSql.js + + + + Azure/database/azure-noSql.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/database/azure-noSql.js

-
+ +
+ +
+
+
+

Source

+

Azure/database/azure-noSql.js

+
-
-
-
const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index d3c56150..90b646bc 100644 --- a/docs/Azure_management_azure-keyManagement.js.html +++ b/docs/Azure_management_azure-keyManagement.js.html @@ -1,388 +1,467 @@ - - - - Azure/management/azure-keyManagement.js + + + + Azure/management/azure-keyManagement.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/management/azure-keyManagement.js

-
+ +
+ +
+
+
+

Source

+

Azure/management/azure-keyManagement.js

+
-
-
-
const { KeyVaultManagementClient } = require("@azure/arm-keyvault");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index d9853981..779787c6 100644 --- a/docs/Azure_management_azure-monitoring.js.html +++ b/docs/Azure_management_azure-monitoring.js.html @@ -1,375 +1,463 @@ - - - - Azure/management/azure-monitoring.js + + + + Azure/management/azure-monitoring.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/management/azure-monitoring.js

-
+ +
+ +
+
+
+

Source

+

Azure/management/azure-monitoring.js

+
-
-
-
const { MonitorManagementClient } = require("@azure/arm-monitor");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index c74b9043..3b133877 100644 --- a/docs/Azure_network_azure-DNS.js.html +++ b/docs/Azure_network_azure-DNS.js.html @@ -1,355 +1,443 @@ - - - - Azure/network/azure-DNS.js + + + + Azure/network/azure-DNS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/network/azure-DNS.js

-
+ +
+ +
+
+
+

Source

+

Azure/network/azure-DNS.js

+
-
-
-
const { DnsManagementClient } = require("@azure/arm-dns");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index bd3bf7d5..aeb1ea23 100644 --- a/docs/Azure_network_azure-loadBalancer.js.html +++ b/docs/Azure_network_azure-loadBalancer.js.html @@ -1,386 +1,464 @@ - - - - Azure/network/azure-loadBalancer.js + + + + Azure/network/azure-loadBalancer.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/network/azure-loadBalancer.js

-
+ +
+ +
+
+
+

Source

+

Azure/network/azure-loadBalancer.js

+
-
-
-
const { NetworkManagementClient } = require("@azure/arm-network");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .catch(err => {
-          reject(err);
         });
-    });
-  }
+    }
 }
 module.exports = Azure_LoadBalancer;
 
-
-
-
+ + +
- -
-
-
- - - - + +
+
+
+ + + + diff --git a/docs/Azure_paas.html b/docs/Azure_paas.html index 2c2bae2a..4d82c5d0 100644 --- a/docs/Azure_paas.html +++ b/docs/Azure_paas.html @@ -1,1764 +1,2681 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + Azure_PaaS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Azure_PaaS

+
+ +
+
+

+ Azure_PaaS(azureRestSdk) +

+ +
+

Class to create a PaaS object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the createOrUpdate + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 182 + +

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

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

+ +
+

+ Trigers the createOrUpdate + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 135 + +

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

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

+ +
+

+ Trigers the deleteMethod + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteSlot function + of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 228 + +

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

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

+ +
+

+ Trigers the get function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getSlot function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 205 + +

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

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

+ +
+

+ Trigers the restart function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteMethod + function of appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ resourceGroupName + + StringKeyword + +

+ Mandatory + parameter +

+
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the update function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 46 + +

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

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

+ +
+

+ Trigers the update function of + appservice +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ 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 158 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Azure_storage_azure-blockStorage.js.html b/docs/Azure_storage_azure-blockStorage.js.html index ad929f47..89466b30 100644 --- a/docs/Azure_storage_azure-blockStorage.js.html +++ b/docs/Azure_storage_azure-blockStorage.js.html @@ -1,370 +1,463 @@ - - - - Azure/storage/azure-blockStorage.js + + + + Azure/storage/azure-blockStorage.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/storage/azure-blockStorage.js

-
+ +
+ +
+
+
+

Source

+

Azure/storage/azure-blockStorage.js

+
-
-
-
const { ComputeManagementClient } = require("@azure/arm-compute");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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 index ad7ea856..468be23a 100644 --- a/docs/Azure_storage_azure-storageBucket.js.html +++ b/docs/Azure_storage_azure-storageBucket.js.html @@ -1,330 +1,422 @@ - - - - Azure/storage/azure-storageBucket.js + + + + Azure/storage/azure-storageBucket.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

Azure/storage/azure-storageBucket.js

-
+ +
+ +
+
+
+

Source

+

Azure/storage/azure-storageBucket.js

+
-
-
-
const { StorageManagementClient } = require("@azure/arm-storage");
+					
+
+
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);
+    /**
+     *
+     * @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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .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);
+    }
+    /**
+     * 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);
             });
-        })
-        .catch(err => {
-          reject(err);
         });
-    });
-  }
+    }
 }
 module.exports = Azure_StorageBucket;
 
-
-
-
+ + +
- -
-
-
- - - - + +
+
+
+ + + + diff --git a/docs/DO_BlockStorage.html b/docs/DO_BlockStorage.html index fdb9a525..fd70e70c 100644 --- a/docs/DO_BlockStorage.html +++ b/docs/DO_BlockStorage.html @@ -1,616 +1,898 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_BlockStorage + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_BlockStorage

+
+ +
+
+

+ DO_BlockStorage(do, options) +

+ +
+

Class to create a Volumes object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ options + + VolumeCreationOptions + +

+ Data required + for create +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteById function + of Volumes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ volumeId + + StringKeyword + +

+ Data required + for deleteById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getById function of + Volumes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ volumeId + + StringKeyword + +

+ Data required + for getById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAll function of + Volumes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 index ecdc96d4..31234eaf 100644 --- a/docs/DO_ComputeInstance.html +++ b/docs/DO_ComputeInstance.html @@ -1,666 +1,991 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_ComputeInstance + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_ComputeInstance

+
+ +
+
+

+ DO_ComputeInstance(do, options) +

+ +
+

Class to create a Droplets object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ options + + DropletCreationRequest + +

+ Data required + for create +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteById function + of Droplets +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ dropletId + + StringKeyword + +

+ Data required + for deleteById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAll function of + Droplets +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ dropletId + + StringKeyword + +

+ Data required + for + requestAction +

+
+ action + + AnyKeyword + +

+ Data required + for + requestAction +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<requestActionResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/DO_DNS.html b/docs/DO_DNS.html index 34ef3746..248d9f06 100644 --- a/docs/DO_DNS.html +++ b/docs/DO_DNS.html @@ -1,789 +1,1236 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_DNS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_DNS

+
+ +
+
+

+ DO_DNS(do, options) +

+ +
+

Class to create a Domains object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 79 + +

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

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

+ +
+

+ Trigers the createRecord + function of Domains +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainName + + StringKeyword + +

+ Data required + for createRecord +

+
+ options + + DomainRecordRequestOptions + +

+ Data required + for createRecord +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteRecord + function of Domains +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainName + + StringKeyword + +

+ Data required + for deleteRecord +

+
+ recordId + + StringKeyword + +

+ Data required + for deleteRecord +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getRecord function + of Domains +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainName + + StringKeyword + +

+ Data required + for getRecord +

+
+ recordId + + StringKeyword + +

+ Data required + for getRecord +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAllRecords + function of Domains +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 index 3f928109..e072b0dd 100644 --- a/docs/DO_KeyManagement.html +++ b/docs/DO_KeyManagement.html @@ -1,656 +1,973 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_KeyManagement + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_KeyManagement

+
+ +
+
+

+ DO_KeyManagement(do, options) +

+ +
+

Class to create a Keys object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ addKeyRequest + + AddKeyRequest + +

+ Data required + for add +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the delete function of + Keys +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ identifier + + StringKeyword + +

+ Data required + for delete +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getById function of + Keys +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ keyId + + NumberKeyword + +

+ Data required + for getById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAll function of + Keys +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 index 76f9498e..2b20e551 100644 --- a/docs/DO_Kubernetes.html +++ b/docs/DO_Kubernetes.html @@ -1,1035 +1,1537 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_Kubernetes + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_Kubernetes

+
+ +
+
+

+ DO_Kubernetes(do, options) +

+ +
+

Class to create a Kubernetes object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ options + + NewClusterRequest + +

+ Data required + for create +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the addNodePool function + of Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for addNodePool +

+
+ nodePool + + ClusterNodePool + +

+ Data required + for addNodePool +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the delete function of + Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for delete +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the deleteNodePool + function of Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + deleteNodePool +

+
+ nodePoolId + + StringKeyword + +

+ Data required + for + deleteNodePool +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getById function of + Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for getById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getNodePoolById + function of Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + getNodePoolById +

+
+ nodePoolId + + StringKeyword + +

+ Data required + for + getNodePoolById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getClusters function + of Kubernetes +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getNodePoolsResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/DO_LoadBalancer.html b/docs/DO_LoadBalancer.html index efe3a761..71f451f2 100644 --- a/docs/DO_LoadBalancer.html +++ b/docs/DO_LoadBalancer.html @@ -1,599 +1,877 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_LoadBalancer + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_LoadBalancer

+
+ +
+
+

+ DO_LoadBalancer(do, options) +

+ +
+

Class to create a LoadBalancers object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ loadBalancerId + + StringKeyword + +

+ Data required + for delete +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAll function of + LoadBalancers +

+
+ +
+

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

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

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

+ +
+

+ Trigers the update function of + LoadBalancers +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ loadBalancerId + + StringKeyword + +

+ Data required + for update +

+
+ options + + AnyKeyword + +

+ Data required + for update +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/DO_NoSql.html b/docs/DO_NoSql.html index 6a92ae2f..0a958aa9 100644 --- a/docs/DO_NoSql.html +++ b/docs/DO_NoSql.html @@ -1,659 +1,1011 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_NoSql + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_NoSql

+
+ +
+
+

+ DO_NoSql(do, options) +

+ +
+

Class to create a Databases object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterOptions + + DatabaseCreateClusterRequest + +

+ Data required + for + createCluster +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getClusterById + function of Databases +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + getClusterById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAllClusters + function of Databases +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + resizeCluster +

+
+ configuration + + DatabaseResizeClusterRequest + +

+ Data required + for + resizeCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<resizeClusterResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/DO_RDBMS.html b/docs/DO_RDBMS.html index 1b593e7d..3211dd7d 100644 --- a/docs/DO_RDBMS.html +++ b/docs/DO_RDBMS.html @@ -1,659 +1,1011 @@ - - - - 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> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + DO_RDBMS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

DO_RDBMS

+
+ +
+
+

+ DO_RDBMS(do, options) +

+ +
+

Class to create a Databases object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterOptions + + DatabaseCreateClusterRequest + +

+ Data required + for + createCluster +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getClusterById + function of Databases +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + getClusterById +

+
+
+ +
+

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

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

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

+ +
+

+ Trigers the getAllClusters + function of Databases +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ 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:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterId + + StringKeyword + +

+ Data required + for + resizeCluster +

+
+ configuration + + DatabaseResizeClusterRequest + +

+ Data required + for + resizeCluster +

+
+
+ +
+

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

+
+ +
+
+ +
+
+
+
+ + + Promise.<resizeClusterResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/DO_compute_do-computeInstance.js.html b/docs/DO_compute_do-computeInstance.js.html index 95f0d633..e642c613 100644 --- a/docs/DO_compute_do-computeInstance.js.html +++ b/docs/DO_compute_do-computeInstance.js.html @@ -1,280 +1,407 @@ - - - - DO/compute/do-computeInstance.js + + + + DO/compute/do-computeInstance.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/compute/do-computeInstance.js

-
+ +
+ +
+
+
+

Source

+

DO/compute/do-computeInstance.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Droplets object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index 835d1e77..365c5b1b 100644 --- a/docs/DO_compute_do-kubernetes.js.html +++ b/docs/DO_compute_do-kubernetes.js.html @@ -1,336 +1,459 @@ - - - - DO/compute/do-kubernetes.js + + + + DO/compute/do-kubernetes.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/compute/do-kubernetes.js

-
+ +
+ +
+
+
+

Source

+

DO/compute/do-kubernetes.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Kubernetes object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index 2b869d10..51e87ea2 100644 --- a/docs/DO_database_do-RDBMS.js.html +++ b/docs/DO_database_do-RDBMS.js.html @@ -1,280 +1,407 @@ - - - - DO/database/do-RDBMS.js + + + + DO/database/do-RDBMS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/database/do-RDBMS.js

-
+ +
+ +
+
+
+

Source

+

DO/database/do-RDBMS.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Databases object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index c09ef51d..9902f15a 100644 --- a/docs/DO_database_do-noSql.js.html +++ b/docs/DO_database_do-noSql.js.html @@ -1,280 +1,407 @@ - - - - DO/database/do-noSql.js + + + + DO/database/do-noSql.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/database/do-noSql.js

-
+ +
+ +
+
+
+

Source

+

DO/database/do-noSql.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Databases object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index 96f6c784..52c05ace 100644 --- a/docs/DO_management_do-keyManagement.js.html +++ b/docs/DO_management_do-keyManagement.js.html @@ -1,279 +1,406 @@ - - - - DO/management/do-keyManagement.js + + + + DO/management/do-keyManagement.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/management/do-keyManagement.js

-
+ +
+ +
+
+
+

Source

+

DO/management/do-keyManagement.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Keys object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index b76e6d1a..e1fb3197 100644 --- a/docs/DO_network_do-DNS.js.html +++ b/docs/DO_network_do-DNS.js.html @@ -1,299 +1,424 @@ - - - - DO/network/do-DNS.js + + + + DO/network/do-DNS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/network/do-DNS.js

-
+ +
+ +
+
+
+

Source

+

DO/network/do-DNS.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Domains object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index c3b54edb..fd1cd195 100644 --- a/docs/DO_network_do-loadBalancer.js.html +++ b/docs/DO_network_do-loadBalancer.js.html @@ -1,271 +1,403 @@ - - - - DO/network/do-loadBalancer.js + + + + DO/network/do-loadBalancer.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/network/do-loadBalancer.js

-
+ +
+ +
+
+
+

Source

+

DO/network/do-loadBalancer.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a LoadBalancers object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 index 594caa58..d8f39b75 100644 --- a/docs/DO_storage_do-blockStorage.js.html +++ b/docs/DO_storage_do-blockStorage.js.html @@ -1,271 +1,403 @@ - - - - DO/storage/do-blockStorage.js + + + + DO/storage/do-blockStorage.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

DO/storage/do-blockStorage.js

-
+ +
+ +
+
+
+

Source

+

DO/storage/do-blockStorage.js

+
-
-
-
/*This is an auto generated class, please do not change.*/
+					
+
+
/*This is an auto generated class, please do not change.*/
 /**
- * Class to create a Volumes object
- * @category Digital Ocean
- */
+* 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));
-    });
-  }
+    /**
+     *
+     * @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 bcb73345..df339579 100644 --- a/docs/GCP_KeyManagement.html +++ b/docs/GCP_KeyManagement.html @@ -1,821 +1,1200 @@ - - - - GCP_KeyManagement - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_KeyManagement

-
- -
-
-

- GCP_KeyManagement(config) -

- -
-

Class to create a KeyManagement object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_KeyManagement(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createKey(request, optionsopt) - → {Promise.<createCryptoKeyResponse>} - -

- -
-

Trigers the createCryptoKey function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createCryptoKey

-
options - TypeReference - <optional>
-

Data required for createCryptoKey

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 21 - -

-
- -
-
-
-
-
- - - Promise.<createCryptoKeyResponse> -
-
-
-
-
- -
-

- # - - - deleteKey(request, optionsopt) - → - {Promise.<destroyCryptoKeyVersionResponse>} - -

- -
-

- Trigers the destroyCryptoKeyVersion function of - undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for destroyCryptoKeyVersion

-
options - TypeReference - <optional>
-

Data required for destroyCryptoKeyVersion

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<destroyCryptoKeyVersionResponse> -
-
-
-
-
- -
-

- # - - - describeKey(request, optionsopt) - → {Promise.<getCryptoKeyResponse>} - -

- -
-

Trigers the getCryptoKey function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getCryptoKey

-
options - TypeReference - <optional>
-

Data required for getCryptoKey

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 75 - -

-
- -
-
-
-
-
- - - Promise.<getCryptoKeyResponse> -
-
-
-
-
- -
-

- # - - - putKeyPolicy(request, optionsopt, callbackopt) - → {Promise.<setIamPolicyResponse>} - -

- -
-

Trigers the setIamPolicy function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for setIamPolicy

-
options - UnionType - <optional>
-

Data required for setIamPolicy

-
callback - TypeReference - <optional>
-

Data required for setIamPolicy

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 94 - -

-
- -
-
-
-
-
- - - Promise.<setIamPolicyResponse> -
-
-
-
-
- -
-

- # - - - update(request, optionsopt) - → {Promise.<updateCryptoKeyResponse>} - -

- -
-

Trigers the updateCryptoKey function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for updateCryptoKey

-
options - TypeReference - <optional>
-

Data required for updateCryptoKey

-
-
- -
-

- View Source - - googleCloud/management/gcp-keyManagement.js, - line 57 - -

-
- -
-
-
-
-
- - - Promise.<updateCryptoKeyResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_KeyManagement + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_KeyManagement

+
+ +
+
+

+ GCP_KeyManagement(config) +

+ +
+

Class to create a KeyManagement object

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

+ # + + + new GCP_KeyManagement(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createKey(request, optionsopt) + → + {Promise.<createCryptoKeyResponse>} + +

+ +
+

+ Trigers the createCryptoKey + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createCryptoKey +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createCryptoKey +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createCryptoKeyResponse> +
+
+
+
+
+ +
+

+ # + + + deleteKey(request, optionsopt) + → + {Promise.<destroyCryptoKeyVersionResponse>} + +

+ +
+

+ Trigers the + destroyCryptoKeyVersion function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + destroyCryptoKeyVersion +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + destroyCryptoKeyVersion +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 38 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<destroyCryptoKeyVersionResponse> +
+
+
+
+
+ +
+

+ # + + + describeKey(request, optionsopt) + → + {Promise.<getCryptoKeyResponse>} + +

+ +
+

+ Trigers the getCryptoKey + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for getCryptoKey +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for getCryptoKey +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 72 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getCryptoKeyResponse> +
+
+
+
+
+ +
+

+ # + + + putKeyPolicy(request, optionsopt, callbackopt) + → + {Promise.<setIamPolicyResponse>} + +

+ +
+

+ Trigers the setIamPolicy + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for setIamPolicy +

+
+ options + + UnionType + + <optional>
+
+

+ Data required + for setIamPolicy +

+
+ callback + + TypeReference + + <optional>
+
+

+ Data required + for setIamPolicy +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 90 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<setIamPolicyResponse> +
+
+
+
+
+ +
+

+ # + + + update(request, optionsopt) + → + {Promise.<updateCryptoKeyResponse>} + +

+ +
+

+ Trigers the updateCryptoKey + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + updateCryptoKey +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + updateCryptoKey +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-keyManagement.js, + line 55 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateCryptoKeyResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_Kubernetes.html b/docs/GCP_Kubernetes.html index 80be1395..54e2abb7 100644 --- a/docs/GCP_Kubernetes.html +++ b/docs/GCP_Kubernetes.html @@ -1,1203 +1,1745 @@ - - - - GCP_Kubernetes - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_Kubernetes

-
- -
-
-

- GCP_Kubernetes(config) -

- -
-

Class to create a Kubernetes object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_Kubernetes(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(request, optionsopt) - → {Promise.<createClusterResponse>} - -

- -
-

Trigers the createCluster function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createCluster

-
options - TypeReference - <optional>
-

Data required for createCluster

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 21 - -

-
- -
-
-
-
-
- - - Promise.<createClusterResponse> -
-
-
-
-
- -
-

- # - - - createNodeGroup(request, optionsopt) - → {Promise.<createNodePoolResponse>} - -

- -
-

Trigers the createNodePool function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createNodePool

-
options - TypeReference - <optional>
-

Data required for createNodePool

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 93 - -

-
- -
-
-
-
-
- - - Promise.<createNodePoolResponse> -
-
-
-
-
- -
-

- # - - - delete(request, optionsopt) - → {Promise.<deleteClusterResponse>} - -

- -
-

Trigers the deleteCluster function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteCluster

-
options - TypeReference - <optional>
-

Data required for deleteCluster

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<deleteClusterResponse> -
-
-
-
-
- -
-

- # - - - deleteNodegroup(request, optionsopt) - → {Promise.<deleteNodePoolResponse>} - -

- -
-

Trigers the deleteNodePool function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteNodePool

-
options - TypeReference - <optional>
-

Data required for deleteNodePool

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 111 - -

-
- -
-
-
-
-
- - - Promise.<deleteNodePoolResponse> -
-
-
-
-
- -
-

- # - - - describeCluster(request, optionsopt) - → {Promise.<getClusterResponse>} - -

- -
-

Trigers the getCluster function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getCluster

-
options - TypeReference - <optional>
-

Data required for getCluster

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 75 - -

-
- -
-
-
-
-
- - - Promise.<getClusterResponse> -
-
-
-
-
- -
-

- # - - - describeNodeGroup(request, optionsopt) - → {Promise.<getNodePoolResponse>} - -

- -
-

Trigers the getNodePool function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getNodePool

-
options - TypeReference - <optional>
-

Data required for getNodePool

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 129 - -

-
- -
-
-
-
-
- - - Promise.<getNodePoolResponse> -
-
-
-
-
- -
-

- # - - - listClusters(request, optionsopt) - → {Promise.<listClustersResponse>} - -

- -
-

Trigers the listClusters function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for listClusters

-
options - TypeReference - <optional>
-

Data required for listClusters

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 57 - -

-
- -
-
-
-
-
- - - Promise.<listClustersResponse> -
-
-
-
-
- -
-

- # - - - listNodegroups(request, optionsopt) - → {Promise.<listNodePoolsResponse>} - -

- -
-

Trigers the listNodePools function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for listNodePools

-
options - TypeReference - <optional>
-

Data required for listNodePools

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 147 - -

-
- -
-
-
-
-
- - - Promise.<listNodePoolsResponse> -
-
-
-
-
- -
-

- # - - - updateConfig(request, optionsopt) - → {Promise.<setAddonsConfigResponse>} - -

- -
-

Trigers the setAddonsConfig function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for setAddonsConfig

-
options - TypeReference - <optional>
-

Data required for setAddonsConfig

-
-
- -
-

- View Source - - googleCloud/compute/gcp-kubernetes.js, - line 165 - -

-
- -
-
-
-
-
- - - Promise.<setAddonsConfigResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_Kubernetes + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_Kubernetes

+
+ +
+
+

+ GCP_Kubernetes(config) +

+ +
+

Class to create a Kubernetes object

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

+ # + + + new GCP_Kubernetes(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(request, optionsopt) + → + {Promise.<createClusterResponse>} + +

+ +
+

+ Trigers the createCluster + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createCluster +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createCluster +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 21 + +

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

+ # + + + createNodeGroup(request, optionsopt) + → + {Promise.<createNodePoolResponse>} + +

+ +
+

+ Trigers the createNodePool + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createNodePool +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createNodePool +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 89 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + delete(request, optionsopt) + → + {Promise.<deleteClusterResponse>} + +

+ +
+

+ Trigers the deleteCluster + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + deleteCluster +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + deleteCluster +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 38 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteClusterResponse> +
+
+
+
+
+ +
+

+ # + + + deleteNodegroup(request, optionsopt) + → + {Promise.<deleteNodePoolResponse>} + +

+ +
+

+ Trigers the deleteNodePool + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + deleteNodePool +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + deleteNodePool +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 106 + +

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

+ # + + + describeCluster(request, optionsopt) + → + {Promise.<getClusterResponse>} + +

+ +
+

+ Trigers the getCluster function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for getCluster +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for getCluster +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 72 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getClusterResponse> +
+
+
+
+
+ +
+

+ # + + + describeNodeGroup(request, optionsopt) + → + {Promise.<getNodePoolResponse>} + +

+ +
+

+ Trigers the getNodePool function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for getNodePool +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for getNodePool +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 123 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + listClusters(request, optionsopt) + → + {Promise.<listClustersResponse>} + +

+ +
+

+ Trigers the listClusters + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for listClusters +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for listClusters +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 55 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listClustersResponse> +
+
+
+
+
+ +
+

+ # + + + listNodegroups(request, optionsopt) + → + {Promise.<listNodePoolsResponse>} + +

+ +
+

+ Trigers the listNodePools + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + listNodePools +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + listNodePools +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 140 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listNodePoolsResponse> +
+
+
+
+
+ +
+

+ # + + + updateConfig(request, optionsopt) + → + {Promise.<setAddonsConfigResponse>} + +

+ +
+

+ Trigers the setAddonsConfig + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + setAddonsConfig +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + setAddonsConfig +

+
+
+ +
+

+ View Source + + googleCloud/compute/gcp-kubernetes.js, + line 157 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<setAddonsConfigResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_Monitoring.html b/docs/GCP_Monitoring.html index 42d0155a..50a11433 100644 --- a/docs/GCP_Monitoring.html +++ b/docs/GCP_Monitoring.html @@ -1,886 +1,1285 @@ - - - - GCP_Monitoring - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_Monitoring

-
- -
-
-

- GCP_Monitoring(config) -

- -
-

Class to create a Monitoring object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_Monitoring(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 13 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createAlarm(request, optionsopt) - → {Promise.<createAlertPolicyResponse>} - -

- -
-

Trigers the createAlertPolicy function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createAlertPolicy

-
options - TypeReference - <optional>
-

Data required for createAlertPolicy

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createAlertPolicyResponse> -
-
-
-
-
- -
-

- # - - - deleteAlarm(request, optionsopt) - → {Promise.<deleteAlertPolicyResponse>} - -

- -
-

Trigers the deleteAlertPolicy function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteAlertPolicy

-
options - TypeReference - <optional>
-

Data required for deleteAlertPolicy

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 41 - -

-
- -
-
-
-
-
- - - Promise.<deleteAlertPolicyResponse> -
-
-
-
-
- -
-

- # - - - getMetricData(request, optionsopt) - → - {Promise.<getMetricDescriptorResponse>} - -

- -
-

- Trigers the getMetricDescriptor function of undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getMetricDescriptor

-
options - TypeReference - <optional>
-

Data required for getMetricDescriptor

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 95 - -

-
- -
-
-
-
-
- - - Promise.<getMetricDescriptorResponse> -
-
-
-
-
- -
-

- # - - - listAlarms(request, optionsopt) - → {Promise.<listAlertPoliciesResponse>} - -

- -
-

Trigers the listAlertPolicies function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for listAlertPolicies

-
options - TypeReference - <optional>
-

Data required for listAlertPolicies

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 77 - -

-
- -
-
-
-
-
- - - Promise.<listAlertPoliciesResponse> -
-
-
-
-
- -
-

- # - - - projectPath(project) - → {Promise.<projectPathResponse>} - -

- -
-

Trigers the projectPath function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
project - StringKeyword - -

Data required for projectPath

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 112 - -

-
- -
-
-
-
-
- - - Promise.<projectPathResponse> -
-
-
-
-
- -
-

- # - - - updateAlarm(request, optionsopt) - → {Promise.<updateAlertPolicyResponse>} - -

- -
-

Trigers the updateAlertPolicy function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for updateAlertPolicy

-
options - TypeReference - <optional>
-

Data required for updateAlertPolicy

-
-
- -
-

- View Source - - googleCloud/management/gcp-monitoring.js, - line 59 - -

-
- -
-
-
-
-
- - - Promise.<updateAlertPolicyResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_Monitoring + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_Monitoring

+
+ +
+
+

+ GCP_Monitoring(config) +

+ +
+

Class to create a Monitoring object

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

+ # + + + new GCP_Monitoring(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 13 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createAlarm(request, optionsopt) + → + {Promise.<createAlertPolicyResponse>} + +

+ +
+

+ Trigers the createAlertPolicy + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createAlertPolicy +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createAlertPolicy +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 23 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createAlertPolicyResponse> +
+
+
+
+
+ +
+

+ # + + + deleteAlarm(request, optionsopt) + → + {Promise.<deleteAlertPolicyResponse>} + +

+ +
+

+ Trigers the deleteAlertPolicy + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + deleteAlertPolicy +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + deleteAlertPolicy +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 40 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteAlertPolicyResponse> +
+
+
+
+
+ +
+

+ # + + + getMetricData(request, optionsopt) + → + {Promise.<getMetricDescriptorResponse>} + +

+ +
+

+ Trigers the getMetricDescriptor + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + getMetricDescriptor +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + getMetricDescriptor +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getMetricDescriptorResponse> +
+
+
+
+
+ +
+

+ # + + + listAlarms(request, optionsopt) + → + {Promise.<listAlertPoliciesResponse>} + +

+ +
+

+ Trigers the listAlertPolicies + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + listAlertPolicies +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + listAlertPolicies +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 74 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listAlertPoliciesResponse> +
+
+
+
+
+ +
+

+ # + + + projectPath(project) + → + {Promise.<projectPathResponse>} + +

+ +
+

+ Trigers the projectPath function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ project + + StringKeyword + +

+ Data required + for projectPath +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 107 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<projectPathResponse> +
+
+
+
+
+ +
+

+ # + + + updateAlarm(request, optionsopt) + → + {Promise.<updateAlertPolicyResponse>} + +

+ +
+

+ Trigers the updateAlertPolicy + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + updateAlertPolicy +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + updateAlertPolicy +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-monitoring.js, + line 57 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateAlertPolicyResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_NoSql.html b/docs/GCP_NoSql.html index 17297011..90642d72 100644 --- a/docs/GCP_NoSql.html +++ b/docs/GCP_NoSql.html @@ -1,692 +1,1026 @@ - - - - GCP_NoSql - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_NoSql

-
- -
-
-

- GCP_NoSql(config) -

- -
-

Class to create a NoSql object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_NoSql(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/database/gcp-noSql.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createItem(request, optionsopt) - → {Promise.<createDocumentResponse>} - -

- -
-

Trigers the createDocument function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createDocument

-
options - TypeReference - <optional>
-

Data required for createDocument

-
-
- -
-

- View Source - - googleCloud/database/gcp-noSql.js, - line 21 - -

-
- -
-
-
-
-
- - - Promise.<createDocumentResponse> -
-
-
-
-
- -
-

- # - - - deleteItem(request, optionsopt) - → {Promise.<deleteDocumentResponse>} - -

- -
-

Trigers the deleteDocument function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteDocument

-
options - TypeReference - <optional>
-

Data required for deleteDocument

-
-
- -
-

- View Source - - googleCloud/database/gcp-noSql.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<deleteDocumentResponse> -
-
-
-
-
- -
-

- # - - - query(requestopt, optionsopt) - → {Promise.<runQueryResponse>} - -

- -
-

Trigers the runQuery function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - <optional>
-

Data required for runQuery

-
options - TypeReference - <optional>
-

Data required for runQuery

-
-
- -
-

- View Source - - googleCloud/database/gcp-noSql.js, - line 75 - -

-
- -
-
-
-
-
- - - Promise.<runQueryResponse> -
-
-
-
-
- -
-

- # - - - updateItem(request, optionsopt) - → {Promise.<updateDocumentResponse>} - -

- -
-

Trigers the updateDocument function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for updateDocument

-
options - TypeReference - <optional>
-

Data required for updateDocument

-
-
- -
-

- View Source - - googleCloud/database/gcp-noSql.js, - line 57 - -

-
- -
-
-
-
-
- - - Promise.<updateDocumentResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_NoSql + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_NoSql

+
+ +
+
+

+ GCP_NoSql(config) +

+ +
+

Class to create a NoSql object

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

+ # + + + new GCP_NoSql(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-noSql.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createItem(request, optionsopt) + → + {Promise.<createDocumentResponse>} + +

+ +
+

+ Trigers the createDocument + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createDocument +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createDocument +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-noSql.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDocumentResponse> +
+
+
+
+
+ +
+

+ # + + + deleteItem(request, optionsopt) + → + {Promise.<deleteDocumentResponse>} + +

+ +
+

+ Trigers the deleteDocument + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + deleteDocument +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + deleteDocument +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-noSql.js, + line 38 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDocumentResponse> +
+
+
+
+
+ +
+

+ # + + + query(requestopt, optionsopt) + → + {Promise.<runQueryResponse>} + +

+ +
+

+ Trigers the runQuery function of + undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + + <optional>
+
+

+ Data required + for runQuery +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for runQuery +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-noSql.js, + line 72 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<runQueryResponse> +
+
+
+
+
+ +
+

+ # + + + updateItem(request, optionsopt) + → + {Promise.<updateDocumentResponse>} + +

+ +
+

+ Trigers the updateDocument + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + updateDocument +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + updateDocument +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-noSql.js, + line 55 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateDocumentResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_NotificationService.html b/docs/GCP_NotificationService.html index 8682584c..5bf24ad8 100644 --- a/docs/GCP_NotificationService.html +++ b/docs/GCP_NotificationService.html @@ -1,1119 +1,1605 @@ - - - - GCP_NotificationService - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_NotificationService

-
- -
-
-

- GCP_NotificationService(config) -

- -
-

Class to create a NotificationService object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_NotificationService(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 13 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createTopic(request, optionsopt) - → {Promise.<createTopicResponse>} - -

- -
-

Trigers the createTopic function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createTopic

-
options - TypeReference - <optional>
-

Data required for createTopic

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 23 - -

-
- -
-
-
-
-
- - - Promise.<createTopicResponse> -
-
-
-
-
- -
-

- # - - - deleteTopic(request, optionsopt) - → {Promise.<deleteTopicResponse>} - -

- -
-

Trigers the deleteTopic function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteTopic

-
options - TypeReference - <optional>
-

Data required for deleteTopic

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 41 - -

-
- -
-
-
-
-
- - - Promise.<deleteTopicResponse> -
-
-
-
-
- -
-

- # - - - getTopicAttributes(request, optionsopt) - → {Promise.<getTopicResponse>} - -

- -
-

Trigers the getTopic function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getTopic

-
options - TypeReference - <optional>
-

Data required for getTopic

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 59 - -

-
- -
-
-
-
-
- - - Promise.<getTopicResponse> -
-
-
-
-
- -
-

- # - - - listSubscriptions(request, optionsopt) - → - {Promise.<listTopicSubscriptionsResponse>} - -

- -
-

- Trigers the listTopicSubscriptions function of undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for listTopicSubscriptions

-
options - TypeReference - <optional>
-

Data required for listTopicSubscriptions

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 77 - -

-
- -
-
-
-
-
- - - Promise.<listTopicSubscriptionsResponse> -
-
-
-
-
- -
-

- # - - - listTopics(request, optionsopt) - → {Promise.<listTopicsResponse>} - -

- -
-

Trigers the listTopics function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for listTopics

-
options - TypeReference - <optional>
-

Data required for listTopics

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 131 - -

-
- -
-
-
-
-
- - - Promise.<listTopicsResponse> -
-
-
-
-
- -
-

- # - - - publish(request, optionsopt) - → {Promise.<publishResponse>} - -

- -
-

Trigers the publish function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for publish

-
options - TypeReference - <optional>
-

Data required for publish

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 113 - -

-
- -
-
-
-
-
- - - Promise.<publishResponse> -
-
-
-
-
- -
-

- # - - - subscribe(request, optionsopt) - → {Promise.<createSubscriptionResponse>} - -

- -
-

- Trigers the createSubscription function of undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createSubscription

-
options - TypeReference - <optional>
-

Data required for createSubscription

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 95 - -

-
- -
-
-
-
-
- - - Promise.<createSubscriptionResponse> -
-
-
-
-
- -
-

- # - - - unsubscribe(request, optionsopt) - → {Promise.<deleteSubscriptionResponse>} - -

- -
-

- Trigers the deleteSubscription function of undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteSubscription

-
options - TypeReference - <optional>
-

Data required for deleteSubscription

-
-
- -
-

- View Source - - googleCloud/management/gcp-notificationService.js, - line 149 - -

-
- -
-
-
-
-
- - - Promise.<deleteSubscriptionResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_NotificationService + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_NotificationService

+
+ +
+
+

+ GCP_NotificationService(config) +

+ +
+

+ Class to create a NotificationService object +

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

+ # + + + new + GCP_NotificationService(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 13 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createTopic(request, optionsopt) + → + {Promise.<createTopicResponse>} + +

+ +
+

+ Trigers the createTopic function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for createTopic +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for createTopic +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 23 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createTopicResponse> +
+
+
+
+
+ +
+

+ # + + + deleteTopic(request, optionsopt) + → + {Promise.<deleteTopicResponse>} + +

+ +
+

+ Trigers the deleteTopic function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for deleteTopic +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for deleteTopic +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 40 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteTopicResponse> +
+
+
+
+
+ +
+

+ # + + + getTopicAttributes(request, optionsopt) + → + {Promise.<getTopicResponse>} + +

+ +
+

+ Trigers the getTopic function of + undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for getTopic +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for getTopic +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 57 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getTopicResponse> +
+
+
+
+
+ +
+

+ # + + + listSubscriptions(request, optionsopt) + → + {Promise.<listTopicSubscriptionsResponse>} + +

+ +
+

+ Trigers the + listTopicSubscriptions function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + listTopicSubscriptions +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + listTopicSubscriptions +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 74 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listTopicSubscriptionsResponse> +
+
+
+
+
+ +
+

+ # + + + listTopics(request, optionsopt) + → + {Promise.<listTopicsResponse>} + +

+ +
+

+ Trigers the listTopics function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for listTopics +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for listTopics +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 125 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<listTopicsResponse> +
+
+
+
+
+ +
+

+ # + + + publish(request, optionsopt) + → + {Promise.<publishResponse>} + +

+ +
+

+ Trigers the publish function of + undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for publish +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for publish +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 108 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<publishResponse> +
+
+
+
+
+ +
+

+ # + + + subscribe(request, optionsopt) + → + {Promise.<createSubscriptionResponse>} + +

+ +
+

+ Trigers the createSubscription + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createSubscription +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createSubscription +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createSubscriptionResponse> +
+
+
+
+
+ +
+

+ # + + + unsubscribe(request, optionsopt) + → + {Promise.<deleteSubscriptionResponse>} + +

+ +
+

+ Trigers the deleteSubscription + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + deleteSubscription +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + deleteSubscription +

+
+
+ +
+

+ View Source + + googleCloud/management/gcp-notificationService.js, + line 142 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteSubscriptionResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_RDBMS.html b/docs/GCP_RDBMS.html index 193883b9..d7930522 100644 --- a/docs/GCP_RDBMS.html +++ b/docs/GCP_RDBMS.html @@ -1,1002 +1,1468 @@ - - - - GCP_RDBMS - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_RDBMS

-
- -
-
-

- GCP_RDBMS(config) -

- -
-

Class to create a RDBMS object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_RDBMS(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - createDatabse(request, optionsopt) - → {Promise.<createDatabaseResponse>} - -

- -
-

Trigers the createDatabase function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createDatabase

-
options - TypeReference - <optional>
-

Data required for createDatabase

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 21 - -

-
- -
-
-
-
-
- - - Promise.<createDatabaseResponse> -
-
-
-
-
- -
-

- # - - - createSnapshots(request, optionsopt) - → {Promise.<createBackupResponse>} - -

- -
-

Trigers the createBackup function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createBackup

-
options - TypeReference - <optional>
-

Data required for createBackup

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 57 - -

-
- -
-
-
-
-
- - - Promise.<createBackupResponse> -
-
-
-
-
- -
-

- # - - - databasePath(project, instance, database) - → {Promise.<databasePathResponse>} - -

- -
-

Trigers the databasePath function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
project - StringKeyword - -

Data required for databasePath

-
instance - StringKeyword - -

Data required for databasePath

-
database - StringKeyword - -

Data required for databasePath

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 130 - -

-
- -
-
-
-
-
- - - Promise.<databasePathResponse> -
-
-
-
-
- -
-

- # - - - deleteDatabase(request, optionsopt) - → {Promise.<dropDatabaseResponse>} - -

- -
-

Trigers the dropDatabase function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for dropDatabase

-
options - TypeReference - <optional>
-

Data required for dropDatabase

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<dropDatabaseResponse> -
-
-
-
-
- -
-

- # - - - deleteDBSnapshot(request, optionsopt) - → {Promise.<deleteBackupResponse>} - -

- -
-

Trigers the deleteBackup function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for deleteBackup

-
options - TypeReference - <optional>
-

Data required for deleteBackup

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 111 - -

-
- -
-
-
-
-
- - - Promise.<deleteBackupResponse> -
-
-
-
-
- -
-

- # - - - modifyDB(request, optionsopt) - → {Promise.<updateDatabaseDdlResponse>} - -

- -
-

Trigers the updateDatabaseDdl function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for updateDatabaseDdl

-
options - TypeReference - <optional>
-

Data required for updateDatabaseDdl

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 75 - -

-
- -
-
-
-
-
- - - Promise.<updateDatabaseDdlResponse> -
-
-
-
-
- -
-

- # - - - restoreDatabase(request, optionsopt) - → {Promise.<restoreDatabaseResponse>} - -

- -
-

Trigers the restoreDatabase function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for restoreDatabase

-
options - TypeReference - <optional>
-

Data required for restoreDatabase

-
-
- -
-

- View Source - - googleCloud/database/gcp-RDBMS.js, - line 93 - -

-
- -
-
-
-
-
- - - Promise.<restoreDatabaseResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_RDBMS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_RDBMS

+
+ +
+
+

+ GCP_RDBMS(config) +

+ +
+

Class to create a RDBMS object

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

+ # + + + new GCP_RDBMS(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createDatabse(request, optionsopt) + → + {Promise.<createDatabaseResponse>} + +

+ +
+

+ Trigers the createDatabase + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createDatabase +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createDatabase +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDatabaseResponse> +
+
+
+
+
+ +
+

+ # + + + createSnapshots(request, optionsopt) + → + {Promise.<createBackupResponse>} + +

+ +
+

+ Trigers the createBackup + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for createBackup +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for createBackup +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 55 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBackupResponse> +
+
+
+
+
+ +
+

+ # + + + databasePath(project, instance, + database) + → + {Promise.<databasePathResponse>} + +

+ +
+

+ Trigers the databasePath + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ project + + StringKeyword + +

+ Data required + for databasePath +

+
+ instance + + StringKeyword + +

+ Data required + for databasePath +

+
+ database + + StringKeyword + +

+ Data required + for databasePath +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 124 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<databasePathResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDatabase(request, optionsopt) + → + {Promise.<dropDatabaseResponse>} + +

+ +
+

+ Trigers the dropDatabase + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for dropDatabase +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for dropDatabase +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 38 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<dropDatabaseResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDBSnapshot(request, optionsopt) + → + {Promise.<deleteBackupResponse>} + +

+ +
+

+ Trigers the deleteBackup + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for deleteBackup +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for deleteBackup +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 106 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteBackupResponse> +
+
+
+
+
+ +
+

+ # + + + modifyDB(request, optionsopt) + → + {Promise.<updateDatabaseDdlResponse>} + +

+ +
+

+ Trigers the updateDatabaseDdl + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + updateDatabaseDdl +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + updateDatabaseDdl +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 72 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateDatabaseDdlResponse> +
+
+
+
+
+ +
+

+ # + + + restoreDatabase(request, optionsopt) + → + {Promise.<restoreDatabaseResponse>} + +

+ +
+

+ Trigers the restoreDatabase + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + restoreDatabase +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + restoreDatabase +

+
+
+ +
+

+ View Source + + googleCloud/database/gcp-RDBMS.js, + line 89 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<restoreDatabaseResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_Translation.html b/docs/GCP_Translation.html index 5dd4b71e..f1852556 100644 --- a/docs/GCP_Translation.html +++ b/docs/GCP_Translation.html @@ -1,803 +1,1174 @@ - - - - GCP_Translation - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_Translation

-
- -
-
-

- GCP_Translation(config) -

- -
-

Class to create a Translation object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_Translation(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - batchTranslate(request, optionsopt) - → {Promise.<batchTranslateTextResponse>} - -

- -
-

- Trigers the batchTranslateText function of undefined -

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for batchTranslateText

-
options - TypeReference - <optional>
-

Data required for batchTranslateText

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<batchTranslateTextResponse> -
-
-
-
-
- -
-

- # - - - createGlossary(request, optionsopt) - → {Promise.<createGlossaryResponse>} - -

- -
-

Trigers the createGlossary function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for createGlossary

-
options - TypeReference - <optional>
-

Data required for createGlossary

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 75 - -

-
- -
-
-
-
-
- - - Promise.<createGlossaryResponse> -
-
-
-
-
- -
-

- # - - - detectLanguage(request, optionsopt) - → {Promise.<detectLanguageResponse>} - -

- -
-

Trigers the detectLanguage function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for detectLanguage

-
options - TypeReference - <optional>
-

Data required for detectLanguage

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 93 - -

-
- -
-
-
-
-
- - - Promise.<detectLanguageResponse> -
-
-
-
-
- -
-

- # - - - getGlossary(request, optionsopt) - → {Promise.<getGlossaryResponse>} - -

- -
-

Trigers the getGlossary function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for getGlossary

-
options - TypeReference - <optional>
-

Data required for getGlossary

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 57 - -

-
- -
-
-
-
-
- - - Promise.<getGlossaryResponse> -
-
-
-
-
- -
-

- # - - - translate(request, optionsopt) - → {Promise.<translateTextResponse>} - -

- -
-

Trigers the translateText function of undefined

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
request - TypeReference - -

Data required for translateText

-
options - TypeReference - <optional>
-

Data required for translateText

-
-
- -
-

- View Source - - googleCloud/artificialinteligence/gcp-translation.js, - line 21 - -

-
- -
-
-
-
-
- - - Promise.<translateTextResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_Translation + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_Translation

+
+ +
+
+

+ GCP_Translation(config) +

+ +
+

Class to create a Translation object

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

+ # + + + new GCP_Translation(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + batchTranslate(request, optionsopt) + → + {Promise.<batchTranslateTextResponse>} + +

+ +
+

+ Trigers the batchTranslateText + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + batchTranslateText +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + batchTranslateText +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 38 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<batchTranslateTextResponse> +
+
+
+
+
+ +
+

+ # + + + createGlossary(request, optionsopt) + → + {Promise.<createGlossaryResponse>} + +

+ +
+

+ Trigers the createGlossary + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + createGlossary +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + createGlossary +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 72 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createGlossaryResponse> +
+
+
+
+
+ +
+

+ # + + + detectLanguage(request, optionsopt) + → + {Promise.<detectLanguageResponse>} + +

+ +
+

+ Trigers the detectLanguage + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + detectLanguage +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + detectLanguage +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 89 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<detectLanguageResponse> +
+
+
+
+
+ +
+

+ # + + + getGlossary(request, optionsopt) + → + {Promise.<getGlossaryResponse>} + +

+ +
+

+ Trigers the getGlossary function + of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for getGlossary +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for getGlossary +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 55 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getGlossaryResponse> +
+
+
+
+
+ +
+

+ # + + + translate(request, optionsopt) + → + {Promise.<translateTextResponse>} + +

+ +
+

+ Trigers the translateText + function of undefined +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ request + + TypeReference + +

+ Data required + for + translateText +

+
+ options + + TypeReference + + <optional>
+
+

+ Data required + for + translateText +

+
+
+ +
+

+ View Source + + googleCloud/artificialinteligence/gcp-translation.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<translateTextResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_dns.html b/docs/GCP_dns.html index 7821b59d..0232860b 100644 --- a/docs/GCP_dns.html +++ b/docs/GCP_dns.html @@ -1,845 +1,1277 @@ - - - - GCP_dns - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_dns

-
- -
-
-

- GCP_dns(config) -

- -
-

Class to create a dns object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_dns(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - changeRecordSets(identifieropt, dns, config) - → {Promise.<createChangeResponse>} - -

- -
-

Trigers the createChange function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
dns - DNS - -

Mandatory parameter

-
config - TypeReference - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 59 - -

-
- -
-
-
-
-
- - - Promise.<createChangeResponse> -
-
-
-
-
- -
-

- # - - - createZone(identifieropt, dns, config) - → {Promise.<createResponse>} - -

- -
-

Trigers the create function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
dns - DNS - -

Mandatory parameter

-
config - TypeReference - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 39 - -

-
- -
-
-
-
-
- - - Promise.<createResponse> -
-
-
-
-
- -
-

- # - - - deleteZone(identifieropt, dns, optionsopt) - → {Promise.<deleteResponse>} - -

- -
-

Trigers the delete function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
dns - DNS - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 79 - -

-
- -
-
-
-
-
- - - Promise.<deleteResponse> -
-
-
-
-
- -
-

- # - - - listZones(queryopt) - → {Promise.<getZonesResponse>} - -

- -
-

Trigers the getZones function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
query - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 20 - -

-
- -
-
-
-
-
- - - Promise.<getZonesResponse> -
-
-
-
-
- -
-

- # - - - record(identifieropt, dns, type, metadata) - → {Promise.<recordResponse>} - -

- -
-

Trigers the record function of dns

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
dns - DNS - -

Mandatory parameter

-
type - StringKeyword - -

Mandatory parameter

-
metadata - TypeReference - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/network/gcp-DNS.js, - line 100 - -

-
- -
-
-
-
-
- - - Promise.<recordResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_dns + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_dns

+
+ +
+
+

+ GCP_dns(config) +

+ +
+

Class to create a dns object

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

+ # + + + new GCP_dns(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + changeRecordSets(identifieropt, dns, config) + → + {Promise.<createChangeResponse>} + +

+ +
+

+ Trigers the createChange + function of dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ dns + + DNS + +

+ Mandatory + parameter +

+
+ config + + TypeReference + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 56 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createChangeResponse> +
+
+
+
+
+ +
+

+ # + + + createZone(identifieropt, dns, config) + → + {Promise.<createResponse>} + +

+ +
+

+ Trigers the create function of + dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ dns + + DNS + +

+ Mandatory + parameter +

+
+ config + + TypeReference + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 38 + +

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

+ # + + + deleteZone(identifieropt, dns, optionsopt) + → + {Promise.<deleteResponse>} + +

+ +
+

+ Trigers the delete function of + dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ dns + + DNS + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 74 + +

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

+ # + + + listZones(queryopt) + → + {Promise.<getZonesResponse>} + +

+ +
+

+ Trigers the getZones function of + dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ query + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 20 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getZonesResponse> +
+
+
+
+
+ +
+

+ # + + + record(identifieropt, dns, type, + metadata) + → + {Promise.<recordResponse>} + +

+ +
+

+ Trigers the record function of + dns +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ dns + + DNS + +

+ Mandatory + parameter +

+
+ type + + StringKeyword + +

+ Mandatory + parameter +

+
+ metadata + + TypeReference + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/network/gcp-DNS.js, + line 93 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<recordResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/GCP_storage.html b/docs/GCP_storage.html index 883ef0c3..b52a708b 100644 --- a/docs/GCP_storage.html +++ b/docs/GCP_storage.html @@ -1,2565 +1,3669 @@ - - - - GCP_storage - - - - - - - - - - - - - - - - - - - -
- -
-
-
-

Class

-

GCP_storage

-
- -
-
-

- GCP_storage(config) -

- -
-

Class to create a storage object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_storage(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(name, metadataopt) - → {Promise.<createBucketResponse>} - -

- -
-

Trigers the createBucket function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
name - StringKeyword - -

Mandatory parameter

-
metadata - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 81 - -

-
- -
-
-
-
-
- - - Promise.<createBucketResponse> -
-
-
-
-
- -
-

- # - - - create(name, metadataopt) - → {Promise.<createBucketResponse>} - -

- -
-

Trigers the createBucket function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
name - StringKeyword - -

Mandatory parameter

-
metadata - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 81 - -

-
- -
-
-
-
-
- - - Promise.<createBucketResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(identifieropt, storage, queryopt) - → {Promise.<deleteFilesResponse>} - -

- -
-

Trigers the deleteFiles function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
query - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 22 - -

-
- -
-
-
-
-
- - - Promise.<deleteFilesResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(identifieropt, storage, queryopt) - → {Promise.<deleteFilesResponse>} - -

- -
-

Trigers the deleteFiles function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
query - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 22 - -

-
- -
-
-
-
-
- - - Promise.<deleteFilesResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<getBucketsResponse>} - -

- -
-

Trigers the getBuckets function of storage

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

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 98 - -

-
- -
-
-
-
-
- - - Promise.<getBucketsResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<getBucketsResponse>} - -

- -
-

Trigers the getBuckets function of storage

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

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 98 - -

-
- -
-
-
-
-
- - - Promise.<getBucketsResponse> -
-
-
-
-
- -
-

- # - - - makePublic(identifieropt, bucket) - → {Promise.<makePublicResponse>} - -

- -
-

Trigers the makePublic function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
bucket - Bucket - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 62 - -

-
- -
-
-
-
-
- - - Promise.<makePublicResponse> -
-
-
-
-
- -
-

- # - - - makePublic(identifieropt, bucket) - → {Promise.<makePublicResponse>} - -

- -
-

Trigers the makePublic function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
bucket - Bucket - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 62 - -

-
- -
-
-
-
-
- - - Promise.<makePublicResponse> -
-
-
-
-
- -
-

- # - - - upload(identifieropt, storage, pathString, optionsopt) - → {Promise.<uploadResponse>} - -

- -
-

Trigers the upload function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
pathString - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 43 - -

-
- -
-
-
-
-
- - - Promise.<uploadResponse> -
-
-
-
-
- -
-

- # - - - upload(identifieropt, storage, pathString, optionsopt) - → {Promise.<uploadResponse>} - -

- -
-

Trigers the upload function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
pathString - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 43 - -

-
- -
-
-
-
-
- - - Promise.<uploadResponse> -
-
-
-
-
-
-
-
-
- -
-
-

- GCP_storage(config) -

- -
-

Class to create a storage object

-
-
- -
-
-
-
-
-
- Constructor -
- -

- # - - - new GCP_storage(config) - -

- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
config - object - -

Configuration object

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 12 - -

-
-
-
-
-
- -
-

Methods

-
-
-

- # - - - create(name, metadataopt) - → {Promise.<createBucketResponse>} - -

- -
-

Trigers the createBucket function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
name - StringKeyword - -

Mandatory parameter

-
metadata - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 81 - -

-
- -
-
-
-
-
- - - Promise.<createBucketResponse> -
-
-
-
-
- -
-

- # - - - create(name, metadataopt) - → {Promise.<createBucketResponse>} - -

- -
-

Trigers the createBucket function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
name - StringKeyword - -

Mandatory parameter

-
metadata - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 81 - -

-
- -
-
-
-
-
- - - Promise.<createBucketResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(identifieropt, storage, queryopt) - → {Promise.<deleteFilesResponse>} - -

- -
-

Trigers the deleteFiles function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
query - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 22 - -

-
- -
-
-
-
-
- - - Promise.<deleteFilesResponse> -
-
-
-
-
- -
-

- # - - - deleteFiles(identifieropt, storage, queryopt) - → {Promise.<deleteFilesResponse>} - -

- -
-

Trigers the deleteFiles function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
query - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 22 - -

-
- -
-
-
-
-
- - - Promise.<deleteFilesResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<getBucketsResponse>} - -

- -
-

Trigers the getBuckets function of storage

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

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 98 - -

-
- -
-
-
-
-
- - - Promise.<getBucketsResponse> -
-
-
-
-
- -
-

- # - - - list(optionsopt) - → {Promise.<getBucketsResponse>} - -

- -
-

Trigers the getBuckets function of storage

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

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 98 - -

-
- -
-
-
-
-
- - - Promise.<getBucketsResponse> -
-
-
-
-
- -
-

- # - - - makePublic(identifieropt, bucket) - → {Promise.<makePublicResponse>} - -

- -
-

Trigers the makePublic function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
bucket - Bucket - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 62 - -

-
- -
-
-
-
-
- - - Promise.<makePublicResponse> -
-
-
-
-
- -
-

- # - - - makePublic(identifieropt, bucket) - → {Promise.<makePublicResponse>} - -

- -
-

Trigers the makePublic function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
bucket - Bucket - -

Mandatory parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 62 - -

-
- -
-
-
-
-
- - - Promise.<makePublicResponse> -
-
-
-
-
- -
-

- # - - - upload(identifieropt, storage, pathString, optionsopt) - → {Promise.<uploadResponse>} - -

- -
-

Trigers the upload function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
pathString - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-archivalStorage.js, - line 43 - -

-
- -
-
-
-
-
- - - Promise.<uploadResponse> -
-
-
-
-
- -
-

- # - - - upload(identifieropt, storage, pathString, optionsopt) - → {Promise.<uploadResponse>} - -

- -
-

Trigers the upload function of storage

-
- -
Parameters:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeAttributesDescription
identifier - string - <optional>
-

Optional parameter

-
storage - Storage - -

Mandatory parameter

-
pathString - StringKeyword - -

Mandatory parameter

-
options - TypeReference - <optional>
-

Optional parameter

-
-
- -
-

- View Source - - googleCloud/storage/gcp-storageBucket.js, - line 43 - -

-
- -
-
-
-
-
- - - Promise.<uploadResponse> -
-
-
-
-
-
-
-
-
-
- - -
-
-
- - - - + + + + GCP_storage + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

GCP_storage

+
+ +
+
+

+ GCP_storage(config) +

+ +
+

Class to create a storage object

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

+ # + + + new GCP_storage(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(name, metadataopt) + → + {Promise.<createBucketResponse>} + +

+ +
+

+ Trigers the createBucket + function of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ metadata + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBucketResponse> +
+
+
+
+
+ +
+

+ # + + + create(name, metadataopt) + → + {Promise.<createBucketResponse>} + +

+ +
+

+ Trigers the createBucket + function of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ metadata + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBucketResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(identifieropt, storage, queryopt) + → + {Promise.<deleteFilesResponse>} + +

+ +
+

+ Trigers the deleteFiles function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ query + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteFilesResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(identifieropt, storage, queryopt) + → + {Promise.<deleteFilesResponse>} + +

+ +
+

+ Trigers the deleteFiles function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ query + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteFilesResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the getBuckets function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getBucketsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the getBuckets function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getBucketsResponse> +
+
+
+
+
+ +
+

+ # + + + makePublic(identifieropt, bucket) + → + {Promise.<makePublicResponse>} + +

+ +
+

+ Trigers the makePublic function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ bucket + + Bucket + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<makePublicResponse> +
+
+
+
+
+ +
+

+ # + + + makePublic(identifieropt, bucket) + → + {Promise.<makePublicResponse>} + +

+ +
+

+ Trigers the makePublic function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ bucket + + Bucket + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<makePublicResponse> +
+
+
+
+
+ +
+

+ # + + + upload(identifieropt, storage, pathString, + optionsopt) + → + {Promise.<uploadResponse>} + +

+ +
+

+ Trigers the upload function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ pathString + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadResponse> +
+
+
+
+
+ +
+

+ # + + + upload(identifieropt, storage, pathString, + optionsopt) + → + {Promise.<uploadResponse>} + +

+ +
+

+ Trigers the upload function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ pathString + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadResponse> +
+
+
+
+
+
+
+
+
+ +
+
+

+ GCP_storage(config) +

+ +
+

Class to create a storage object

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

+ # + + + new GCP_storage(config) + +

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ config + + object + +

+ Configuration + object +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(name, metadataopt) + → + {Promise.<createBucketResponse>} + +

+ +
+

+ Trigers the createBucket + function of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ metadata + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBucketResponse> +
+
+
+
+
+ +
+

+ # + + + create(name, metadataopt) + → + {Promise.<createBucketResponse>} + +

+ +
+

+ Trigers the createBucket + function of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ name + + StringKeyword + +

+ Mandatory + parameter +

+
+ metadata + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createBucketResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(identifieropt, storage, queryopt) + → + {Promise.<deleteFilesResponse>} + +

+ +
+

+ Trigers the deleteFiles function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ query + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteFilesResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFiles(identifieropt, storage, queryopt) + → + {Promise.<deleteFilesResponse>} + +

+ +
+

+ Trigers the deleteFiles function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ query + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteFilesResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the getBuckets function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getBucketsResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the getBuckets function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 91 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getBucketsResponse> +
+
+
+
+
+ +
+

+ # + + + makePublic(identifieropt, bucket) + → + {Promise.<makePublicResponse>} + +

+ +
+

+ Trigers the makePublic function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ bucket + + Bucket + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<makePublicResponse> +
+
+
+
+
+ +
+

+ # + + + makePublic(identifieropt, bucket) + → + {Promise.<makePublicResponse>} + +

+ +
+

+ Trigers the makePublic function + of storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ bucket + + Bucket + +

+ Mandatory + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 58 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<makePublicResponse> +
+
+
+
+
+ +
+

+ # + + + upload(identifieropt, storage, pathString, + optionsopt) + → + {Promise.<uploadResponse>} + +

+ +
+

+ Trigers the upload function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ pathString + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-archivalStorage.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadResponse> +
+
+
+
+
+ +
+

+ # + + + upload(identifieropt, storage, pathString, + optionsopt) + → + {Promise.<uploadResponse>} + +

+ +
+

+ Trigers the upload function of + storage +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributes + Description +
+ identifier + + string + + <optional>
+
+

+ Optional + parameter +

+
+ storage + + Storage + +

+ Mandatory + parameter +

+
+ pathString + + StringKeyword + +

+ Mandatory + parameter +

+
+ options + + TypeReference + + <optional>
+
+

+ Optional + parameter +

+
+
+ +
+

+ View Source + + googleCloud/storage/gcp-storageBucket.js, + line 41 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + diff --git a/docs/Linode_BlockStorage.html b/docs/Linode_BlockStorage.html new file mode 100644 index 00000000..919502e9 --- /dev/null +++ b/docs/Linode_BlockStorage.html @@ -0,0 +1,948 @@ + + + + + + Linode_BlockStorage + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_BlockStorage

+
+ +
+
+

+ Linode_BlockStorage(do, options) +

+ +
+

+ Class to create a BlockStorageLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/storage/linode-blockStorage.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(data) + → + {Promise.<createVolumeResponse>} + +

+ +
+

+ Trigers the createVolume + function of + BlockStorageLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + VolumeRequestPayload + +

+ Data required + for createVolume +

+
+
+ +
+

+ View Source + + Linode/storage/linode-blockStorage.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createVolumeResponse> +
+
+
+
+
+ +
+

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

+ +
+

+ Trigers the deleteVolume + function of + BlockStorageLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ volumeId + + NumberKeyword + +

+ Data required + for deleteVolume +

+
+
+ +
+

+ View Source + + Linode/storage/linode-blockStorage.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteVolumeResponse> +
+
+
+
+
+ +
+

+ # + + + list(params, filters) + → + {Promise.<getVolumesResponse>} + +

+ +
+

+ Trigers the getVolumes function + of BlockStorageLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getVolumes +

+
+ filters + + Filter + +

+ Data required + for getVolumes +

+
+
+ +
+

+ View Source + + Linode/storage/linode-blockStorage.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getVolumesResponse> +
+
+
+
+
+ +
+

+ # + + + update(volumeId, data) + → + {Promise.<updateVolumeResponse>} + +

+ +
+

+ Trigers the updateVolume + function of + BlockStorageLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ volumeId + + NumberKeyword + +

+ Data required + for updateVolume +

+
+ data + + UpdateVolumeRequest + +

+ Data required + for updateVolume +

+
+
+ +
+

+ View Source + + Linode/storage/linode-blockStorage.js, + line 49 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateVolumeResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_ComputeInstance.html b/docs/Linode_ComputeInstance.html new file mode 100644 index 00000000..509236cd --- /dev/null +++ b/docs/Linode_ComputeInstance.html @@ -0,0 +1,949 @@ + + + + + + Linode_ComputeInstance + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_ComputeInstance

+
+ +
+
+

+ Linode_ComputeInstance(do, options) +

+ +
+

+ Class to create a ComputeInstanceLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/compute/linode-computeInstance.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(data) + → + {Promise.<createLinodeResponse>} + +

+ +
+

+ Trigers the createLinode + function of + ComputeInstanceLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + CreateLinodeRequest + +

+ Data required + for createLinode +

+
+
+ +
+

+ View Source + + Linode/compute/linode-computeInstance.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createLinodeResponse> +
+
+
+
+
+ +
+

+ # + + + delete(linodeId) + → + {Promise.<deleteLinodeResponse>} + +

+ +
+

+ Trigers the deleteLinode + function of + ComputeInstanceLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ linodeId + + NumberKeyword + +

+ Data required + for deleteLinode +

+
+
+ +
+

+ View Source + + Linode/compute/linode-computeInstance.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteLinodeResponse> +
+
+
+
+
+ +
+

+ # + + + list(params, filter) + → + {Promise.<getLinodesResponse>} + +

+ +
+

+ Trigers the getLinodes function + of ComputeInstanceLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getLinodes +

+
+ filter + + Filter + +

+ Data required + for getLinodes +

+
+
+ +
+

+ View Source + + Linode/compute/linode-computeInstance.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getLinodesResponse> +
+
+
+
+
+ +
+

+ # + + + update(linodeId, values) + → + {Promise.<updateLinodeResponse>} + +

+ +
+

+ Trigers the updateLinode + function of + ComputeInstanceLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ linodeId + + NumberKeyword + +

+ Data required + for updateLinode +

+
+ values + + DeepPartial + +

+ Data required + for updateLinode +

+
+
+ +
+

+ View Source + + Linode/compute/linode-computeInstance.js, + line 49 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateLinodeResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_DNS.html b/docs/Linode_DNS.html new file mode 100644 index 00000000..8463a250 --- /dev/null +++ b/docs/Linode_DNS.html @@ -0,0 +1,1192 @@ + + + + + + Linode_DNS + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_DNS

+
+ +
+
+

+ Linode_DNS(do, options) +

+ +
+

Class to create a DNSLinodeClass object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + cloneDomain(domainId, data) + → + {Promise.<cloneDomainResponse>} + +

+ +
+

+ Trigers the cloneDomain function + of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainId + + NumberKeyword + +

+ Data required + for cloneDomain +

+
+ data + + CloneDomainPayload + +

+ Data required + for cloneDomain +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 89 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<cloneDomainResponse> +
+
+
+
+
+ +
+

+ # + + + createDomain(data) + → + {Promise.<createDomainResponse>} + +

+ +
+

+ Trigers the createDomain + function of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + CreateDomainPayload + +

+ Data required + for createDomain +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 48 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDomainResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDomain(domainId) + → + {Promise.<deleteDomainResponse>} + +

+ +
+

+ Trigers the deleteDomain + function of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainId + + NumberKeyword + +

+ Data required + for deleteDomain +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDomainResponse> +
+
+
+
+
+ +
+

+ # + + + getDomain(domainId) + → + {Promise.<getDomainResponse>} + +

+ +
+

+ Trigers the getDomain function + of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainId + + NumberKeyword + +

+ Data required + for getDomain +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getDomainResponse> +
+
+
+
+
+ +
+

+ # + + + getDomains(params, filter) + → + {Promise.<getDomainsResponse>} + +

+ +
+

+ Trigers the getDomains function + of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getDomains +

+
+ filter + + Filter + +

+ Data required + for getDomains +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getDomainsResponse> +
+
+
+
+
+ +
+

+ # + + + updateDomain(domainId, data) + → + {Promise.<updateDomainResponse>} + +

+ +
+

+ Trigers the updateDomain + function of DNSLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ domainId + + NumberKeyword + +

+ Data required + for updateDomain +

+
+ data + + UpdateDomainPayload + +

+ Data required + for updateDomain +

+
+
+ +
+

+ View Source + + Linode/network/linode-DNS.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateDomainResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_Firewalls.html b/docs/Linode_Firewalls.html new file mode 100644 index 00000000..e64feb75 --- /dev/null +++ b/docs/Linode_Firewalls.html @@ -0,0 +1,1293 @@ + + + + + + Linode_Firewalls + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_Firewalls

+
+ +
+
+

+ Linode_Firewalls(do, options) +

+ +
+

+ Class to create a FirewallsLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createFirewall(data) + → + {Promise.<createFirewallResponse>} + +

+ +
+

+ Trigers the createFirewall + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + CreateFirewallPayload + +

+ Data required + for + createFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 48 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createFirewallResponse> +
+
+
+
+
+ +
+

+ # + + + deleteFirewall(firewallID) + → + {Promise.<deleteFirewallResponse>} + +

+ +
+

+ Trigers the deleteFirewall + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ firewallID + + NumberKeyword + +

+ Data required + for + deleteFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 101 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteFirewallResponse> +
+
+
+
+
+ +
+

+ # + + + disableFirewall(firewallID) + → + {Promise.<disableFirewallResponse>} + +

+ +
+

+ Trigers the disableFirewall + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ firewallID + + NumberKeyword + +

+ Data required + for + disableFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 88 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<disableFirewallResponse> +
+
+
+
+
+ +
+

+ # + + + enableFirewall(firewallID) + → + {Promise.<enableFirewallResponse>} + +

+ +
+

+ Trigers the enableFirewall + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ firewallID + + NumberKeyword + +

+ Data required + for + enableFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 75 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<enableFirewallResponse> +
+
+
+
+
+ +
+

+ # + + + getFirewall(firewallID) + → + {Promise.<getFirewallResponse>} + +

+ +
+

+ Trigers the getFirewall function + of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ firewallID + + NumberKeyword + +

+ Data required + for getFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getFirewallResponse> +
+
+
+
+
+ +
+

+ # + + + getFirewalls(params, filter) + → + {Promise.<getFirewallsResponse>} + +

+ +
+

+ Trigers the getFirewalls + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getFirewalls +

+
+ filter + + Filter + +

+ Data required + for getFirewalls +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getFirewallsResponse> +
+
+
+
+
+ +
+

+ # + + + updateFirewall(firewallID, data) + → + {Promise.<updateFirewallResponse>} + +

+ +
+

+ Trigers the updateFirewall + function of FirewallsLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ firewallID + + NumberKeyword + +

+ Data required + for + updateFirewall +

+
+ data + + UpdateFirewallPayload + +

+ Data required + for + updateFirewall +

+
+
+ +
+

+ View Source + + Linode/firewalls/linode-firewalls.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateFirewallResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_Images.html b/docs/Linode_Images.html new file mode 100644 index 00000000..1cee7b13 --- /dev/null +++ b/docs/Linode_Images.html @@ -0,0 +1,1260 @@ + + + + + + Linode_Images + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_Images

+
+ +
+
+

+ Linode_Images(do, options) +

+ +
+

+ Class to create a ImagesLinodeClass object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createImage(diskId, label, + description, + cloud_init) + → + {Promise.<createImageResponse>} + +

+ +
+

+ Trigers the createImage function + of ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ diskId + + NumberKeyword + +

+ Data required + for createImage +

+
+ label + + StringKeyword + +

+ Data required + for createImage +

+
+ description + + StringKeyword + +

+ Data required + for createImage +

+
+ cloud_init + + BooleanKeyword + +

+ Data required + for createImage +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 51 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createImageResponse> +
+
+
+
+
+ +
+

+ # + + + deleteImage(imageId) + → + {Promise.<deleteImageResponse>} + +

+ +
+

+ Trigers the deleteImage function + of ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ imageId + + StringKeyword + +

+ Data required + for deleteImage +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 79 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteImageResponse> +
+
+
+
+
+ +
+

+ # + + + getImage(imageId) + → + {Promise.<getImageResponse>} + +

+ +
+

+ Trigers the getImage function of + ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ imageId + + StringKeyword + +

+ Data required + for getImage +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getImageResponse> +
+
+
+
+
+ +
+

+ # + + + getImages(params, filters) + → + {Promise.<getImagesResponse>} + +

+ +
+

+ Trigers the getImages function + of ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getImages +

+
+ filters + + Filter + +

+ Data required + for getImages +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getImagesResponse> +
+
+
+
+
+ +
+

+ # + + + updateImage(imageId, label, + description) + → + {Promise.<updateImageResponse>} + +

+ +
+

+ Trigers the updateImage function + of ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ imageId + + StringKeyword + +

+ Data required + for updateImage +

+
+ label + + StringKeyword + +

+ Data required + for updateImage +

+
+ description + + StringKeyword + +

+ Data required + for updateImage +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 66 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateImageResponse> +
+
+
+
+
+ +
+

+ # + + + uploadImage(data) + → + {Promise.<uploadImageResponse>} + +

+ +
+

+ Trigers the uploadImage function + of ImagesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + ImageUploadPayload + +

+ Data required + for uploadImage +

+
+
+ +
+

+ View Source + + Linode/images/linode-images.js, + line 92 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<uploadImageResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_Kubernetes.html b/docs/Linode_Kubernetes.html new file mode 100644 index 00000000..402cc7e6 --- /dev/null +++ b/docs/Linode_Kubernetes.html @@ -0,0 +1,1262 @@ + + + + + + Linode_Kubernetes + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_Kubernetes

+
+ +
+
+

+ Linode_Kubernetes(do, options) +

+ +
+

+ Class to create a KubernetesLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(data) + → + {Promise.<createKubernetesClusterResponse>} + +

+ +
+

+ Trigers the + createKubernetesCluster function + of KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + CreateKubeClusterPayload + +

+ Data required + for + createKubernetesCluster +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 21 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createKubernetesClusterResponse> +
+
+
+
+
+ +
+

+ # + + + createNodePool(clusterID, data) + → + {Promise.<createNodePoolResponse>} + +

+ +
+

+ Trigers the createNodePool + function of + KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterID + + NumberKeyword + +

+ Data required + for + createNodePool +

+
+ data + + CreateNodePoolData + +

+ Data required + for + createNodePool +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + delete(clusterID) + → + {Promise.<deleteKubernetesClusterResponse>} + +

+ +
+

+ Trigers the + deleteKubernetesCluster function + of KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterID + + NumberKeyword + +

+ Data required + for + deleteKubernetesCluster +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 34 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteKubernetesClusterResponse> +
+
+
+
+
+ +
+

+ # + + + deleteNodePool(clusterID, + nodePoolID) + → + {Promise.<deleteNodePoolResponse>} + +

+ +
+

+ Trigers the deleteNodePool + function of + KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterID + + NumberKeyword + +

+ Data required + for + deleteNodePool +

+
+ nodePoolID + + NumberKeyword + +

+ Data required + for + deleteNodePool +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 91 + +

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

+ # + + + getNodePool(clusterID, + nodePoolID) + → + {Promise.<getNodePoolResponse>} + +

+ +
+

+ Trigers the getNodePool function + of KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterID + + NumberKeyword + +

+ Data required + for getNodePool +

+
+ nodePoolID + + NumberKeyword + +

+ Data required + for getNodePool +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 48 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getNodePoolResponse> +
+
+
+
+
+ +
+

+ # + + + updateNodePool(clusterID, nodePoolID, + data) + → + {Promise.<updateNodePoolResponse>} + +

+ +
+

+ Trigers the updateNodePool + function of + KubernetesLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ clusterID + + NumberKeyword + +

+ Data required + for + updateNodePool +

+
+ nodePoolID + + NumberKeyword + +

+ Data required + for + updateNodePool +

+
+ data + + Partial + +

+ Data required + for + updateNodePool +

+
+
+ +
+

+ View Source + + Linode/compute/linode-kubernetes.js, + line 77 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateNodePoolResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_LoadBalancer.html b/docs/Linode_LoadBalancer.html new file mode 100644 index 00000000..39484515 --- /dev/null +++ b/docs/Linode_LoadBalancer.html @@ -0,0 +1,956 @@ + + + + + + Linode_LoadBalancer + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_LoadBalancer

+
+ +
+
+

+ Linode_LoadBalancer(do, options) +

+ +
+

+ Class to create a LoadBalancerLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/network/linode-loadBalancer.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + create(data) + → + {Promise.<createNodeBalancerResponse>} + +

+ +
+

+ Trigers the createNodeBalancer + function of + LoadBalancerLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + CreateNodeBalancerPayload + +

+ Data required + for + createNodeBalancer +

+
+
+ +
+

+ View Source + + Linode/network/linode-loadBalancer.js, + line 49 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createNodeBalancerResponse> +
+
+
+
+
+ +
+

+ # + + + delete(nodeBalancerId) + → + {Promise.<deleteNodeBalancerResponse>} + +

+ +
+

+ Trigers the deleteNodeBalancer + function of + LoadBalancerLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ nodeBalancerId + + NumberKeyword + +

+ Data required + for + deleteNodeBalancer +

+
+
+ +
+

+ View Source + + Linode/network/linode-loadBalancer.js, + line 62 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteNodeBalancerResponse> +
+
+
+
+
+ +
+

+ # + + + list(params, filters) + → + {Promise.<getNodeBalancersResponse>} + +

+ +
+

+ Trigers the getNodeBalancers + function of + LoadBalancerLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for + getNodeBalancers +

+
+ filters + + Filter + +

+ Data required + for + getNodeBalancers +

+
+
+ +
+

+ View Source + + Linode/network/linode-loadBalancer.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getNodeBalancersResponse> +
+
+
+
+
+ +
+

+ # + + + update(nodeBalancerId, + data) + → + {Promise.<updateNodeBalancerResponse>} + +

+ +
+

+ Trigers the updateNodeBalancer + function of + LoadBalancerLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ nodeBalancerId + + NumberKeyword + +

+ Data required + for + updateNodeBalancer +

+
+ data + + Partial + +

+ Data required + for + updateNodeBalancer +

+
+
+ +
+

+ View Source + + Linode/network/linode-loadBalancer.js, + line 36 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateNodeBalancerResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_Monitoring.html b/docs/Linode_Monitoring.html new file mode 100644 index 00000000..0289e0ef --- /dev/null +++ b/docs/Linode_Monitoring.html @@ -0,0 +1,1583 @@ + + + + + + Linode_Monitoring + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_Monitoring

+
+ +
+
+

+ Linode_Monitoring(do, options) +

+ +
+

+ Class to create a MonitoringLinodeClass + object +

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createServiceMonitor(data) + → + {Promise.<createServiceMonitorResponse>} + +

+ +
+

+ Trigers the createServiceMonitor + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ data + + ManagedServicePayload + +

+ Data required + for + createServiceMonitor +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 74 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createServiceMonitorResponse> +
+
+
+
+
+ +
+

+ # + + + deleteCredential(credentialID) + → + {Promise.<deleteCredentialResponse>} + +

+ +
+

+ Trigers the deleteCredential + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ credentialID + + NumberKeyword + +

+ Data required + for + deleteCredential +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 129 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteCredentialResponse> +
+
+
+
+
+ +
+

+ # + + + deleteServiceMonitor(serviceID) + → + {Promise.<deleteServiceMonitorResponse>} + +

+ +
+

+ Trigers the deleteServiceMonitor + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ serviceID + + NumberKeyword + +

+ Data required + for + deleteServiceMonitor +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 61 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteServiceMonitorResponse> +
+
+
+
+
+ +
+

+ # + + + disableServiceMonitor(serviceID) + → + {Promise.<disableServiceMonitorResponse>} + +

+ +
+

+ Trigers the + disableServiceMonitor function + of MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ serviceID + + NumberKeyword + +

+ Data required + for + disableServiceMonitor +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 35 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<disableServiceMonitorResponse> +
+
+
+
+
+ +
+

+ # + + + enableServiceMonitor(serviceID) + → + {Promise.<enableServiceMonitorResponse>} + +

+ +
+

+ Trigers the enableServiceMonitor + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ serviceID + + NumberKeyword + +

+ Data required + for + enableServiceMonitor +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 48 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<enableServiceMonitorResponse> +
+
+
+
+
+ +
+

+ # + + + getCredentials(params, filters) + → + {Promise.<getCredentialsResponse>} + +

+ +
+

+ Trigers the getCredentials + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for + getCredentials +

+
+ filters + + Filter + +

+ Data required + for + getCredentials +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 102 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getCredentialsResponse> +
+
+
+
+
+ +
+

+ # + + + getServices(params, filters) + → + {Promise.<getServicesResponse>} + +

+ +
+

+ Trigers the getServices function + of MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getServices +

+
+ filters + + Filter + +

+ Data required + for getServices +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getServicesResponse> +
+
+
+
+
+ +
+

+ # + + + updateCredential(credentialID, data) + → + {Promise.<updateCredentialResponse>} + +

+ +
+

+ Trigers the updateCredential + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ credentialID + + NumberKeyword + +

+ Data required + for + updateCredential +

+
+ data + + UpdateCredentialPayload + +

+ Data required + for + updateCredential +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 116 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateCredentialResponse> +
+
+
+
+
+ +
+

+ # + + + updateServiceMonitor(monitorID, data) + → + {Promise.<updateServiceMonitorResponse>} + +

+ +
+

+ Trigers the updateServiceMonitor + function of + MonitoringLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ monitorID + + NumberKeyword + +

+ Data required + for + updateServiceMonitor +

+
+ data + + Partial + +

+ Data required + for + updateServiceMonitor +

+
+
+ +
+

+ View Source + + Linode/management/linode-monitoring.js, + line 88 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateServiceMonitorResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_NoSql.html b/docs/Linode_NoSql.html new file mode 100644 index 00000000..5b84150b --- /dev/null +++ b/docs/Linode_NoSql.html @@ -0,0 +1,1294 @@ + + + + + + Linode_NoSql + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Class

+

Linode_NoSql

+
+ +
+
+

+ Linode_NoSql(do, options) +

+ +
+

Class to create a NoSqlLinodeClass object

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

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

+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ do + + module + +

+ Linode SDK +

+
+ options + + object + +

+ SDK options +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 12 + +

+
+
+
+
+
+ +
+

Methods

+
+
+

+ # + + + createDatabase(engine, data) + → + {Promise.<createDatabaseResponse>} + +

+ +
+

+ Trigers the createDatabase + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ engine + + UnionType + +

+ Data required + for + createDatabase +

+
+ data + + CreateDatabasePayload + +

+ Data required + for + createDatabase +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 50 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<createDatabaseResponse> +
+
+
+
+
+ +
+

+ # + + + deleteDatabase(engine, databaseID) + → + {Promise.<deleteDatabaseResponse>} + +

+ +
+

+ Trigers the deleteDatabase + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ engine + + Engine + +

+ Data required + for + deleteDatabase +

+
+ databaseID + + NumberKeyword + +

+ Data required + for + deleteDatabase +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 93 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<deleteDatabaseResponse> +
+
+
+
+
+ +
+

+ # + + + getDatabaseEngines(params, filter) + → + {Promise.<getDatabaseEnginesResponse>} + +

+ +
+

+ Trigers the getDatabaseEngines + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for + getDatabaseEngines +

+
+ filter + + Filter + +

+ Data required + for + getDatabaseEngines +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 36 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getDatabaseEnginesResponse> +
+
+
+
+
+ +
+

+ # + + + getDatabases(params, filter) + → + {Promise.<getDatabasesResponse>} + +

+ +
+

+ Trigers the getDatabases + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ params + + Params + +

+ Data required + for getDatabases +

+
+ filter + + Filter + +

+ Data required + for getDatabases +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 22 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getDatabasesResponse> +
+
+
+
+
+ +
+

+ # + + + getEngineDatabase(engine, databaseID) + → + {Promise.<getEngineDatabaseResponse>} + +

+ +
+

+ Trigers the getEngineDatabase + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ engine + + Engine + +

+ Data required + for + getEngineDatabase +

+
+ databaseID + + NumberKeyword + +

+ Data required + for + getEngineDatabase +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 64 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<getEngineDatabaseResponse> +
+
+
+
+
+ +
+

+ # + + + updateDatabase(engine, databaseID, + data) + → + {Promise.<updateDatabaseResponse>} + +

+ +
+

+ Trigers the updateDatabase + function of NoSqlLinodeClass +

+
+ +
Parameters:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameType + Description +
+ engine + + Engine + +

+ Data required + for + updateDatabase +

+
+ databaseID + + NumberKeyword + +

+ Data required + for + updateDatabase +

+
+ data + + UpdateDatabasePayload + +

+ Data required + for + updateDatabase +

+
+
+ +
+

+ View Source + + Linode/database/linode-noSql.js, + line 79 + +

+
+ +
+
+ +
+
+
+
+ + + Promise.<updateDatabaseResponse> +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_compute_linode-computeInstance.js.html b/docs/Linode_compute_linode-computeInstance.js.html new file mode 100644 index 00000000..0df2d449 --- /dev/null +++ b/docs/Linode_compute_linode-computeInstance.js.html @@ -0,0 +1,408 @@ + + + + + + Linode/compute/linode-computeInstance.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/compute/linode-computeInstance.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a ComputeInstanceLinodeClass object
+    * @category Linode
+    */
+class Linode_ComputeInstance {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getLinodes function of ComputeInstanceLinodeClass
+        * @param {Params} params - Data required for getLinodes
+    * @param {Filter} filter - Data required for getLinodes
+        * @returns {Promise<getLinodesResponse>}
+        */
+    list(params = undefined, filter = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getLinodes(params, filter)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createLinode function of ComputeInstanceLinodeClass
+        * @param {CreateLinodeRequest} data - Data required for createLinode
+        * @returns {Promise<createLinodeResponse>}
+        */
+    create(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createLinode(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateLinode function of ComputeInstanceLinodeClass
+        * @param {NumberKeyword} linodeId - Data required for updateLinode
+    * @param {DeepPartial} values - Data required for updateLinode
+        * @returns {Promise<updateLinodeResponse>}
+        */
+    update(linodeId, values) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateLinode(linodeId, values)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteLinode function of ComputeInstanceLinodeClass
+        * @param {NumberKeyword} linodeId - Data required for deleteLinode
+        * @returns {Promise<deleteLinodeResponse>}
+        */
+    delete(linodeId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteLinode(linodeId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_ComputeInstance;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_compute_linode-kubernetes.js.html b/docs/Linode_compute_linode-kubernetes.js.html new file mode 100644 index 00000000..531e14dc --- /dev/null +++ b/docs/Linode_compute_linode-kubernetes.js.html @@ -0,0 +1,437 @@ + + + + + + Linode/compute/linode-kubernetes.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/compute/linode-kubernetes.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a KubernetesLinodeClass object
+    * @category Linode
+    */
+class Linode_Kubernetes {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the createKubernetesCluster function of KubernetesLinodeClass
+        * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster
+        * @returns {Promise<createKubernetesClusterResponse>}
+        */
+    create(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createKubernetesCluster(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass
+        * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster
+        * @returns {Promise<deleteKubernetesClusterResponse>}
+        */
+    delete(clusterID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteKubernetesCluster(clusterID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getNodePool function of KubernetesLinodeClass
+        * @param {NumberKeyword} clusterID - Data required for getNodePool
+    * @param {NumberKeyword} nodePoolID - Data required for getNodePool
+        * @returns {Promise<getNodePoolResponse>}
+        */
+    getNodePool(clusterID, nodePoolID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getNodePool(clusterID, nodePoolID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createNodePool function of KubernetesLinodeClass
+        * @param {NumberKeyword} clusterID - Data required for createNodePool
+    * @param {CreateNodePoolData} data - Data required for createNodePool
+        * @returns {Promise<createNodePoolResponse>}
+        */
+    createNodePool(clusterID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createNodePool(clusterID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateNodePool function of KubernetesLinodeClass
+        * @param {NumberKeyword} clusterID - Data required for updateNodePool
+    * @param {NumberKeyword} nodePoolID - Data required for updateNodePool
+    * @param {Partial} data - Data required for updateNodePool
+        * @returns {Promise<updateNodePoolResponse>}
+        */
+    updateNodePool(clusterID, nodePoolID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateNodePool(clusterID, nodePoolID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteNodePool function of KubernetesLinodeClass
+        * @param {NumberKeyword} clusterID - Data required for deleteNodePool
+    * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool
+        * @returns {Promise<deleteNodePoolResponse>}
+        */
+    deleteNodePool(clusterID, nodePoolID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteNodePool(clusterID, nodePoolID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_Kubernetes;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_database_linode-noSql.js.html b/docs/Linode_database_linode-noSql.js.html new file mode 100644 index 00000000..b772b579 --- /dev/null +++ b/docs/Linode_database_linode-noSql.js.html @@ -0,0 +1,439 @@ + + + + + + Linode/database/linode-noSql.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/database/linode-noSql.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a NoSqlLinodeClass object
+    * @category Linode
+    */
+class Linode_NoSql {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getDatabases function of NoSqlLinodeClass
+        * @param {Params} params - Data required for getDatabases
+    * @param {Filter} filter - Data required for getDatabases
+        * @returns {Promise<getDatabasesResponse>}
+        */
+    getDatabases(params = undefined, filter = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getDatabases(params, filter)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getDatabaseEngines function of NoSqlLinodeClass
+        * @param {Params} params - Data required for getDatabaseEngines
+    * @param {Filter} filter - Data required for getDatabaseEngines
+        * @returns {Promise<getDatabaseEnginesResponse>}
+        */
+    getDatabaseEngines(params = undefined, filter = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getDatabaseEngines(params, filter)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createDatabase function of NoSqlLinodeClass
+        * @param {UnionType} engine - Data required for createDatabase
+    * @param {CreateDatabasePayload} data - Data required for createDatabase
+        * @returns {Promise<createDatabaseResponse>}
+        */
+    createDatabase(engine, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createDatabase(engine, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getEngineDatabase function of NoSqlLinodeClass
+        * @param {Engine} engine - Data required for getEngineDatabase
+    * @param {NumberKeyword} databaseID - Data required for getEngineDatabase
+        * @returns {Promise<getEngineDatabaseResponse>}
+        */
+    getEngineDatabase(engine, databaseID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getEngineDatabase(engine, databaseID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateDatabase function of NoSqlLinodeClass
+        * @param {Engine} engine - Data required for updateDatabase
+    * @param {NumberKeyword} databaseID - Data required for updateDatabase
+    * @param {UpdateDatabasePayload} data - Data required for updateDatabase
+        * @returns {Promise<updateDatabaseResponse>}
+        */
+    updateDatabase(engine, databaseID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateDatabase(engine, databaseID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteDatabase function of NoSqlLinodeClass
+        * @param {Engine} engine - Data required for deleteDatabase
+    * @param {NumberKeyword} databaseID - Data required for deleteDatabase
+        * @returns {Promise<deleteDatabaseResponse>}
+        */
+    deleteDatabase(engine, databaseID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteDatabase(engine, databaseID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_NoSql;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_firewalls_linode-firewalls.js.html b/docs/Linode_firewalls_linode-firewalls.js.html new file mode 100644 index 00000000..2f9391c4 --- /dev/null +++ b/docs/Linode_firewalls_linode-firewalls.js.html @@ -0,0 +1,447 @@ + + + + + + Linode/firewalls/linode-firewalls.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/firewalls/linode-firewalls.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a FirewallsLinodeClass object
+    * @category Linode
+    */
+class Linode_Firewalls {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getFirewalls function of FirewallsLinodeClass
+        * @param {Params} params - Data required for getFirewalls
+    * @param {Filter} filter - Data required for getFirewalls
+        * @returns {Promise<getFirewallsResponse>}
+        */
+    getFirewalls(params = undefined, filter = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getFirewalls(params, filter)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getFirewall function of FirewallsLinodeClass
+        * @param {NumberKeyword} firewallID - Data required for getFirewall
+        * @returns {Promise<getFirewallResponse>}
+        */
+    getFirewall(firewallID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getFirewall(firewallID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createFirewall function of FirewallsLinodeClass
+        * @param {CreateFirewallPayload} data - Data required for createFirewall
+        * @returns {Promise<createFirewallResponse>}
+        */
+    createFirewall(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createFirewall(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateFirewall function of FirewallsLinodeClass
+        * @param {NumberKeyword} firewallID - Data required for updateFirewall
+    * @param {UpdateFirewallPayload} data - Data required for updateFirewall
+        * @returns {Promise<updateFirewallResponse>}
+        */
+    updateFirewall(firewallID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateFirewall(firewallID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the enableFirewall function of FirewallsLinodeClass
+        * @param {NumberKeyword} firewallID - Data required for enableFirewall
+        * @returns {Promise<enableFirewallResponse>}
+        */
+    enableFirewall(firewallID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.enableFirewall(firewallID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the disableFirewall function of FirewallsLinodeClass
+        * @param {NumberKeyword} firewallID - Data required for disableFirewall
+        * @returns {Promise<disableFirewallResponse>}
+        */
+    disableFirewall(firewallID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.disableFirewall(firewallID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteFirewall function of FirewallsLinodeClass
+        * @param {NumberKeyword} firewallID - Data required for deleteFirewall
+        * @returns {Promise<deleteFirewallResponse>}
+        */
+    deleteFirewall(firewallID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteFirewall(firewallID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_Firewalls;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_images_linode-images.js.html b/docs/Linode_images_linode-images.js.html new file mode 100644 index 00000000..0d362214 --- /dev/null +++ b/docs/Linode_images_linode-images.js.html @@ -0,0 +1,438 @@ + + + + + + Linode/images/linode-images.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/images/linode-images.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a ImagesLinodeClass object
+    * @category Linode
+    */
+class Linode_Images {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getImage function of ImagesLinodeClass
+        * @param {StringKeyword} imageId - Data required for getImage
+        * @returns {Promise<getImageResponse>}
+        */
+    getImage(imageId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getImage(imageId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getImages function of ImagesLinodeClass
+        * @param {Params} params - Data required for getImages
+    * @param {Filter} filters - Data required for getImages
+        * @returns {Promise<getImagesResponse>}
+        */
+    getImages(params = undefined, filters = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getImages(params, filters)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createImage function of ImagesLinodeClass
+        * @param {NumberKeyword} diskId - Data required for createImage
+    * @param {StringKeyword} label - Data required for createImage
+    * @param {StringKeyword} description - Data required for createImage
+    * @param {BooleanKeyword} cloud_init - Data required for createImage
+        * @returns {Promise<createImageResponse>}
+        */
+    createImage(diskId, label = undefined, description = undefined, cloud_init = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createImage(diskId, label, description, cloud_init)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateImage function of ImagesLinodeClass
+        * @param {StringKeyword} imageId - Data required for updateImage
+    * @param {StringKeyword} label - Data required for updateImage
+    * @param {StringKeyword} description - Data required for updateImage
+        * @returns {Promise<updateImageResponse>}
+        */
+    updateImage(imageId, label = undefined, description = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateImage(imageId, label, description)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteImage function of ImagesLinodeClass
+        * @param {StringKeyword} imageId - Data required for deleteImage
+        * @returns {Promise<deleteImageResponse>}
+        */
+    deleteImage(imageId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteImage(imageId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the uploadImage function of ImagesLinodeClass
+        * @param {ImageUploadPayload} data - Data required for uploadImage
+        * @returns {Promise<uploadImageResponse>}
+        */
+    uploadImage(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.uploadImage(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_Images;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_management_linode-monitoring.js.html b/docs/Linode_management_linode-monitoring.js.html new file mode 100644 index 00000000..1f5a314d --- /dev/null +++ b/docs/Linode_management_linode-monitoring.js.html @@ -0,0 +1,475 @@ + + + + + + Linode/management/linode-monitoring.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/management/linode-monitoring.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a MonitoringLinodeClass object
+    * @category Linode
+    */
+class Linode_Monitoring {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getServices function of MonitoringLinodeClass
+        * @param {Params} params - Data required for getServices
+    * @param {Filter} filters - Data required for getServices
+        * @returns {Promise<getServicesResponse>}
+        */
+    getServices(params = undefined, filters = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getServices(params, filters)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the disableServiceMonitor function of MonitoringLinodeClass
+        * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor
+        * @returns {Promise<disableServiceMonitorResponse>}
+        */
+    disableServiceMonitor(serviceID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.disableServiceMonitor(serviceID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the enableServiceMonitor function of MonitoringLinodeClass
+        * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor
+        * @returns {Promise<enableServiceMonitorResponse>}
+        */
+    enableServiceMonitor(serviceID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.enableServiceMonitor(serviceID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteServiceMonitor function of MonitoringLinodeClass
+        * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor
+        * @returns {Promise<deleteServiceMonitorResponse>}
+        */
+    deleteServiceMonitor(serviceID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteServiceMonitor(serviceID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createServiceMonitor function of MonitoringLinodeClass
+        * @param {ManagedServicePayload} data - Data required for createServiceMonitor
+        * @returns {Promise<createServiceMonitorResponse>}
+        */
+    createServiceMonitor(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createServiceMonitor(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateServiceMonitor function of MonitoringLinodeClass
+        * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor
+    * @param {Partial} data - Data required for updateServiceMonitor
+        * @returns {Promise<updateServiceMonitorResponse>}
+        */
+    updateServiceMonitor(monitorID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateServiceMonitor(monitorID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getCredentials function of MonitoringLinodeClass
+        * @param {Params} params - Data required for getCredentials
+    * @param {Filter} filters - Data required for getCredentials
+        * @returns {Promise<getCredentialsResponse>}
+        */
+    getCredentials(params = undefined, filters = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getCredentials(params, filters)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateCredential function of MonitoringLinodeClass
+        * @param {NumberKeyword} credentialID - Data required for updateCredential
+    * @param {UpdateCredentialPayload} data - Data required for updateCredential
+        * @returns {Promise<updateCredentialResponse>}
+        */
+    updateCredential(credentialID, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateCredential(credentialID, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteCredential function of MonitoringLinodeClass
+        * @param {NumberKeyword} credentialID - Data required for deleteCredential
+        * @returns {Promise<deleteCredentialResponse>}
+        */
+    deleteCredential(credentialID) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteCredential(credentialID)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_Monitoring;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_network_linode-DNS.js.html b/docs/Linode_network_linode-DNS.js.html new file mode 100644 index 00000000..05bd52f5 --- /dev/null +++ b/docs/Linode_network_linode-DNS.js.html @@ -0,0 +1,435 @@ + + + + + + Linode/network/linode-DNS.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/network/linode-DNS.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a DNSLinodeClass object
+    * @category Linode
+    */
+class Linode_DNS {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getDomains function of DNSLinodeClass
+        * @param {Params} params - Data required for getDomains
+    * @param {Filter} filter - Data required for getDomains
+        * @returns {Promise<getDomainsResponse>}
+        */
+    getDomains(params = undefined, filter = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getDomains(params, filter)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the getDomain function of DNSLinodeClass
+        * @param {NumberKeyword} domainId - Data required for getDomain
+        * @returns {Promise<getDomainResponse>}
+        */
+    getDomain(domainId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getDomain(domainId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createDomain function of DNSLinodeClass
+        * @param {CreateDomainPayload} data - Data required for createDomain
+        * @returns {Promise<createDomainResponse>}
+        */
+    createDomain(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createDomain(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateDomain function of DNSLinodeClass
+        * @param {NumberKeyword} domainId - Data required for updateDomain
+    * @param {UpdateDomainPayload} data - Data required for updateDomain
+        * @returns {Promise<updateDomainResponse>}
+        */
+    updateDomain(domainId, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateDomain(domainId, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteDomain function of DNSLinodeClass
+        * @param {NumberKeyword} domainId - Data required for deleteDomain
+        * @returns {Promise<deleteDomainResponse>}
+        */
+    deleteDomain(domainId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteDomain(domainId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the cloneDomain function of DNSLinodeClass
+        * @param {NumberKeyword} domainId - Data required for cloneDomain
+    * @param {CloneDomainPayload} data - Data required for cloneDomain
+        * @returns {Promise<cloneDomainResponse>}
+        */
+    cloneDomain(domainId, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.cloneDomain(domainId, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_DNS;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_network_linode-loadBalancer.js.html b/docs/Linode_network_linode-loadBalancer.js.html new file mode 100644 index 00000000..75c73c1f --- /dev/null +++ b/docs/Linode_network_linode-loadBalancer.js.html @@ -0,0 +1,408 @@ + + + + + + Linode/network/linode-loadBalancer.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/network/linode-loadBalancer.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a LoadBalancerLinodeClass object
+    * @category Linode
+    */
+class Linode_LoadBalancer {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getNodeBalancers function of LoadBalancerLinodeClass
+        * @param {Params} params - Data required for getNodeBalancers
+    * @param {Filter} filters - Data required for getNodeBalancers
+        * @returns {Promise<getNodeBalancersResponse>}
+        */
+    list(params = undefined, filters = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getNodeBalancers(params, filters)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass
+        * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer
+    * @param {Partial} data - Data required for updateNodeBalancer
+        * @returns {Promise<updateNodeBalancerResponse>}
+        */
+    update(nodeBalancerId, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateNodeBalancer(nodeBalancerId, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createNodeBalancer function of LoadBalancerLinodeClass
+        * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer
+        * @returns {Promise<createNodeBalancerResponse>}
+        */
+    create(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createNodeBalancer(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass
+        * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer
+        * @returns {Promise<deleteNodeBalancerResponse>}
+        */
+    delete(nodeBalancerId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteNodeBalancer(nodeBalancerId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_LoadBalancer;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/Linode_storage_linode-blockStorage.js.html b/docs/Linode_storage_linode-blockStorage.js.html new file mode 100644 index 00000000..1251146e --- /dev/null +++ b/docs/Linode_storage_linode-blockStorage.js.html @@ -0,0 +1,408 @@ + + + + + + Linode/storage/linode-blockStorage.js + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Source

+

Linode/storage/linode-blockStorage.js

+
+ +
+
+
/*This is an auto generated class, please do not change.*/
+/**
+    * Class to create a BlockStorageLinodeClass object
+    * @category Linode
+    */
+class Linode_BlockStorage {
+    /**
+     *
+     * @param {module} do Linode SDK
+     * @param {object} options SDK options
+     */
+    constructor(linodeSdk, linodeToken) {
+        this._linode = linodeSdk;
+        this._linodeToken = linodeToken;
+    }
+    /**
+        * Trigers the getVolumes function of BlockStorageLinodeClass
+        * @param {Params} params - Data required for getVolumes
+    * @param {Filter} filters - Data required for getVolumes
+        * @returns {Promise<getVolumesResponse>}
+        */
+    list(params = undefined, filters = undefined) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.getVolumes(params, filters)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the deleteVolume function of BlockStorageLinodeClass
+        * @param {NumberKeyword} volumeId - Data required for deleteVolume
+        * @returns {Promise<deleteVolumeResponse>}
+        */
+    delete(volumeId) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.deleteVolume(volumeId)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the updateVolume function of BlockStorageLinodeClass
+        * @param {NumberKeyword} volumeId - Data required for updateVolume
+    * @param {UpdateVolumeRequest} data - Data required for updateVolume
+        * @returns {Promise<updateVolumeResponse>}
+        */
+    update(volumeId, data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.updateVolume(volumeId, data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+    /**
+        * Trigers the createVolume function of BlockStorageLinodeClass
+        * @param {VolumeRequestPayload} data - Data required for createVolume
+        * @returns {Promise<createVolumeResponse>}
+        */
+    create(data) {
+        this._linode.setToken(this._linodeToken);
+        return new Promise((resolve, reject) => {
+            this._linode.createVolume(data)
+                .then(data => resolve(data))
+                .catch(err => reject(err));
+        });
+    }
+}
+module.exports = Linode_BlockStorage;
+
+
+
+
+ + +
+
+
+ + + + + diff --git a/docs/googleCloud_artificialinteligence_gcp-translation.js.html b/docs/googleCloud_artificialinteligence_gcp-translation.js.html index 98a19fb0..2122e69f 100644 --- a/docs/googleCloud_artificialinteligence_gcp-translation.js.html +++ b/docs/googleCloud_artificialinteligence_gcp-translation.js.html @@ -1,307 +1,440 @@ - - - - googleCloud/artificialinteligence/gcp-translation.js + + + + googleCloud/artificialinteligence/gcp-translation.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/artificialinteligence/gcp-translation.js

-
+ +
+ +
+
+
+

Source

+

+ googleCloud/artificialinteligence/gcp-translation.js +

+
-
-
-
const { TranslationServiceClient } = require("@google-cloud/translate");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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);
+    }
+    /**
+     * 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 index 589b6189..9d721d1a 100644 --- a/docs/googleCloud_compute_gcp-kubernetes.js.html +++ b/docs/googleCloud_compute_gcp-kubernetes.js.html @@ -1,379 +1,506 @@ - - - - googleCloud/compute/gcp-kubernetes.js + + + + googleCloud/compute/gcp-kubernetes.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/compute/gcp-kubernetes.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/compute/gcp-kubernetes.js

+
-
-
-
const { ClusterManagerClient } = require("@google-cloud/container");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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 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 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 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 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);
+    }
+    /**
+     * 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 index 688c5d29..87c0eb3c 100644 --- a/docs/googleCloud_database_gcp-RDBMS.js.html +++ b/docs/googleCloud_database_gcp-RDBMS.js.html @@ -1,335 +1,465 @@ - - - - googleCloud/database/gcp-RDBMS.js + + + + googleCloud/database/gcp-RDBMS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/database/gcp-RDBMS.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/database/gcp-RDBMS.js

+
-
-
-
const { DatabaseAdminClient } = require("@google-cloud/spanner");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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 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 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);
-  }
+    }
+    /**
+     * 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 index e6665281..2a133cd3 100644 --- a/docs/googleCloud_database_gcp-noSql.js.html +++ b/docs/googleCloud_database_gcp-noSql.js.html @@ -1,280 +1,413 @@ - - - - googleCloud/database/gcp-noSql.js + + + + googleCloud/database/gcp-noSql.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/database/gcp-noSql.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/database/gcp-noSql.js

+
-
-
-
const { FirestoreClient } = require("@google-cloud/firestore");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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);
-  }
+    }
+    /**
+     * 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 index 06dc57c0..b0b8b757 100644 --- a/docs/googleCloud_management_gcp-keyManagement.js.html +++ b/docs/googleCloud_management_gcp-keyManagement.js.html @@ -1,308 +1,439 @@ - - - - googleCloud/management/gcp-keyManagement.js + + + + googleCloud/management/gcp-keyManagement.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/management/gcp-keyManagement.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/management/gcp-keyManagement.js

+
-
-
-
const { KeyManagementServiceClient } = require("@google-cloud/kms");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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);
+    }
+    /**
+     * 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 index edd07080..70d406a5 100644 --- a/docs/googleCloud_management_gcp-monitoring.js.html +++ b/docs/googleCloud_management_gcp-monitoring.js.html @@ -1,171 +1,304 @@ - - - - googleCloud/management/gcp-monitoring.js + + + + googleCloud/management/gcp-monitoring.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/management/gcp-monitoring.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/management/gcp-monitoring.js

+
-
-
-
const { AlertPolicyServiceClient } = require("@google-cloud/monitoring");
+					
+
+
const { AlertPolicyServiceClient } = require("@google-cloud/monitoring");
 const { MetricServiceClient } = require("@google-cloud/monitoring");
 /*This is an auto generated class, please do not change.*/
 /**
@@ -173,145 +306,143 @@ 

googleCloud/management/gcp-monitoring.js

* @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); + /** + * + * @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 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 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 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 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); - } + } + /** + * 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 index 1c7c5b4f..8d4c768c 100644 --- a/docs/googleCloud_management_gcp-notificationService.js.html +++ b/docs/googleCloud_management_gcp-notificationService.js.html @@ -1,171 +1,306 @@ - - - - googleCloud/management/gcp-notificationService.js + + + + googleCloud/management/gcp-notificationService.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/management/gcp-notificationService.js

-
+ +
+ +
+
+
+

Source

+

+ googleCloud/management/gcp-notificationService.js +

+
-
-
-
const { PublisherClient } = require("@google-cloud/pubsub");
+					
+
+
const { PublisherClient } = require("@google-cloud/pubsub");
 const { SubscriberClient } = require("@google-cloud/pubsub");
 /*This is an auto generated class, please do not change.*/
 /**
@@ -173,191 +308,186 @@ 

googleCloud/management/gcp-notificationService.js

* @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); + /** + * + * @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 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 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 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 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 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 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); + } + /** + * 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 index eedca724..f2c8bd3d 100644 --- a/docs/googleCloud_network_gcp-DNS.js.html +++ b/docs/googleCloud_network_gcp-DNS.js.html @@ -1,305 +1,434 @@ - - - - googleCloud/network/gcp-DNS.js + + + + googleCloud/network/gcp-DNS.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/network/gcp-DNS.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/network/gcp-DNS.js

+
-
-
-
const { DNS } = require("@google-cloud/dns");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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);
-  }
+    }
+    /**
+     * 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 index 996e42f3..5b45ce7e 100644 --- a/docs/googleCloud_storage_gcp-archivalStorage.js.html +++ b/docs/googleCloud_storage_gcp-archivalStorage.js.html @@ -1,312 +1,440 @@ - - - - googleCloud/storage/gcp-archivalStorage.js + + + + googleCloud/storage/gcp-archivalStorage.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/storage/gcp-archivalStorage.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/storage/gcp-archivalStorage.js

+
-
-
-
const { Storage } = require("@google-cloud/storage");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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);
+    }
+    /**
+     * 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 index 6f879963..8a677028 100644 --- a/docs/googleCloud_storage_gcp-storageBucket.js.html +++ b/docs/googleCloud_storage_gcp-storageBucket.js.html @@ -1,312 +1,440 @@ - - - - googleCloud/storage/gcp-storageBucket.js + + + + googleCloud/storage/gcp-storageBucket.js - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

Source

-

googleCloud/storage/gcp-storageBucket.js

-
+ +
+ +
+
+
+

Source

+

googleCloud/storage/gcp-storageBucket.js

+
-
-
-
const { Storage } = require("@google-cloud/storage");
+					
+
+
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);
+    /**
+     *
+     * @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 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 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 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);
+    }
+    /**
+     * 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 21444047..bbb8fca0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,397 +1,609 @@ - - - - Home + + + + Home - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - -
- -
-
-
-

-

Home

-
+ +
+ +
+
+
+

+

Home

+
-

+

-
-
-

- -

-

NodeCloud

-

- Making open cloud easily accessible and managed. -

- -

- nodecloud CI -

-

- npm version - Codacy Badge - lerna - Gitter - Read on : Medium - Mailing list : Scorelab - contributions welcome -

-

Table of Content

- -

Introduction

-

- 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 - between different cloud providers. It provides an easy to use - API for developers in order to interact with different cloud - providers. -

-

NodeCloud will be useful to you if:

-
    -
  • - you work on a project which uses multiple cloud providers -
  • -
  • - you are looking for an abstract cloud API which can switch - between cloud providers with fewer code changes -
  • -
  • - you are an open-source enthusiast who is into cloud - engineering or code generation -
  • -
  • - you want to improve your skills in NodeJS, Typescript and - cloud service providers -
  • -
-

📘 Supported Service Providers

-
    -
  • Amazon Web Services (AWS)
  • -
  • Azure
  • -
  • Google Cloud Platform (GCP)
  • -
  • DigitalOcean
  • -
  • AliCloud
  • -
-

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

-

Getting Started

-

- 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. -

-
npm i @nodecloud/common
+					
+
+

+ +

+

NodeCloud

+

+ Making open cloud easily accessible and managed. +

+ +

+ nodecloud CI +

+

+ npm version + Codacy Badge + lerna + Gitter + Read on : Medium + Mailing list : Scorelab + contributions welcome +

+

Table of Content

+ +

Introduction

+

+ 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 between different cloud + providers. It provides an easy to use API for + developers in order to interact with different + cloud providers. +

+

NodeCloud will be useful to you if:

+
    +
  • + you work on a project which uses multiple + cloud providers +
  • +
  • + you are looking for an abstract cloud API + which can switch between cloud providers + with fewer code changes +
  • +
  • + you are an open-source enthusiast who is + into cloud engineering or code generation +
  • +
  • + you want to improve your skills in NodeJS, + Typescript and cloud service providers +
  • +
+

📘 Supported Service Providers

+
    +
  • Amazon Web Services (AWS)
  • +
  • Azure
  • +
  • Google Cloud Platform (GCP)
  • +
  • DigitalOcean
  • +
  • AliCloud
  • +
+

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

+

Getting Started

+

+ 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. +

+
npm i @nodecloud/common
 or
 yarn add @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");
+							

+ 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");
@@ -425,15 +637,21 @@ 

Example

]; 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
+							

+ 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
 };
@@ -481,436 +699,589 @@ 

Example

}); }
-

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");
+							

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! -

-

- 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

-

- 1️⃣ Fork the leopardslab/nodecloud repository
- Follow these instructions on - how to fork a repository -

-

- 2️⃣ Cloning the repository
- Once you have set up your fork of the - leopardslab/nodecloud repository, you'll want to - clone it to your local machine. This is so you can make and test - all of your personal edits before adding it to the master - version of leopardslab/nodecloud . -

-

- Navigate to the location on your computer where you want to host - your code. Once in the appropriate folder, run the following - command to clone the repository to your local machine. -

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

📟 Service Types

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Service CategoryServiceAWSGCPAzure + DigitalOcean + + AliCloud +
ComputeIaaSEC2 + 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 (without infrastructure) + + AWS Fargate* + + Cloud Run* + --ECI*
Paas + AWS Elastic Beanstalk + + App Engine* + + App Service + - + Simple Application Server* +
StorageObject StorageS3 + Cloud Storage + + Azure Blob Storage + + Spaces* + + Bucket (OSS) +
Block StorageEBS + Persistent Disks + + Disk Storage + + Volumes + NAS*
NetworkingLoad BalancerELB + 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* +
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-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/ AuthorizationIdentity Access Management + AWS IAM + + Cloud IAM* + + Azure Active Directory*, Azure Role + Based Access Control* + - + Resource Access Management* +
ManagementKey Management + AWS-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! +

+

+ 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

+

+ 1️⃣ Fork the leopardslab/nodecloud + repository
+ Follow these instructions on + how to fork a repository +

+

+ 2️⃣ Cloning the repository
+ Once you have set up your fork of the + leopardslab/nodecloud repository, + you'll want to clone it to your local machine. + This is so you can make and test all of your + personal edits before adding it to the master + version of leopardslab/nodecloud . +

+

+ Navigate to the location on your computer where + you want to host your code. Once in the + appropriate folder, run the following command to + clone the repository to your local machine. +

+
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. -

-
cd nodecloud
+							

+ 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. +

+
cd nodecloud
 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
+							

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 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 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
+							

+ 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
+							

+ ❇️ 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
+							

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 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
+							

+ ❇️ 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

-

- 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
- When you get to a point when you want to test the functionality - of the code, make sure all your changes are saved. They don't - necessarily have to be committed changes in order to - test them. -

-

- 2️⃣ 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. When you run the below test command - Lerna will execute all the tests in the packages of - this monorepo. -

-
yarn test
+							

Test Changes

+

+ 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
+ When you get to a point when you want to test + the functionality of the code, make sure all + your changes are saved. They don't necessarily + have to be committed changes in order + to test them. +

+

+ 2️⃣ 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. When you run the below test + command Lerna will execute all the + tests in the packages of this monorepo. +

+
yarn test
 
-

NodeCloud Code Generation tool

-

- 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 @ leopardslab

-
-
-
+

NodeCloud Code Generation tool

+

+ 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 @ leopardslab

+ + +
- -
-
-
- - - - + +
+
+
+ + + + diff --git a/docs/scripts/app.min.js b/docs/scripts/app.min.js index b3bb9510..98f689d7 100644 --- a/docs/scripts/app.min.js +++ b/docs/scripts/app.min.js @@ -1,91 +1,91 @@ -"use strict"; +'use strict'; $().ready(function() {}); var sidebarIsVisible = !1, - toggleSidebar = function(e) { - var a = !(0 < arguments.length && void 0 !== e) || e; - $("#sidebarNav").toggleClass("sticky", a), - $("#stickyNavbarOverlay").toggleClass("active", a), - $("#hamburger").toggleClass("is-active"), - (sidebarIsVisible = a); - }; + toggleSidebar = function(e) { + var a = !(0 < arguments.length && void 0 !== e) || e; + $('#sidebarNav').toggleClass('sticky', a), + $('#stickyNavbarOverlay').toggleClass('active', a), + $('#hamburger').toggleClass('is-active'), + (sidebarIsVisible = a); + }; $().ready(function() { - $("#hamburger").click(function() { - toggleSidebar(!sidebarIsVisible); - }), - $("#stickyNavbarOverlay").click(function() { - sidebarIsVisible && toggleSidebar(!1); - }); + $('#hamburger').click(function() { + toggleSidebar(!sidebarIsVisible); + }), + $('#stickyNavbarOverlay').click(function() { + sidebarIsVisible && toggleSidebar(!1); + }); }); var OFFSET = 150; $().ready(function() { - var o = $("#side-nav"), - c = []; - if ( - ($(".vertical-section").length || o.hide(), - $(".vertical-section").each(function(e, a) { - var i = $(a), - t = i.find("> h1").text(); - if (t) { - o.append($("

").text(t)); - var s = $("
    "); - i.find(".members h4.name").each(function(e, a) { - var i = $(a), - t = i - .find(".code-name") - .clone() - .children() - .remove() - .end() - .text(), - n = i.find("a").attr("href"), - r = $('')).text(t); - s.append($("
  • ").append(r)), - c.push({ link: r, offset: i.offset().top }); - }), - o.append(s); - } else - i.find(".members h4.name").each(function(e, a) { - var i = $(a), - t = i - .find(".code-name") - .clone() - .children() - .remove() - .end() - .text(), - n = i.find("a").attr("href"), - r = $('
    ')).text(t); - o.append(r), c.push({ link: r, offset: i.offset().top }); - }); - }), - !$.trim(o.text())) - ) - return o.hide(); - function e() { - for (var e = n.scrollTop(), a = !1, i = c.length - 1; 0 <= i; i--) { - var t = c[i]; - t.link.removeClass("is-active"), - e + OFFSET >= t.offset - ? a - ? t.link.addClass("is-past") - : (t.link.addClass("is-active"), (a = !0)) - : t.link.removeClass("is-past"); - } - } - var n = $("#main-content-wrapper"); - n.on("scroll", e), - e(), - c.forEach(function(e) { - e.link.click(function() { - n.animate({ scrollTop: e.offset - OFFSET + 1 }, 500); - }); - }); + var o = $('#side-nav'), + c = []; + if ( + ($('.vertical-section').length || o.hide(), + $('.vertical-section').each(function(e, a) { + var i = $(a), + t = i.find('> h1').text(); + if (t) { + o.append($('

    ').text(t)); + var s = $('
      '); + i.find('.members h4.name').each(function(e, a) { + var i = $(a), + t = i + .find('.code-name') + .clone() + .children() + .remove() + .end() + .text(), + n = i.find('a').attr('href'), + r = $('
      ')).text(t); + s.append($('
    • ').append(r)), + c.push({ link: r, offset: i.offset().top }); + }), + o.append(s); + } else + i.find('.members h4.name').each(function(e, a) { + var i = $(a), + t = i + .find('.code-name') + .clone() + .children() + .remove() + .end() + .text(), + n = i.find('a').attr('href'), + r = $('
      ')).text(t); + o.append(r), c.push({ link: r, offset: i.offset().top }); + }); + }), + !$.trim(o.text())) + ) + return o.hide(); + function e() { + for (var e = n.scrollTop(), a = !1, i = c.length - 1; 0 <= i; i--) { + var t = c[i]; + t.link.removeClass('is-active'), + e + OFFSET >= t.offset + ? a + ? t.link.addClass('is-past') + : (t.link.addClass('is-active'), (a = !0)) + : t.link.removeClass('is-past'); + } + } + var n = $('#main-content-wrapper'); + n.on('scroll', e), + e(), + c.forEach(function(e) { + e.link.click(function() { + n.animate({ scrollTop: e.offset - OFFSET + 1 }, 500); + }); + }); }), - $().ready(function() { - $("#sidebarNav a").each(function(e, a) { - var i = $(a).attr("href"); - window.location.pathname.match("/" + i) && - ($(a).addClass("active"), - $("#sidebarNav").scrollTop($(a).offset().top - 150)); - }); - }); + $().ready(function() { + $('#sidebarNav a').each(function(e, a) { + var i = $(a).attr('href'); + window.location.pathname.match('/' + i) && + ($(a).addClass('active'), + $('#sidebarNav').scrollTop($(a).offset().top - 150)); + }); + }); diff --git a/docs/scripts/linenumber.js b/docs/scripts/linenumber.js index a5593224..ae41d531 100644 --- a/docs/scripts/linenumber.js +++ b/docs/scripts/linenumber.js @@ -1,26 +1,26 @@ /*global document */ (function() { - var source = document.getElementsByClassName("prettyprint source linenums"); - var i = 0; - var lineNumber = 0; - var lineId; - var lines; - var totalLines; - var anchorHash; + var source = document.getElementsByClassName('prettyprint source linenums'); + var i = 0; + var lineNumber = 0; + var lineId; + var lines; + var totalLines; + var anchorHash; - if (source && source[0]) { - anchorHash = document.location.hash.substring(1); - lines = source[0].getElementsByTagName("li"); - totalLines = lines.length; + if (source && source[0]) { + anchorHash = document.location.hash.substring(1); + lines = source[0].getElementsByTagName('li'); + totalLines = lines.length; - for (; i < totalLines; i++) { - lineNumber++; - lineId = "line" + lineNumber; - lines[i].id = lineId; - if (lineId === anchorHash) { - lines[i].className += " selected"; - } - } - } + for (; i < totalLines; i++) { + lineNumber++; + lineId = 'line' + lineNumber; + lines[i].id = lineId; + if (lineId === anchorHash) { + lines[i].className += ' selected'; + } + } + } })(); diff --git a/docs/scripts/search.js b/docs/scripts/search.js index 5eaf0c8a..da48c1b8 100644 --- a/docs/scripts/search.js +++ b/docs/scripts/search.js @@ -1,42 +1,49 @@ (function() { - const input = document.querySelector("#search"); - const targets = [...document.querySelectorAll("#sidebarNav li")]; - input.addEventListener("keyup", () => { - // loop over each targets and hide the not corresponding ones - targets.forEach(target => { - if (!target.innerText.toLowerCase().includes(input.value.toLowerCase())) { - target.style.display = "none"; + const input = document.querySelector('#search'); + const targets = [...document.querySelectorAll('#sidebarNav li')]; + input.addEventListener('keyup', () => { + // loop over each targets and hide the not corresponding ones + targets.forEach(target => { + if ( + !target.innerText + .toLowerCase() + .includes(input.value.toLowerCase()) + ) { + target.style.display = 'none'; - /** - * Detects an empty list - * Remove the list and the list's title if the list is not displayed - */ - const list = [...target.parentNode.childNodes].filter( - elem => elem.style.display !== "none" - ); + /** + * Detects an empty list + * Remove the list and the list's title if the list is not displayed + */ + const list = [...target.parentNode.childNodes].filter( + elem => elem.style.display !== 'none' + ); - if (!list.length) { - target.parentNode.style.display = "none"; - target.parentNode.previousSibling.style.display = "none"; - } + if (!list.length) { + target.parentNode.style.display = 'none'; + target.parentNode.previousSibling.style.display = 'none'; + } - /** - * Detects empty category - * Remove the entire category if no item is displayed - */ - const category = [...target.parentNode.parentNode.childNodes].filter( - elem => elem.tagName !== "H2" && elem.style.display !== "none" - ); + /** + * Detects empty category + * Remove the entire category if no item is displayed + */ + const category = [ + ...target.parentNode.parentNode.childNodes, + ].filter( + elem => + elem.tagName !== 'H2' && elem.style.display !== 'none' + ); - if (!category.length) { - target.parentNode.parentNode.style.display = "none"; - } - } else { - target.parentNode.style.display = "block"; - target.parentNode.previousSibling.style.display = "block"; - target.parentNode.parentNode.style.display = "block"; - target.style.display = "block"; - } - }); - }); + if (!category.length) { + target.parentNode.parentNode.style.display = 'none'; + } + } else { + target.parentNode.style.display = 'block'; + target.parentNode.previousSibling.style.display = 'block'; + target.parentNode.parentNode.style.display = 'block'; + target.style.display = 'block'; + } + }); + }); })(); diff --git a/docs/styles/app.min.css b/docs/styles/app.min.css index 80aa997d..1b4375f4 100644 --- a/docs/styles/app.min.css +++ b/docs/styles/app.min.css @@ -1,23 +1,23 @@ /*! bulma.io v0.7.5 | MIT License | github.com/jgthms/bulma */ @-webkit-keyframes spinAround { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } + from { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + to { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } } @keyframes spinAround { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(359deg); - transform: rotate(359deg); - } + from { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + to { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } } .delete, .modal-close, @@ -30,30 +30,30 @@ .pagination-link, .pagination-ellipsis, .tabs { - -webkit-touch-callout: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .select:not(.is-multiple):not(.is-loading)::after, .navbar-link:not(.is-arrowless)::after { - border: 3px solid rgba(0, 0, 0, 0); - border-radius: 2px; - border-right: 0; - border-top: 0; - content: " "; - display: block; - height: 0.625em; - margin-top: -0.4375em; - pointer-events: none; - position: absolute; - top: 50%; - -webkit-transform: rotate(-45deg); - transform: rotate(-45deg); - -webkit-transform-origin: center; - transform-origin: center; - width: 0.625em; + border: 3px solid rgba(0, 0, 0, 0); + border-radius: 2px; + border-right: 0; + border-top: 0; + content: ' '; + display: block; + height: 0.625em; + margin-top: -0.4375em; + pointer-events: none; + position: absolute; + top: 50%; + -webkit-transform: rotate(-45deg); + transform: rotate(-45deg); + -webkit-transform-origin: center; + transform-origin: center; + width: 0.625em; } .box:not(:last-child), .content:not(:last-child), @@ -70,108 +70,108 @@ .list:not(:last-child), .message:not(:last-child), .tabs:not(:last-child) { - margin-bottom: 1.5rem; + margin-bottom: 1.5rem; } .delete, .modal-close { - -moz-appearance: none; - -webkit-appearance: none; - background-color: rgba(10, 10, 10, 0.2); - border: none; - border-radius: 290486px; - cursor: pointer; - pointer-events: auto; - display: inline-block; - flex-grow: 0; - flex-shrink: 0; - font-size: 0; - height: 20px; - max-height: 20px; - max-width: 20px; - min-height: 20px; - min-width: 20px; - outline: none; - position: relative; - vertical-align: top; - width: 20px; + -moz-appearance: none; + -webkit-appearance: none; + background-color: rgba(10, 10, 10, 0.2); + border: none; + border-radius: 290486px; + cursor: pointer; + pointer-events: auto; + display: inline-block; + flex-grow: 0; + flex-shrink: 0; + font-size: 0; + height: 20px; + max-height: 20px; + max-width: 20px; + min-height: 20px; + min-width: 20px; + outline: none; + position: relative; + vertical-align: top; + width: 20px; } .delete::before, .modal-close::before, .delete::after, .modal-close::after { - background-color: #fff; - content: ""; - display: block; - left: 50%; - position: absolute; - top: 50%; - -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); - transform: translateX(-50%) translateY(-50%) rotate(45deg); - -webkit-transform-origin: center center; - transform-origin: center center; + background-color: #fff; + content: ''; + display: block; + left: 50%; + position: absolute; + top: 50%; + -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); + transform: translateX(-50%) translateY(-50%) rotate(45deg); + -webkit-transform-origin: center center; + transform-origin: center center; } .delete::before, .modal-close::before { - height: 2px; - width: 50%; + height: 2px; + width: 50%; } .delete::after, .modal-close::after { - height: 50%; - width: 2px; + height: 50%; + width: 2px; } .delete:hover, .modal-close:hover, .delete:focus, .modal-close:focus { - background-color: rgba(10, 10, 10, 0.3); + background-color: rgba(10, 10, 10, 0.3); } .delete:active, .modal-close:active { - background-color: rgba(10, 10, 10, 0.4); + background-color: rgba(10, 10, 10, 0.4); } .is-small.delete, .is-small.modal-close { - height: 16px; - max-height: 16px; - max-width: 16px; - min-height: 16px; - min-width: 16px; - width: 16px; + height: 16px; + max-height: 16px; + max-width: 16px; + min-height: 16px; + min-width: 16px; + width: 16px; } .is-medium.delete, .is-medium.modal-close { - height: 24px; - max-height: 24px; - max-width: 24px; - min-height: 24px; - min-width: 24px; - width: 24px; + height: 24px; + max-height: 24px; + max-width: 24px; + min-height: 24px; + min-width: 24px; + width: 24px; } .is-large.delete, .is-large.modal-close { - height: 32px; - max-height: 32px; - max-width: 32px; - min-height: 32px; - min-width: 32px; - width: 32px; + height: 32px; + max-height: 32px; + max-width: 32px; + min-height: 32px; + min-width: 32px; + width: 32px; } .button.is-loading::after, .loader, .select.is-loading::after, .control.is-loading::after { - -webkit-animation: spinAround 500ms infinite linear; - animation: spinAround 500ms infinite linear; - border: 2px solid #dbdbdb; - border-radius: 290486px; - border-right-color: transparent; - border-top-color: transparent; - content: ""; - display: block; - height: 1em; - position: relative; - width: 1em; + -webkit-animation: spinAround 500ms infinite linear; + animation: spinAround 500ms infinite linear; + border: 2px solid #dbdbdb; + border-radius: 290486px; + border-right-color: transparent; + border-top-color: transparent; + content: ''; + display: block; + height: 1em; + position: relative; + width: 1em; } .is-overlay, .image.is-square img, @@ -209,11 +209,11 @@ .modal, .modal-background, .hero-video { - bottom: 0; - left: 0; - position: absolute; - right: 0; - top: 0; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; } .button, .input, @@ -225,23 +225,23 @@ .pagination-next, .pagination-link, .pagination-ellipsis { - -moz-appearance: none; - -webkit-appearance: none; - align-items: center; - border: 1px solid transparent; - border-radius: 4px; - box-shadow: none; - display: inline-flex; - font-size: 1rem; - height: 2.25em; - justify-content: flex-start; - line-height: 1.5; - padding-bottom: calc(0.375em - 1px); - padding-left: calc(0.625em - 1px); - padding-right: calc(0.625em - 1px); - padding-top: calc(0.375em - 1px); - position: relative; - vertical-align: top; + -moz-appearance: none; + -webkit-appearance: none; + align-items: center; + border: 1px solid transparent; + border-radius: 4px; + box-shadow: none; + display: inline-flex; + font-size: 1rem; + height: 2.25em; + justify-content: flex-start; + line-height: 1.5; + padding-bottom: calc(0.375em - 1px); + padding-left: calc(0.625em - 1px); + padding-right: calc(0.625em - 1px); + padding-top: calc(0.375em - 1px); + position: relative; + vertical-align: top; } .button:focus, .input:focus, @@ -283,7 +283,7 @@ .is-active.pagination-next, .is-active.pagination-link, .is-active.pagination-ellipsis { - outline: none; + outline: none; } .button[disabled], .input[disabled], @@ -306,7 +306,7 @@ fieldset[disabled] .pagination-previous, fieldset[disabled] .pagination-next, fieldset[disabled] .pagination-link, fieldset[disabled] .pagination-ellipsis { - cursor: not-allowed; + cursor: not-allowed; } /*! minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css */ html, body, @@ -331,8 +331,8 @@ h3, h4, h5, h6 { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } h1, h2, @@ -340,65 +340,65 @@ h3, h4, h5, h6 { - font-size: 100%; - font-weight: normal; + font-size: 100%; + font-weight: normal; } ul { - list-style: none; + list-style: none; } button, input, select, textarea { - margin: 0; + margin: 0; } html { - box-sizing: border-box; + box-sizing: border-box; } *, *::before, *::after { - box-sizing: inherit; + box-sizing: inherit; } img, embed, iframe, object, video { - height: auto; - max-width: 100%; + height: auto; + max-width: 100%; } audio { - max-width: 100%; + max-width: 100%; } iframe { - border: 0; + border: 0; } table { - border-collapse: collapse; - border-spacing: 0; + border-collapse: collapse; + border-spacing: 0; } td, th { - padding: 0; + padding: 0; } td:not([align]), th:not([align]) { - text-align: left; + text-align: left; } html { - background-color: #fff; - font-size: 16px; - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - min-width: 300px; - overflow-x: hidden; - overflow-y: scroll; - text-rendering: optimizeLegibility; - -webkit-text-size-adjust: 100%; - -moz-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - text-size-adjust: 100%; + background-color: #fff; + font-size: 16px; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + min-width: 300px; + overflow-x: hidden; + overflow-y: scroll; + text-rendering: optimizeLegibility; + -webkit-text-size-adjust: 100%; + -moz-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + text-size-adjust: 100%; } article, aside, @@ -407,2325 +407,2325 @@ footer, header, hgroup, section { - display: block; + display: block; } body, button, input, select, textarea { - font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Helvetica", "Arial", sans-serif; + font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', + 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', + 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif; } code, pre { - -moz-osx-font-smoothing: auto; - -webkit-font-smoothing: auto; - font-family: monospace; + -moz-osx-font-smoothing: auto; + -webkit-font-smoothing: auto; + font-family: monospace; } body { - color: #4a4a4a; - font-size: 1em; - font-weight: 400; - line-height: 1.5; + color: #4a4a4a; + font-size: 1em; + font-weight: 400; + line-height: 1.5; } a { - color: #3273dc; - cursor: pointer; - text-decoration: none; + color: #3273dc; + cursor: pointer; + text-decoration: none; } a strong { - color: currentColor; + color: currentColor; } a:hover { - color: #363636; + color: #363636; } code { - background-color: #f5f5f5; - color: #ff3860; - font-size: 0.875em; - font-weight: normal; - padding: 0.25em 0.5em 0.25em; + background-color: #f5f5f5; + color: #ff3860; + font-size: 0.875em; + font-weight: normal; + padding: 0.25em 0.5em 0.25em; } hr { - background-color: #f5f5f5; - border: none; - display: block; - height: 2px; - margin: 1.5rem 0; + background-color: #f5f5f5; + border: none; + display: block; + height: 2px; + margin: 1.5rem 0; } img { - height: auto; - max-width: 100%; + height: auto; + max-width: 100%; } -input[type="checkbox"], -input[type="radio"] { - vertical-align: baseline; +input[type='checkbox'], +input[type='radio'] { + vertical-align: baseline; } small { - font-size: 0.875em; + font-size: 0.875em; } span { - font-style: inherit; - font-weight: inherit; + font-style: inherit; + font-weight: inherit; } strong { - color: #363636; - font-weight: 700; + color: #363636; + font-weight: 700; } fieldset { - border: none; + border: none; } pre { - -webkit-overflow-scrolling: touch; - background-color: #f5f5f5; - color: #4a4a4a; - font-size: 0.875em; - overflow-x: auto; - padding: 1.25rem 1.5rem; - white-space: pre; - word-wrap: normal; + -webkit-overflow-scrolling: touch; + background-color: #f5f5f5; + color: #4a4a4a; + font-size: 0.875em; + overflow-x: auto; + padding: 1.25rem 1.5rem; + white-space: pre; + word-wrap: normal; } pre code { - background-color: transparent; - color: currentColor; - font-size: 1em; - padding: 0; + background-color: transparent; + color: currentColor; + font-size: 1em; + padding: 0; } table td, table th { - vertical-align: top; + vertical-align: top; } table td:not([align]), table th:not([align]) { - text-align: left; + text-align: left; } table th { - color: #363636; + color: #363636; } .is-clearfix::after { - clear: both; - content: " "; - display: table; + clear: both; + content: ' '; + display: table; } .is-pulled-left { - float: left !important; + float: left !important; } .is-pulled-right { - float: right !important; + float: right !important; } .is-clipped { - overflow: hidden !important; + overflow: hidden !important; } .is-size-1 { - font-size: 3rem !important; + font-size: 3rem !important; } .is-size-2 { - font-size: 2.5rem !important; + font-size: 2.5rem !important; } .is-size-3 { - font-size: 2rem !important; + font-size: 2rem !important; } .is-size-4 { - font-size: 1.5rem !important; + font-size: 1.5rem !important; } .is-size-5 { - font-size: 1.25rem !important; + font-size: 1.25rem !important; } .is-size-6 { - font-size: 1rem !important; + font-size: 1rem !important; } .is-size-7 { - font-size: 0.75rem !important; + font-size: 0.75rem !important; } @media screen and (max-width: 768px) { - .is-size-1-mobile { - font-size: 3rem !important; - } - .is-size-2-mobile { - font-size: 2.5rem !important; - } - .is-size-3-mobile { - font-size: 2rem !important; - } - .is-size-4-mobile { - font-size: 1.5rem !important; - } - .is-size-5-mobile { - font-size: 1.25rem !important; - } - .is-size-6-mobile { - font-size: 1rem !important; - } - .is-size-7-mobile { - font-size: 0.75rem !important; - } + .is-size-1-mobile { + font-size: 3rem !important; + } + .is-size-2-mobile { + font-size: 2.5rem !important; + } + .is-size-3-mobile { + font-size: 2rem !important; + } + .is-size-4-mobile { + font-size: 1.5rem !important; + } + .is-size-5-mobile { + font-size: 1.25rem !important; + } + .is-size-6-mobile { + font-size: 1rem !important; + } + .is-size-7-mobile { + font-size: 0.75rem !important; + } } @media screen and (min-width: 769px), print { - .is-size-1-tablet { - font-size: 3rem !important; - } - .is-size-2-tablet { - font-size: 2.5rem !important; - } - .is-size-3-tablet { - font-size: 2rem !important; - } - .is-size-4-tablet { - font-size: 1.5rem !important; - } - .is-size-5-tablet { - font-size: 1.25rem !important; - } - .is-size-6-tablet { - font-size: 1rem !important; - } - .is-size-7-tablet { - font-size: 0.75rem !important; - } + .is-size-1-tablet { + font-size: 3rem !important; + } + .is-size-2-tablet { + font-size: 2.5rem !important; + } + .is-size-3-tablet { + font-size: 2rem !important; + } + .is-size-4-tablet { + font-size: 1.5rem !important; + } + .is-size-5-tablet { + font-size: 1.25rem !important; + } + .is-size-6-tablet { + font-size: 1rem !important; + } + .is-size-7-tablet { + font-size: 0.75rem !important; + } } @media screen and (max-width: 1023px) { - .is-size-1-touch { - font-size: 3rem !important; - } - .is-size-2-touch { - font-size: 2.5rem !important; - } - .is-size-3-touch { - font-size: 2rem !important; - } - .is-size-4-touch { - font-size: 1.5rem !important; - } - .is-size-5-touch { - font-size: 1.25rem !important; - } - .is-size-6-touch { - font-size: 1rem !important; - } - .is-size-7-touch { - font-size: 0.75rem !important; - } + .is-size-1-touch { + font-size: 3rem !important; + } + .is-size-2-touch { + font-size: 2.5rem !important; + } + .is-size-3-touch { + font-size: 2rem !important; + } + .is-size-4-touch { + font-size: 1.5rem !important; + } + .is-size-5-touch { + font-size: 1.25rem !important; + } + .is-size-6-touch { + font-size: 1rem !important; + } + .is-size-7-touch { + font-size: 0.75rem !important; + } } @media screen and (min-width: 1024px) { - .is-size-1-desktop { - font-size: 3rem !important; - } - .is-size-2-desktop { - font-size: 2.5rem !important; - } - .is-size-3-desktop { - font-size: 2rem !important; - } - .is-size-4-desktop { - font-size: 1.5rem !important; - } - .is-size-5-desktop { - font-size: 1.25rem !important; - } - .is-size-6-desktop { - font-size: 1rem !important; - } - .is-size-7-desktop { - font-size: 0.75rem !important; - } + .is-size-1-desktop { + font-size: 3rem !important; + } + .is-size-2-desktop { + font-size: 2.5rem !important; + } + .is-size-3-desktop { + font-size: 2rem !important; + } + .is-size-4-desktop { + font-size: 1.5rem !important; + } + .is-size-5-desktop { + font-size: 1.25rem !important; + } + .is-size-6-desktop { + font-size: 1rem !important; + } + .is-size-7-desktop { + font-size: 0.75rem !important; + } } @media screen and (min-width: 1216px) { - .is-size-1-widescreen { - font-size: 3rem !important; - } - .is-size-2-widescreen { - font-size: 2.5rem !important; - } - .is-size-3-widescreen { - font-size: 2rem !important; - } - .is-size-4-widescreen { - font-size: 1.5rem !important; - } - .is-size-5-widescreen { - font-size: 1.25rem !important; - } - .is-size-6-widescreen { - font-size: 1rem !important; - } - .is-size-7-widescreen { - font-size: 0.75rem !important; - } + .is-size-1-widescreen { + font-size: 3rem !important; + } + .is-size-2-widescreen { + font-size: 2.5rem !important; + } + .is-size-3-widescreen { + font-size: 2rem !important; + } + .is-size-4-widescreen { + font-size: 1.5rem !important; + } + .is-size-5-widescreen { + font-size: 1.25rem !important; + } + .is-size-6-widescreen { + font-size: 1rem !important; + } + .is-size-7-widescreen { + font-size: 0.75rem !important; + } } @media screen and (min-width: 1408px) { - .is-size-1-fullhd { - font-size: 3rem !important; - } - .is-size-2-fullhd { - font-size: 2.5rem !important; - } - .is-size-3-fullhd { - font-size: 2rem !important; - } - .is-size-4-fullhd { - font-size: 1.5rem !important; - } - .is-size-5-fullhd { - font-size: 1.25rem !important; - } - .is-size-6-fullhd { - font-size: 1rem !important; - } - .is-size-7-fullhd { - font-size: 0.75rem !important; - } + .is-size-1-fullhd { + font-size: 3rem !important; + } + .is-size-2-fullhd { + font-size: 2.5rem !important; + } + .is-size-3-fullhd { + font-size: 2rem !important; + } + .is-size-4-fullhd { + font-size: 1.5rem !important; + } + .is-size-5-fullhd { + font-size: 1.25rem !important; + } + .is-size-6-fullhd { + font-size: 1rem !important; + } + .is-size-7-fullhd { + font-size: 0.75rem !important; + } } .has-text-centered { - text-align: center !important; + text-align: center !important; } .has-text-justified { - text-align: justify !important; + text-align: justify !important; } .has-text-left { - text-align: left !important; + text-align: left !important; } .has-text-right { - text-align: right !important; + text-align: right !important; } @media screen and (max-width: 768px) { - .has-text-centered-mobile { - text-align: center !important; - } + .has-text-centered-mobile { + text-align: center !important; + } } @media screen and (min-width: 769px), print { - .has-text-centered-tablet { - text-align: center !important; - } + .has-text-centered-tablet { + text-align: center !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-centered-tablet-only { - text-align: center !important; - } + .has-text-centered-tablet-only { + text-align: center !important; + } } @media screen and (max-width: 1023px) { - .has-text-centered-touch { - text-align: center !important; - } + .has-text-centered-touch { + text-align: center !important; + } } @media screen and (min-width: 1024px) { - .has-text-centered-desktop { - text-align: center !important; - } + .has-text-centered-desktop { + text-align: center !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-centered-desktop-only { - text-align: center !important; - } + .has-text-centered-desktop-only { + text-align: center !important; + } } @media screen and (min-width: 1216px) { - .has-text-centered-widescreen { - text-align: center !important; - } + .has-text-centered-widescreen { + text-align: center !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-centered-widescreen-only { - text-align: center !important; - } + .has-text-centered-widescreen-only { + text-align: center !important; + } } @media screen and (min-width: 1408px) { - .has-text-centered-fullhd { - text-align: center !important; - } + .has-text-centered-fullhd { + text-align: center !important; + } } @media screen and (max-width: 768px) { - .has-text-justified-mobile { - text-align: justify !important; - } + .has-text-justified-mobile { + text-align: justify !important; + } } @media screen and (min-width: 769px), print { - .has-text-justified-tablet { - text-align: justify !important; - } + .has-text-justified-tablet { + text-align: justify !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-justified-tablet-only { - text-align: justify !important; - } + .has-text-justified-tablet-only { + text-align: justify !important; + } } @media screen and (max-width: 1023px) { - .has-text-justified-touch { - text-align: justify !important; - } + .has-text-justified-touch { + text-align: justify !important; + } } @media screen and (min-width: 1024px) { - .has-text-justified-desktop { - text-align: justify !important; - } + .has-text-justified-desktop { + text-align: justify !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-justified-desktop-only { - text-align: justify !important; - } + .has-text-justified-desktop-only { + text-align: justify !important; + } } @media screen and (min-width: 1216px) { - .has-text-justified-widescreen { - text-align: justify !important; - } + .has-text-justified-widescreen { + text-align: justify !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-justified-widescreen-only { - text-align: justify !important; - } + .has-text-justified-widescreen-only { + text-align: justify !important; + } } @media screen and (min-width: 1408px) { - .has-text-justified-fullhd { - text-align: justify !important; - } + .has-text-justified-fullhd { + text-align: justify !important; + } } @media screen and (max-width: 768px) { - .has-text-left-mobile { - text-align: left !important; - } + .has-text-left-mobile { + text-align: left !important; + } } @media screen and (min-width: 769px), print { - .has-text-left-tablet { - text-align: left !important; - } + .has-text-left-tablet { + text-align: left !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-left-tablet-only { - text-align: left !important; - } + .has-text-left-tablet-only { + text-align: left !important; + } } @media screen and (max-width: 1023px) { - .has-text-left-touch { - text-align: left !important; - } + .has-text-left-touch { + text-align: left !important; + } } @media screen and (min-width: 1024px) { - .has-text-left-desktop { - text-align: left !important; - } + .has-text-left-desktop { + text-align: left !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-left-desktop-only { - text-align: left !important; - } + .has-text-left-desktop-only { + text-align: left !important; + } } @media screen and (min-width: 1216px) { - .has-text-left-widescreen { - text-align: left !important; - } + .has-text-left-widescreen { + text-align: left !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-left-widescreen-only { - text-align: left !important; - } + .has-text-left-widescreen-only { + text-align: left !important; + } } @media screen and (min-width: 1408px) { - .has-text-left-fullhd { - text-align: left !important; - } + .has-text-left-fullhd { + text-align: left !important; + } } @media screen and (max-width: 768px) { - .has-text-right-mobile { - text-align: right !important; - } + .has-text-right-mobile { + text-align: right !important; + } } @media screen and (min-width: 769px), print { - .has-text-right-tablet { - text-align: right !important; - } + .has-text-right-tablet { + text-align: right !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .has-text-right-tablet-only { - text-align: right !important; - } + .has-text-right-tablet-only { + text-align: right !important; + } } @media screen and (max-width: 1023px) { - .has-text-right-touch { - text-align: right !important; - } + .has-text-right-touch { + text-align: right !important; + } } @media screen and (min-width: 1024px) { - .has-text-right-desktop { - text-align: right !important; - } + .has-text-right-desktop { + text-align: right !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .has-text-right-desktop-only { - text-align: right !important; - } + .has-text-right-desktop-only { + text-align: right !important; + } } @media screen and (min-width: 1216px) { - .has-text-right-widescreen { - text-align: right !important; - } + .has-text-right-widescreen { + text-align: right !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .has-text-right-widescreen-only { - text-align: right !important; - } + .has-text-right-widescreen-only { + text-align: right !important; + } } @media screen and (min-width: 1408px) { - .has-text-right-fullhd { - text-align: right !important; - } + .has-text-right-fullhd { + text-align: right !important; + } } .is-capitalized { - text-transform: capitalize !important; + text-transform: capitalize !important; } .is-lowercase { - text-transform: lowercase !important; + text-transform: lowercase !important; } .is-uppercase { - text-transform: uppercase !important; + text-transform: uppercase !important; } .is-italic { - font-style: italic !important; + font-style: italic !important; } .has-text-white { - color: #fff !important; + color: #fff !important; } a.has-text-white:hover, a.has-text-white:focus { - color: #e6e6e6 !important; + color: #e6e6e6 !important; } .has-background-white { - background-color: #fff !important; + background-color: #fff !important; } .has-text-black { - color: #0a0a0a !important; + color: #0a0a0a !important; } a.has-text-black:hover, a.has-text-black:focus { - color: #000 !important; + color: #000 !important; } .has-background-black { - background-color: #0a0a0a !important; + background-color: #0a0a0a !important; } .has-text-light { - color: #f5f5f5 !important; + color: #f5f5f5 !important; } a.has-text-light:hover, a.has-text-light:focus { - color: #dbdbdb !important; + color: #dbdbdb !important; } .has-background-light { - background-color: #f5f5f5 !important; + background-color: #f5f5f5 !important; } .has-text-dark { - color: #363636 !important; + color: #363636 !important; } a.has-text-dark:hover, a.has-text-dark:focus { - color: #1c1c1c !important; + color: #1c1c1c !important; } .has-background-dark { - background-color: #363636 !important; + background-color: #363636 !important; } .has-text-primary { - color: #00d1b2 !important; + color: #00d1b2 !important; } a.has-text-primary:hover, a.has-text-primary:focus { - color: #009e86 !important; + color: #009e86 !important; } .has-background-primary { - background-color: #00d1b2 !important; + background-color: #00d1b2 !important; } .has-text-link { - color: #3273dc !important; + color: #3273dc !important; } a.has-text-link:hover, a.has-text-link:focus { - color: #205bbc !important; + color: #205bbc !important; } .has-background-link { - background-color: #3273dc !important; + background-color: #3273dc !important; } .has-text-info { - color: #209cee !important; + color: #209cee !important; } a.has-text-info:hover, a.has-text-info:focus { - color: #0f81cc !important; + color: #0f81cc !important; } .has-background-info { - background-color: #209cee !important; + background-color: #209cee !important; } .has-text-success { - color: #23d160 !important; + color: #23d160 !important; } a.has-text-success:hover, a.has-text-success:focus { - color: #1ca64c !important; + color: #1ca64c !important; } .has-background-success { - background-color: #23d160 !important; + background-color: #23d160 !important; } .has-text-warning { - color: #ffdd57 !important; + color: #ffdd57 !important; } a.has-text-warning:hover, a.has-text-warning:focus { - color: #ffd324 !important; + color: #ffd324 !important; } .has-background-warning { - background-color: #ffdd57 !important; + background-color: #ffdd57 !important; } .has-text-danger { - color: #ff3860 !important; + color: #ff3860 !important; } a.has-text-danger:hover, a.has-text-danger:focus { - color: #ff0537 !important; + color: #ff0537 !important; } .has-background-danger { - background-color: #ff3860 !important; + background-color: #ff3860 !important; } .has-text-black-bis { - color: #121212 !important; + color: #121212 !important; } .has-background-black-bis { - background-color: #121212 !important; + background-color: #121212 !important; } .has-text-black-ter { - color: #242424 !important; + color: #242424 !important; } .has-background-black-ter { - background-color: #242424 !important; + background-color: #242424 !important; } .has-text-grey-darker { - color: #363636 !important; + color: #363636 !important; } .has-background-grey-darker { - background-color: #363636 !important; + background-color: #363636 !important; } .has-text-grey-dark { - color: #4a4a4a !important; + color: #4a4a4a !important; } .has-background-grey-dark { - background-color: #4a4a4a !important; + background-color: #4a4a4a !important; } .has-text-grey { - color: #7a7a7a !important; + color: #7a7a7a !important; } .has-background-grey { - background-color: #7a7a7a !important; + background-color: #7a7a7a !important; } .has-text-grey-light { - color: #b5b5b5 !important; + color: #b5b5b5 !important; } .has-background-grey-light { - background-color: #b5b5b5 !important; + background-color: #b5b5b5 !important; } .has-text-grey-lighter { - color: #dbdbdb !important; + color: #dbdbdb !important; } .has-background-grey-lighter { - background-color: #dbdbdb !important; + background-color: #dbdbdb !important; } .has-text-white-ter { - color: #f5f5f5 !important; + color: #f5f5f5 !important; } .has-background-white-ter { - background-color: #f5f5f5 !important; + background-color: #f5f5f5 !important; } .has-text-white-bis { - color: #fafafa !important; + color: #fafafa !important; } .has-background-white-bis { - background-color: #fafafa !important; + background-color: #fafafa !important; } .has-text-weight-light { - font-weight: 300 !important; + font-weight: 300 !important; } .has-text-weight-normal { - font-weight: 400 !important; + font-weight: 400 !important; } .has-text-weight-medium { - font-weight: 500 !important; + font-weight: 500 !important; } .has-text-weight-semibold { - font-weight: 600 !important; + font-weight: 600 !important; } .has-text-weight-bold { - font-weight: 700 !important; + font-weight: 700 !important; } .is-family-primary { - font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Helvetica", "Arial", sans-serif !important; + font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', + 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', + 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important; } .is-family-secondary { - font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Helvetica", "Arial", sans-serif !important; + font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', + 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', + 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important; } .is-family-sans-serif { - font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Helvetica", "Arial", sans-serif !important; + font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', 'Roboto', + 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', + 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important; } .is-family-monospace { - font-family: monospace !important; + font-family: monospace !important; } .is-family-code { - font-family: monospace !important; + font-family: monospace !important; } .is-block { - display: block !important; + display: block !important; } @media screen and (max-width: 768px) { - .is-block-mobile { - display: block !important; - } + .is-block-mobile { + display: block !important; + } } @media screen and (min-width: 769px), print { - .is-block-tablet { - display: block !important; - } + .is-block-tablet { + display: block !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-block-tablet-only { - display: block !important; - } + .is-block-tablet-only { + display: block !important; + } } @media screen and (max-width: 1023px) { - .is-block-touch { - display: block !important; - } + .is-block-touch { + display: block !important; + } } @media screen and (min-width: 1024px) { - .is-block-desktop { - display: block !important; - } + .is-block-desktop { + display: block !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-block-desktop-only { - display: block !important; - } + .is-block-desktop-only { + display: block !important; + } } @media screen and (min-width: 1216px) { - .is-block-widescreen { - display: block !important; - } + .is-block-widescreen { + display: block !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-block-widescreen-only { - display: block !important; - } + .is-block-widescreen-only { + display: block !important; + } } @media screen and (min-width: 1408px) { - .is-block-fullhd { - display: block !important; - } + .is-block-fullhd { + display: block !important; + } } .is-flex { - display: flex !important; + display: flex !important; } @media screen and (max-width: 768px) { - .is-flex-mobile { - display: flex !important; - } + .is-flex-mobile { + display: flex !important; + } } @media screen and (min-width: 769px), print { - .is-flex-tablet { - display: flex !important; - } + .is-flex-tablet { + display: flex !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-flex-tablet-only { - display: flex !important; - } + .is-flex-tablet-only { + display: flex !important; + } } @media screen and (max-width: 1023px) { - .is-flex-touch { - display: flex !important; - } + .is-flex-touch { + display: flex !important; + } } @media screen and (min-width: 1024px) { - .is-flex-desktop { - display: flex !important; - } + .is-flex-desktop { + display: flex !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-flex-desktop-only { - display: flex !important; - } + .is-flex-desktop-only { + display: flex !important; + } } @media screen and (min-width: 1216px) { - .is-flex-widescreen { - display: flex !important; - } + .is-flex-widescreen { + display: flex !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-flex-widescreen-only { - display: flex !important; - } + .is-flex-widescreen-only { + display: flex !important; + } } @media screen and (min-width: 1408px) { - .is-flex-fullhd { - display: flex !important; - } + .is-flex-fullhd { + display: flex !important; + } } .is-inline { - display: inline !important; + display: inline !important; } @media screen and (max-width: 768px) { - .is-inline-mobile { - display: inline !important; - } + .is-inline-mobile { + display: inline !important; + } } @media screen and (min-width: 769px), print { - .is-inline-tablet { - display: inline !important; - } + .is-inline-tablet { + display: inline !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-tablet-only { - display: inline !important; - } + .is-inline-tablet-only { + display: inline !important; + } } @media screen and (max-width: 1023px) { - .is-inline-touch { - display: inline !important; - } + .is-inline-touch { + display: inline !important; + } } @media screen and (min-width: 1024px) { - .is-inline-desktop { - display: inline !important; - } + .is-inline-desktop { + display: inline !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-desktop-only { - display: inline !important; - } + .is-inline-desktop-only { + display: inline !important; + } } @media screen and (min-width: 1216px) { - .is-inline-widescreen { - display: inline !important; - } + .is-inline-widescreen { + display: inline !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-widescreen-only { - display: inline !important; - } + .is-inline-widescreen-only { + display: inline !important; + } } @media screen and (min-width: 1408px) { - .is-inline-fullhd { - display: inline !important; - } + .is-inline-fullhd { + display: inline !important; + } } .is-inline-block { - display: inline-block !important; + display: inline-block !important; } @media screen and (max-width: 768px) { - .is-inline-block-mobile { - display: inline-block !important; - } + .is-inline-block-mobile { + display: inline-block !important; + } } @media screen and (min-width: 769px), print { - .is-inline-block-tablet { - display: inline-block !important; - } + .is-inline-block-tablet { + display: inline-block !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-block-tablet-only { - display: inline-block !important; - } + .is-inline-block-tablet-only { + display: inline-block !important; + } } @media screen and (max-width: 1023px) { - .is-inline-block-touch { - display: inline-block !important; - } + .is-inline-block-touch { + display: inline-block !important; + } } @media screen and (min-width: 1024px) { - .is-inline-block-desktop { - display: inline-block !important; - } + .is-inline-block-desktop { + display: inline-block !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-block-desktop-only { - display: inline-block !important; - } + .is-inline-block-desktop-only { + display: inline-block !important; + } } @media screen and (min-width: 1216px) { - .is-inline-block-widescreen { - display: inline-block !important; - } + .is-inline-block-widescreen { + display: inline-block !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-block-widescreen-only { - display: inline-block !important; - } + .is-inline-block-widescreen-only { + display: inline-block !important; + } } @media screen and (min-width: 1408px) { - .is-inline-block-fullhd { - display: inline-block !important; - } + .is-inline-block-fullhd { + display: inline-block !important; + } } .is-inline-flex { - display: inline-flex !important; + display: inline-flex !important; } @media screen and (max-width: 768px) { - .is-inline-flex-mobile { - display: inline-flex !important; - } + .is-inline-flex-mobile { + display: inline-flex !important; + } } @media screen and (min-width: 769px), print { - .is-inline-flex-tablet { - display: inline-flex !important; - } + .is-inline-flex-tablet { + display: inline-flex !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-inline-flex-tablet-only { - display: inline-flex !important; - } + .is-inline-flex-tablet-only { + display: inline-flex !important; + } } @media screen and (max-width: 1023px) { - .is-inline-flex-touch { - display: inline-flex !important; - } + .is-inline-flex-touch { + display: inline-flex !important; + } } @media screen and (min-width: 1024px) { - .is-inline-flex-desktop { - display: inline-flex !important; - } + .is-inline-flex-desktop { + display: inline-flex !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-inline-flex-desktop-only { - display: inline-flex !important; - } + .is-inline-flex-desktop-only { + display: inline-flex !important; + } } @media screen and (min-width: 1216px) { - .is-inline-flex-widescreen { - display: inline-flex !important; - } + .is-inline-flex-widescreen { + display: inline-flex !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-inline-flex-widescreen-only { - display: inline-flex !important; - } + .is-inline-flex-widescreen-only { + display: inline-flex !important; + } } @media screen and (min-width: 1408px) { - .is-inline-flex-fullhd { - display: inline-flex !important; - } + .is-inline-flex-fullhd { + display: inline-flex !important; + } } .is-hidden { - display: none !important; + display: none !important; } .is-sr-only { - border: none !important; - clip: rect(0, 0, 0, 0) !important; - height: 0.01em !important; - overflow: hidden !important; - padding: 0 !important; - position: absolute !important; - white-space: nowrap !important; - width: 0.01em !important; + border: none !important; + clip: rect(0, 0, 0, 0) !important; + height: 0.01em !important; + overflow: hidden !important; + padding: 0 !important; + position: absolute !important; + white-space: nowrap !important; + width: 0.01em !important; } @media screen and (max-width: 768px) { - .is-hidden-mobile { - display: none !important; - } + .is-hidden-mobile { + display: none !important; + } } @media screen and (min-width: 769px), print { - .is-hidden-tablet { - display: none !important; - } + .is-hidden-tablet { + display: none !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-hidden-tablet-only { - display: none !important; - } + .is-hidden-tablet-only { + display: none !important; + } } @media screen and (max-width: 1023px) { - .is-hidden-touch { - display: none !important; - } + .is-hidden-touch { + display: none !important; + } } @media screen and (min-width: 1024px) { - .is-hidden-desktop { - display: none !important; - } + .is-hidden-desktop { + display: none !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-hidden-desktop-only { - display: none !important; - } + .is-hidden-desktop-only { + display: none !important; + } } @media screen and (min-width: 1216px) { - .is-hidden-widescreen { - display: none !important; - } + .is-hidden-widescreen { + display: none !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-hidden-widescreen-only { - display: none !important; - } + .is-hidden-widescreen-only { + display: none !important; + } } @media screen and (min-width: 1408px) { - .is-hidden-fullhd { - display: none !important; - } + .is-hidden-fullhd { + display: none !important; + } } .is-invisible { - visibility: hidden !important; + visibility: hidden !important; } @media screen and (max-width: 768px) { - .is-invisible-mobile { - visibility: hidden !important; - } + .is-invisible-mobile { + visibility: hidden !important; + } } @media screen and (min-width: 769px), print { - .is-invisible-tablet { - visibility: hidden !important; - } + .is-invisible-tablet { + visibility: hidden !important; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .is-invisible-tablet-only { - visibility: hidden !important; - } + .is-invisible-tablet-only { + visibility: hidden !important; + } } @media screen and (max-width: 1023px) { - .is-invisible-touch { - visibility: hidden !important; - } + .is-invisible-touch { + visibility: hidden !important; + } } @media screen and (min-width: 1024px) { - .is-invisible-desktop { - visibility: hidden !important; - } + .is-invisible-desktop { + visibility: hidden !important; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .is-invisible-desktop-only { - visibility: hidden !important; - } + .is-invisible-desktop-only { + visibility: hidden !important; + } } @media screen and (min-width: 1216px) { - .is-invisible-widescreen { - visibility: hidden !important; - } + .is-invisible-widescreen { + visibility: hidden !important; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .is-invisible-widescreen-only { - visibility: hidden !important; - } + .is-invisible-widescreen-only { + visibility: hidden !important; + } } @media screen and (min-width: 1408px) { - .is-invisible-fullhd { - visibility: hidden !important; - } + .is-invisible-fullhd { + visibility: hidden !important; + } } .is-marginless { - margin: 0 !important; + margin: 0 !important; } .is-paddingless { - padding: 0 !important; + padding: 0 !important; } .is-radiusless { - border-radius: 0 !important; + border-radius: 0 !important; } .is-shadowless { - box-shadow: none !important; + box-shadow: none !important; } .is-relative { - position: relative !important; + position: relative !important; } .box { - background-color: #fff; - border-radius: 6px; - box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - color: #4a4a4a; - display: block; - padding: 1.25rem; + background-color: #fff; + border-radius: 6px; + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + color: #4a4a4a; + display: block; + padding: 1.25rem; } a.box:hover, a.box:focus { - box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px #3273dc; + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px #3273dc; } a.box:active { - box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #3273dc; + box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #3273dc; } .button { - background-color: #fff; - border-color: #dbdbdb; - border-width: 1px; - color: #363636; - cursor: pointer; - justify-content: center; - padding-bottom: calc(0.375em - 1px); - padding-left: 0.75em; - padding-right: 0.75em; - padding-top: calc(0.375em - 1px); - text-align: center; - white-space: nowrap; + background-color: #fff; + border-color: #dbdbdb; + border-width: 1px; + color: #363636; + cursor: pointer; + justify-content: center; + padding-bottom: calc(0.375em - 1px); + padding-left: 0.75em; + padding-right: 0.75em; + padding-top: calc(0.375em - 1px); + text-align: center; + white-space: nowrap; } .button strong { - color: inherit; + color: inherit; } .button .icon, .button .icon.is-small, .button .icon.is-medium, .button .icon.is-large { - height: 1.5em; - width: 1.5em; + height: 1.5em; + width: 1.5em; } .button .icon:first-child:not(:last-child) { - margin-left: calc(-0.375em - 1px); - margin-right: 0.1875em; + margin-left: calc(-0.375em - 1px); + margin-right: 0.1875em; } .button .icon:last-child:not(:first-child) { - margin-left: 0.1875em; - margin-right: calc(-0.375em - 1px); + margin-left: 0.1875em; + margin-right: calc(-0.375em - 1px); } .button .icon:first-child:last-child { - margin-left: calc(-0.375em - 1px); - margin-right: calc(-0.375em - 1px); + margin-left: calc(-0.375em - 1px); + margin-right: calc(-0.375em - 1px); } .button:hover, .button.is-hovered { - border-color: #b5b5b5; - color: #363636; + border-color: #b5b5b5; + color: #363636; } .button:focus, .button.is-focused { - border-color: #3273dc; - color: #363636; + border-color: #3273dc; + color: #363636; } .button:focus:not(:active), .button.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); + box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); } .button:active, .button.is-active { - border-color: #4a4a4a; - color: #363636; + border-color: #4a4a4a; + color: #363636; } .button.is-text { - background-color: transparent; - border-color: transparent; - color: #4a4a4a; - text-decoration: underline; + background-color: transparent; + border-color: transparent; + color: #4a4a4a; + text-decoration: underline; } .button.is-text:hover, .button.is-text.is-hovered, .button.is-text:focus, .button.is-text.is-focused { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .button.is-text:active, .button.is-text.is-active { - background-color: #e8e8e8; - color: #363636; + background-color: #e8e8e8; + color: #363636; } .button.is-text[disabled], fieldset[disabled] .button.is-text { - background-color: transparent; - border-color: transparent; - box-shadow: none; + background-color: transparent; + border-color: transparent; + box-shadow: none; } .button.is-white { - background-color: #fff; - border-color: transparent; - color: #0a0a0a; + background-color: #fff; + border-color: transparent; + color: #0a0a0a; } .button.is-white:hover, .button.is-white.is-hovered { - background-color: #f9f9f9; - border-color: transparent; - color: #0a0a0a; + background-color: #f9f9f9; + border-color: transparent; + color: #0a0a0a; } .button.is-white:focus, .button.is-white.is-focused { - border-color: transparent; - color: #0a0a0a; + border-color: transparent; + color: #0a0a0a; } .button.is-white:focus:not(:active), .button.is-white.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); } .button.is-white:active, .button.is-white.is-active { - background-color: #f2f2f2; - border-color: transparent; - color: #0a0a0a; + background-color: #f2f2f2; + border-color: transparent; + color: #0a0a0a; } .button.is-white[disabled], fieldset[disabled] .button.is-white { - background-color: #fff; - border-color: transparent; - box-shadow: none; + background-color: #fff; + border-color: transparent; + box-shadow: none; } .button.is-white.is-inverted { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .button.is-white.is-inverted:hover, .button.is-white.is-inverted.is-hovered { - background-color: #000; + background-color: #000; } .button.is-white.is-inverted[disabled], fieldset[disabled] .button.is-white.is-inverted { - background-color: #0a0a0a; - border-color: transparent; - box-shadow: none; - color: #fff; + background-color: #0a0a0a; + border-color: transparent; + box-shadow: none; + color: #fff; } .button.is-white.is-loading::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; + border-color: transparent transparent #0a0a0a #0a0a0a !important; } .button.is-white.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-white.is-outlined:hover, .button.is-white.is-outlined.is-hovered, .button.is-white.is-outlined:focus, .button.is-white.is-outlined.is-focused { - background-color: #fff; - border-color: #fff; - color: #0a0a0a; + background-color: #fff; + border-color: #fff; + color: #0a0a0a; } .button.is-white.is-outlined.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-white.is-outlined.is-loading:hover::after, .button.is-white.is-outlined.is-loading.is-hovered::after, .button.is-white.is-outlined.is-loading:focus::after, .button.is-white.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; + border-color: transparent transparent #0a0a0a #0a0a0a !important; } .button.is-white.is-outlined[disabled], fieldset[disabled] .button.is-white.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-white.is-inverted.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - color: #0a0a0a; + background-color: transparent; + border-color: #0a0a0a; + color: #0a0a0a; } .button.is-white.is-inverted.is-outlined:hover, .button.is-white.is-inverted.is-outlined.is-hovered, .button.is-white.is-inverted.is-outlined:focus, .button.is-white.is-inverted.is-outlined.is-focused { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .button.is-white.is-inverted.is-outlined.is-loading:hover::after, .button.is-white.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-white.is-inverted.is-outlined.is-loading:focus::after, .button.is-white.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-white.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-white.is-inverted.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - box-shadow: none; - color: #0a0a0a; + background-color: transparent; + border-color: #0a0a0a; + box-shadow: none; + color: #0a0a0a; } .button.is-black { - background-color: #0a0a0a; - border-color: transparent; - color: #fff; + background-color: #0a0a0a; + border-color: transparent; + color: #fff; } .button.is-black:hover, .button.is-black.is-hovered { - background-color: #040404; - border-color: transparent; - color: #fff; + background-color: #040404; + border-color: transparent; + color: #fff; } .button.is-black:focus, .button.is-black.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-black:focus:not(:active), .button.is-black.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); + box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); } .button.is-black:active, .button.is-black.is-active { - background-color: #000; - border-color: transparent; - color: #fff; + background-color: #000; + border-color: transparent; + color: #fff; } .button.is-black[disabled], fieldset[disabled] .button.is-black { - background-color: #0a0a0a; - border-color: transparent; - box-shadow: none; + background-color: #0a0a0a; + border-color: transparent; + box-shadow: none; } .button.is-black.is-inverted { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .button.is-black.is-inverted:hover, .button.is-black.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-black.is-inverted[disabled], fieldset[disabled] .button.is-black.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #0a0a0a; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #0a0a0a; } .button.is-black.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-black.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - color: #0a0a0a; + background-color: transparent; + border-color: #0a0a0a; + color: #0a0a0a; } .button.is-black.is-outlined:hover, .button.is-black.is-outlined.is-hovered, .button.is-black.is-outlined:focus, .button.is-black.is-outlined.is-focused { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + border-color: #0a0a0a; + color: #fff; } .button.is-black.is-outlined.is-loading::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; + border-color: transparent transparent #0a0a0a #0a0a0a !important; } .button.is-black.is-outlined.is-loading:hover::after, .button.is-black.is-outlined.is-loading.is-hovered::after, .button.is-black.is-outlined.is-loading:focus::after, .button.is-black.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-black.is-outlined[disabled], fieldset[disabled] .button.is-black.is-outlined { - background-color: transparent; - border-color: #0a0a0a; - box-shadow: none; - color: #0a0a0a; + background-color: transparent; + border-color: #0a0a0a; + box-shadow: none; + color: #0a0a0a; } .button.is-black.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-black.is-inverted.is-outlined:hover, .button.is-black.is-inverted.is-outlined.is-hovered, .button.is-black.is-inverted.is-outlined:focus, .button.is-black.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .button.is-black.is-inverted.is-outlined.is-loading:hover::after, .button.is-black.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-black.is-inverted.is-outlined.is-loading:focus::after, .button.is-black.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #0a0a0a #0a0a0a !important; + border-color: transparent transparent #0a0a0a #0a0a0a !important; } .button.is-black.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-black.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-light { - background-color: #f5f5f5; - border-color: transparent; - color: #363636; + background-color: #f5f5f5; + border-color: transparent; + color: #363636; } .button.is-light:hover, .button.is-light.is-hovered { - background-color: #eee; - border-color: transparent; - color: #363636; + background-color: #eee; + border-color: transparent; + color: #363636; } .button.is-light:focus, .button.is-light.is-focused { - border-color: transparent; - color: #363636; + border-color: transparent; + color: #363636; } .button.is-light:focus:not(:active), .button.is-light.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); + box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); } .button.is-light:active, .button.is-light.is-active { - background-color: #e8e8e8; - border-color: transparent; - color: #363636; + background-color: #e8e8e8; + border-color: transparent; + color: #363636; } .button.is-light[disabled], fieldset[disabled] .button.is-light { - background-color: #f5f5f5; - border-color: transparent; - box-shadow: none; + background-color: #f5f5f5; + border-color: transparent; + box-shadow: none; } .button.is-light.is-inverted { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .button.is-light.is-inverted:hover, .button.is-light.is-inverted.is-hovered { - background-color: #292929; + background-color: #292929; } .button.is-light.is-inverted[disabled], fieldset[disabled] .button.is-light.is-inverted { - background-color: #363636; - border-color: transparent; - box-shadow: none; - color: #f5f5f5; + background-color: #363636; + border-color: transparent; + box-shadow: none; + color: #f5f5f5; } .button.is-light.is-loading::after { - border-color: transparent transparent #363636 #363636 !important; + border-color: transparent transparent #363636 #363636 !important; } .button.is-light.is-outlined { - background-color: transparent; - border-color: #f5f5f5; - color: #f5f5f5; + background-color: transparent; + border-color: #f5f5f5; + color: #f5f5f5; } .button.is-light.is-outlined:hover, .button.is-light.is-outlined.is-hovered, .button.is-light.is-outlined:focus, .button.is-light.is-outlined.is-focused { - background-color: #f5f5f5; - border-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + border-color: #f5f5f5; + color: #363636; } .button.is-light.is-outlined.is-loading::after { - border-color: transparent transparent #f5f5f5 #f5f5f5 !important; + border-color: transparent transparent #f5f5f5 #f5f5f5 !important; } .button.is-light.is-outlined.is-loading:hover::after, .button.is-light.is-outlined.is-loading.is-hovered::after, .button.is-light.is-outlined.is-loading:focus::after, .button.is-light.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #363636 #363636 !important; + border-color: transparent transparent #363636 #363636 !important; } .button.is-light.is-outlined[disabled], fieldset[disabled] .button.is-light.is-outlined { - background-color: transparent; - border-color: #f5f5f5; - box-shadow: none; - color: #f5f5f5; + background-color: transparent; + border-color: #f5f5f5; + box-shadow: none; + color: #f5f5f5; } .button.is-light.is-inverted.is-outlined { - background-color: transparent; - border-color: #363636; - color: #363636; + background-color: transparent; + border-color: #363636; + color: #363636; } .button.is-light.is-inverted.is-outlined:hover, .button.is-light.is-inverted.is-outlined.is-hovered, .button.is-light.is-inverted.is-outlined:focus, .button.is-light.is-inverted.is-outlined.is-focused { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .button.is-light.is-inverted.is-outlined.is-loading:hover::after, .button.is-light.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-light.is-inverted.is-outlined.is-loading:focus::after, .button.is-light.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #f5f5f5 #f5f5f5 !important; + border-color: transparent transparent #f5f5f5 #f5f5f5 !important; } .button.is-light.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-light.is-inverted.is-outlined { - background-color: transparent; - border-color: #363636; - box-shadow: none; - color: #363636; + background-color: transparent; + border-color: #363636; + box-shadow: none; + color: #363636; } .button.is-dark { - background-color: #363636; - border-color: transparent; - color: #f5f5f5; + background-color: #363636; + border-color: transparent; + color: #f5f5f5; } .button.is-dark:hover, .button.is-dark.is-hovered { - background-color: #2f2f2f; - border-color: transparent; - color: #f5f5f5; + background-color: #2f2f2f; + border-color: transparent; + color: #f5f5f5; } .button.is-dark:focus, .button.is-dark.is-focused { - border-color: transparent; - color: #f5f5f5; + border-color: transparent; + color: #f5f5f5; } .button.is-dark:focus:not(:active), .button.is-dark.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); + box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); } .button.is-dark:active, .button.is-dark.is-active { - background-color: #292929; - border-color: transparent; - color: #f5f5f5; + background-color: #292929; + border-color: transparent; + color: #f5f5f5; } .button.is-dark[disabled], fieldset[disabled] .button.is-dark { - background-color: #363636; - border-color: transparent; - box-shadow: none; + background-color: #363636; + border-color: transparent; + box-shadow: none; } .button.is-dark.is-inverted { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .button.is-dark.is-inverted:hover, .button.is-dark.is-inverted.is-hovered { - background-color: #e8e8e8; + background-color: #e8e8e8; } .button.is-dark.is-inverted[disabled], fieldset[disabled] .button.is-dark.is-inverted { - background-color: #f5f5f5; - border-color: transparent; - box-shadow: none; - color: #363636; + background-color: #f5f5f5; + border-color: transparent; + box-shadow: none; + color: #363636; } .button.is-dark.is-loading::after { - border-color: transparent transparent #f5f5f5 #f5f5f5 !important; + border-color: transparent transparent #f5f5f5 #f5f5f5 !important; } .button.is-dark.is-outlined { - background-color: transparent; - border-color: #363636; - color: #363636; + background-color: transparent; + border-color: #363636; + color: #363636; } .button.is-dark.is-outlined:hover, .button.is-dark.is-outlined.is-hovered, .button.is-dark.is-outlined:focus, .button.is-dark.is-outlined.is-focused { - background-color: #363636; - border-color: #363636; - color: #f5f5f5; + background-color: #363636; + border-color: #363636; + color: #f5f5f5; } .button.is-dark.is-outlined.is-loading::after { - border-color: transparent transparent #363636 #363636 !important; + border-color: transparent transparent #363636 #363636 !important; } .button.is-dark.is-outlined.is-loading:hover::after, .button.is-dark.is-outlined.is-loading.is-hovered::after, .button.is-dark.is-outlined.is-loading:focus::after, .button.is-dark.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #f5f5f5 #f5f5f5 !important; + border-color: transparent transparent #f5f5f5 #f5f5f5 !important; } .button.is-dark.is-outlined[disabled], fieldset[disabled] .button.is-dark.is-outlined { - background-color: transparent; - border-color: #363636; - box-shadow: none; - color: #363636; + background-color: transparent; + border-color: #363636; + box-shadow: none; + color: #363636; } .button.is-dark.is-inverted.is-outlined { - background-color: transparent; - border-color: #f5f5f5; - color: #f5f5f5; + background-color: transparent; + border-color: #f5f5f5; + color: #f5f5f5; } .button.is-dark.is-inverted.is-outlined:hover, .button.is-dark.is-inverted.is-outlined.is-hovered, .button.is-dark.is-inverted.is-outlined:focus, .button.is-dark.is-inverted.is-outlined.is-focused { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .button.is-dark.is-inverted.is-outlined.is-loading:hover::after, .button.is-dark.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-dark.is-inverted.is-outlined.is-loading:focus::after, .button.is-dark.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #363636 #363636 !important; + border-color: transparent transparent #363636 #363636 !important; } .button.is-dark.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-dark.is-inverted.is-outlined { - background-color: transparent; - border-color: #f5f5f5; - box-shadow: none; - color: #f5f5f5; + background-color: transparent; + border-color: #f5f5f5; + box-shadow: none; + color: #f5f5f5; } .button.is-primary { - background-color: #00d1b2; - border-color: transparent; - color: #fff; + background-color: #00d1b2; + border-color: transparent; + color: #fff; } .button.is-primary:hover, .button.is-primary.is-hovered { - background-color: #00c4a7; - border-color: transparent; - color: #fff; + background-color: #00c4a7; + border-color: transparent; + color: #fff; } .button.is-primary:focus, .button.is-primary.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-primary:focus:not(:active), .button.is-primary.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); + box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); } .button.is-primary:active, .button.is-primary.is-active { - background-color: #00b89c; - border-color: transparent; - color: #fff; + background-color: #00b89c; + border-color: transparent; + color: #fff; } .button.is-primary[disabled], fieldset[disabled] .button.is-primary { - background-color: #00d1b2; - border-color: transparent; - box-shadow: none; + background-color: #00d1b2; + border-color: transparent; + box-shadow: none; } .button.is-primary.is-inverted { - background-color: #fff; - color: #00d1b2; + background-color: #fff; + color: #00d1b2; } .button.is-primary.is-inverted:hover, .button.is-primary.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-primary.is-inverted[disabled], fieldset[disabled] .button.is-primary.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #00d1b2; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #00d1b2; } .button.is-primary.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-primary.is-outlined { - background-color: transparent; - border-color: #00d1b2; - color: #00d1b2; + background-color: transparent; + border-color: #00d1b2; + color: #00d1b2; } .button.is-primary.is-outlined:hover, .button.is-primary.is-outlined.is-hovered, .button.is-primary.is-outlined:focus, .button.is-primary.is-outlined.is-focused { - background-color: #00d1b2; - border-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + border-color: #00d1b2; + color: #fff; } .button.is-primary.is-outlined.is-loading::after { - border-color: transparent transparent #00d1b2 #00d1b2 !important; + border-color: transparent transparent #00d1b2 #00d1b2 !important; } .button.is-primary.is-outlined.is-loading:hover::after, .button.is-primary.is-outlined.is-loading.is-hovered::after, .button.is-primary.is-outlined.is-loading:focus::after, .button.is-primary.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-primary.is-outlined[disabled], fieldset[disabled] .button.is-primary.is-outlined { - background-color: transparent; - border-color: #00d1b2; - box-shadow: none; - color: #00d1b2; + background-color: transparent; + border-color: #00d1b2; + box-shadow: none; + color: #00d1b2; } .button.is-primary.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-primary.is-inverted.is-outlined:hover, .button.is-primary.is-inverted.is-outlined.is-hovered, .button.is-primary.is-inverted.is-outlined:focus, .button.is-primary.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #00d1b2; + background-color: #fff; + color: #00d1b2; } .button.is-primary.is-inverted.is-outlined.is-loading:hover::after, .button.is-primary.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-primary.is-inverted.is-outlined.is-loading:focus::after, .button.is-primary.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #00d1b2 #00d1b2 !important; + border-color: transparent transparent #00d1b2 #00d1b2 !important; } .button.is-primary.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-primary.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-link { - background-color: #3273dc; - border-color: transparent; - color: #fff; + background-color: #3273dc; + border-color: transparent; + color: #fff; } .button.is-link:hover, .button.is-link.is-hovered { - background-color: #276cda; - border-color: transparent; - color: #fff; + background-color: #276cda; + border-color: transparent; + color: #fff; } .button.is-link:focus, .button.is-link.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-link:focus:not(:active), .button.is-link.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); + box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); } .button.is-link:active, .button.is-link.is-active { - background-color: #2366d1; - border-color: transparent; - color: #fff; + background-color: #2366d1; + border-color: transparent; + color: #fff; } .button.is-link[disabled], fieldset[disabled] .button.is-link { - background-color: #3273dc; - border-color: transparent; - box-shadow: none; + background-color: #3273dc; + border-color: transparent; + box-shadow: none; } .button.is-link.is-inverted { - background-color: #fff; - color: #3273dc; + background-color: #fff; + color: #3273dc; } .button.is-link.is-inverted:hover, .button.is-link.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-link.is-inverted[disabled], fieldset[disabled] .button.is-link.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #3273dc; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #3273dc; } .button.is-link.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-link.is-outlined { - background-color: transparent; - border-color: #3273dc; - color: #3273dc; + background-color: transparent; + border-color: #3273dc; + color: #3273dc; } .button.is-link.is-outlined:hover, .button.is-link.is-outlined.is-hovered, .button.is-link.is-outlined:focus, .button.is-link.is-outlined.is-focused { - background-color: #3273dc; - border-color: #3273dc; - color: #fff; + background-color: #3273dc; + border-color: #3273dc; + color: #fff; } .button.is-link.is-outlined.is-loading::after { - border-color: transparent transparent #3273dc #3273dc !important; + border-color: transparent transparent #3273dc #3273dc !important; } .button.is-link.is-outlined.is-loading:hover::after, .button.is-link.is-outlined.is-loading.is-hovered::after, .button.is-link.is-outlined.is-loading:focus::after, .button.is-link.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-link.is-outlined[disabled], fieldset[disabled] .button.is-link.is-outlined { - background-color: transparent; - border-color: #3273dc; - box-shadow: none; - color: #3273dc; + background-color: transparent; + border-color: #3273dc; + box-shadow: none; + color: #3273dc; } .button.is-link.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-link.is-inverted.is-outlined:hover, .button.is-link.is-inverted.is-outlined.is-hovered, .button.is-link.is-inverted.is-outlined:focus, .button.is-link.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #3273dc; + background-color: #fff; + color: #3273dc; } .button.is-link.is-inverted.is-outlined.is-loading:hover::after, .button.is-link.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-link.is-inverted.is-outlined.is-loading:focus::after, .button.is-link.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #3273dc #3273dc !important; + border-color: transparent transparent #3273dc #3273dc !important; } .button.is-link.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-link.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-info { - background-color: #209cee; - border-color: transparent; - color: #fff; + background-color: #209cee; + border-color: transparent; + color: #fff; } .button.is-info:hover, .button.is-info.is-hovered { - background-color: #1496ed; - border-color: transparent; - color: #fff; + background-color: #1496ed; + border-color: transparent; + color: #fff; } .button.is-info:focus, .button.is-info.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-info:focus:not(:active), .button.is-info.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); + box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); } .button.is-info:active, .button.is-info.is-active { - background-color: #118fe4; - border-color: transparent; - color: #fff; + background-color: #118fe4; + border-color: transparent; + color: #fff; } .button.is-info[disabled], fieldset[disabled] .button.is-info { - background-color: #209cee; - border-color: transparent; - box-shadow: none; + background-color: #209cee; + border-color: transparent; + box-shadow: none; } .button.is-info.is-inverted { - background-color: #fff; - color: #209cee; + background-color: #fff; + color: #209cee; } .button.is-info.is-inverted:hover, .button.is-info.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-info.is-inverted[disabled], fieldset[disabled] .button.is-info.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #209cee; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #209cee; } .button.is-info.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-info.is-outlined { - background-color: transparent; - border-color: #209cee; - color: #209cee; + background-color: transparent; + border-color: #209cee; + color: #209cee; } .button.is-info.is-outlined:hover, .button.is-info.is-outlined.is-hovered, .button.is-info.is-outlined:focus, .button.is-info.is-outlined.is-focused { - background-color: #209cee; - border-color: #209cee; - color: #fff; + background-color: #209cee; + border-color: #209cee; + color: #fff; } .button.is-info.is-outlined.is-loading::after { - border-color: transparent transparent #209cee #209cee !important; + border-color: transparent transparent #209cee #209cee !important; } .button.is-info.is-outlined.is-loading:hover::after, .button.is-info.is-outlined.is-loading.is-hovered::after, .button.is-info.is-outlined.is-loading:focus::after, .button.is-info.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-info.is-outlined[disabled], fieldset[disabled] .button.is-info.is-outlined { - background-color: transparent; - border-color: #209cee; - box-shadow: none; - color: #209cee; + background-color: transparent; + border-color: #209cee; + box-shadow: none; + color: #209cee; } .button.is-info.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-info.is-inverted.is-outlined:hover, .button.is-info.is-inverted.is-outlined.is-hovered, .button.is-info.is-inverted.is-outlined:focus, .button.is-info.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #209cee; + background-color: #fff; + color: #209cee; } .button.is-info.is-inverted.is-outlined.is-loading:hover::after, .button.is-info.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-info.is-inverted.is-outlined.is-loading:focus::after, .button.is-info.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #209cee #209cee !important; + border-color: transparent transparent #209cee #209cee !important; } .button.is-info.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-info.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-success { - background-color: #23d160; - border-color: transparent; - color: #fff; + background-color: #23d160; + border-color: transparent; + color: #fff; } .button.is-success:hover, .button.is-success.is-hovered { - background-color: #22c65b; - border-color: transparent; - color: #fff; + background-color: #22c65b; + border-color: transparent; + color: #fff; } .button.is-success:focus, .button.is-success.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-success:focus:not(:active), .button.is-success.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); } .button.is-success:active, .button.is-success.is-active { - background-color: #20bc56; - border-color: transparent; - color: #fff; + background-color: #20bc56; + border-color: transparent; + color: #fff; } .button.is-success[disabled], fieldset[disabled] .button.is-success { - background-color: #23d160; - border-color: transparent; - box-shadow: none; + background-color: #23d160; + border-color: transparent; + box-shadow: none; } .button.is-success.is-inverted { - background-color: #fff; - color: #23d160; + background-color: #fff; + color: #23d160; } .button.is-success.is-inverted:hover, .button.is-success.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-success.is-inverted[disabled], fieldset[disabled] .button.is-success.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #23d160; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #23d160; } .button.is-success.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-success.is-outlined { - background-color: transparent; - border-color: #23d160; - color: #23d160; + background-color: transparent; + border-color: #23d160; + color: #23d160; } .button.is-success.is-outlined:hover, .button.is-success.is-outlined.is-hovered, .button.is-success.is-outlined:focus, .button.is-success.is-outlined.is-focused { - background-color: #23d160; - border-color: #23d160; - color: #fff; + background-color: #23d160; + border-color: #23d160; + color: #fff; } .button.is-success.is-outlined.is-loading::after { - border-color: transparent transparent #23d160 #23d160 !important; + border-color: transparent transparent #23d160 #23d160 !important; } .button.is-success.is-outlined.is-loading:hover::after, .button.is-success.is-outlined.is-loading.is-hovered::after, .button.is-success.is-outlined.is-loading:focus::after, .button.is-success.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-success.is-outlined[disabled], fieldset[disabled] .button.is-success.is-outlined { - background-color: transparent; - border-color: #23d160; - box-shadow: none; - color: #23d160; + background-color: transparent; + border-color: #23d160; + box-shadow: none; + color: #23d160; } .button.is-success.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-success.is-inverted.is-outlined:hover, .button.is-success.is-inverted.is-outlined.is-hovered, .button.is-success.is-inverted.is-outlined:focus, .button.is-success.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #23d160; + background-color: #fff; + color: #23d160; } .button.is-success.is-inverted.is-outlined.is-loading:hover::after, .button.is-success.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-success.is-inverted.is-outlined.is-loading:focus::after, .button.is-success.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #23d160 #23d160 !important; + border-color: transparent transparent #23d160 #23d160 !important; } .button.is-success.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-success.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-warning { - background-color: #ffdd57; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .button.is-warning:hover, .button.is-warning.is-hovered { - background-color: #ffdb4a; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdb4a; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .button.is-warning:focus, .button.is-warning.is-focused { - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .button.is-warning:focus:not(:active), .button.is-warning.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); } .button.is-warning:active, .button.is-warning.is-active { - background-color: #ffd83d; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffd83d; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .button.is-warning[disabled], fieldset[disabled] .button.is-warning { - background-color: #ffdd57; - border-color: transparent; - box-shadow: none; + background-color: #ffdd57; + border-color: transparent; + box-shadow: none; } .button.is-warning.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; + background-color: rgba(0, 0, 0, 0.7); + color: #ffdd57; } .button.is-warning.is-inverted:hover, .button.is-warning.is-inverted.is-hovered { - background-color: rgba(0, 0, 0, 0.7); + background-color: rgba(0, 0, 0, 0.7); } .button.is-warning.is-inverted[disabled], fieldset[disabled] .button.is-warning.is-inverted { - background-color: rgba(0, 0, 0, 0.7); - border-color: transparent; - box-shadow: none; - color: #ffdd57; + background-color: rgba(0, 0, 0, 0.7); + border-color: transparent; + box-shadow: none; + color: #ffdd57; } .button.is-warning.is-loading::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; + border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; } .button.is-warning.is-outlined { - background-color: transparent; - border-color: #ffdd57; - color: #ffdd57; + background-color: transparent; + border-color: #ffdd57; + color: #ffdd57; } .button.is-warning.is-outlined:hover, .button.is-warning.is-outlined.is-hovered, .button.is-warning.is-outlined:focus, .button.is-warning.is-outlined.is-focused { - background-color: #ffdd57; - border-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + border-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .button.is-warning.is-outlined.is-loading::after { - border-color: transparent transparent #ffdd57 #ffdd57 !important; + border-color: transparent transparent #ffdd57 #ffdd57 !important; } .button.is-warning.is-outlined.is-loading:hover::after, .button.is-warning.is-outlined.is-loading.is-hovered::after, .button.is-warning.is-outlined.is-loading:focus::after, .button.is-warning.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; + border-color: transparent transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) !important; } .button.is-warning.is-outlined[disabled], fieldset[disabled] .button.is-warning.is-outlined { - background-color: transparent; - border-color: #ffdd57; - box-shadow: none; - color: #ffdd57; + background-color: transparent; + border-color: #ffdd57; + box-shadow: none; + color: #ffdd57; } .button.is-warning.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - color: rgba(0, 0, 0, 0.7); + background-color: transparent; + border-color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } .button.is-warning.is-inverted.is-outlined:hover, .button.is-warning.is-inverted.is-outlined.is-hovered, .button.is-warning.is-inverted.is-outlined:focus, .button.is-warning.is-inverted.is-outlined.is-focused { - background-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; + background-color: rgba(0, 0, 0, 0.7); + color: #ffdd57; } .button.is-warning.is-inverted.is-outlined.is-loading:hover::after, .button.is-warning.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-warning.is-inverted.is-outlined.is-loading:focus::after, .button.is-warning.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #ffdd57 #ffdd57 !important; + border-color: transparent transparent #ffdd57 #ffdd57 !important; } .button.is-warning.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-warning.is-inverted.is-outlined { - background-color: transparent; - border-color: rgba(0, 0, 0, 0.7); - box-shadow: none; - color: rgba(0, 0, 0, 0.7); + background-color: transparent; + border-color: rgba(0, 0, 0, 0.7); + box-shadow: none; + color: rgba(0, 0, 0, 0.7); } .button.is-danger { - background-color: #ff3860; - border-color: transparent; - color: #fff; + background-color: #ff3860; + border-color: transparent; + color: #fff; } .button.is-danger:hover, .button.is-danger.is-hovered { - background-color: #ff2b56; - border-color: transparent; - color: #fff; + background-color: #ff2b56; + border-color: transparent; + color: #fff; } .button.is-danger:focus, .button.is-danger.is-focused { - border-color: transparent; - color: #fff; + border-color: transparent; + color: #fff; } .button.is-danger:focus:not(:active), .button.is-danger.is-focused:not(:active) { - box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); } .button.is-danger:active, .button.is-danger.is-active { - background-color: #ff1f4b; - border-color: transparent; - color: #fff; + background-color: #ff1f4b; + border-color: transparent; + color: #fff; } .button.is-danger[disabled], fieldset[disabled] .button.is-danger { - background-color: #ff3860; - border-color: transparent; - box-shadow: none; + background-color: #ff3860; + border-color: transparent; + box-shadow: none; } .button.is-danger.is-inverted { - background-color: #fff; - color: #ff3860; + background-color: #fff; + color: #ff3860; } .button.is-danger.is-inverted:hover, .button.is-danger.is-inverted.is-hovered { - background-color: #f2f2f2; + background-color: #f2f2f2; } .button.is-danger.is-inverted[disabled], fieldset[disabled] .button.is-danger.is-inverted { - background-color: #fff; - border-color: transparent; - box-shadow: none; - color: #ff3860; + background-color: #fff; + border-color: transparent; + box-shadow: none; + color: #ff3860; } .button.is-danger.is-loading::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-danger.is-outlined { - background-color: transparent; - border-color: #ff3860; - color: #ff3860; + background-color: transparent; + border-color: #ff3860; + color: #ff3860; } .button.is-danger.is-outlined:hover, .button.is-danger.is-outlined.is-hovered, .button.is-danger.is-outlined:focus, .button.is-danger.is-outlined.is-focused { - background-color: #ff3860; - border-color: #ff3860; - color: #fff; + background-color: #ff3860; + border-color: #ff3860; + color: #fff; } .button.is-danger.is-outlined.is-loading::after { - border-color: transparent transparent #ff3860 #ff3860 !important; + border-color: transparent transparent #ff3860 #ff3860 !important; } .button.is-danger.is-outlined.is-loading:hover::after, .button.is-danger.is-outlined.is-loading.is-hovered::after, .button.is-danger.is-outlined.is-loading:focus::after, .button.is-danger.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #fff #fff !important; + border-color: transparent transparent #fff #fff !important; } .button.is-danger.is-outlined[disabled], fieldset[disabled] .button.is-danger.is-outlined { - background-color: transparent; - border-color: #ff3860; - box-shadow: none; - color: #ff3860; + background-color: transparent; + border-color: #ff3860; + box-shadow: none; + color: #ff3860; } .button.is-danger.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - color: #fff; + background-color: transparent; + border-color: #fff; + color: #fff; } .button.is-danger.is-inverted.is-outlined:hover, .button.is-danger.is-inverted.is-outlined.is-hovered, .button.is-danger.is-inverted.is-outlined:focus, .button.is-danger.is-inverted.is-outlined.is-focused { - background-color: #fff; - color: #ff3860; + background-color: #fff; + color: #ff3860; } .button.is-danger.is-inverted.is-outlined.is-loading:hover::after, .button.is-danger.is-inverted.is-outlined.is-loading.is-hovered::after, .button.is-danger.is-inverted.is-outlined.is-loading:focus::after, .button.is-danger.is-inverted.is-outlined.is-loading.is-focused::after { - border-color: transparent transparent #ff3860 #ff3860 !important; + border-color: transparent transparent #ff3860 #ff3860 !important; } .button.is-danger.is-inverted.is-outlined[disabled], fieldset[disabled] .button.is-danger.is-inverted.is-outlined { - background-color: transparent; - border-color: #fff; - box-shadow: none; - color: #fff; + background-color: transparent; + border-color: #fff; + box-shadow: none; + color: #fff; } .button.is-small { - border-radius: 2px; - font-size: 0.75rem; + border-radius: 2px; + font-size: 0.75rem; } .button.is-normal { - font-size: 1rem; + font-size: 1rem; } .button.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .button.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .button[disabled], fieldset[disabled] .button { - background-color: #fff; - border-color: #dbdbdb; - box-shadow: none; - opacity: 0.5; + background-color: #fff; + border-color: #dbdbdb; + box-shadow: none; + opacity: 0.5; } .button.is-fullwidth { - display: flex; - width: 100%; + display: flex; + width: 100%; } .button.is-loading { - color: transparent !important; - pointer-events: none; + color: transparent !important; + pointer-events: none; } .button.is-loading::after { - position: absolute; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); - position: absolute !important; + position: absolute; + left: calc(50% - (1em / 2)); + top: calc(50% - (1em / 2)); + position: absolute !important; } .button.is-static { - background-color: #f5f5f5; - border-color: #dbdbdb; - color: #7a7a7a; - box-shadow: none; - pointer-events: none; + background-color: #f5f5f5; + border-color: #dbdbdb; + color: #7a7a7a; + box-shadow: none; + pointer-events: none; } .button.is-rounded { - border-radius: 290486px; - padding-left: 1em; - padding-right: 1em; + border-radius: 290486px; + padding-left: 1em; + padding-right: 1em; } .buttons { - align-items: center; - display: flex; - flex-wrap: wrap; - justify-content: flex-start; + align-items: center; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; } .buttons .button { - margin-bottom: 0.5rem; + margin-bottom: 0.5rem; } .buttons .button:not(:last-child):not(.is-fullwidth) { - margin-right: 0.5rem; + margin-right: 0.5rem; } .buttons:last-child { - margin-bottom: -0.5rem; + margin-bottom: -0.5rem; } .buttons:not(:last-child) { - margin-bottom: 1rem; + margin-bottom: 1rem; } .buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large) { - border-radius: 2px; - font-size: 0.75rem; + border-radius: 2px; + font-size: 0.75rem; } .buttons.are-medium .button:not(.is-small):not(.is-normal):not(.is-large) { - font-size: 1.25rem; + font-size: 1.25rem; } .buttons.are-large .button:not(.is-small):not(.is-normal):not(.is-medium) { - font-size: 1.5rem; + font-size: 1.5rem; } .buttons.has-addons .button:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-left-radius: 0; } .buttons.has-addons .button:not(:last-child) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - margin-right: -1px; + border-bottom-right-radius: 0; + border-top-right-radius: 0; + margin-right: -1px; } .buttons.has-addons .button:last-child { - margin-right: 0; + margin-right: 0; } .buttons.has-addons .button:hover, .buttons.has-addons .button.is-hovered { - z-index: 2; + z-index: 2; } .buttons.has-addons .button:focus, .buttons.has-addons .button.is-focused, .buttons.has-addons .button:active, .buttons.has-addons .button.is-active, .buttons.has-addons .button.is-selected { - z-index: 3; + z-index: 3; } .buttons.has-addons .button:focus:hover, .buttons.has-addons .button.is-focused:hover, .buttons.has-addons .button:active:hover, .buttons.has-addons .button.is-active:hover, .buttons.has-addons .button.is-selected:hover { - z-index: 4; + z-index: 4; } .buttons.has-addons .button.is-expanded { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .buttons.is-centered { - justify-content: center; + justify-content: center; } .buttons.is-centered:not(.has-addons) .button:not(.is-fullwidth) { - margin-left: 0.25rem; - margin-right: 0.25rem; + margin-left: 0.25rem; + margin-right: 0.25rem; } .buttons.is-right { - justify-content: flex-end; + justify-content: flex-end; } .buttons.is-right:not(.has-addons) .button:not(.is-fullwidth) { - margin-left: 0.25rem; - margin-right: 0.25rem; + margin-left: 0.25rem; + margin-right: 0.25rem; } .container { - flex-grow: 1; - margin: 0 auto; - position: relative; - width: auto; + flex-grow: 1; + margin: 0 auto; + position: relative; + width: auto; } @media screen and (min-width: 1024px) { - .container { - max-width: 960px; - } - .container.is-fluid { - margin-left: 32px; - margin-right: 32px; - max-width: none; - } + .container { + max-width: 960px; + } + .container.is-fluid { + margin-left: 32px; + margin-right: 32px; + max-width: none; + } } @media screen and (max-width: 1215px) { - .container.is-widescreen { - max-width: 1152px; - } + .container.is-widescreen { + max-width: 1152px; + } } @media screen and (max-width: 1407px) { - .container.is-fullhd { - max-width: 1344px; - } + .container.is-fullhd { + max-width: 1344px; + } } @media screen and (min-width: 1216px) { - .container { - max-width: 1152px; - } + .container { + max-width: 1152px; + } } @media screen and (min-width: 1408px) { - .container { - max-width: 1344px; - } + .container { + max-width: 1344px; + } } .content li + li { - margin-top: 0.25em; + margin-top: 0.25em; } .content p:not(:last-child), .content dl:not(:last-child), @@ -2734,7 +2734,7 @@ fieldset[disabled] .button { .content blockquote:not(:last-child), .content pre:not(:last-child), .content table:not(:last-child) { - margin-bottom: 1em; + margin-bottom: 1em; } .content h1, .content h2, @@ -2742,183 +2742,183 @@ fieldset[disabled] .button { .content h4, .content h5, .content h6 { - color: #363636; - font-weight: 600; - line-height: 1.125; + color: #363636; + font-weight: 600; + line-height: 1.125; } .content h1 { - font-size: 2em; - margin-bottom: 0.5em; + font-size: 2em; + margin-bottom: 0.5em; } .content h1:not(:first-child) { - margin-top: 1em; + margin-top: 1em; } .content h2 { - font-size: 1.75em; - margin-bottom: 0.5714em; + font-size: 1.75em; + margin-bottom: 0.5714em; } .content h2:not(:first-child) { - margin-top: 1.1428em; + margin-top: 1.1428em; } .content h3 { - font-size: 1.5em; - margin-bottom: 0.6666em; + font-size: 1.5em; + margin-bottom: 0.6666em; } .content h3:not(:first-child) { - margin-top: 1.3333em; + margin-top: 1.3333em; } .content h4 { - font-size: 1.25em; - margin-bottom: 0.8em; + font-size: 1.25em; + margin-bottom: 0.8em; } .content h5 { - font-size: 1.125em; - margin-bottom: 0.8888em; + font-size: 1.125em; + margin-bottom: 0.8888em; } .content h6 { - font-size: 1em; - margin-bottom: 1em; + font-size: 1em; + margin-bottom: 1em; } .content blockquote { - background-color: #f5f5f5; - border-left: 5px solid #dbdbdb; - padding: 1.25em 1.5em; + background-color: #f5f5f5; + border-left: 5px solid #dbdbdb; + padding: 1.25em 1.5em; } .content ol { - list-style-position: outside; - margin-left: 2em; - margin-top: 1em; + list-style-position: outside; + margin-left: 2em; + margin-top: 1em; } .content ol:not([type]) { - list-style-type: decimal; + list-style-type: decimal; } .content ol:not([type]).is-lower-alpha { - list-style-type: lower-alpha; + list-style-type: lower-alpha; } .content ol:not([type]).is-lower-roman { - list-style-type: lower-roman; + list-style-type: lower-roman; } .content ol:not([type]).is-upper-alpha { - list-style-type: upper-alpha; + list-style-type: upper-alpha; } .content ol:not([type]).is-upper-roman { - list-style-type: upper-roman; + list-style-type: upper-roman; } .content ul { - list-style: disc outside; - margin-left: 2em; - margin-top: 1em; + list-style: disc outside; + margin-left: 2em; + margin-top: 1em; } .content ul ul { - list-style-type: circle; - margin-top: 0.5em; + list-style-type: circle; + margin-top: 0.5em; } .content ul ul ul { - list-style-type: square; + list-style-type: square; } .content dd { - margin-left: 2em; + margin-left: 2em; } .content figure { - margin-left: 2em; - margin-right: 2em; - text-align: center; + margin-left: 2em; + margin-right: 2em; + text-align: center; } .content figure:not(:first-child) { - margin-top: 2em; + margin-top: 2em; } .content figure:not(:last-child) { - margin-bottom: 2em; + margin-bottom: 2em; } .content figure img { - display: inline-block; + display: inline-block; } .content figure figcaption { - font-style: italic; + font-style: italic; } .content pre { - -webkit-overflow-scrolling: touch; - overflow-x: auto; - padding: 1.25em 1.5em; - white-space: pre; - word-wrap: normal; + -webkit-overflow-scrolling: touch; + overflow-x: auto; + padding: 1.25em 1.5em; + white-space: pre; + word-wrap: normal; } .content sup, .content sub { - font-size: 75%; + font-size: 75%; } .content table { - width: 100%; + width: 100%; } .content table td, .content table th { - border: 1px solid #dbdbdb; - border-width: 0 0 1px; - padding: 0.5em 0.75em; - vertical-align: top; + border: 1px solid #dbdbdb; + border-width: 0 0 1px; + padding: 0.5em 0.75em; + vertical-align: top; } .content table th { - color: #363636; + color: #363636; } .content table th:not([align]) { - text-align: left; + text-align: left; } .content table thead td, .content table thead th { - border-width: 0 0 2px; - color: #363636; + border-width: 0 0 2px; + color: #363636; } .content table tfoot td, .content table tfoot th { - border-width: 2px 0 0; - color: #363636; + border-width: 2px 0 0; + color: #363636; } .content table tbody tr:last-child td, .content table tbody tr:last-child th { - border-bottom-width: 0; + border-bottom-width: 0; } .content .tabs li + li { - margin-top: 0; + margin-top: 0; } .content.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .content.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .content.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .icon { - align-items: center; - display: inline-flex; - justify-content: center; - height: 1.5rem; - width: 1.5rem; + align-items: center; + display: inline-flex; + justify-content: center; + height: 1.5rem; + width: 1.5rem; } .icon.is-small { - height: 1rem; - width: 1rem; + height: 1rem; + width: 1rem; } .icon.is-medium { - height: 2rem; - width: 2rem; + height: 2rem; + width: 2rem; } .icon.is-large { - height: 3rem; - width: 3rem; + height: 3rem; + width: 3rem; } .image { - display: block; - position: relative; + display: block; + position: relative; } .image img { - display: block; - height: auto; - width: 100%; + display: block; + height: auto; + width: 100%; } .image img.is-rounded { - border-radius: 290486px; + border-radius: 290486px; } .image.is-square img, .image.is-square .has-ratio, @@ -2952,829 +2952,829 @@ fieldset[disabled] .button { .image.is-1by2 .has-ratio, .image.is-1by3 img, .image.is-1by3 .has-ratio { - height: 100%; - width: 100%; + height: 100%; + width: 100%; } .image.is-square, .image.is-1by1 { - padding-top: 100%; + padding-top: 100%; } .image.is-5by4 { - padding-top: 80%; + padding-top: 80%; } .image.is-4by3 { - padding-top: 75%; + padding-top: 75%; } .image.is-3by2 { - padding-top: 66.6666%; + padding-top: 66.6666%; } .image.is-5by3 { - padding-top: 60%; + padding-top: 60%; } .image.is-16by9 { - padding-top: 56.25%; + padding-top: 56.25%; } .image.is-2by1 { - padding-top: 50%; + padding-top: 50%; } .image.is-3by1 { - padding-top: 33.3333%; + padding-top: 33.3333%; } .image.is-4by5 { - padding-top: 125%; + padding-top: 125%; } .image.is-3by4 { - padding-top: 133.3333%; + padding-top: 133.3333%; } .image.is-2by3 { - padding-top: 150%; + padding-top: 150%; } .image.is-3by5 { - padding-top: 166.6666%; + padding-top: 166.6666%; } .image.is-9by16 { - padding-top: 177.7777%; + padding-top: 177.7777%; } .image.is-1by2 { - padding-top: 200%; + padding-top: 200%; } .image.is-1by3 { - padding-top: 300%; + padding-top: 300%; } .image.is-16x16 { - height: 16px; - width: 16px; + height: 16px; + width: 16px; } .image.is-24x24 { - height: 24px; - width: 24px; + height: 24px; + width: 24px; } .image.is-32x32 { - height: 32px; - width: 32px; + height: 32px; + width: 32px; } .image.is-48x48 { - height: 48px; - width: 48px; + height: 48px; + width: 48px; } .image.is-64x64 { - height: 64px; - width: 64px; + height: 64px; + width: 64px; } .image.is-96x96 { - height: 96px; - width: 96px; + height: 96px; + width: 96px; } .image.is-128x128 { - height: 128px; - width: 128px; + height: 128px; + width: 128px; } .notification { - background-color: #f5f5f5; - border-radius: 4px; - padding: 1.25rem 2.5rem 1.25rem 1.5rem; - position: relative; + background-color: #f5f5f5; + border-radius: 4px; + padding: 1.25rem 2.5rem 1.25rem 1.5rem; + position: relative; } .notification a:not(.button):not(.dropdown-item) { - color: currentColor; - text-decoration: underline; + color: currentColor; + text-decoration: underline; } .notification strong { - color: currentColor; + color: currentColor; } .notification code, .notification pre { - background: #fff; + background: #fff; } .notification pre code { - background: transparent; + background: transparent; } .notification > .delete { - position: absolute; - right: 0.5rem; - top: 0.5rem; + position: absolute; + right: 0.5rem; + top: 0.5rem; } .notification .title, .notification .subtitle, .notification .content { - color: currentColor; + color: currentColor; } .notification.is-white { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .notification.is-black { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .notification.is-light { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .notification.is-dark { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .notification.is-primary { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .notification.is-link { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .notification.is-info { - background-color: #209cee; - color: #fff; + background-color: #209cee; + color: #fff; } .notification.is-success { - background-color: #23d160; - color: #fff; + background-color: #23d160; + color: #fff; } .notification.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .notification.is-danger { - background-color: #ff3860; - color: #fff; + background-color: #ff3860; + color: #fff; } .progress { - -moz-appearance: none; - -webkit-appearance: none; - border: none; - border-radius: 290486px; - display: block; - height: 1rem; - overflow: hidden; - padding: 0; - width: 100%; + -moz-appearance: none; + -webkit-appearance: none; + border: none; + border-radius: 290486px; + display: block; + height: 1rem; + overflow: hidden; + padding: 0; + width: 100%; } .progress::-webkit-progress-bar { - background-color: #dbdbdb; + background-color: #dbdbdb; } .progress::-webkit-progress-value { - background-color: #4a4a4a; + background-color: #4a4a4a; } .progress::-moz-progress-bar { - background-color: #4a4a4a; + background-color: #4a4a4a; } .progress::-ms-fill { - background-color: #4a4a4a; - border: none; + background-color: #4a4a4a; + border: none; } .progress.is-white::-webkit-progress-value { - background-color: #fff; + background-color: #fff; } .progress.is-white::-moz-progress-bar { - background-color: #fff; + background-color: #fff; } .progress.is-white::-ms-fill { - background-color: #fff; + background-color: #fff; } .progress.is-white:indeterminate { - background-image: linear-gradient(to right, #fff 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #fff 30%, #dbdbdb 30%); } .progress.is-black::-webkit-progress-value { - background-color: #0a0a0a; + background-color: #0a0a0a; } .progress.is-black::-moz-progress-bar { - background-color: #0a0a0a; + background-color: #0a0a0a; } .progress.is-black::-ms-fill { - background-color: #0a0a0a; + background-color: #0a0a0a; } .progress.is-black:indeterminate { - background-image: linear-gradient(to right, #0a0a0a 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #0a0a0a 30%, #dbdbdb 30%); } .progress.is-light::-webkit-progress-value { - background-color: #f5f5f5; + background-color: #f5f5f5; } .progress.is-light::-moz-progress-bar { - background-color: #f5f5f5; + background-color: #f5f5f5; } .progress.is-light::-ms-fill { - background-color: #f5f5f5; + background-color: #f5f5f5; } .progress.is-light:indeterminate { - background-image: linear-gradient(to right, #f5f5f5 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #f5f5f5 30%, #dbdbdb 30%); } .progress.is-dark::-webkit-progress-value { - background-color: #363636; + background-color: #363636; } .progress.is-dark::-moz-progress-bar { - background-color: #363636; + background-color: #363636; } .progress.is-dark::-ms-fill { - background-color: #363636; + background-color: #363636; } .progress.is-dark:indeterminate { - background-image: linear-gradient(to right, #363636 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #363636 30%, #dbdbdb 30%); } .progress.is-primary::-webkit-progress-value { - background-color: #00d1b2; + background-color: #00d1b2; } .progress.is-primary::-moz-progress-bar { - background-color: #00d1b2; + background-color: #00d1b2; } .progress.is-primary::-ms-fill { - background-color: #00d1b2; + background-color: #00d1b2; } .progress.is-primary:indeterminate { - background-image: linear-gradient(to right, #00d1b2 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #00d1b2 30%, #dbdbdb 30%); } .progress.is-link::-webkit-progress-value { - background-color: #3273dc; + background-color: #3273dc; } .progress.is-link::-moz-progress-bar { - background-color: #3273dc; + background-color: #3273dc; } .progress.is-link::-ms-fill { - background-color: #3273dc; + background-color: #3273dc; } .progress.is-link:indeterminate { - background-image: linear-gradient(to right, #3273dc 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #3273dc 30%, #dbdbdb 30%); } .progress.is-info::-webkit-progress-value { - background-color: #209cee; + background-color: #209cee; } .progress.is-info::-moz-progress-bar { - background-color: #209cee; + background-color: #209cee; } .progress.is-info::-ms-fill { - background-color: #209cee; + background-color: #209cee; } .progress.is-info:indeterminate { - background-image: linear-gradient(to right, #209cee 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #209cee 30%, #dbdbdb 30%); } .progress.is-success::-webkit-progress-value { - background-color: #23d160; + background-color: #23d160; } .progress.is-success::-moz-progress-bar { - background-color: #23d160; + background-color: #23d160; } .progress.is-success::-ms-fill { - background-color: #23d160; + background-color: #23d160; } .progress.is-success:indeterminate { - background-image: linear-gradient(to right, #23d160 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #23d160 30%, #dbdbdb 30%); } .progress.is-warning::-webkit-progress-value { - background-color: #ffdd57; + background-color: #ffdd57; } .progress.is-warning::-moz-progress-bar { - background-color: #ffdd57; + background-color: #ffdd57; } .progress.is-warning::-ms-fill { - background-color: #ffdd57; + background-color: #ffdd57; } .progress.is-warning:indeterminate { - background-image: linear-gradient(to right, #ffdd57 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #ffdd57 30%, #dbdbdb 30%); } .progress.is-danger::-webkit-progress-value { - background-color: #ff3860; + background-color: #ff3860; } .progress.is-danger::-moz-progress-bar { - background-color: #ff3860; + background-color: #ff3860; } .progress.is-danger::-ms-fill { - background-color: #ff3860; + background-color: #ff3860; } .progress.is-danger:indeterminate { - background-image: linear-gradient(to right, #ff3860 30%, #dbdbdb 30%); + background-image: linear-gradient(to right, #ff3860 30%, #dbdbdb 30%); } .progress:indeterminate { - -webkit-animation-duration: 1.5s; - animation-duration: 1.5s; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - -webkit-animation-name: moveIndeterminate; - animation-name: moveIndeterminate; - -webkit-animation-timing-function: linear; - animation-timing-function: linear; - background-color: #dbdbdb; - background-image: linear-gradient(to right, #4a4a4a 30%, #dbdbdb 30%); - background-position: top left; - background-repeat: no-repeat; - background-size: 150% 150%; + -webkit-animation-duration: 1.5s; + animation-duration: 1.5s; + -webkit-animation-iteration-count: infinite; + animation-iteration-count: infinite; + -webkit-animation-name: moveIndeterminate; + animation-name: moveIndeterminate; + -webkit-animation-timing-function: linear; + animation-timing-function: linear; + background-color: #dbdbdb; + background-image: linear-gradient(to right, #4a4a4a 30%, #dbdbdb 30%); + background-position: top left; + background-repeat: no-repeat; + background-size: 150% 150%; } .progress:indeterminate::-webkit-progress-bar { - background-color: transparent; + background-color: transparent; } .progress:indeterminate::-moz-progress-bar { - background-color: transparent; + background-color: transparent; } .progress.is-small { - height: 0.75rem; + height: 0.75rem; } .progress.is-medium { - height: 1.25rem; + height: 1.25rem; } .progress.is-large { - height: 1.5rem; + height: 1.5rem; } @-webkit-keyframes moveIndeterminate { - from { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } + from { + background-position: 200% 0; + } + to { + background-position: -200% 0; + } } @keyframes moveIndeterminate { - from { - background-position: 200% 0; - } - to { - background-position: -200% 0; - } + from { + background-position: 200% 0; + } + to { + background-position: -200% 0; + } } .table { - background-color: #fff; - color: #363636; + background-color: #fff; + color: #363636; } .table td, .table th { - border: 1px solid #dbdbdb; - border-width: 0 0 1px; - padding: 0.5em 0.75em; - vertical-align: top; + border: 1px solid #dbdbdb; + border-width: 0 0 1px; + padding: 0.5em 0.75em; + vertical-align: top; } .table td.is-white, .table th.is-white { - background-color: #fff; - border-color: #fff; - color: #0a0a0a; + background-color: #fff; + border-color: #fff; + color: #0a0a0a; } .table td.is-black, .table th.is-black { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + border-color: #0a0a0a; + color: #fff; } .table td.is-light, .table th.is-light { - background-color: #f5f5f5; - border-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + border-color: #f5f5f5; + color: #363636; } .table td.is-dark, .table th.is-dark { - background-color: #363636; - border-color: #363636; - color: #f5f5f5; + background-color: #363636; + border-color: #363636; + color: #f5f5f5; } .table td.is-primary, .table th.is-primary { - background-color: #00d1b2; - border-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + border-color: #00d1b2; + color: #fff; } .table td.is-link, .table th.is-link { - background-color: #3273dc; - border-color: #3273dc; - color: #fff; + background-color: #3273dc; + border-color: #3273dc; + color: #fff; } .table td.is-info, .table th.is-info { - background-color: #209cee; - border-color: #209cee; - color: #fff; + background-color: #209cee; + border-color: #209cee; + color: #fff; } .table td.is-success, .table th.is-success { - background-color: #23d160; - border-color: #23d160; - color: #fff; + background-color: #23d160; + border-color: #23d160; + color: #fff; } .table td.is-warning, .table th.is-warning { - background-color: #ffdd57; - border-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + border-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .table td.is-danger, .table th.is-danger { - background-color: #ff3860; - border-color: #ff3860; - color: #fff; + background-color: #ff3860; + border-color: #ff3860; + color: #fff; } .table td.is-narrow, .table th.is-narrow { - white-space: nowrap; - width: 1%; + white-space: nowrap; + width: 1%; } .table td.is-selected, .table th.is-selected { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .table td.is-selected a, .table td.is-selected strong, .table th.is-selected a, .table th.is-selected strong { - color: currentColor; + color: currentColor; } .table th { - color: #363636; + color: #363636; } .table th:not([align]) { - text-align: left; + text-align: left; } .table tr.is-selected { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .table tr.is-selected a, .table tr.is-selected strong { - color: currentColor; + color: currentColor; } .table tr.is-selected td, .table tr.is-selected th { - border-color: #fff; - color: currentColor; + border-color: #fff; + color: currentColor; } .table thead { - background-color: rgba(0, 0, 0, 0); + background-color: rgba(0, 0, 0, 0); } .table thead td, .table thead th { - border-width: 0 0 2px; - color: #363636; + border-width: 0 0 2px; + color: #363636; } .table tfoot { - background-color: rgba(0, 0, 0, 0); + background-color: rgba(0, 0, 0, 0); } .table tfoot td, .table tfoot th { - border-width: 2px 0 0; - color: #363636; + border-width: 2px 0 0; + color: #363636; } .table tbody { - background-color: rgba(0, 0, 0, 0); + background-color: rgba(0, 0, 0, 0); } .table tbody tr:last-child td, .table tbody tr:last-child th { - border-bottom-width: 0; + border-bottom-width: 0; } .table.is-bordered td, .table.is-bordered th { - border-width: 1px; + border-width: 1px; } .table.is-bordered tr:last-child td, .table.is-bordered tr:last-child th { - border-bottom-width: 1px; + border-bottom-width: 1px; } .table.is-fullwidth { - width: 100%; + width: 100%; } .table.is-hoverable tbody tr:not(.is-selected):hover { - background-color: #fafafa; + background-color: #fafafa; } .table.is-hoverable.is-striped tbody tr:not(.is-selected):hover { - background-color: #fafafa; + background-color: #fafafa; } .table.is-hoverable.is-striped - tbody - tr:not(.is-selected):hover:nth-child(even) { - background-color: #f5f5f5; + tbody + tr:not(.is-selected):hover:nth-child(even) { + background-color: #f5f5f5; } .table.is-narrow td, .table.is-narrow th { - padding: 0.25em 0.5em; + padding: 0.25em 0.5em; } .table.is-striped tbody tr:not(.is-selected):nth-child(even) { - background-color: #fafafa; + background-color: #fafafa; } .table-container { - -webkit-overflow-scrolling: touch; - overflow: auto; - overflow-y: hidden; - max-width: 100%; + -webkit-overflow-scrolling: touch; + overflow: auto; + overflow-y: hidden; + max-width: 100%; } .tags { - align-items: center; - display: flex; - flex-wrap: wrap; - justify-content: flex-start; + align-items: center; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; } .tags .tag { - margin-bottom: 0.5rem; + margin-bottom: 0.5rem; } .tags .tag:not(:last-child) { - margin-right: 0.5rem; + margin-right: 0.5rem; } .tags:last-child { - margin-bottom: -0.5rem; + margin-bottom: -0.5rem; } .tags:not(:last-child) { - margin-bottom: 1rem; + margin-bottom: 1rem; } .tags.are-medium .tag:not(.is-normal):not(.is-large) { - font-size: 1rem; + font-size: 1rem; } .tags.are-large .tag:not(.is-normal):not(.is-medium) { - font-size: 1.25rem; + font-size: 1.25rem; } .tags.is-centered { - justify-content: center; + justify-content: center; } .tags.is-centered .tag { - margin-right: 0.25rem; - margin-left: 0.25rem; + margin-right: 0.25rem; + margin-left: 0.25rem; } .tags.is-right { - justify-content: flex-end; + justify-content: flex-end; } .tags.is-right .tag:not(:first-child) { - margin-left: 0.5rem; + margin-left: 0.5rem; } .tags.is-right .tag:not(:last-child) { - margin-right: 0; + margin-right: 0; } .tags.has-addons .tag { - margin-right: 0; + margin-right: 0; } .tags.has-addons .tag:not(:first-child) { - margin-left: 0; - border-bottom-left-radius: 0; - border-top-left-radius: 0; + margin-left: 0; + border-bottom-left-radius: 0; + border-top-left-radius: 0; } .tags.has-addons .tag:not(:last-child) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-top-right-radius: 0; } .tag:not(body) { - align-items: center; - background-color: #f5f5f5; - border-radius: 4px; - color: #4a4a4a; - display: inline-flex; - font-size: 0.75rem; - height: 2em; - justify-content: center; - line-height: 1.5; - padding-left: 0.75em; - padding-right: 0.75em; - white-space: nowrap; + align-items: center; + background-color: #f5f5f5; + border-radius: 4px; + color: #4a4a4a; + display: inline-flex; + font-size: 0.75rem; + height: 2em; + justify-content: center; + line-height: 1.5; + padding-left: 0.75em; + padding-right: 0.75em; + white-space: nowrap; } .tag:not(body) .delete { - margin-left: 0.25rem; - margin-right: -0.375rem; + margin-left: 0.25rem; + margin-right: -0.375rem; } .tag:not(body).is-white { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .tag:not(body).is-black { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .tag:not(body).is-light { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .tag:not(body).is-dark { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .tag:not(body).is-primary { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .tag:not(body).is-link { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .tag:not(body).is-info { - background-color: #209cee; - color: #fff; + background-color: #209cee; + color: #fff; } .tag:not(body).is-success { - background-color: #23d160; - color: #fff; + background-color: #23d160; + color: #fff; } .tag:not(body).is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .tag:not(body).is-danger { - background-color: #ff3860; - color: #fff; + background-color: #ff3860; + color: #fff; } .tag:not(body).is-normal { - font-size: 0.75rem; + font-size: 0.75rem; } .tag:not(body).is-medium { - font-size: 1rem; + font-size: 1rem; } .tag:not(body).is-large { - font-size: 1.25rem; + font-size: 1.25rem; } .tag:not(body) .icon:first-child:not(:last-child) { - margin-left: -0.375em; - margin-right: 0.1875em; + margin-left: -0.375em; + margin-right: 0.1875em; } .tag:not(body) .icon:last-child:not(:first-child) { - margin-left: 0.1875em; - margin-right: -0.375em; + margin-left: 0.1875em; + margin-right: -0.375em; } .tag:not(body) .icon:first-child:last-child { - margin-left: -0.375em; - margin-right: -0.375em; + margin-left: -0.375em; + margin-right: -0.375em; } .tag:not(body).is-delete { - margin-left: 1px; - padding: 0; - position: relative; - width: 2em; + margin-left: 1px; + padding: 0; + position: relative; + width: 2em; } .tag:not(body).is-delete::before, .tag:not(body).is-delete::after { - background-color: currentColor; - content: ""; - display: block; - left: 50%; - position: absolute; - top: 50%; - -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); - transform: translateX(-50%) translateY(-50%) rotate(45deg); - -webkit-transform-origin: center center; - transform-origin: center center; + background-color: currentColor; + content: ''; + display: block; + left: 50%; + position: absolute; + top: 50%; + -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg); + transform: translateX(-50%) translateY(-50%) rotate(45deg); + -webkit-transform-origin: center center; + transform-origin: center center; } .tag:not(body).is-delete::before { - height: 1px; - width: 50%; + height: 1px; + width: 50%; } .tag:not(body).is-delete::after { - height: 50%; - width: 1px; + height: 50%; + width: 1px; } .tag:not(body).is-delete:hover, .tag:not(body).is-delete:focus { - background-color: #e8e8e8; + background-color: #e8e8e8; } .tag:not(body).is-delete:active { - background-color: #dbdbdb; + background-color: #dbdbdb; } .tag:not(body).is-rounded { - border-radius: 290486px; + border-radius: 290486px; } a.tag:hover { - text-decoration: underline; + text-decoration: underline; } .title, .subtitle { - word-break: break-word; + word-break: break-word; } .title em, .title span, .subtitle em, .subtitle span { - font-weight: inherit; + font-weight: inherit; } .title sub, .subtitle sub { - font-size: 0.75em; + font-size: 0.75em; } .title sup, .subtitle sup { - font-size: 0.75em; + font-size: 0.75em; } .title .tag, .subtitle .tag { - vertical-align: middle; + vertical-align: middle; } .title { - color: #363636; - font-size: 2rem; - font-weight: 600; - line-height: 1.125; + color: #363636; + font-size: 2rem; + font-weight: 600; + line-height: 1.125; } .title strong { - color: inherit; - font-weight: inherit; + color: inherit; + font-weight: inherit; } .title + .highlight { - margin-top: -0.75rem; + margin-top: -0.75rem; } .title:not(.is-spaced) + .subtitle { - margin-top: -1.25rem; + margin-top: -1.25rem; } .title.is-1 { - font-size: 3rem; + font-size: 3rem; } .title.is-2 { - font-size: 2.5rem; + font-size: 2.5rem; } .title.is-3 { - font-size: 2rem; + font-size: 2rem; } .title.is-4 { - font-size: 1.5rem; + font-size: 1.5rem; } .title.is-5 { - font-size: 1.25rem; + font-size: 1.25rem; } .title.is-6 { - font-size: 1rem; + font-size: 1rem; } .title.is-7 { - font-size: 0.75rem; + font-size: 0.75rem; } .subtitle { - color: #4a4a4a; - font-size: 1.25rem; - font-weight: 400; - line-height: 1.25; + color: #4a4a4a; + font-size: 1.25rem; + font-weight: 400; + line-height: 1.25; } .subtitle strong { - color: #363636; - font-weight: 600; + color: #363636; + font-weight: 600; } .subtitle:not(.is-spaced) + .title { - margin-top: -1.25rem; + margin-top: -1.25rem; } .subtitle.is-1 { - font-size: 3rem; + font-size: 3rem; } .subtitle.is-2 { - font-size: 2.5rem; + font-size: 2.5rem; } .subtitle.is-3 { - font-size: 2rem; + font-size: 2rem; } .subtitle.is-4 { - font-size: 1.5rem; + font-size: 1.5rem; } .subtitle.is-5 { - font-size: 1.25rem; + font-size: 1.25rem; } .subtitle.is-6 { - font-size: 1rem; + font-size: 1rem; } .subtitle.is-7 { - font-size: 0.75rem; + font-size: 0.75rem; } .heading { - display: block; - font-size: 11px; - letter-spacing: 1px; - margin-bottom: 5px; - text-transform: uppercase; + display: block; + font-size: 11px; + letter-spacing: 1px; + margin-bottom: 5px; + text-transform: uppercase; } .highlight { - font-weight: 400; - max-width: 100%; - overflow: hidden; - padding: 0; + font-weight: 400; + max-width: 100%; + overflow: hidden; + padding: 0; } .highlight pre { - overflow: auto; - max-width: 100%; + overflow: auto; + max-width: 100%; } .number { - align-items: center; - background-color: #f5f5f5; - border-radius: 290486px; - display: inline-flex; - font-size: 1.25rem; - height: 2em; - justify-content: center; - margin-right: 1.5rem; - min-width: 2.5em; - padding: 0.25rem 0.5rem; - text-align: center; - vertical-align: top; + align-items: center; + background-color: #f5f5f5; + border-radius: 290486px; + display: inline-flex; + font-size: 1.25rem; + height: 2em; + justify-content: center; + margin-right: 1.5rem; + min-width: 2.5em; + padding: 0.25rem 0.5rem; + text-align: center; + vertical-align: top; } .input, .textarea, .select select { - background-color: #fff; - border-color: #dbdbdb; - border-radius: 4px; - color: #363636; + background-color: #fff; + border-color: #dbdbdb; + border-radius: 4px; + color: #363636; } .input::-moz-placeholder, .textarea::-moz-placeholder, .select select::-moz-placeholder { - color: rgba(54, 54, 54, 0.3); + color: rgba(54, 54, 54, 0.3); } .input::-webkit-input-placeholder, .textarea::-webkit-input-placeholder, .select select::-webkit-input-placeholder { - color: rgba(54, 54, 54, 0.3); + color: rgba(54, 54, 54, 0.3); } .input:-moz-placeholder, .textarea:-moz-placeholder, .select select:-moz-placeholder { - color: rgba(54, 54, 54, 0.3); + color: rgba(54, 54, 54, 0.3); } .input:-ms-input-placeholder, .textarea:-ms-input-placeholder, .select select:-ms-input-placeholder { - color: rgba(54, 54, 54, 0.3); + color: rgba(54, 54, 54, 0.3); } .input:hover, .textarea:hover, @@ -3782,7 +3782,7 @@ a.tag:hover { .is-hovered.input, .is-hovered.textarea, .select select.is-hovered { - border-color: #b5b5b5; + border-color: #b5b5b5; } .input:focus, .textarea:focus, @@ -3796,8 +3796,8 @@ a.tag:hover { .is-active.input, .is-active.textarea, .select select.is-active { - border-color: #3273dc; - box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); + border-color: #3273dc; + box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); } .input[disabled], .textarea[disabled], @@ -3806,10 +3806,10 @@ fieldset[disabled] .input, fieldset[disabled] .textarea, fieldset[disabled] .select select, .select fieldset[disabled] select { - background-color: #f5f5f5; - border-color: #f5f5f5; - box-shadow: none; - color: #7a7a7a; + background-color: #f5f5f5; + border-color: #f5f5f5; + box-shadow: none; + color: #7a7a7a; } .input[disabled]::-moz-placeholder, .textarea[disabled]::-moz-placeholder, @@ -3818,7 +3818,7 @@ fieldset[disabled] .input::-moz-placeholder, fieldset[disabled] .textarea::-moz-placeholder, fieldset[disabled] .select select::-moz-placeholder, .select fieldset[disabled] select::-moz-placeholder { - color: rgba(122, 122, 122, 0.3); + color: rgba(122, 122, 122, 0.3); } .input[disabled]::-webkit-input-placeholder, .textarea[disabled]::-webkit-input-placeholder, @@ -3827,7 +3827,7 @@ fieldset[disabled] .input::-webkit-input-placeholder, fieldset[disabled] .textarea::-webkit-input-placeholder, fieldset[disabled] .select select::-webkit-input-placeholder, .select fieldset[disabled] select::-webkit-input-placeholder { - color: rgba(122, 122, 122, 0.3); + color: rgba(122, 122, 122, 0.3); } .input[disabled]:-moz-placeholder, .textarea[disabled]:-moz-placeholder, @@ -3836,7 +3836,7 @@ fieldset[disabled] .input:-moz-placeholder, fieldset[disabled] .textarea:-moz-placeholder, fieldset[disabled] .select select:-moz-placeholder, .select fieldset[disabled] select:-moz-placeholder { - color: rgba(122, 122, 122, 0.3); + color: rgba(122, 122, 122, 0.3); } .input[disabled]:-ms-input-placeholder, .textarea[disabled]:-ms-input-placeholder, @@ -3845,21 +3845,21 @@ fieldset[disabled] .input:-ms-input-placeholder, fieldset[disabled] .textarea:-ms-input-placeholder, fieldset[disabled] .select select:-ms-input-placeholder, .select fieldset[disabled] select:-ms-input-placeholder { - color: rgba(122, 122, 122, 0.3); + color: rgba(122, 122, 122, 0.3); } .input, .textarea { - box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1); - max-width: 100%; - width: 100%; + box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1); + max-width: 100%; + width: 100%; } .input[readonly], .textarea[readonly] { - box-shadow: none; + box-shadow: none; } .is-white.input, .is-white.textarea { - border-color: #fff; + border-color: #fff; } .is-white.input:focus, .is-white.textarea:focus, @@ -3869,11 +3869,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-white.textarea:active, .is-white.is-active.input, .is-white.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); } .is-black.input, .is-black.textarea { - border-color: #0a0a0a; + border-color: #0a0a0a; } .is-black.input:focus, .is-black.textarea:focus, @@ -3883,11 +3883,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-black.textarea:active, .is-black.is-active.input, .is-black.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); + box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); } .is-light.input, .is-light.textarea { - border-color: #f5f5f5; + border-color: #f5f5f5; } .is-light.input:focus, .is-light.textarea:focus, @@ -3897,11 +3897,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-light.textarea:active, .is-light.is-active.input, .is-light.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); + box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); } .is-dark.input, .is-dark.textarea { - border-color: #363636; + border-color: #363636; } .is-dark.input:focus, .is-dark.textarea:focus, @@ -3911,11 +3911,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-dark.textarea:active, .is-dark.is-active.input, .is-dark.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); + box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); } .is-primary.input, .is-primary.textarea { - border-color: #00d1b2; + border-color: #00d1b2; } .is-primary.input:focus, .is-primary.textarea:focus, @@ -3925,11 +3925,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-primary.textarea:active, .is-primary.is-active.input, .is-primary.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); + box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); } .is-link.input, .is-link.textarea { - border-color: #3273dc; + border-color: #3273dc; } .is-link.input:focus, .is-link.textarea:focus, @@ -3939,11 +3939,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-link.textarea:active, .is-link.is-active.input, .is-link.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); + box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); } .is-info.input, .is-info.textarea { - border-color: #209cee; + border-color: #209cee; } .is-info.input:focus, .is-info.textarea:focus, @@ -3953,11 +3953,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-info.textarea:active, .is-info.is-active.input, .is-info.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); + box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); } .is-success.input, .is-success.textarea { - border-color: #23d160; + border-color: #23d160; } .is-success.input:focus, .is-success.textarea:focus, @@ -3967,11 +3967,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-success.textarea:active, .is-success.is-active.input, .is-success.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); } .is-warning.input, .is-warning.textarea { - border-color: #ffdd57; + border-color: #ffdd57; } .is-warning.input:focus, .is-warning.textarea:focus, @@ -3981,11 +3981,11 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-warning.textarea:active, .is-warning.is-active.input, .is-warning.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); } .is-danger.input, .is-danger.textarea { - border-color: #ff3860; + border-color: #ff3860; } .is-danger.input:focus, .is-danger.textarea:focus, @@ -3995,790 +3995,790 @@ fieldset[disabled] .select select:-ms-input-placeholder, .is-danger.textarea:active, .is-danger.is-active.input, .is-danger.is-active.textarea { - box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); } .is-small.input, .is-small.textarea { - border-radius: 2px; - font-size: 0.75rem; + border-radius: 2px; + font-size: 0.75rem; } .is-medium.input, .is-medium.textarea { - font-size: 1.25rem; + font-size: 1.25rem; } .is-large.input, .is-large.textarea { - font-size: 1.5rem; + font-size: 1.5rem; } .is-fullwidth.input, .is-fullwidth.textarea { - display: block; - width: 100%; + display: block; + width: 100%; } .is-inline.input, .is-inline.textarea { - display: inline; - width: auto; + display: inline; + width: auto; } .input.is-rounded { - border-radius: 290486px; - padding-left: 1em; - padding-right: 1em; + border-radius: 290486px; + padding-left: 1em; + padding-right: 1em; } .input.is-static { - background-color: transparent; - border-color: transparent; - box-shadow: none; - padding-left: 0; - padding-right: 0; + background-color: transparent; + border-color: transparent; + box-shadow: none; + padding-left: 0; + padding-right: 0; } .textarea { - display: block; - max-width: 100%; - min-width: 100%; - padding: 0.625em; - resize: vertical; + display: block; + max-width: 100%; + min-width: 100%; + padding: 0.625em; + resize: vertical; } .textarea:not([rows]) { - max-height: 600px; - min-height: 120px; + max-height: 600px; + min-height: 120px; } .textarea[rows] { - height: initial; + height: initial; } .textarea.has-fixed-size { - resize: none; + resize: none; } .checkbox, .radio { - cursor: pointer; - display: inline-block; - line-height: 1.25; - position: relative; + cursor: pointer; + display: inline-block; + line-height: 1.25; + position: relative; } .checkbox input, .radio input { - cursor: pointer; + cursor: pointer; } .checkbox:hover, .radio:hover { - color: #363636; + color: #363636; } .checkbox[disabled], .radio[disabled], fieldset[disabled] .checkbox, fieldset[disabled] .radio { - color: #7a7a7a; - cursor: not-allowed; + color: #7a7a7a; + cursor: not-allowed; } .radio + .radio { - margin-left: 0.5em; + margin-left: 0.5em; } .select { - display: inline-block; - max-width: 100%; - position: relative; - vertical-align: top; + display: inline-block; + max-width: 100%; + position: relative; + vertical-align: top; } .select:not(.is-multiple) { - height: 2.25em; + height: 2.25em; } .select:not(.is-multiple):not(.is-loading)::after { - border-color: #3273dc; - right: 1.125em; - z-index: 4; + border-color: #3273dc; + right: 1.125em; + z-index: 4; } .select.is-rounded select { - border-radius: 290486px; - padding-left: 1em; + border-radius: 290486px; + padding-left: 1em; } .select select { - cursor: pointer; - display: block; - font-size: 1em; - max-width: 100%; - outline: none; + cursor: pointer; + display: block; + font-size: 1em; + max-width: 100%; + outline: none; } .select select::-ms-expand { - display: none; + display: none; } .select select[disabled]:hover, fieldset[disabled] .select select:hover { - border-color: #f5f5f5; + border-color: #f5f5f5; } .select select:not([multiple]) { - padding-right: 2.5em; + padding-right: 2.5em; } .select select[multiple] { - height: auto; - padding: 0; + height: auto; + padding: 0; } .select select[multiple] option { - padding: 0.5em 1em; + padding: 0.5em 1em; } .select:not(.is-multiple):not(.is-loading):hover::after { - border-color: #363636; + border-color: #363636; } .select.is-white:not(:hover)::after { - border-color: #fff; + border-color: #fff; } .select.is-white select { - border-color: #fff; + border-color: #fff; } .select.is-white select:hover, .select.is-white select.is-hovered { - border-color: #f2f2f2; + border-color: #f2f2f2; } .select.is-white select:focus, .select.is-white select.is-focused, .select.is-white select:active, .select.is-white select.is-active { - box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25); } .select.is-black:not(:hover)::after { - border-color: #0a0a0a; + border-color: #0a0a0a; } .select.is-black select { - border-color: #0a0a0a; + border-color: #0a0a0a; } .select.is-black select:hover, .select.is-black select.is-hovered { - border-color: #000; + border-color: #000; } .select.is-black select:focus, .select.is-black select.is-focused, .select.is-black select:active, .select.is-black select.is-active { - box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); + box-shadow: 0 0 0 0.125em rgba(10, 10, 10, 0.25); } .select.is-light:not(:hover)::after { - border-color: #f5f5f5; + border-color: #f5f5f5; } .select.is-light select { - border-color: #f5f5f5; + border-color: #f5f5f5; } .select.is-light select:hover, .select.is-light select.is-hovered { - border-color: #e8e8e8; + border-color: #e8e8e8; } .select.is-light select:focus, .select.is-light select.is-focused, .select.is-light select:active, .select.is-light select.is-active { - box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); + box-shadow: 0 0 0 0.125em rgba(245, 245, 245, 0.25); } .select.is-dark:not(:hover)::after { - border-color: #363636; + border-color: #363636; } .select.is-dark select { - border-color: #363636; + border-color: #363636; } .select.is-dark select:hover, .select.is-dark select.is-hovered { - border-color: #292929; + border-color: #292929; } .select.is-dark select:focus, .select.is-dark select.is-focused, .select.is-dark select:active, .select.is-dark select.is-active { - box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); + box-shadow: 0 0 0 0.125em rgba(54, 54, 54, 0.25); } .select.is-primary:not(:hover)::after { - border-color: #00d1b2; + border-color: #00d1b2; } .select.is-primary select { - border-color: #00d1b2; + border-color: #00d1b2; } .select.is-primary select:hover, .select.is-primary select.is-hovered { - border-color: #00b89c; + border-color: #00b89c; } .select.is-primary select:focus, .select.is-primary select.is-focused, .select.is-primary select:active, .select.is-primary select.is-active { - box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); + box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25); } .select.is-link:not(:hover)::after { - border-color: #3273dc; + border-color: #3273dc; } .select.is-link select { - border-color: #3273dc; + border-color: #3273dc; } .select.is-link select:hover, .select.is-link select.is-hovered { - border-color: #2366d1; + border-color: #2366d1; } .select.is-link select:focus, .select.is-link select.is-focused, .select.is-link select:active, .select.is-link select.is-active { - box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); + box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25); } .select.is-info:not(:hover)::after { - border-color: #209cee; + border-color: #209cee; } .select.is-info select { - border-color: #209cee; + border-color: #209cee; } .select.is-info select:hover, .select.is-info select.is-hovered { - border-color: #118fe4; + border-color: #118fe4; } .select.is-info select:focus, .select.is-info select.is-focused, .select.is-info select:active, .select.is-info select.is-active { - box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); + box-shadow: 0 0 0 0.125em rgba(32, 156, 238, 0.25); } .select.is-success:not(:hover)::after { - border-color: #23d160; + border-color: #23d160; } .select.is-success select { - border-color: #23d160; + border-color: #23d160; } .select.is-success select:hover, .select.is-success select.is-hovered { - border-color: #20bc56; + border-color: #20bc56; } .select.is-success select:focus, .select.is-success select.is-focused, .select.is-success select:active, .select.is-success select.is-active { - box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(35, 209, 96, 0.25); } .select.is-warning:not(:hover)::after { - border-color: #ffdd57; + border-color: #ffdd57; } .select.is-warning select { - border-color: #ffdd57; + border-color: #ffdd57; } .select.is-warning select:hover, .select.is-warning select.is-hovered { - border-color: #ffd83d; + border-color: #ffd83d; } .select.is-warning select:focus, .select.is-warning select.is-focused, .select.is-warning select:active, .select.is-warning select.is-active { - box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 221, 87, 0.25); } .select.is-danger:not(:hover)::after { - border-color: #ff3860; + border-color: #ff3860; } .select.is-danger select { - border-color: #ff3860; + border-color: #ff3860; } .select.is-danger select:hover, .select.is-danger select.is-hovered { - border-color: #ff1f4b; + border-color: #ff1f4b; } .select.is-danger select:focus, .select.is-danger select.is-focused, .select.is-danger select:active, .select.is-danger select.is-active { - box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); + box-shadow: 0 0 0 0.125em rgba(255, 56, 96, 0.25); } .select.is-small { - border-radius: 2px; - font-size: 0.75rem; + border-radius: 2px; + font-size: 0.75rem; } .select.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .select.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .select.is-disabled::after { - border-color: #7a7a7a; + border-color: #7a7a7a; } .select.is-fullwidth { - width: 100%; + width: 100%; } .select.is-fullwidth select { - width: 100%; + width: 100%; } .select.is-loading::after { - margin-top: 0; - position: absolute; - right: 0.625em; - top: 0.625em; - -webkit-transform: none; - transform: none; + margin-top: 0; + position: absolute; + right: 0.625em; + top: 0.625em; + -webkit-transform: none; + transform: none; } .select.is-loading.is-small:after { - font-size: 0.75rem; + font-size: 0.75rem; } .select.is-loading.is-medium:after { - font-size: 1.25rem; + font-size: 1.25rem; } .select.is-loading.is-large:after { - font-size: 1.5rem; + font-size: 1.5rem; } .file { - align-items: stretch; - display: flex; - justify-content: flex-start; - position: relative; + align-items: stretch; + display: flex; + justify-content: flex-start; + position: relative; } .file.is-white .file-cta { - background-color: #fff; - border-color: transparent; - color: #0a0a0a; + background-color: #fff; + border-color: transparent; + color: #0a0a0a; } .file.is-white:hover .file-cta, .file.is-white.is-hovered .file-cta { - background-color: #f9f9f9; - border-color: transparent; - color: #0a0a0a; + background-color: #f9f9f9; + border-color: transparent; + color: #0a0a0a; } .file.is-white:focus .file-cta, .file.is-white.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.25); - color: #0a0a0a; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.25); + color: #0a0a0a; } .file.is-white:active .file-cta, .file.is-white.is-active .file-cta { - background-color: #f2f2f2; - border-color: transparent; - color: #0a0a0a; + background-color: #f2f2f2; + border-color: transparent; + color: #0a0a0a; } .file.is-black .file-cta { - background-color: #0a0a0a; - border-color: transparent; - color: #fff; + background-color: #0a0a0a; + border-color: transparent; + color: #fff; } .file.is-black:hover .file-cta, .file.is-black.is-hovered .file-cta { - background-color: #040404; - border-color: transparent; - color: #fff; + background-color: #040404; + border-color: transparent; + color: #fff; } .file.is-black:focus .file-cta, .file.is-black.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(10, 10, 10, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(10, 10, 10, 0.25); + color: #fff; } .file.is-black:active .file-cta, .file.is-black.is-active .file-cta { - background-color: #000; - border-color: transparent; - color: #fff; + background-color: #000; + border-color: transparent; + color: #fff; } .file.is-light .file-cta { - background-color: #f5f5f5; - border-color: transparent; - color: #363636; + background-color: #f5f5f5; + border-color: transparent; + color: #363636; } .file.is-light:hover .file-cta, .file.is-light.is-hovered .file-cta { - background-color: #eee; - border-color: transparent; - color: #363636; + background-color: #eee; + border-color: transparent; + color: #363636; } .file.is-light:focus .file-cta, .file.is-light.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.25); - color: #363636; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(245, 245, 245, 0.25); + color: #363636; } .file.is-light:active .file-cta, .file.is-light.is-active .file-cta { - background-color: #e8e8e8; - border-color: transparent; - color: #363636; + background-color: #e8e8e8; + border-color: transparent; + color: #363636; } .file.is-dark .file-cta { - background-color: #363636; - border-color: transparent; - color: #f5f5f5; + background-color: #363636; + border-color: transparent; + color: #f5f5f5; } .file.is-dark:hover .file-cta, .file.is-dark.is-hovered .file-cta { - background-color: #2f2f2f; - border-color: transparent; - color: #f5f5f5; + background-color: #2f2f2f; + border-color: transparent; + color: #f5f5f5; } .file.is-dark:focus .file-cta, .file.is-dark.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(54, 54, 54, 0.25); - color: #f5f5f5; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(54, 54, 54, 0.25); + color: #f5f5f5; } .file.is-dark:active .file-cta, .file.is-dark.is-active .file-cta { - background-color: #292929; - border-color: transparent; - color: #f5f5f5; + background-color: #292929; + border-color: transparent; + color: #f5f5f5; } .file.is-primary .file-cta { - background-color: #00d1b2; - border-color: transparent; - color: #fff; + background-color: #00d1b2; + border-color: transparent; + color: #fff; } .file.is-primary:hover .file-cta, .file.is-primary.is-hovered .file-cta { - background-color: #00c4a7; - border-color: transparent; - color: #fff; + background-color: #00c4a7; + border-color: transparent; + color: #fff; } .file.is-primary:focus .file-cta, .file.is-primary.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(0, 209, 178, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(0, 209, 178, 0.25); + color: #fff; } .file.is-primary:active .file-cta, .file.is-primary.is-active .file-cta { - background-color: #00b89c; - border-color: transparent; - color: #fff; + background-color: #00b89c; + border-color: transparent; + color: #fff; } .file.is-link .file-cta { - background-color: #3273dc; - border-color: transparent; - color: #fff; + background-color: #3273dc; + border-color: transparent; + color: #fff; } .file.is-link:hover .file-cta, .file.is-link.is-hovered .file-cta { - background-color: #276cda; - border-color: transparent; - color: #fff; + background-color: #276cda; + border-color: transparent; + color: #fff; } .file.is-link:focus .file-cta, .file.is-link.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(50, 115, 220, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(50, 115, 220, 0.25); + color: #fff; } .file.is-link:active .file-cta, .file.is-link.is-active .file-cta { - background-color: #2366d1; - border-color: transparent; - color: #fff; + background-color: #2366d1; + border-color: transparent; + color: #fff; } .file.is-info .file-cta { - background-color: #209cee; - border-color: transparent; - color: #fff; + background-color: #209cee; + border-color: transparent; + color: #fff; } .file.is-info:hover .file-cta, .file.is-info.is-hovered .file-cta { - background-color: #1496ed; - border-color: transparent; - color: #fff; + background-color: #1496ed; + border-color: transparent; + color: #fff; } .file.is-info:focus .file-cta, .file.is-info.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(32, 156, 238, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(32, 156, 238, 0.25); + color: #fff; } .file.is-info:active .file-cta, .file.is-info.is-active .file-cta { - background-color: #118fe4; - border-color: transparent; - color: #fff; + background-color: #118fe4; + border-color: transparent; + color: #fff; } .file.is-success .file-cta { - background-color: #23d160; - border-color: transparent; - color: #fff; + background-color: #23d160; + border-color: transparent; + color: #fff; } .file.is-success:hover .file-cta, .file.is-success.is-hovered .file-cta { - background-color: #22c65b; - border-color: transparent; - color: #fff; + background-color: #22c65b; + border-color: transparent; + color: #fff; } .file.is-success:focus .file-cta, .file.is-success.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(35, 209, 96, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(35, 209, 96, 0.25); + color: #fff; } .file.is-success:active .file-cta, .file.is-success.is-active .file-cta { - background-color: #20bc56; - border-color: transparent; - color: #fff; + background-color: #20bc56; + border-color: transparent; + color: #fff; } .file.is-warning .file-cta { - background-color: #ffdd57; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .file.is-warning:hover .file-cta, .file.is-warning.is-hovered .file-cta { - background-color: #ffdb4a; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdb4a; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .file.is-warning:focus .file-cta, .file.is-warning.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(255, 221, 87, 0.25); - color: rgba(0, 0, 0, 0.7); + border-color: transparent; + box-shadow: 0 0 0.5em rgba(255, 221, 87, 0.25); + color: rgba(0, 0, 0, 0.7); } .file.is-warning:active .file-cta, .file.is-warning.is-active .file-cta { - background-color: #ffd83d; - border-color: transparent; - color: rgba(0, 0, 0, 0.7); + background-color: #ffd83d; + border-color: transparent; + color: rgba(0, 0, 0, 0.7); } .file.is-danger .file-cta { - background-color: #ff3860; - border-color: transparent; - color: #fff; + background-color: #ff3860; + border-color: transparent; + color: #fff; } .file.is-danger:hover .file-cta, .file.is-danger.is-hovered .file-cta { - background-color: #ff2b56; - border-color: transparent; - color: #fff; + background-color: #ff2b56; + border-color: transparent; + color: #fff; } .file.is-danger:focus .file-cta, .file.is-danger.is-focused .file-cta { - border-color: transparent; - box-shadow: 0 0 0.5em rgba(255, 56, 96, 0.25); - color: #fff; + border-color: transparent; + box-shadow: 0 0 0.5em rgba(255, 56, 96, 0.25); + color: #fff; } .file.is-danger:active .file-cta, .file.is-danger.is-active .file-cta { - background-color: #ff1f4b; - border-color: transparent; - color: #fff; + background-color: #ff1f4b; + border-color: transparent; + color: #fff; } .file.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .file.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .file.is-medium .file-icon .fa { - font-size: 21px; + font-size: 21px; } .file.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .file.is-large .file-icon .fa { - font-size: 28px; + font-size: 28px; } .file.has-name .file-cta { - border-bottom-right-radius: 0; - border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-top-right-radius: 0; } .file.has-name .file-name { - border-bottom-left-radius: 0; - border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-left-radius: 0; } .file.has-name.is-empty .file-cta { - border-radius: 4px; + border-radius: 4px; } .file.has-name.is-empty .file-name { - display: none; + display: none; } .file.is-boxed .file-label { - flex-direction: column; + flex-direction: column; } .file.is-boxed .file-cta { - flex-direction: column; - height: auto; - padding: 1em 3em; + flex-direction: column; + height: auto; + padding: 1em 3em; } .file.is-boxed .file-name { - border-width: 0 1px 1px; + border-width: 0 1px 1px; } .file.is-boxed .file-icon { - height: 1.5em; - width: 1.5em; + height: 1.5em; + width: 1.5em; } .file.is-boxed .file-icon .fa { - font-size: 21px; + font-size: 21px; } .file.is-boxed.is-small .file-icon .fa { - font-size: 14px; + font-size: 14px; } .file.is-boxed.is-medium .file-icon .fa { - font-size: 28px; + font-size: 28px; } .file.is-boxed.is-large .file-icon .fa { - font-size: 35px; + font-size: 35px; } .file.is-boxed.has-name .file-cta { - border-radius: 4px 4px 0 0; + border-radius: 4px 4px 0 0; } .file.is-boxed.has-name .file-name { - border-radius: 0 0 4px 4px; - border-width: 0 1px 1px; + border-radius: 0 0 4px 4px; + border-width: 0 1px 1px; } .file.is-centered { - justify-content: center; + justify-content: center; } .file.is-fullwidth .file-label { - width: 100%; + width: 100%; } .file.is-fullwidth .file-name { - flex-grow: 1; - max-width: none; + flex-grow: 1; + max-width: none; } .file.is-right { - justify-content: flex-end; + justify-content: flex-end; } .file.is-right .file-cta { - border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; } .file.is-right .file-name { - border-radius: 4px 0 0 4px; - border-width: 1px 0 1px 1px; - order: -1; + border-radius: 4px 0 0 4px; + border-width: 1px 0 1px 1px; + order: -1; } .file-label { - align-items: stretch; - display: flex; - cursor: pointer; - justify-content: flex-start; - overflow: hidden; - position: relative; + align-items: stretch; + display: flex; + cursor: pointer; + justify-content: flex-start; + overflow: hidden; + position: relative; } .file-label:hover .file-cta { - background-color: #eee; - color: #363636; + background-color: #eee; + color: #363636; } .file-label:hover .file-name { - border-color: #d5d5d5; + border-color: #d5d5d5; } .file-label:active .file-cta { - background-color: #e8e8e8; - color: #363636; + background-color: #e8e8e8; + color: #363636; } .file-label:active .file-name { - border-color: #cfcfcf; + border-color: #cfcfcf; } .file-input { - height: 100%; - left: 0; - opacity: 0; - outline: none; - position: absolute; - top: 0; - width: 100%; + height: 100%; + left: 0; + opacity: 0; + outline: none; + position: absolute; + top: 0; + width: 100%; } .file-cta, .file-name { - border-color: #dbdbdb; - border-radius: 4px; - font-size: 1em; - padding-left: 1em; - padding-right: 1em; - white-space: nowrap; + border-color: #dbdbdb; + border-radius: 4px; + font-size: 1em; + padding-left: 1em; + padding-right: 1em; + white-space: nowrap; } .file-cta { - background-color: #f5f5f5; - color: #4a4a4a; + background-color: #f5f5f5; + color: #4a4a4a; } .file-name { - border-color: #dbdbdb; - border-style: solid; - border-width: 1px 1px 1px 0; - display: block; - max-width: 16em; - overflow: hidden; - text-align: left; - text-overflow: ellipsis; + border-color: #dbdbdb; + border-style: solid; + border-width: 1px 1px 1px 0; + display: block; + max-width: 16em; + overflow: hidden; + text-align: left; + text-overflow: ellipsis; } .file-icon { - align-items: center; - display: flex; - height: 1em; - justify-content: center; - margin-right: 0.5em; - width: 1em; + align-items: center; + display: flex; + height: 1em; + justify-content: center; + margin-right: 0.5em; + width: 1em; } .file-icon .fa { - font-size: 14px; + font-size: 14px; } .label { - color: #363636; - display: block; - font-size: 1rem; - font-weight: 700; + color: #363636; + display: block; + font-size: 1rem; + font-weight: 700; } .label:not(:last-child) { - margin-bottom: 0.5em; + margin-bottom: 0.5em; } .label.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .label.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .label.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .help { - display: block; - font-size: 0.75rem; - margin-top: 0.25rem; + display: block; + font-size: 0.75rem; + margin-top: 0.25rem; } .help.is-white { - color: #fff; + color: #fff; } .help.is-black { - color: #0a0a0a; + color: #0a0a0a; } .help.is-light { - color: #f5f5f5; + color: #f5f5f5; } .help.is-dark { - color: #363636; + color: #363636; } .help.is-primary { - color: #00d1b2; + color: #00d1b2; } .help.is-link { - color: #3273dc; + color: #3273dc; } .help.is-info { - color: #209cee; + color: #209cee; } .help.is-success { - color: #23d160; + color: #23d160; } .help.is-warning { - color: #ffdd57; + color: #ffdd57; } .help.is-danger { - color: #ff3860; + color: #ff3860; } .field:not(:last-child) { - margin-bottom: 0.75rem; + margin-bottom: 0.75rem; } .field.has-addons { - display: flex; - justify-content: flex-start; + display: flex; + justify-content: flex-start; } .field.has-addons .control:not(:last-child) { - margin-right: -1px; + margin-right: -1px; } .field.has-addons .control:not(:first-child):not(:last-child) .button, .field.has-addons .control:not(:first-child):not(:last-child) .input, .field.has-addons .control:not(:first-child):not(:last-child) .select select { - border-radius: 0; + border-radius: 0; } .field.has-addons .control:first-child:not(:only-child) .button, .field.has-addons .control:first-child:not(:only-child) .input, .field.has-addons .control:first-child:not(:only-child) .select select { - border-bottom-right-radius: 0; - border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-top-right-radius: 0; } .field.has-addons .control:last-child:not(:only-child) .button, .field.has-addons .control:last-child:not(:only-child) .input, .field.has-addons .control:last-child:not(:only-child) .select select { - border-bottom-left-radius: 0; - border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-top-left-radius: 0; } .field.has-addons .control .button:not([disabled]):hover, .field.has-addons .control .button:not([disabled]).is-hovered, @@ -4786,7 +4786,7 @@ fieldset[disabled] .select select:hover { .field.has-addons .control .input:not([disabled]).is-hovered, .field.has-addons .control .select select:not([disabled]):hover, .field.has-addons .control .select select:not([disabled]).is-hovered { - z-index: 2; + z-index: 2; } .field.has-addons .control .button:not([disabled]):focus, .field.has-addons .control .button:not([disabled]).is-focused, @@ -4800,7 +4800,7 @@ fieldset[disabled] .select select:hover { .field.has-addons .control .select select:not([disabled]).is-focused, .field.has-addons .control .select select:not([disabled]):active, .field.has-addons .control .select select:not([disabled]).is-active { - z-index: 3; + z-index: 3; } .field.has-addons .control .button:not([disabled]):focus:hover, .field.has-addons .control .button:not([disabled]).is-focused:hover, @@ -4814,874 +4814,874 @@ fieldset[disabled] .select select:hover { .field.has-addons .control .select select:not([disabled]).is-focused:hover, .field.has-addons .control .select select:not([disabled]):active:hover, .field.has-addons .control .select select:not([disabled]).is-active:hover { - z-index: 4; + z-index: 4; } .field.has-addons .control.is-expanded { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .field.has-addons.has-addons-centered { - justify-content: center; + justify-content: center; } .field.has-addons.has-addons-right { - justify-content: flex-end; + justify-content: flex-end; } .field.has-addons.has-addons-fullwidth .control { - flex-grow: 1; - flex-shrink: 0; + flex-grow: 1; + flex-shrink: 0; } .field.is-grouped { - display: flex; - justify-content: flex-start; + display: flex; + justify-content: flex-start; } .field.is-grouped > .control { - flex-shrink: 0; + flex-shrink: 0; } .field.is-grouped > .control:not(:last-child) { - margin-bottom: 0; - margin-right: 0.75rem; + margin-bottom: 0; + margin-right: 0.75rem; } .field.is-grouped > .control.is-expanded { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .field.is-grouped.is-grouped-centered { - justify-content: center; + justify-content: center; } .field.is-grouped.is-grouped-right { - justify-content: flex-end; + justify-content: flex-end; } .field.is-grouped.is-grouped-multiline { - flex-wrap: wrap; + flex-wrap: wrap; } .field.is-grouped.is-grouped-multiline > .control:last-child, .field.is-grouped.is-grouped-multiline > .control:not(:last-child) { - margin-bottom: 0.75rem; + margin-bottom: 0.75rem; } .field.is-grouped.is-grouped-multiline:last-child { - margin-bottom: -0.75rem; + margin-bottom: -0.75rem; } .field.is-grouped.is-grouped-multiline:not(:last-child) { - margin-bottom: 0; + margin-bottom: 0; } @media screen and (min-width: 769px), print { - .field.is-horizontal { - display: flex; - } + .field.is-horizontal { + display: flex; + } } .field-label .label { - font-size: inherit; + font-size: inherit; } @media screen and (max-width: 768px) { - .field-label { - margin-bottom: 0.5rem; - } + .field-label { + margin-bottom: 0.5rem; + } } @media screen and (min-width: 769px), print { - .field-label { - flex-basis: 0; - flex-grow: 1; - flex-shrink: 0; - margin-right: 1.5rem; - text-align: right; - } - .field-label.is-small { - font-size: 0.75rem; - padding-top: 0.375em; - } - .field-label.is-normal { - padding-top: 0.375em; - } - .field-label.is-medium { - font-size: 1.25rem; - padding-top: 0.375em; - } - .field-label.is-large { - font-size: 1.5rem; - padding-top: 0.375em; - } + .field-label { + flex-basis: 0; + flex-grow: 1; + flex-shrink: 0; + margin-right: 1.5rem; + text-align: right; + } + .field-label.is-small { + font-size: 0.75rem; + padding-top: 0.375em; + } + .field-label.is-normal { + padding-top: 0.375em; + } + .field-label.is-medium { + font-size: 1.25rem; + padding-top: 0.375em; + } + .field-label.is-large { + font-size: 1.5rem; + padding-top: 0.375em; + } } .field-body .field .field { - margin-bottom: 0; + margin-bottom: 0; } @media screen and (min-width: 769px), print { - .field-body { - display: flex; - flex-basis: 0; - flex-grow: 5; - flex-shrink: 1; - } - .field-body .field { - margin-bottom: 0; - } - .field-body > .field { - flex-shrink: 1; - } - .field-body > .field:not(.is-narrow) { - flex-grow: 1; - } - .field-body > .field:not(:last-child) { - margin-right: 0.75rem; - } + .field-body { + display: flex; + flex-basis: 0; + flex-grow: 5; + flex-shrink: 1; + } + .field-body .field { + margin-bottom: 0; + } + .field-body > .field { + flex-shrink: 1; + } + .field-body > .field:not(.is-narrow) { + flex-grow: 1; + } + .field-body > .field:not(:last-child) { + margin-right: 0.75rem; + } } .control { - box-sizing: border-box; - clear: both; - font-size: 1rem; - position: relative; - text-align: left; + box-sizing: border-box; + clear: both; + font-size: 1rem; + position: relative; + text-align: left; } .control.has-icons-left .input:focus ~ .icon, .control.has-icons-left .select:focus ~ .icon, .control.has-icons-right .input:focus ~ .icon, .control.has-icons-right .select:focus ~ .icon { - color: #7a7a7a; + color: #7a7a7a; } .control.has-icons-left .input.is-small ~ .icon, .control.has-icons-left .select.is-small ~ .icon, .control.has-icons-right .input.is-small ~ .icon, .control.has-icons-right .select.is-small ~ .icon { - font-size: 0.75rem; + font-size: 0.75rem; } .control.has-icons-left .input.is-medium ~ .icon, .control.has-icons-left .select.is-medium ~ .icon, .control.has-icons-right .input.is-medium ~ .icon, .control.has-icons-right .select.is-medium ~ .icon { - font-size: 1.25rem; + font-size: 1.25rem; } .control.has-icons-left .input.is-large ~ .icon, .control.has-icons-left .select.is-large ~ .icon, .control.has-icons-right .input.is-large ~ .icon, .control.has-icons-right .select.is-large ~ .icon { - font-size: 1.5rem; + font-size: 1.5rem; } .control.has-icons-left .icon, .control.has-icons-right .icon { - color: #dbdbdb; - height: 2.25em; - pointer-events: none; - position: absolute; - top: 0; - width: 2.25em; - z-index: 4; + color: #dbdbdb; + height: 2.25em; + pointer-events: none; + position: absolute; + top: 0; + width: 2.25em; + z-index: 4; } .control.has-icons-left .input, .control.has-icons-left .select select { - padding-left: 2.25em; + padding-left: 2.25em; } .control.has-icons-left .icon.is-left { - left: 0; + left: 0; } .control.has-icons-right .input, .control.has-icons-right .select select { - padding-right: 2.25em; + padding-right: 2.25em; } .control.has-icons-right .icon.is-right { - right: 0; + right: 0; } .control.is-loading::after { - position: absolute !important; - right: 0.625em; - top: 0.625em; - z-index: 4; + position: absolute !important; + right: 0.625em; + top: 0.625em; + z-index: 4; } .control.is-loading.is-small:after { - font-size: 0.75rem; + font-size: 0.75rem; } .control.is-loading.is-medium:after { - font-size: 1.25rem; + font-size: 1.25rem; } .control.is-loading.is-large:after { - font-size: 1.5rem; + font-size: 1.5rem; } .breadcrumb { - font-size: 1rem; - white-space: nowrap; + font-size: 1rem; + white-space: nowrap; } .breadcrumb a { - align-items: center; - color: #3273dc; - display: flex; - justify-content: center; - padding: 0 0.75em; + align-items: center; + color: #3273dc; + display: flex; + justify-content: center; + padding: 0 0.75em; } .breadcrumb a:hover { - color: #363636; + color: #363636; } .breadcrumb li { - align-items: center; - display: flex; + align-items: center; + display: flex; } .breadcrumb li:first-child a { - padding-left: 0; + padding-left: 0; } .breadcrumb li.is-active a { - color: #363636; - cursor: default; - pointer-events: none; + color: #363636; + cursor: default; + pointer-events: none; } .breadcrumb li + li::before { - color: #b5b5b5; - content: "\0002f"; + color: #b5b5b5; + content: '\0002f'; } .breadcrumb ul, .breadcrumb ol { - align-items: flex-start; - display: flex; - flex-wrap: wrap; - justify-content: flex-start; + align-items: flex-start; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; } .breadcrumb .icon:first-child { - margin-right: 0.5em; + margin-right: 0.5em; } .breadcrumb .icon:last-child { - margin-left: 0.5em; + margin-left: 0.5em; } .breadcrumb.is-centered ol, .breadcrumb.is-centered ul { - justify-content: center; + justify-content: center; } .breadcrumb.is-right ol, .breadcrumb.is-right ul { - justify-content: flex-end; + justify-content: flex-end; } .breadcrumb.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .breadcrumb.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .breadcrumb.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .breadcrumb.has-arrow-separator li + li::before { - content: "\02192"; + content: '\02192'; } .breadcrumb.has-bullet-separator li + li::before { - content: "\02022"; + content: '\02022'; } .breadcrumb.has-dot-separator li + li::before { - content: "\000b7"; + content: '\000b7'; } .breadcrumb.has-succeeds-separator li + li::before { - content: "\0227B"; + content: '\0227B'; } .card { - background-color: #fff; - box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - color: #4a4a4a; - max-width: 100%; - position: relative; + background-color: #fff; + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + color: #4a4a4a; + max-width: 100%; + position: relative; } .card-header { - background-color: rgba(0, 0, 0, 0); - align-items: stretch; - box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1); - display: flex; + background-color: rgba(0, 0, 0, 0); + align-items: stretch; + box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1); + display: flex; } .card-header-title { - align-items: center; - color: #363636; - display: flex; - flex-grow: 1; - font-weight: 700; - padding: 0.75rem; + align-items: center; + color: #363636; + display: flex; + flex-grow: 1; + font-weight: 700; + padding: 0.75rem; } .card-header-title.is-centered { - justify-content: center; + justify-content: center; } .card-header-icon { - align-items: center; - cursor: pointer; - display: flex; - justify-content: center; - padding: 0.75rem; + align-items: center; + cursor: pointer; + display: flex; + justify-content: center; + padding: 0.75rem; } .card-image { - display: block; - position: relative; + display: block; + position: relative; } .card-content { - background-color: rgba(0, 0, 0, 0); - padding: 1.5rem; + background-color: rgba(0, 0, 0, 0); + padding: 1.5rem; } .card-footer { - background-color: rgba(0, 0, 0, 0); - border-top: 1px solid #dbdbdb; - align-items: stretch; - display: flex; + background-color: rgba(0, 0, 0, 0); + border-top: 1px solid #dbdbdb; + align-items: stretch; + display: flex; } .card-footer-item { - align-items: center; - display: flex; - flex-basis: 0; - flex-grow: 1; - flex-shrink: 0; - justify-content: center; - padding: 0.75rem; + align-items: center; + display: flex; + flex-basis: 0; + flex-grow: 1; + flex-shrink: 0; + justify-content: center; + padding: 0.75rem; } .card-footer-item:not(:last-child) { - border-right: 1px solid #dbdbdb; + border-right: 1px solid #dbdbdb; } .card .media:not(:last-child) { - margin-bottom: 1.5rem; + margin-bottom: 1.5rem; } .dropdown { - display: inline-flex; - position: relative; - vertical-align: top; + display: inline-flex; + position: relative; + vertical-align: top; } .dropdown.is-active .dropdown-menu, .dropdown.is-hoverable:hover .dropdown-menu { - display: block; + display: block; } .dropdown.is-right .dropdown-menu { - left: auto; - right: 0; + left: auto; + right: 0; } .dropdown.is-up .dropdown-menu { - bottom: 100%; - padding-bottom: 4px; - padding-top: initial; - top: auto; + bottom: 100%; + padding-bottom: 4px; + padding-top: initial; + top: auto; } .dropdown-menu { - display: none; - left: 0; - min-width: 12rem; - padding-top: 4px; - position: absolute; - top: 100%; - z-index: 20; + display: none; + left: 0; + min-width: 12rem; + padding-top: 4px; + position: absolute; + top: 100%; + z-index: 20; } .dropdown-content { - background-color: #fff; - border-radius: 4px; - box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - padding-bottom: 0.5rem; - padding-top: 0.5rem; + background-color: #fff; + border-radius: 4px; + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + padding-bottom: 0.5rem; + padding-top: 0.5rem; } .dropdown-item { - color: #4a4a4a; - display: block; - font-size: 0.875rem; - line-height: 1.5; - padding: 0.375rem 1rem; - position: relative; + color: #4a4a4a; + display: block; + font-size: 0.875rem; + line-height: 1.5; + padding: 0.375rem 1rem; + position: relative; } a.dropdown-item, button.dropdown-item { - padding-right: 3rem; - text-align: left; - white-space: nowrap; - width: 100%; + padding-right: 3rem; + text-align: left; + white-space: nowrap; + width: 100%; } a.dropdown-item:hover, button.dropdown-item:hover { - background-color: #f5f5f5; - color: #0a0a0a; + background-color: #f5f5f5; + color: #0a0a0a; } a.dropdown-item.is-active, button.dropdown-item.is-active { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .dropdown-divider { - background-color: #dbdbdb; - border: none; - display: block; - height: 1px; - margin: 0.5rem 0; + background-color: #dbdbdb; + border: none; + display: block; + height: 1px; + margin: 0.5rem 0; } .level { - align-items: center; - justify-content: space-between; + align-items: center; + justify-content: space-between; } .level code { - border-radius: 4px; + border-radius: 4px; } .level img { - display: inline-block; - vertical-align: top; + display: inline-block; + vertical-align: top; } .level.is-mobile { - display: flex; + display: flex; } .level.is-mobile .level-left, .level.is-mobile .level-right { - display: flex; + display: flex; } .level.is-mobile .level-left + .level-right { - margin-top: 0; + margin-top: 0; } .level.is-mobile .level-item:not(:last-child) { - margin-bottom: 0; - margin-right: 0.75rem; + margin-bottom: 0; + margin-right: 0.75rem; } .level.is-mobile .level-item:not(.is-narrow) { - flex-grow: 1; + flex-grow: 1; } @media screen and (min-width: 769px), print { - .level { - display: flex; - } - .level > .level-item:not(.is-narrow) { - flex-grow: 1; - } + .level { + display: flex; + } + .level > .level-item:not(.is-narrow) { + flex-grow: 1; + } } .level-item { - align-items: center; - display: flex; - flex-basis: auto; - flex-grow: 0; - flex-shrink: 0; - justify-content: center; + align-items: center; + display: flex; + flex-basis: auto; + flex-grow: 0; + flex-shrink: 0; + justify-content: center; } .level-item .title, .level-item .subtitle { - margin-bottom: 0; + margin-bottom: 0; } @media screen and (max-width: 768px) { - .level-item:not(:last-child) { - margin-bottom: 0.75rem; - } + .level-item:not(:last-child) { + margin-bottom: 0.75rem; + } } .level-left, .level-right { - flex-basis: auto; - flex-grow: 0; - flex-shrink: 0; + flex-basis: auto; + flex-grow: 0; + flex-shrink: 0; } .level-left .level-item.is-flexible, .level-right .level-item.is-flexible { - flex-grow: 1; + flex-grow: 1; } @media screen and (min-width: 769px), print { - .level-left .level-item:not(:last-child), - .level-right .level-item:not(:last-child) { - margin-right: 0.75rem; - } + .level-left .level-item:not(:last-child), + .level-right .level-item:not(:last-child) { + margin-right: 0.75rem; + } } .level-left { - align-items: center; - justify-content: flex-start; + align-items: center; + justify-content: flex-start; } @media screen and (max-width: 768px) { - .level-left + .level-right { - margin-top: 1.5rem; - } + .level-left + .level-right { + margin-top: 1.5rem; + } } @media screen and (min-width: 769px), print { - .level-left { - display: flex; - } + .level-left { + display: flex; + } } .level-right { - align-items: center; - justify-content: flex-end; + align-items: center; + justify-content: flex-end; } @media screen and (min-width: 769px), print { - .level-right { - display: flex; - } + .level-right { + display: flex; + } } .list { - background-color: #fff; - border-radius: 4px; - box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); + background-color: #fff; + border-radius: 4px; + box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); } .list-item { - display: block; - padding: 0.5em 1em; + display: block; + padding: 0.5em 1em; } .list-item:not(a) { - color: #4a4a4a; + color: #4a4a4a; } .list-item:first-child { - border-top-left-radius: 4px; - border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; } .list-item:last-child { - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; } .list-item:not(:last-child) { - border-bottom: 1px solid #dbdbdb; + border-bottom: 1px solid #dbdbdb; } .list-item.is-active { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } a.list-item { - background-color: #f5f5f5; - cursor: pointer; + background-color: #f5f5f5; + cursor: pointer; } .media { - align-items: flex-start; - display: flex; - text-align: left; + align-items: flex-start; + display: flex; + text-align: left; } .media .content:not(:last-child) { - margin-bottom: 0.75rem; + margin-bottom: 0.75rem; } .media .media { - border-top: 1px solid rgba(219, 219, 219, 0.5); - display: flex; - padding-top: 0.75rem; + border-top: 1px solid rgba(219, 219, 219, 0.5); + display: flex; + padding-top: 0.75rem; } .media .media .content:not(:last-child), .media .media .control:not(:last-child) { - margin-bottom: 0.5rem; + margin-bottom: 0.5rem; } .media .media .media { - padding-top: 0.5rem; + padding-top: 0.5rem; } .media .media .media + .media { - margin-top: 0.5rem; + margin-top: 0.5rem; } .media + .media { - border-top: 1px solid rgba(219, 219, 219, 0.5); - margin-top: 1rem; - padding-top: 1rem; + border-top: 1px solid rgba(219, 219, 219, 0.5); + margin-top: 1rem; + padding-top: 1rem; } .media.is-large + .media { - margin-top: 1.5rem; - padding-top: 1.5rem; + margin-top: 1.5rem; + padding-top: 1.5rem; } .media-left, .media-right { - flex-basis: auto; - flex-grow: 0; - flex-shrink: 0; + flex-basis: auto; + flex-grow: 0; + flex-shrink: 0; } .media-left { - margin-right: 1rem; + margin-right: 1rem; } .media-right { - margin-left: 1rem; + margin-left: 1rem; } .media-content { - flex-basis: auto; - flex-grow: 1; - flex-shrink: 1; - text-align: left; + flex-basis: auto; + flex-grow: 1; + flex-shrink: 1; + text-align: left; } @media screen and (max-width: 768px) { - .media-content { - overflow-x: auto; - } + .media-content { + overflow-x: auto; + } } .menu { - font-size: 1rem; + font-size: 1rem; } .menu.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .menu.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .menu.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .menu-list { - line-height: 1.25; + line-height: 1.25; } .menu-list a { - border-radius: 2px; - color: #4a4a4a; - display: block; - padding: 0.5em 0.75em; + border-radius: 2px; + color: #4a4a4a; + display: block; + padding: 0.5em 0.75em; } .menu-list a:hover { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .menu-list a.is-active { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .menu-list li ul { - border-left: 1px solid #dbdbdb; - margin: 0.75em; - padding-left: 0.75em; + border-left: 1px solid #dbdbdb; + margin: 0.75em; + padding-left: 0.75em; } .menu-label { - color: #7a7a7a; - font-size: 0.75em; - letter-spacing: 0.1em; - text-transform: uppercase; + color: #7a7a7a; + font-size: 0.75em; + letter-spacing: 0.1em; + text-transform: uppercase; } .menu-label:not(:first-child) { - margin-top: 1em; + margin-top: 1em; } .menu-label:not(:last-child) { - margin-bottom: 1em; + margin-bottom: 1em; } .message { - background-color: #f5f5f5; - border-radius: 4px; - font-size: 1rem; + background-color: #f5f5f5; + border-radius: 4px; + font-size: 1rem; } .message strong { - color: currentColor; + color: currentColor; } .message a:not(.button):not(.tag):not(.dropdown-item) { - color: currentColor; - text-decoration: underline; + color: currentColor; + text-decoration: underline; } .message.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .message.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .message.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .message.is-white { - background-color: #fff; + background-color: #fff; } .message.is-white .message-header { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .message.is-white .message-body { - border-color: #fff; - color: #4d4d4d; + border-color: #fff; + color: #4d4d4d; } .message.is-black { - background-color: #fafafa; + background-color: #fafafa; } .message.is-black .message-header { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .message.is-black .message-body { - border-color: #0a0a0a; - color: #090909; + border-color: #0a0a0a; + color: #090909; } .message.is-light { - background-color: #fafafa; + background-color: #fafafa; } .message.is-light .message-header { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .message.is-light .message-body { - border-color: #f5f5f5; - color: #505050; + border-color: #f5f5f5; + color: #505050; } .message.is-dark { - background-color: #fafafa; + background-color: #fafafa; } .message.is-dark .message-header { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .message.is-dark .message-body { - border-color: #363636; - color: #2a2a2a; + border-color: #363636; + color: #2a2a2a; } .message.is-primary { - background-color: #f5fffd; + background-color: #f5fffd; } .message.is-primary .message-header { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .message.is-primary .message-body { - border-color: #00d1b2; - color: #021310; + border-color: #00d1b2; + color: #021310; } .message.is-link { - background-color: #f6f9fe; + background-color: #f6f9fe; } .message.is-link .message-header { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .message.is-link .message-body { - border-color: #3273dc; - color: #22509a; + border-color: #3273dc; + color: #22509a; } .message.is-info { - background-color: #f6fbfe; + background-color: #f6fbfe; } .message.is-info .message-header { - background-color: #209cee; - color: #fff; + background-color: #209cee; + color: #fff; } .message.is-info .message-body { - border-color: #209cee; - color: #12537e; + border-color: #209cee; + color: #12537e; } .message.is-success { - background-color: #f6fef9; + background-color: #f6fef9; } .message.is-success .message-header { - background-color: #23d160; - color: #fff; + background-color: #23d160; + color: #fff; } .message.is-success .message-body { - border-color: #23d160; - color: #0e301a; + border-color: #23d160; + color: #0e301a; } .message.is-warning { - background-color: #fffdf5; + background-color: #fffdf5; } .message.is-warning .message-header { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .message.is-warning .message-body { - border-color: #ffdd57; - color: #3b3108; + border-color: #ffdd57; + color: #3b3108; } .message.is-danger { - background-color: #fff5f7; + background-color: #fff5f7; } .message.is-danger .message-header { - background-color: #ff3860; - color: #fff; + background-color: #ff3860; + color: #fff; } .message.is-danger .message-body { - border-color: #ff3860; - color: #cd0930; + border-color: #ff3860; + color: #cd0930; } .message-header { - align-items: center; - background-color: #4a4a4a; - border-radius: 4px 4px 0 0; - color: #fff; - display: flex; - font-weight: 700; - justify-content: space-between; - line-height: 1.25; - padding: 0.75em 1em; - position: relative; + align-items: center; + background-color: #4a4a4a; + border-radius: 4px 4px 0 0; + color: #fff; + display: flex; + font-weight: 700; + justify-content: space-between; + line-height: 1.25; + padding: 0.75em 1em; + position: relative; } .message-header .delete { - flex-grow: 0; - flex-shrink: 0; - margin-left: 0.75em; + flex-grow: 0; + flex-shrink: 0; + margin-left: 0.75em; } .message-header + .message-body { - border-width: 0; - border-top-left-radius: 0; - border-top-right-radius: 0; + border-width: 0; + border-top-left-radius: 0; + border-top-right-radius: 0; } .message-body { - border-color: #dbdbdb; - border-radius: 4px; - border-style: solid; - border-width: 0 0 0 4px; - color: #4a4a4a; - padding: 1.25em 1.5em; + border-color: #dbdbdb; + border-radius: 4px; + border-style: solid; + border-width: 0 0 0 4px; + color: #4a4a4a; + padding: 1.25em 1.5em; } .message-body code, .message-body pre { - background-color: #fff; + background-color: #fff; } .message-body pre code { - background-color: rgba(0, 0, 0, 0); + background-color: rgba(0, 0, 0, 0); } .modal { - align-items: center; - display: none; - flex-direction: column; - justify-content: center; - overflow: hidden; - position: fixed; - z-index: 40; + align-items: center; + display: none; + flex-direction: column; + justify-content: center; + overflow: hidden; + position: fixed; + z-index: 40; } .modal.is-active { - display: flex; + display: flex; } .modal-background { - background-color: rgba(10, 10, 10, 0.86); + background-color: rgba(10, 10, 10, 0.86); } .modal-content, .modal-card { - margin: 0 20px; - max-height: calc(100vh - 160px); - overflow: auto; - position: relative; - width: 100%; + margin: 0 20px; + max-height: calc(100vh - 160px); + overflow: auto; + position: relative; + width: 100%; } @media screen and (min-width: 769px), print { - .modal-content, - .modal-card { - margin: 0 auto; - max-height: calc(100vh - 40px); - width: 640px; - } + .modal-content, + .modal-card { + margin: 0 auto; + max-height: calc(100vh - 40px); + width: 640px; + } } .modal-close { - background: none; - height: 40px; - position: fixed; - right: 20px; - top: 20px; - width: 40px; + background: none; + height: 40px; + position: fixed; + right: 20px; + top: 20px; + width: 40px; } .modal-card { - display: flex; - flex-direction: column; - max-height: calc(100vh - 40px); - overflow: hidden; - -ms-overflow-y: visible; + display: flex; + flex-direction: column; + max-height: calc(100vh - 40px); + overflow: hidden; + -ms-overflow-y: visible; } .modal-card-head, .modal-card-foot { - align-items: center; - background-color: #f5f5f5; - display: flex; - flex-shrink: 0; - justify-content: flex-start; - padding: 20px; - position: relative; + align-items: center; + background-color: #f5f5f5; + display: flex; + flex-shrink: 0; + justify-content: flex-start; + padding: 20px; + position: relative; } .modal-card-head { - border-bottom: 1px solid #dbdbdb; - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-bottom: 1px solid #dbdbdb; + border-top-left-radius: 6px; + border-top-right-radius: 6px; } .modal-card-title { - color: #363636; - flex-grow: 1; - flex-shrink: 0; - font-size: 1.5rem; - line-height: 1; + color: #363636; + flex-grow: 1; + flex-shrink: 0; + font-size: 1.5rem; + line-height: 1; } .modal-card-foot { - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; - border-top: 1px solid #dbdbdb; + border-bottom-left-radius: 6px; + border-bottom-right-radius: 6px; + border-top: 1px solid #dbdbdb; } .modal-card-foot .button:not(:last-child) { - margin-right: 0.5em; + margin-right: 0.5em; } .modal-card-body { - -webkit-overflow-scrolling: touch; - background-color: #fff; - flex-grow: 1; - flex-shrink: 1; - overflow: auto; - padding: 20px; + -webkit-overflow-scrolling: touch; + background-color: #fff; + flex-grow: 1; + flex-shrink: 1; + overflow: auto; + padding: 20px; } .navbar { - background-color: #fff; - min-height: 3.25rem; - position: relative; - z-index: 30; + background-color: #fff; + min-height: 3.25rem; + position: relative; + z-index: 30; } .navbar.is-white { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .navbar.is-white .navbar-brand > .navbar-item, .navbar.is-white .navbar-brand .navbar-link { - color: #0a0a0a; + color: #0a0a0a; } .navbar.is-white .navbar-brand > a.navbar-item:focus, .navbar.is-white .navbar-brand > a.navbar-item:hover, @@ -5689,59 +5689,59 @@ a.list-item { .navbar.is-white .navbar-brand .navbar-link:focus, .navbar.is-white .navbar-brand .navbar-link:hover, .navbar.is-white .navbar-brand .navbar-link.is-active { - background-color: #f2f2f2; - color: #0a0a0a; + background-color: #f2f2f2; + color: #0a0a0a; } .navbar.is-white .navbar-brand .navbar-link::after { - border-color: #0a0a0a; + border-color: #0a0a0a; } .navbar.is-white .navbar-burger { - color: #0a0a0a; + color: #0a0a0a; } @media screen and (min-width: 1024px) { - .navbar.is-white .navbar-start > .navbar-item, - .navbar.is-white .navbar-start .navbar-link, - .navbar.is-white .navbar-end > .navbar-item, - .navbar.is-white .navbar-end .navbar-link { - color: #0a0a0a; - } - .navbar.is-white .navbar-start > a.navbar-item:focus, - .navbar.is-white .navbar-start > a.navbar-item:hover, - .navbar.is-white .navbar-start > a.navbar-item.is-active, - .navbar.is-white .navbar-start .navbar-link:focus, - .navbar.is-white .navbar-start .navbar-link:hover, - .navbar.is-white .navbar-start .navbar-link.is-active, - .navbar.is-white .navbar-end > a.navbar-item:focus, - .navbar.is-white .navbar-end > a.navbar-item:hover, - .navbar.is-white .navbar-end > a.navbar-item.is-active, - .navbar.is-white .navbar-end .navbar-link:focus, - .navbar.is-white .navbar-end .navbar-link:hover, - .navbar.is-white .navbar-end .navbar-link.is-active { - background-color: #f2f2f2; - color: #0a0a0a; - } - .navbar.is-white .navbar-start .navbar-link::after, - .navbar.is-white .navbar-end .navbar-link::after { - border-color: #0a0a0a; - } - .navbar.is-white .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-white .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #f2f2f2; - color: #0a0a0a; - } - .navbar.is-white .navbar-dropdown a.navbar-item.is-active { - background-color: #fff; - color: #0a0a0a; - } + .navbar.is-white .navbar-start > .navbar-item, + .navbar.is-white .navbar-start .navbar-link, + .navbar.is-white .navbar-end > .navbar-item, + .navbar.is-white .navbar-end .navbar-link { + color: #0a0a0a; + } + .navbar.is-white .navbar-start > a.navbar-item:focus, + .navbar.is-white .navbar-start > a.navbar-item:hover, + .navbar.is-white .navbar-start > a.navbar-item.is-active, + .navbar.is-white .navbar-start .navbar-link:focus, + .navbar.is-white .navbar-start .navbar-link:hover, + .navbar.is-white .navbar-start .navbar-link.is-active, + .navbar.is-white .navbar-end > a.navbar-item:focus, + .navbar.is-white .navbar-end > a.navbar-item:hover, + .navbar.is-white .navbar-end > a.navbar-item.is-active, + .navbar.is-white .navbar-end .navbar-link:focus, + .navbar.is-white .navbar-end .navbar-link:hover, + .navbar.is-white .navbar-end .navbar-link.is-active { + background-color: #f2f2f2; + color: #0a0a0a; + } + .navbar.is-white .navbar-start .navbar-link::after, + .navbar.is-white .navbar-end .navbar-link::after { + border-color: #0a0a0a; + } + .navbar.is-white .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-white .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #f2f2f2; + color: #0a0a0a; + } + .navbar.is-white .navbar-dropdown a.navbar-item.is-active { + background-color: #fff; + color: #0a0a0a; + } } .navbar.is-black { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .navbar.is-black .navbar-brand > .navbar-item, .navbar.is-black .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-black .navbar-brand > a.navbar-item:focus, .navbar.is-black .navbar-brand > a.navbar-item:hover, @@ -5749,59 +5749,59 @@ a.list-item { .navbar.is-black .navbar-brand .navbar-link:focus, .navbar.is-black .navbar-brand .navbar-link:hover, .navbar.is-black .navbar-brand .navbar-link.is-active { - background-color: #000; - color: #fff; + background-color: #000; + color: #fff; } .navbar.is-black .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-black .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-black .navbar-start > .navbar-item, - .navbar.is-black .navbar-start .navbar-link, - .navbar.is-black .navbar-end > .navbar-item, - .navbar.is-black .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-black .navbar-start > a.navbar-item:focus, - .navbar.is-black .navbar-start > a.navbar-item:hover, - .navbar.is-black .navbar-start > a.navbar-item.is-active, - .navbar.is-black .navbar-start .navbar-link:focus, - .navbar.is-black .navbar-start .navbar-link:hover, - .navbar.is-black .navbar-start .navbar-link.is-active, - .navbar.is-black .navbar-end > a.navbar-item:focus, - .navbar.is-black .navbar-end > a.navbar-item:hover, - .navbar.is-black .navbar-end > a.navbar-item.is-active, - .navbar.is-black .navbar-end .navbar-link:focus, - .navbar.is-black .navbar-end .navbar-link:hover, - .navbar.is-black .navbar-end .navbar-link.is-active { - background-color: #000; - color: #fff; - } - .navbar.is-black .navbar-start .navbar-link::after, - .navbar.is-black .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-black .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-black .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #000; - color: #fff; - } - .navbar.is-black .navbar-dropdown a.navbar-item.is-active { - background-color: #0a0a0a; - color: #fff; - } + .navbar.is-black .navbar-start > .navbar-item, + .navbar.is-black .navbar-start .navbar-link, + .navbar.is-black .navbar-end > .navbar-item, + .navbar.is-black .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-black .navbar-start > a.navbar-item:focus, + .navbar.is-black .navbar-start > a.navbar-item:hover, + .navbar.is-black .navbar-start > a.navbar-item.is-active, + .navbar.is-black .navbar-start .navbar-link:focus, + .navbar.is-black .navbar-start .navbar-link:hover, + .navbar.is-black .navbar-start .navbar-link.is-active, + .navbar.is-black .navbar-end > a.navbar-item:focus, + .navbar.is-black .navbar-end > a.navbar-item:hover, + .navbar.is-black .navbar-end > a.navbar-item.is-active, + .navbar.is-black .navbar-end .navbar-link:focus, + .navbar.is-black .navbar-end .navbar-link:hover, + .navbar.is-black .navbar-end .navbar-link.is-active { + background-color: #000; + color: #fff; + } + .navbar.is-black .navbar-start .navbar-link::after, + .navbar.is-black .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-black .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-black .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #000; + color: #fff; + } + .navbar.is-black .navbar-dropdown a.navbar-item.is-active { + background-color: #0a0a0a; + color: #fff; + } } .navbar.is-light { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .navbar.is-light .navbar-brand > .navbar-item, .navbar.is-light .navbar-brand .navbar-link { - color: #363636; + color: #363636; } .navbar.is-light .navbar-brand > a.navbar-item:focus, .navbar.is-light .navbar-brand > a.navbar-item:hover, @@ -5809,59 +5809,59 @@ a.list-item { .navbar.is-light .navbar-brand .navbar-link:focus, .navbar.is-light .navbar-brand .navbar-link:hover, .navbar.is-light .navbar-brand .navbar-link.is-active { - background-color: #e8e8e8; - color: #363636; + background-color: #e8e8e8; + color: #363636; } .navbar.is-light .navbar-brand .navbar-link::after { - border-color: #363636; + border-color: #363636; } .navbar.is-light .navbar-burger { - color: #363636; + color: #363636; } @media screen and (min-width: 1024px) { - .navbar.is-light .navbar-start > .navbar-item, - .navbar.is-light .navbar-start .navbar-link, - .navbar.is-light .navbar-end > .navbar-item, - .navbar.is-light .navbar-end .navbar-link { - color: #363636; - } - .navbar.is-light .navbar-start > a.navbar-item:focus, - .navbar.is-light .navbar-start > a.navbar-item:hover, - .navbar.is-light .navbar-start > a.navbar-item.is-active, - .navbar.is-light .navbar-start .navbar-link:focus, - .navbar.is-light .navbar-start .navbar-link:hover, - .navbar.is-light .navbar-start .navbar-link.is-active, - .navbar.is-light .navbar-end > a.navbar-item:focus, - .navbar.is-light .navbar-end > a.navbar-item:hover, - .navbar.is-light .navbar-end > a.navbar-item.is-active, - .navbar.is-light .navbar-end .navbar-link:focus, - .navbar.is-light .navbar-end .navbar-link:hover, - .navbar.is-light .navbar-end .navbar-link.is-active { - background-color: #e8e8e8; - color: #363636; - } - .navbar.is-light .navbar-start .navbar-link::after, - .navbar.is-light .navbar-end .navbar-link::after { - border-color: #363636; - } - .navbar.is-light .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-light .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #e8e8e8; - color: #363636; - } - .navbar.is-light .navbar-dropdown a.navbar-item.is-active { - background-color: #f5f5f5; - color: #363636; - } + .navbar.is-light .navbar-start > .navbar-item, + .navbar.is-light .navbar-start .navbar-link, + .navbar.is-light .navbar-end > .navbar-item, + .navbar.is-light .navbar-end .navbar-link { + color: #363636; + } + .navbar.is-light .navbar-start > a.navbar-item:focus, + .navbar.is-light .navbar-start > a.navbar-item:hover, + .navbar.is-light .navbar-start > a.navbar-item.is-active, + .navbar.is-light .navbar-start .navbar-link:focus, + .navbar.is-light .navbar-start .navbar-link:hover, + .navbar.is-light .navbar-start .navbar-link.is-active, + .navbar.is-light .navbar-end > a.navbar-item:focus, + .navbar.is-light .navbar-end > a.navbar-item:hover, + .navbar.is-light .navbar-end > a.navbar-item.is-active, + .navbar.is-light .navbar-end .navbar-link:focus, + .navbar.is-light .navbar-end .navbar-link:hover, + .navbar.is-light .navbar-end .navbar-link.is-active { + background-color: #e8e8e8; + color: #363636; + } + .navbar.is-light .navbar-start .navbar-link::after, + .navbar.is-light .navbar-end .navbar-link::after { + border-color: #363636; + } + .navbar.is-light .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-light .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #e8e8e8; + color: #363636; + } + .navbar.is-light .navbar-dropdown a.navbar-item.is-active { + background-color: #f5f5f5; + color: #363636; + } } .navbar.is-dark { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .navbar.is-dark .navbar-brand > .navbar-item, .navbar.is-dark .navbar-brand .navbar-link { - color: #f5f5f5; + color: #f5f5f5; } .navbar.is-dark .navbar-brand > a.navbar-item:focus, .navbar.is-dark .navbar-brand > a.navbar-item:hover, @@ -5869,59 +5869,59 @@ a.list-item { .navbar.is-dark .navbar-brand .navbar-link:focus, .navbar.is-dark .navbar-brand .navbar-link:hover, .navbar.is-dark .navbar-brand .navbar-link.is-active { - background-color: #292929; - color: #f5f5f5; + background-color: #292929; + color: #f5f5f5; } .navbar.is-dark .navbar-brand .navbar-link::after { - border-color: #f5f5f5; + border-color: #f5f5f5; } .navbar.is-dark .navbar-burger { - color: #f5f5f5; + color: #f5f5f5; } @media screen and (min-width: 1024px) { - .navbar.is-dark .navbar-start > .navbar-item, - .navbar.is-dark .navbar-start .navbar-link, - .navbar.is-dark .navbar-end > .navbar-item, - .navbar.is-dark .navbar-end .navbar-link { - color: #f5f5f5; - } - .navbar.is-dark .navbar-start > a.navbar-item:focus, - .navbar.is-dark .navbar-start > a.navbar-item:hover, - .navbar.is-dark .navbar-start > a.navbar-item.is-active, - .navbar.is-dark .navbar-start .navbar-link:focus, - .navbar.is-dark .navbar-start .navbar-link:hover, - .navbar.is-dark .navbar-start .navbar-link.is-active, - .navbar.is-dark .navbar-end > a.navbar-item:focus, - .navbar.is-dark .navbar-end > a.navbar-item:hover, - .navbar.is-dark .navbar-end > a.navbar-item.is-active, - .navbar.is-dark .navbar-end .navbar-link:focus, - .navbar.is-dark .navbar-end .navbar-link:hover, - .navbar.is-dark .navbar-end .navbar-link.is-active { - background-color: #292929; - color: #f5f5f5; - } - .navbar.is-dark .navbar-start .navbar-link::after, - .navbar.is-dark .navbar-end .navbar-link::after { - border-color: #f5f5f5; - } - .navbar.is-dark .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #292929; - color: #f5f5f5; - } - .navbar.is-dark .navbar-dropdown a.navbar-item.is-active { - background-color: #363636; - color: #f5f5f5; - } + .navbar.is-dark .navbar-start > .navbar-item, + .navbar.is-dark .navbar-start .navbar-link, + .navbar.is-dark .navbar-end > .navbar-item, + .navbar.is-dark .navbar-end .navbar-link { + color: #f5f5f5; + } + .navbar.is-dark .navbar-start > a.navbar-item:focus, + .navbar.is-dark .navbar-start > a.navbar-item:hover, + .navbar.is-dark .navbar-start > a.navbar-item.is-active, + .navbar.is-dark .navbar-start .navbar-link:focus, + .navbar.is-dark .navbar-start .navbar-link:hover, + .navbar.is-dark .navbar-start .navbar-link.is-active, + .navbar.is-dark .navbar-end > a.navbar-item:focus, + .navbar.is-dark .navbar-end > a.navbar-item:hover, + .navbar.is-dark .navbar-end > a.navbar-item.is-active, + .navbar.is-dark .navbar-end .navbar-link:focus, + .navbar.is-dark .navbar-end .navbar-link:hover, + .navbar.is-dark .navbar-end .navbar-link.is-active { + background-color: #292929; + color: #f5f5f5; + } + .navbar.is-dark .navbar-start .navbar-link::after, + .navbar.is-dark .navbar-end .navbar-link::after { + border-color: #f5f5f5; + } + .navbar.is-dark .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #292929; + color: #f5f5f5; + } + .navbar.is-dark .navbar-dropdown a.navbar-item.is-active { + background-color: #363636; + color: #f5f5f5; + } } .navbar.is-primary { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .navbar.is-primary .navbar-brand > .navbar-item, .navbar.is-primary .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-primary .navbar-brand > a.navbar-item:focus, .navbar.is-primary .navbar-brand > a.navbar-item:hover, @@ -5929,59 +5929,59 @@ a.list-item { .navbar.is-primary .navbar-brand .navbar-link:focus, .navbar.is-primary .navbar-brand .navbar-link:hover, .navbar.is-primary .navbar-brand .navbar-link.is-active { - background-color: #00b89c; - color: #fff; + background-color: #00b89c; + color: #fff; } .navbar.is-primary .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-primary .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-primary .navbar-start > .navbar-item, - .navbar.is-primary .navbar-start .navbar-link, - .navbar.is-primary .navbar-end > .navbar-item, - .navbar.is-primary .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-primary .navbar-start > a.navbar-item:focus, - .navbar.is-primary .navbar-start > a.navbar-item:hover, - .navbar.is-primary .navbar-start > a.navbar-item.is-active, - .navbar.is-primary .navbar-start .navbar-link:focus, - .navbar.is-primary .navbar-start .navbar-link:hover, - .navbar.is-primary .navbar-start .navbar-link.is-active, - .navbar.is-primary .navbar-end > a.navbar-item:focus, - .navbar.is-primary .navbar-end > a.navbar-item:hover, - .navbar.is-primary .navbar-end > a.navbar-item.is-active, - .navbar.is-primary .navbar-end .navbar-link:focus, - .navbar.is-primary .navbar-end .navbar-link:hover, - .navbar.is-primary .navbar-end .navbar-link.is-active { - background-color: #00b89c; - color: #fff; - } - .navbar.is-primary .navbar-start .navbar-link::after, - .navbar.is-primary .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-primary .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #00b89c; - color: #fff; - } - .navbar.is-primary .navbar-dropdown a.navbar-item.is-active { - background-color: #00d1b2; - color: #fff; - } + .navbar.is-primary .navbar-start > .navbar-item, + .navbar.is-primary .navbar-start .navbar-link, + .navbar.is-primary .navbar-end > .navbar-item, + .navbar.is-primary .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-primary .navbar-start > a.navbar-item:focus, + .navbar.is-primary .navbar-start > a.navbar-item:hover, + .navbar.is-primary .navbar-start > a.navbar-item.is-active, + .navbar.is-primary .navbar-start .navbar-link:focus, + .navbar.is-primary .navbar-start .navbar-link:hover, + .navbar.is-primary .navbar-start .navbar-link.is-active, + .navbar.is-primary .navbar-end > a.navbar-item:focus, + .navbar.is-primary .navbar-end > a.navbar-item:hover, + .navbar.is-primary .navbar-end > a.navbar-item.is-active, + .navbar.is-primary .navbar-end .navbar-link:focus, + .navbar.is-primary .navbar-end .navbar-link:hover, + .navbar.is-primary .navbar-end .navbar-link.is-active { + background-color: #00b89c; + color: #fff; + } + .navbar.is-primary .navbar-start .navbar-link::after, + .navbar.is-primary .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-primary .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #00b89c; + color: #fff; + } + .navbar.is-primary .navbar-dropdown a.navbar-item.is-active { + background-color: #00d1b2; + color: #fff; + } } .navbar.is-link { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .navbar.is-link .navbar-brand > .navbar-item, .navbar.is-link .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-link .navbar-brand > a.navbar-item:focus, .navbar.is-link .navbar-brand > a.navbar-item:hover, @@ -5989,59 +5989,59 @@ a.list-item { .navbar.is-link .navbar-brand .navbar-link:focus, .navbar.is-link .navbar-brand .navbar-link:hover, .navbar.is-link .navbar-brand .navbar-link.is-active { - background-color: #2366d1; - color: #fff; + background-color: #2366d1; + color: #fff; } .navbar.is-link .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-link .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-link .navbar-start > .navbar-item, - .navbar.is-link .navbar-start .navbar-link, - .navbar.is-link .navbar-end > .navbar-item, - .navbar.is-link .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-link .navbar-start > a.navbar-item:focus, - .navbar.is-link .navbar-start > a.navbar-item:hover, - .navbar.is-link .navbar-start > a.navbar-item.is-active, - .navbar.is-link .navbar-start .navbar-link:focus, - .navbar.is-link .navbar-start .navbar-link:hover, - .navbar.is-link .navbar-start .navbar-link.is-active, - .navbar.is-link .navbar-end > a.navbar-item:focus, - .navbar.is-link .navbar-end > a.navbar-item:hover, - .navbar.is-link .navbar-end > a.navbar-item.is-active, - .navbar.is-link .navbar-end .navbar-link:focus, - .navbar.is-link .navbar-end .navbar-link:hover, - .navbar.is-link .navbar-end .navbar-link.is-active { - background-color: #2366d1; - color: #fff; - } - .navbar.is-link .navbar-start .navbar-link::after, - .navbar.is-link .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-link .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-link .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #2366d1; - color: #fff; - } - .navbar.is-link .navbar-dropdown a.navbar-item.is-active { - background-color: #3273dc; - color: #fff; - } + .navbar.is-link .navbar-start > .navbar-item, + .navbar.is-link .navbar-start .navbar-link, + .navbar.is-link .navbar-end > .navbar-item, + .navbar.is-link .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-link .navbar-start > a.navbar-item:focus, + .navbar.is-link .navbar-start > a.navbar-item:hover, + .navbar.is-link .navbar-start > a.navbar-item.is-active, + .navbar.is-link .navbar-start .navbar-link:focus, + .navbar.is-link .navbar-start .navbar-link:hover, + .navbar.is-link .navbar-start .navbar-link.is-active, + .navbar.is-link .navbar-end > a.navbar-item:focus, + .navbar.is-link .navbar-end > a.navbar-item:hover, + .navbar.is-link .navbar-end > a.navbar-item.is-active, + .navbar.is-link .navbar-end .navbar-link:focus, + .navbar.is-link .navbar-end .navbar-link:hover, + .navbar.is-link .navbar-end .navbar-link.is-active { + background-color: #2366d1; + color: #fff; + } + .navbar.is-link .navbar-start .navbar-link::after, + .navbar.is-link .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-link .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-link .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-link .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #2366d1; + color: #fff; + } + .navbar.is-link .navbar-dropdown a.navbar-item.is-active { + background-color: #3273dc; + color: #fff; + } } .navbar.is-info { - background-color: #209cee; - color: #fff; + background-color: #209cee; + color: #fff; } .navbar.is-info .navbar-brand > .navbar-item, .navbar.is-info .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-info .navbar-brand > a.navbar-item:focus, .navbar.is-info .navbar-brand > a.navbar-item:hover, @@ -6049,59 +6049,59 @@ a.list-item { .navbar.is-info .navbar-brand .navbar-link:focus, .navbar.is-info .navbar-brand .navbar-link:hover, .navbar.is-info .navbar-brand .navbar-link.is-active { - background-color: #118fe4; - color: #fff; + background-color: #118fe4; + color: #fff; } .navbar.is-info .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-info .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-info .navbar-start > .navbar-item, - .navbar.is-info .navbar-start .navbar-link, - .navbar.is-info .navbar-end > .navbar-item, - .navbar.is-info .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-info .navbar-start > a.navbar-item:focus, - .navbar.is-info .navbar-start > a.navbar-item:hover, - .navbar.is-info .navbar-start > a.navbar-item.is-active, - .navbar.is-info .navbar-start .navbar-link:focus, - .navbar.is-info .navbar-start .navbar-link:hover, - .navbar.is-info .navbar-start .navbar-link.is-active, - .navbar.is-info .navbar-end > a.navbar-item:focus, - .navbar.is-info .navbar-end > a.navbar-item:hover, - .navbar.is-info .navbar-end > a.navbar-item.is-active, - .navbar.is-info .navbar-end .navbar-link:focus, - .navbar.is-info .navbar-end .navbar-link:hover, - .navbar.is-info .navbar-end .navbar-link.is-active { - background-color: #118fe4; - color: #fff; - } - .navbar.is-info .navbar-start .navbar-link::after, - .navbar.is-info .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-info .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-info .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #118fe4; - color: #fff; - } - .navbar.is-info .navbar-dropdown a.navbar-item.is-active { - background-color: #209cee; - color: #fff; - } + .navbar.is-info .navbar-start > .navbar-item, + .navbar.is-info .navbar-start .navbar-link, + .navbar.is-info .navbar-end > .navbar-item, + .navbar.is-info .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-info .navbar-start > a.navbar-item:focus, + .navbar.is-info .navbar-start > a.navbar-item:hover, + .navbar.is-info .navbar-start > a.navbar-item.is-active, + .navbar.is-info .navbar-start .navbar-link:focus, + .navbar.is-info .navbar-start .navbar-link:hover, + .navbar.is-info .navbar-start .navbar-link.is-active, + .navbar.is-info .navbar-end > a.navbar-item:focus, + .navbar.is-info .navbar-end > a.navbar-item:hover, + .navbar.is-info .navbar-end > a.navbar-item.is-active, + .navbar.is-info .navbar-end .navbar-link:focus, + .navbar.is-info .navbar-end .navbar-link:hover, + .navbar.is-info .navbar-end .navbar-link.is-active { + background-color: #118fe4; + color: #fff; + } + .navbar.is-info .navbar-start .navbar-link::after, + .navbar.is-info .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-info .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-info .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #118fe4; + color: #fff; + } + .navbar.is-info .navbar-dropdown a.navbar-item.is-active { + background-color: #209cee; + color: #fff; + } } .navbar.is-success { - background-color: #23d160; - color: #fff; + background-color: #23d160; + color: #fff; } .navbar.is-success .navbar-brand > .navbar-item, .navbar.is-success .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-success .navbar-brand > a.navbar-item:focus, .navbar.is-success .navbar-brand > a.navbar-item:hover, @@ -6109,59 +6109,59 @@ a.list-item { .navbar.is-success .navbar-brand .navbar-link:focus, .navbar.is-success .navbar-brand .navbar-link:hover, .navbar.is-success .navbar-brand .navbar-link.is-active { - background-color: #20bc56; - color: #fff; + background-color: #20bc56; + color: #fff; } .navbar.is-success .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-success .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-success .navbar-start > .navbar-item, - .navbar.is-success .navbar-start .navbar-link, - .navbar.is-success .navbar-end > .navbar-item, - .navbar.is-success .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-success .navbar-start > a.navbar-item:focus, - .navbar.is-success .navbar-start > a.navbar-item:hover, - .navbar.is-success .navbar-start > a.navbar-item.is-active, - .navbar.is-success .navbar-start .navbar-link:focus, - .navbar.is-success .navbar-start .navbar-link:hover, - .navbar.is-success .navbar-start .navbar-link.is-active, - .navbar.is-success .navbar-end > a.navbar-item:focus, - .navbar.is-success .navbar-end > a.navbar-item:hover, - .navbar.is-success .navbar-end > a.navbar-item.is-active, - .navbar.is-success .navbar-end .navbar-link:focus, - .navbar.is-success .navbar-end .navbar-link:hover, - .navbar.is-success .navbar-end .navbar-link.is-active { - background-color: #20bc56; - color: #fff; - } - .navbar.is-success .navbar-start .navbar-link::after, - .navbar.is-success .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-success .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-success .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #20bc56; - color: #fff; - } - .navbar.is-success .navbar-dropdown a.navbar-item.is-active { - background-color: #23d160; - color: #fff; - } + .navbar.is-success .navbar-start > .navbar-item, + .navbar.is-success .navbar-start .navbar-link, + .navbar.is-success .navbar-end > .navbar-item, + .navbar.is-success .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-success .navbar-start > a.navbar-item:focus, + .navbar.is-success .navbar-start > a.navbar-item:hover, + .navbar.is-success .navbar-start > a.navbar-item.is-active, + .navbar.is-success .navbar-start .navbar-link:focus, + .navbar.is-success .navbar-start .navbar-link:hover, + .navbar.is-success .navbar-start .navbar-link.is-active, + .navbar.is-success .navbar-end > a.navbar-item:focus, + .navbar.is-success .navbar-end > a.navbar-item:hover, + .navbar.is-success .navbar-end > a.navbar-item.is-active, + .navbar.is-success .navbar-end .navbar-link:focus, + .navbar.is-success .navbar-end .navbar-link:hover, + .navbar.is-success .navbar-end .navbar-link.is-active { + background-color: #20bc56; + color: #fff; + } + .navbar.is-success .navbar-start .navbar-link::after, + .navbar.is-success .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-success .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-success .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #20bc56; + color: #fff; + } + .navbar.is-success .navbar-dropdown a.navbar-item.is-active { + background-color: #23d160; + color: #fff; + } } .navbar.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .navbar.is-warning .navbar-brand > .navbar-item, .navbar.is-warning .navbar-brand .navbar-link { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } .navbar.is-warning .navbar-brand > a.navbar-item:focus, .navbar.is-warning .navbar-brand > a.navbar-item:hover, @@ -6169,59 +6169,59 @@ a.list-item { .navbar.is-warning .navbar-brand .navbar-link:focus, .navbar.is-warning .navbar-brand .navbar-link:hover, .navbar.is-warning .navbar-brand .navbar-link.is-active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); + background-color: #ffd83d; + color: rgba(0, 0, 0, 0.7); } .navbar.is-warning .navbar-brand .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); + border-color: rgba(0, 0, 0, 0.7); } .navbar.is-warning .navbar-burger { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } @media screen and (min-width: 1024px) { - .navbar.is-warning .navbar-start > .navbar-item, - .navbar.is-warning .navbar-start .navbar-link, - .navbar.is-warning .navbar-end > .navbar-item, - .navbar.is-warning .navbar-end .navbar-link { - color: rgba(0, 0, 0, 0.7); - } - .navbar.is-warning .navbar-start > a.navbar-item:focus, - .navbar.is-warning .navbar-start > a.navbar-item:hover, - .navbar.is-warning .navbar-start > a.navbar-item.is-active, - .navbar.is-warning .navbar-start .navbar-link:focus, - .navbar.is-warning .navbar-start .navbar-link:hover, - .navbar.is-warning .navbar-start .navbar-link.is-active, - .navbar.is-warning .navbar-end > a.navbar-item:focus, - .navbar.is-warning .navbar-end > a.navbar-item:hover, - .navbar.is-warning .navbar-end > a.navbar-item.is-active, - .navbar.is-warning .navbar-end .navbar-link:focus, - .navbar.is-warning .navbar-end .navbar-link:hover, - .navbar.is-warning .navbar-end .navbar-link.is-active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - .navbar.is-warning .navbar-start .navbar-link::after, - .navbar.is-warning .navbar-end .navbar-link::after { - border-color: rgba(0, 0, 0, 0.7); - } - .navbar.is-warning .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); - } - .navbar.is-warning .navbar-dropdown a.navbar-item.is-active { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); - } + .navbar.is-warning .navbar-start > .navbar-item, + .navbar.is-warning .navbar-start .navbar-link, + .navbar.is-warning .navbar-end > .navbar-item, + .navbar.is-warning .navbar-end .navbar-link { + color: rgba(0, 0, 0, 0.7); + } + .navbar.is-warning .navbar-start > a.navbar-item:focus, + .navbar.is-warning .navbar-start > a.navbar-item:hover, + .navbar.is-warning .navbar-start > a.navbar-item.is-active, + .navbar.is-warning .navbar-start .navbar-link:focus, + .navbar.is-warning .navbar-start .navbar-link:hover, + .navbar.is-warning .navbar-start .navbar-link.is-active, + .navbar.is-warning .navbar-end > a.navbar-item:focus, + .navbar.is-warning .navbar-end > a.navbar-item:hover, + .navbar.is-warning .navbar-end > a.navbar-item.is-active, + .navbar.is-warning .navbar-end .navbar-link:focus, + .navbar.is-warning .navbar-end .navbar-link:hover, + .navbar.is-warning .navbar-end .navbar-link.is-active { + background-color: #ffd83d; + color: rgba(0, 0, 0, 0.7); + } + .navbar.is-warning .navbar-start .navbar-link::after, + .navbar.is-warning .navbar-end .navbar-link::after { + border-color: rgba(0, 0, 0, 0.7); + } + .navbar.is-warning .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #ffd83d; + color: rgba(0, 0, 0, 0.7); + } + .navbar.is-warning .navbar-dropdown a.navbar-item.is-active { + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); + } } .navbar.is-danger { - background-color: #ff3860; - color: #fff; + background-color: #ff3860; + color: #fff; } .navbar.is-danger .navbar-brand > .navbar-item, .navbar.is-danger .navbar-brand .navbar-link { - color: #fff; + color: #fff; } .navbar.is-danger .navbar-brand > a.navbar-item:focus, .navbar.is-danger .navbar-brand > a.navbar-item:hover, @@ -6229,168 +6229,168 @@ a.list-item { .navbar.is-danger .navbar-brand .navbar-link:focus, .navbar.is-danger .navbar-brand .navbar-link:hover, .navbar.is-danger .navbar-brand .navbar-link.is-active { - background-color: #ff1f4b; - color: #fff; + background-color: #ff1f4b; + color: #fff; } .navbar.is-danger .navbar-brand .navbar-link::after { - border-color: #fff; + border-color: #fff; } .navbar.is-danger .navbar-burger { - color: #fff; + color: #fff; } @media screen and (min-width: 1024px) { - .navbar.is-danger .navbar-start > .navbar-item, - .navbar.is-danger .navbar-start .navbar-link, - .navbar.is-danger .navbar-end > .navbar-item, - .navbar.is-danger .navbar-end .navbar-link { - color: #fff; - } - .navbar.is-danger .navbar-start > a.navbar-item:focus, - .navbar.is-danger .navbar-start > a.navbar-item:hover, - .navbar.is-danger .navbar-start > a.navbar-item.is-active, - .navbar.is-danger .navbar-start .navbar-link:focus, - .navbar.is-danger .navbar-start .navbar-link:hover, - .navbar.is-danger .navbar-start .navbar-link.is-active, - .navbar.is-danger .navbar-end > a.navbar-item:focus, - .navbar.is-danger .navbar-end > a.navbar-item:hover, - .navbar.is-danger .navbar-end > a.navbar-item.is-active, - .navbar.is-danger .navbar-end .navbar-link:focus, - .navbar.is-danger .navbar-end .navbar-link:hover, - .navbar.is-danger .navbar-end .navbar-link.is-active { - background-color: #ff1f4b; - color: #fff; - } - .navbar.is-danger .navbar-start .navbar-link::after, - .navbar.is-danger .navbar-end .navbar-link::after { - border-color: #fff; - } - .navbar.is-danger .navbar-item.has-dropdown:focus .navbar-link, - .navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link, - .navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #ff1f4b; - color: #fff; - } - .navbar.is-danger .navbar-dropdown a.navbar-item.is-active { - background-color: #ff3860; - color: #fff; - } + .navbar.is-danger .navbar-start > .navbar-item, + .navbar.is-danger .navbar-start .navbar-link, + .navbar.is-danger .navbar-end > .navbar-item, + .navbar.is-danger .navbar-end .navbar-link { + color: #fff; + } + .navbar.is-danger .navbar-start > a.navbar-item:focus, + .navbar.is-danger .navbar-start > a.navbar-item:hover, + .navbar.is-danger .navbar-start > a.navbar-item.is-active, + .navbar.is-danger .navbar-start .navbar-link:focus, + .navbar.is-danger .navbar-start .navbar-link:hover, + .navbar.is-danger .navbar-start .navbar-link.is-active, + .navbar.is-danger .navbar-end > a.navbar-item:focus, + .navbar.is-danger .navbar-end > a.navbar-item:hover, + .navbar.is-danger .navbar-end > a.navbar-item.is-active, + .navbar.is-danger .navbar-end .navbar-link:focus, + .navbar.is-danger .navbar-end .navbar-link:hover, + .navbar.is-danger .navbar-end .navbar-link.is-active { + background-color: #ff1f4b; + color: #fff; + } + .navbar.is-danger .navbar-start .navbar-link::after, + .navbar.is-danger .navbar-end .navbar-link::after { + border-color: #fff; + } + .navbar.is-danger .navbar-item.has-dropdown:focus .navbar-link, + .navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link, + .navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #ff1f4b; + color: #fff; + } + .navbar.is-danger .navbar-dropdown a.navbar-item.is-active { + background-color: #ff3860; + color: #fff; + } } .navbar > .container { - align-items: stretch; - display: flex; - min-height: 3.25rem; - width: 100%; + align-items: stretch; + display: flex; + min-height: 3.25rem; + width: 100%; } .navbar.has-shadow { - box-shadow: 0 2px 0 0 #f5f5f5; + box-shadow: 0 2px 0 0 #f5f5f5; } .navbar.is-fixed-bottom, .navbar.is-fixed-top { - left: 0; - position: fixed; - right: 0; - z-index: 30; + left: 0; + position: fixed; + right: 0; + z-index: 30; } .navbar.is-fixed-bottom { - bottom: 0; + bottom: 0; } .navbar.is-fixed-bottom.has-shadow { - box-shadow: 0 -2px 0 0 #f5f5f5; + box-shadow: 0 -2px 0 0 #f5f5f5; } .navbar.is-fixed-top { - top: 0; + top: 0; } html.has-navbar-fixed-top, body.has-navbar-fixed-top { - padding-top: 3.25rem; + padding-top: 3.25rem; } html.has-navbar-fixed-bottom, body.has-navbar-fixed-bottom { - padding-bottom: 3.25rem; + padding-bottom: 3.25rem; } .navbar-brand, .navbar-tabs { - align-items: stretch; - display: flex; - flex-shrink: 0; - min-height: 3.25rem; + align-items: stretch; + display: flex; + flex-shrink: 0; + min-height: 3.25rem; } .navbar-brand a.navbar-item:focus, .navbar-brand a.navbar-item:hover { - background-color: transparent; + background-color: transparent; } .navbar-tabs { - -webkit-overflow-scrolling: touch; - max-width: 100vw; - overflow-x: auto; - overflow-y: hidden; + -webkit-overflow-scrolling: touch; + max-width: 100vw; + overflow-x: auto; + overflow-y: hidden; } .navbar-burger { - color: #4a4a4a; - cursor: pointer; - display: block; - height: 3.25rem; - position: relative; - width: 3.25rem; - margin-left: auto; + color: #4a4a4a; + cursor: pointer; + display: block; + height: 3.25rem; + position: relative; + width: 3.25rem; + margin-left: auto; } .navbar-burger span { - background-color: currentColor; - display: block; - height: 1px; - left: calc(50% - 8px); - position: absolute; - -webkit-transform-origin: center; - transform-origin: center; - transition-duration: 86ms; - transition-property: background-color, opacity, -webkit-transform; - transition-property: background-color, opacity, transform; - transition-property: background-color, opacity, transform, -webkit-transform; - transition-timing-function: ease-out; - width: 16px; + background-color: currentColor; + display: block; + height: 1px; + left: calc(50% - 8px); + position: absolute; + -webkit-transform-origin: center; + transform-origin: center; + transition-duration: 86ms; + transition-property: background-color, opacity, -webkit-transform; + transition-property: background-color, opacity, transform; + transition-property: background-color, opacity, transform, -webkit-transform; + transition-timing-function: ease-out; + width: 16px; } .navbar-burger span:nth-child(1) { - top: calc(50% - 6px); + top: calc(50% - 6px); } .navbar-burger span:nth-child(2) { - top: calc(50% - 1px); + top: calc(50% - 1px); } .navbar-burger span:nth-child(3) { - top: calc(50% + 4px); + top: calc(50% + 4px); } .navbar-burger:hover { - background-color: rgba(0, 0, 0, 0.05); + background-color: rgba(0, 0, 0, 0.05); } .navbar-burger.is-active span:nth-child(1) { - -webkit-transform: translateY(5px) rotate(45deg); - transform: translateY(5px) rotate(45deg); + -webkit-transform: translateY(5px) rotate(45deg); + transform: translateY(5px) rotate(45deg); } .navbar-burger.is-active span:nth-child(2) { - opacity: 0; + opacity: 0; } .navbar-burger.is-active span:nth-child(3) { - -webkit-transform: translateY(-5px) rotate(-45deg); - transform: translateY(-5px) rotate(-45deg); + -webkit-transform: translateY(-5px) rotate(-45deg); + transform: translateY(-5px) rotate(-45deg); } .navbar-menu { - display: none; + display: none; } .navbar-item, .navbar-link { - color: #4a4a4a; - display: block; - line-height: 1.5; - padding: 0.5rem 0.75rem; - position: relative; + color: #4a4a4a; + display: block; + line-height: 1.5; + padding: 0.5rem 0.75rem; + position: relative; } .navbar-item .icon:only-child, .navbar-link .icon:only-child { - margin-left: -0.25rem; - margin-right: -0.25rem; + margin-left: -0.25rem; + margin-right: -0.25rem; } a.navbar-item, .navbar-link { - cursor: pointer; + cursor: pointer; } a.navbar-item:focus, a.navbar-item:focus-within, @@ -6400,4342 +6400,4358 @@ a.navbar-item.is-active, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active { - background-color: #fafafa; - color: #3273dc; + background-color: #fafafa; + color: #3273dc; } .navbar-item { - display: block; - flex-grow: 0; - flex-shrink: 0; + display: block; + flex-grow: 0; + flex-shrink: 0; } .navbar-item img { - max-height: 1.75rem; + max-height: 1.75rem; } .navbar-item.has-dropdown { - padding: 0; + padding: 0; } .navbar-item.is-expanded { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .navbar-item.is-tab { - border-bottom: 1px solid transparent; - min-height: 3.25rem; - padding-bottom: calc(0.5rem - 1px); + border-bottom: 1px solid transparent; + min-height: 3.25rem; + padding-bottom: calc(0.5rem - 1px); } .navbar-item.is-tab:focus, .navbar-item.is-tab:hover { - background-color: rgba(0, 0, 0, 0); - border-bottom-color: #3273dc; + background-color: rgba(0, 0, 0, 0); + border-bottom-color: #3273dc; } .navbar-item.is-tab.is-active { - background-color: rgba(0, 0, 0, 0); - border-bottom-color: #3273dc; - border-bottom-style: solid; - border-bottom-width: 3px; - color: #3273dc; - padding-bottom: calc(0.5rem - 3px); + background-color: rgba(0, 0, 0, 0); + border-bottom-color: #3273dc; + border-bottom-style: solid; + border-bottom-width: 3px; + color: #3273dc; + padding-bottom: calc(0.5rem - 3px); } .navbar-content { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .navbar-link:not(.is-arrowless) { - padding-right: 2.5em; + padding-right: 2.5em; } .navbar-link:not(.is-arrowless)::after { - border-color: #3273dc; - margin-top: -0.375em; - right: 1.125em; + border-color: #3273dc; + margin-top: -0.375em; + right: 1.125em; } .navbar-dropdown { - font-size: 0.875rem; - padding-bottom: 0.5rem; - padding-top: 0.5rem; + font-size: 0.875rem; + padding-bottom: 0.5rem; + padding-top: 0.5rem; } .navbar-dropdown .navbar-item { - padding-left: 1.5rem; - padding-right: 1.5rem; + padding-left: 1.5rem; + padding-right: 1.5rem; } .navbar-divider { - background-color: #f5f5f5; - border: none; - display: none; - height: 2px; - margin: 0.5rem 0; + background-color: #f5f5f5; + border: none; + display: none; + height: 2px; + margin: 0.5rem 0; } @media screen and (max-width: 1023px) { - .navbar > .container { - display: block; - } - .navbar-brand .navbar-item, - .navbar-tabs .navbar-item { - align-items: center; - display: flex; - } - .navbar-link::after { - display: none; - } - .navbar-menu { - background-color: #fff; - box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1); - padding: 0.5rem 0; - } - .navbar-menu.is-active { - display: block; - } - .navbar.is-fixed-bottom-touch, - .navbar.is-fixed-top-touch { - left: 0; - position: fixed; - right: 0; - z-index: 30; - } - .navbar.is-fixed-bottom-touch { - bottom: 0; - } - .navbar.is-fixed-bottom-touch.has-shadow { - box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - } - .navbar.is-fixed-top-touch { - top: 0; - } - .navbar.is-fixed-top .navbar-menu, - .navbar.is-fixed-top-touch .navbar-menu { - -webkit-overflow-scrolling: touch; - max-height: calc(100vh - 3.25rem); - overflow: auto; - } - html.has-navbar-fixed-top-touch, - body.has-navbar-fixed-top-touch { - padding-top: 3.25rem; - } - html.has-navbar-fixed-bottom-touch, - body.has-navbar-fixed-bottom-touch { - padding-bottom: 3.25rem; - } + .navbar > .container { + display: block; + } + .navbar-brand .navbar-item, + .navbar-tabs .navbar-item { + align-items: center; + display: flex; + } + .navbar-link::after { + display: none; + } + .navbar-menu { + background-color: #fff; + box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1); + padding: 0.5rem 0; + } + .navbar-menu.is-active { + display: block; + } + .navbar.is-fixed-bottom-touch, + .navbar.is-fixed-top-touch { + left: 0; + position: fixed; + right: 0; + z-index: 30; + } + .navbar.is-fixed-bottom-touch { + bottom: 0; + } + .navbar.is-fixed-bottom-touch.has-shadow { + box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); + } + .navbar.is-fixed-top-touch { + top: 0; + } + .navbar.is-fixed-top .navbar-menu, + .navbar.is-fixed-top-touch .navbar-menu { + -webkit-overflow-scrolling: touch; + max-height: calc(100vh - 3.25rem); + overflow: auto; + } + html.has-navbar-fixed-top-touch, + body.has-navbar-fixed-top-touch { + padding-top: 3.25rem; + } + html.has-navbar-fixed-bottom-touch, + body.has-navbar-fixed-bottom-touch { + padding-bottom: 3.25rem; + } } @media screen and (min-width: 1024px) { - .navbar, - .navbar-menu, - .navbar-start, - .navbar-end { - align-items: stretch; - display: flex; - } - .navbar { - min-height: 3.25rem; - } - .navbar.is-spaced { - padding: 1rem 2rem; - } - .navbar.is-spaced .navbar-start, - .navbar.is-spaced .navbar-end { - align-items: center; - } - .navbar.is-spaced a.navbar-item, - .navbar.is-spaced .navbar-link { - border-radius: 4px; - } - .navbar.is-transparent a.navbar-item:focus, - .navbar.is-transparent a.navbar-item:hover, - .navbar.is-transparent a.navbar-item.is-active, - .navbar.is-transparent .navbar-link:focus, - .navbar.is-transparent .navbar-link:hover, - .navbar.is-transparent .navbar-link.is-active { - background-color: transparent !important; - } - .navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link, - .navbar.is-transparent - .navbar-item.has-dropdown.is-hoverable:focus - .navbar-link, - .navbar.is-transparent - .navbar-item.has-dropdown.is-hoverable:focus-within - .navbar-link, - .navbar.is-transparent - .navbar-item.has-dropdown.is-hoverable:hover - .navbar-link { - background-color: transparent !important; - } - .navbar.is-transparent .navbar-dropdown a.navbar-item:focus, - .navbar.is-transparent .navbar-dropdown a.navbar-item:hover { - background-color: #f5f5f5; - color: #0a0a0a; - } - .navbar.is-transparent .navbar-dropdown a.navbar-item.is-active { - background-color: #f5f5f5; - color: #3273dc; - } - .navbar-burger { - display: none; - } - .navbar-item, - .navbar-link { - align-items: center; - display: flex; - } - .navbar-item { - display: flex; - } - .navbar-item.has-dropdown { - align-items: stretch; - } - .navbar-item.has-dropdown-up .navbar-link::after { - -webkit-transform: rotate(135deg) translate(0.25em, -0.25em); - transform: rotate(135deg) translate(0.25em, -0.25em); - } - .navbar-item.has-dropdown-up .navbar-dropdown { - border-bottom: 2px solid #dbdbdb; - border-radius: 6px 6px 0 0; - border-top: none; - bottom: 100%; - box-shadow: 0 -8px 8px rgba(10, 10, 10, 0.1); - top: auto; - } - .navbar-item.is-active .navbar-dropdown, - .navbar-item.is-hoverable:focus .navbar-dropdown, - .navbar-item.is-hoverable:focus-within .navbar-dropdown, - .navbar-item.is-hoverable:hover .navbar-dropdown { - display: block; - } - .navbar.is-spaced .navbar-item.is-active .navbar-dropdown, - .navbar-item.is-active .navbar-dropdown.is-boxed, - .navbar.is-spaced .navbar-item.is-hoverable:focus .navbar-dropdown, - .navbar-item.is-hoverable:focus .navbar-dropdown.is-boxed, - .navbar.is-spaced .navbar-item.is-hoverable:focus-within .navbar-dropdown, - .navbar-item.is-hoverable:focus-within .navbar-dropdown.is-boxed, - .navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown, - .navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed { - opacity: 1; - pointer-events: auto; - -webkit-transform: translateY(0); - transform: translateY(0); - } - .navbar-menu { - flex-grow: 1; - flex-shrink: 0; - } - .navbar-start { - justify-content: flex-start; - margin-right: auto; - } - .navbar-end { - justify-content: flex-end; - margin-left: auto; - } - .navbar-dropdown { - background-color: #fff; - border-bottom-left-radius: 6px; - border-bottom-right-radius: 6px; - border-top: 2px solid #dbdbdb; - box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1); - display: none; - font-size: 0.875rem; - left: 0; - min-width: 100%; - position: absolute; - top: 100%; - z-index: 20; - } - .navbar-dropdown .navbar-item { - padding: 0.375rem 1rem; - white-space: nowrap; - } - .navbar-dropdown a.navbar-item { - padding-right: 3rem; - } - .navbar-dropdown a.navbar-item:focus, - .navbar-dropdown a.navbar-item:hover { - background-color: #f5f5f5; - color: #0a0a0a; - } - .navbar-dropdown a.navbar-item.is-active { - background-color: #f5f5f5; - color: #3273dc; - } - .navbar.is-spaced .navbar-dropdown, - .navbar-dropdown.is-boxed { - border-radius: 6px; - border-top: none; - box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1); - display: block; - opacity: 0; - pointer-events: none; - top: calc(100% + (-4px)); - -webkit-transform: translateY(-5px); - transform: translateY(-5px); - transition-duration: 86ms; - transition-property: opacity, -webkit-transform; - transition-property: opacity, transform; - transition-property: opacity, transform, -webkit-transform; - } - .navbar-dropdown.is-right { - left: auto; - right: 0; - } - .navbar-divider { - display: block; - } - .navbar > .container .navbar-brand, - .container > .navbar .navbar-brand { - margin-left: -0.75rem; - } - .navbar > .container .navbar-menu, - .container > .navbar .navbar-menu { - margin-right: -0.75rem; - } - .navbar.is-fixed-bottom-desktop, - .navbar.is-fixed-top-desktop { - left: 0; - position: fixed; - right: 0; - z-index: 30; - } - .navbar.is-fixed-bottom-desktop { - bottom: 0; - } - .navbar.is-fixed-bottom-desktop.has-shadow { - box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); - } - .navbar.is-fixed-top-desktop { - top: 0; - } - html.has-navbar-fixed-top-desktop, - body.has-navbar-fixed-top-desktop { - padding-top: 3.25rem; - } - html.has-navbar-fixed-bottom-desktop, - body.has-navbar-fixed-bottom-desktop { - padding-bottom: 3.25rem; - } - html.has-spaced-navbar-fixed-top, - body.has-spaced-navbar-fixed-top { - padding-top: 5.25rem; - } - html.has-spaced-navbar-fixed-bottom, - body.has-spaced-navbar-fixed-bottom { - padding-bottom: 5.25rem; - } - a.navbar-item.is-active, - .navbar-link.is-active { - color: #0a0a0a; - } - a.navbar-item.is-active:not(:focus):not(:hover), - .navbar-link.is-active:not(:focus):not(:hover) { - background-color: rgba(0, 0, 0, 0); - } - .navbar-item.has-dropdown:focus .navbar-link, - .navbar-item.has-dropdown:hover .navbar-link, - .navbar-item.has-dropdown.is-active .navbar-link { - background-color: #fafafa; - } + .navbar, + .navbar-menu, + .navbar-start, + .navbar-end { + align-items: stretch; + display: flex; + } + .navbar { + min-height: 3.25rem; + } + .navbar.is-spaced { + padding: 1rem 2rem; + } + .navbar.is-spaced .navbar-start, + .navbar.is-spaced .navbar-end { + align-items: center; + } + .navbar.is-spaced a.navbar-item, + .navbar.is-spaced .navbar-link { + border-radius: 4px; + } + .navbar.is-transparent a.navbar-item:focus, + .navbar.is-transparent a.navbar-item:hover, + .navbar.is-transparent a.navbar-item.is-active, + .navbar.is-transparent .navbar-link:focus, + .navbar.is-transparent .navbar-link:hover, + .navbar.is-transparent .navbar-link.is-active { + background-color: transparent !important; + } + .navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link, + .navbar.is-transparent + .navbar-item.has-dropdown.is-hoverable:focus + .navbar-link, + .navbar.is-transparent + .navbar-item.has-dropdown.is-hoverable:focus-within + .navbar-link, + .navbar.is-transparent + .navbar-item.has-dropdown.is-hoverable:hover + .navbar-link { + background-color: transparent !important; + } + .navbar.is-transparent .navbar-dropdown a.navbar-item:focus, + .navbar.is-transparent .navbar-dropdown a.navbar-item:hover { + background-color: #f5f5f5; + color: #0a0a0a; + } + .navbar.is-transparent .navbar-dropdown a.navbar-item.is-active { + background-color: #f5f5f5; + color: #3273dc; + } + .navbar-burger { + display: none; + } + .navbar-item, + .navbar-link { + align-items: center; + display: flex; + } + .navbar-item { + display: flex; + } + .navbar-item.has-dropdown { + align-items: stretch; + } + .navbar-item.has-dropdown-up .navbar-link::after { + -webkit-transform: rotate(135deg) translate(0.25em, -0.25em); + transform: rotate(135deg) translate(0.25em, -0.25em); + } + .navbar-item.has-dropdown-up .navbar-dropdown { + border-bottom: 2px solid #dbdbdb; + border-radius: 6px 6px 0 0; + border-top: none; + bottom: 100%; + box-shadow: 0 -8px 8px rgba(10, 10, 10, 0.1); + top: auto; + } + .navbar-item.is-active .navbar-dropdown, + .navbar-item.is-hoverable:focus .navbar-dropdown, + .navbar-item.is-hoverable:focus-within .navbar-dropdown, + .navbar-item.is-hoverable:hover .navbar-dropdown { + display: block; + } + .navbar.is-spaced .navbar-item.is-active .navbar-dropdown, + .navbar-item.is-active .navbar-dropdown.is-boxed, + .navbar.is-spaced .navbar-item.is-hoverable:focus .navbar-dropdown, + .navbar-item.is-hoverable:focus .navbar-dropdown.is-boxed, + .navbar.is-spaced .navbar-item.is-hoverable:focus-within .navbar-dropdown, + .navbar-item.is-hoverable:focus-within .navbar-dropdown.is-boxed, + .navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown, + .navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed { + opacity: 1; + pointer-events: auto; + -webkit-transform: translateY(0); + transform: translateY(0); + } + .navbar-menu { + flex-grow: 1; + flex-shrink: 0; + } + .navbar-start { + justify-content: flex-start; + margin-right: auto; + } + .navbar-end { + justify-content: flex-end; + margin-left: auto; + } + .navbar-dropdown { + background-color: #fff; + border-bottom-left-radius: 6px; + border-bottom-right-radius: 6px; + border-top: 2px solid #dbdbdb; + box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1); + display: none; + font-size: 0.875rem; + left: 0; + min-width: 100%; + position: absolute; + top: 100%; + z-index: 20; + } + .navbar-dropdown .navbar-item { + padding: 0.375rem 1rem; + white-space: nowrap; + } + .navbar-dropdown a.navbar-item { + padding-right: 3rem; + } + .navbar-dropdown a.navbar-item:focus, + .navbar-dropdown a.navbar-item:hover { + background-color: #f5f5f5; + color: #0a0a0a; + } + .navbar-dropdown a.navbar-item.is-active { + background-color: #f5f5f5; + color: #3273dc; + } + .navbar.is-spaced .navbar-dropdown, + .navbar-dropdown.is-boxed { + border-radius: 6px; + border-top: none; + box-shadow: 0 8px 8px rgba(10, 10, 10, 0.1), + 0 0 0 1px rgba(10, 10, 10, 0.1); + display: block; + opacity: 0; + pointer-events: none; + top: calc(100% + (-4px)); + -webkit-transform: translateY(-5px); + transform: translateY(-5px); + transition-duration: 86ms; + transition-property: opacity, -webkit-transform; + transition-property: opacity, transform; + transition-property: opacity, transform, -webkit-transform; + } + .navbar-dropdown.is-right { + left: auto; + right: 0; + } + .navbar-divider { + display: block; + } + .navbar > .container .navbar-brand, + .container > .navbar .navbar-brand { + margin-left: -0.75rem; + } + .navbar > .container .navbar-menu, + .container > .navbar .navbar-menu { + margin-right: -0.75rem; + } + .navbar.is-fixed-bottom-desktop, + .navbar.is-fixed-top-desktop { + left: 0; + position: fixed; + right: 0; + z-index: 30; + } + .navbar.is-fixed-bottom-desktop { + bottom: 0; + } + .navbar.is-fixed-bottom-desktop.has-shadow { + box-shadow: 0 -2px 3px rgba(10, 10, 10, 0.1); + } + .navbar.is-fixed-top-desktop { + top: 0; + } + html.has-navbar-fixed-top-desktop, + body.has-navbar-fixed-top-desktop { + padding-top: 3.25rem; + } + html.has-navbar-fixed-bottom-desktop, + body.has-navbar-fixed-bottom-desktop { + padding-bottom: 3.25rem; + } + html.has-spaced-navbar-fixed-top, + body.has-spaced-navbar-fixed-top { + padding-top: 5.25rem; + } + html.has-spaced-navbar-fixed-bottom, + body.has-spaced-navbar-fixed-bottom { + padding-bottom: 5.25rem; + } + a.navbar-item.is-active, + .navbar-link.is-active { + color: #0a0a0a; + } + a.navbar-item.is-active:not(:focus):not(:hover), + .navbar-link.is-active:not(:focus):not(:hover) { + background-color: rgba(0, 0, 0, 0); + } + .navbar-item.has-dropdown:focus .navbar-link, + .navbar-item.has-dropdown:hover .navbar-link, + .navbar-item.has-dropdown.is-active .navbar-link { + background-color: #fafafa; + } } .hero.is-fullheight-with-navbar { - min-height: calc(100vh - 3.25rem); + min-height: calc(100vh - 3.25rem); } .pagination { - font-size: 1rem; - margin: -0.25rem; + font-size: 1rem; + margin: -0.25rem; } .pagination.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .pagination.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .pagination.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .pagination.is-rounded .pagination-previous, .pagination.is-rounded .pagination-next { - padding-left: 1em; - padding-right: 1em; - border-radius: 290486px; + padding-left: 1em; + padding-right: 1em; + border-radius: 290486px; } .pagination.is-rounded .pagination-link { - border-radius: 290486px; + border-radius: 290486px; } .pagination, .pagination-list { - align-items: center; - display: flex; - justify-content: center; - text-align: center; + align-items: center; + display: flex; + justify-content: center; + text-align: center; } .pagination-previous, .pagination-next, .pagination-link, .pagination-ellipsis { - font-size: 1em; - justify-content: center; - margin: 0.25rem; - padding-left: 0.5em; - padding-right: 0.5em; - text-align: center; + font-size: 1em; + justify-content: center; + margin: 0.25rem; + padding-left: 0.5em; + padding-right: 0.5em; + text-align: center; } .pagination-previous, .pagination-next, .pagination-link { - border-color: #dbdbdb; - color: #363636; - min-width: 2.25em; + border-color: #dbdbdb; + color: #363636; + min-width: 2.25em; } .pagination-previous:hover, .pagination-next:hover, .pagination-link:hover { - border-color: #b5b5b5; - color: #363636; + border-color: #b5b5b5; + color: #363636; } .pagination-previous:focus, .pagination-next:focus, .pagination-link:focus { - border-color: #3273dc; + border-color: #3273dc; } .pagination-previous:active, .pagination-next:active, .pagination-link:active { - box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2); + box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2); } .pagination-previous[disabled], .pagination-next[disabled], .pagination-link[disabled] { - background-color: #dbdbdb; - border-color: #dbdbdb; - box-shadow: none; - color: #7a7a7a; - opacity: 0.5; + background-color: #dbdbdb; + border-color: #dbdbdb; + box-shadow: none; + color: #7a7a7a; + opacity: 0.5; } .pagination-previous, .pagination-next { - padding-left: 0.75em; - padding-right: 0.75em; - white-space: nowrap; + padding-left: 0.75em; + padding-right: 0.75em; + white-space: nowrap; } .pagination-link.is-current { - background-color: #3273dc; - border-color: #3273dc; - color: #fff; + background-color: #3273dc; + border-color: #3273dc; + color: #fff; } .pagination-ellipsis { - color: #b5b5b5; - pointer-events: none; + color: #b5b5b5; + pointer-events: none; } .pagination-list { - flex-wrap: wrap; + flex-wrap: wrap; } @media screen and (max-width: 768px) { - .pagination { - flex-wrap: wrap; - } - .pagination-previous, - .pagination-next { - flex-grow: 1; - flex-shrink: 1; - } - .pagination-list li { - flex-grow: 1; - flex-shrink: 1; - } + .pagination { + flex-wrap: wrap; + } + .pagination-previous, + .pagination-next { + flex-grow: 1; + flex-shrink: 1; + } + .pagination-list li { + flex-grow: 1; + flex-shrink: 1; + } } @media screen and (min-width: 769px), print { - .pagination-list { - flex-grow: 1; - flex-shrink: 1; - justify-content: flex-start; - order: 1; - } - .pagination-previous { - order: 2; - } - .pagination-next { - order: 3; - } - .pagination { - justify-content: space-between; - } - .pagination.is-centered .pagination-previous { - order: 1; - } - .pagination.is-centered .pagination-list { - justify-content: center; - order: 2; - } - .pagination.is-centered .pagination-next { - order: 3; - } - .pagination.is-right .pagination-previous { - order: 1; - } - .pagination.is-right .pagination-next { - order: 2; - } - .pagination.is-right .pagination-list { - justify-content: flex-end; - order: 3; - } + .pagination-list { + flex-grow: 1; + flex-shrink: 1; + justify-content: flex-start; + order: 1; + } + .pagination-previous { + order: 2; + } + .pagination-next { + order: 3; + } + .pagination { + justify-content: space-between; + } + .pagination.is-centered .pagination-previous { + order: 1; + } + .pagination.is-centered .pagination-list { + justify-content: center; + order: 2; + } + .pagination.is-centered .pagination-next { + order: 3; + } + .pagination.is-right .pagination-previous { + order: 1; + } + .pagination.is-right .pagination-next { + order: 2; + } + .pagination.is-right .pagination-list { + justify-content: flex-end; + order: 3; + } } .panel { - font-size: 1rem; + font-size: 1rem; } .panel:not(:last-child) { - margin-bottom: 1.5rem; + margin-bottom: 1.5rem; } .panel-heading, .panel-tabs, .panel-block { - border-bottom: 1px solid #dbdbdb; - border-left: 1px solid #dbdbdb; - border-right: 1px solid #dbdbdb; + border-bottom: 1px solid #dbdbdb; + border-left: 1px solid #dbdbdb; + border-right: 1px solid #dbdbdb; } .panel-heading:first-child, .panel-tabs:first-child, .panel-block:first-child { - border-top: 1px solid #dbdbdb; + border-top: 1px solid #dbdbdb; } .panel-heading { - background-color: #f5f5f5; - border-radius: 4px 4px 0 0; - color: #363636; - font-size: 1.25em; - font-weight: 300; - line-height: 1.25; - padding: 0.5em 0.75em; + background-color: #f5f5f5; + border-radius: 4px 4px 0 0; + color: #363636; + font-size: 1.25em; + font-weight: 300; + line-height: 1.25; + padding: 0.5em 0.75em; } .panel-tabs { - align-items: flex-end; - display: flex; - font-size: 0.875em; - justify-content: center; + align-items: flex-end; + display: flex; + font-size: 0.875em; + justify-content: center; } .panel-tabs a { - border-bottom: 1px solid #dbdbdb; - margin-bottom: -1px; - padding: 0.5em; + border-bottom: 1px solid #dbdbdb; + margin-bottom: -1px; + padding: 0.5em; } .panel-tabs a.is-active { - border-bottom-color: #4a4a4a; - color: #363636; + border-bottom-color: #4a4a4a; + color: #363636; } .panel-list a { - color: #4a4a4a; + color: #4a4a4a; } .panel-list a:hover { - color: #3273dc; + color: #3273dc; } .panel-block { - align-items: center; - color: #363636; - display: flex; - justify-content: flex-start; - padding: 0.5em 0.75em; + align-items: center; + color: #363636; + display: flex; + justify-content: flex-start; + padding: 0.5em 0.75em; } -.panel-block input[type="checkbox"] { - margin-right: 0.75em; +.panel-block input[type='checkbox'] { + margin-right: 0.75em; } .panel-block > .control { - flex-grow: 1; - flex-shrink: 1; - width: 100%; + flex-grow: 1; + flex-shrink: 1; + width: 100%; } .panel-block.is-wrapped { - flex-wrap: wrap; + flex-wrap: wrap; } .panel-block.is-active { - border-left-color: #3273dc; - color: #363636; + border-left-color: #3273dc; + color: #363636; } .panel-block.is-active .panel-icon { - color: #3273dc; + color: #3273dc; } a.panel-block, label.panel-block { - cursor: pointer; + cursor: pointer; } a.panel-block:hover, label.panel-block:hover { - background-color: #f5f5f5; + background-color: #f5f5f5; } .panel-icon { - display: inline-block; - font-size: 14px; - height: 1em; - line-height: 1em; - text-align: center; - vertical-align: top; - width: 1em; - color: #7a7a7a; - margin-right: 0.75em; + display: inline-block; + font-size: 14px; + height: 1em; + line-height: 1em; + text-align: center; + vertical-align: top; + width: 1em; + color: #7a7a7a; + margin-right: 0.75em; } .panel-icon .fa { - font-size: inherit; - line-height: inherit; + font-size: inherit; + line-height: inherit; } .tabs { - -webkit-overflow-scrolling: touch; - align-items: stretch; - display: flex; - font-size: 1rem; - justify-content: space-between; - overflow: hidden; - overflow-x: auto; - white-space: nowrap; + -webkit-overflow-scrolling: touch; + align-items: stretch; + display: flex; + font-size: 1rem; + justify-content: space-between; + overflow: hidden; + overflow-x: auto; + white-space: nowrap; } .tabs a { - align-items: center; - border-bottom-color: #dbdbdb; - border-bottom-style: solid; - border-bottom-width: 1px; - color: #4a4a4a; - display: flex; - justify-content: center; - margin-bottom: -1px; - padding: 0.5em 1em; - vertical-align: top; + align-items: center; + border-bottom-color: #dbdbdb; + border-bottom-style: solid; + border-bottom-width: 1px; + color: #4a4a4a; + display: flex; + justify-content: center; + margin-bottom: -1px; + padding: 0.5em 1em; + vertical-align: top; } .tabs a:hover { - border-bottom-color: #363636; - color: #363636; + border-bottom-color: #363636; + color: #363636; } .tabs li { - display: block; + display: block; } .tabs li.is-active a { - border-bottom-color: #3273dc; - color: #3273dc; + border-bottom-color: #3273dc; + color: #3273dc; } .tabs ul { - align-items: center; - border-bottom-color: #dbdbdb; - border-bottom-style: solid; - border-bottom-width: 1px; - display: flex; - flex-grow: 1; - flex-shrink: 0; - justify-content: flex-start; + align-items: center; + border-bottom-color: #dbdbdb; + border-bottom-style: solid; + border-bottom-width: 1px; + display: flex; + flex-grow: 1; + flex-shrink: 0; + justify-content: flex-start; } .tabs ul.is-left { - padding-right: 0.75em; + padding-right: 0.75em; } .tabs ul.is-center { - flex: none; - justify-content: center; - padding-left: 0.75em; - padding-right: 0.75em; + flex: none; + justify-content: center; + padding-left: 0.75em; + padding-right: 0.75em; } .tabs ul.is-right { - justify-content: flex-end; - padding-left: 0.75em; + justify-content: flex-end; + padding-left: 0.75em; } .tabs .icon:first-child { - margin-right: 0.5em; + margin-right: 0.5em; } .tabs .icon:last-child { - margin-left: 0.5em; + margin-left: 0.5em; } .tabs.is-centered ul { - justify-content: center; + justify-content: center; } .tabs.is-right ul { - justify-content: flex-end; + justify-content: flex-end; } .tabs.is-boxed a { - border: 1px solid transparent; - border-radius: 4px 4px 0 0; + border: 1px solid transparent; + border-radius: 4px 4px 0 0; } .tabs.is-boxed a:hover { - background-color: #f5f5f5; - border-bottom-color: #dbdbdb; + background-color: #f5f5f5; + border-bottom-color: #dbdbdb; } .tabs.is-boxed li.is-active a { - background-color: #fff; - border-color: #dbdbdb; - border-bottom-color: rgba(0, 0, 0, 0) !important; + background-color: #fff; + border-color: #dbdbdb; + border-bottom-color: rgba(0, 0, 0, 0) !important; } .tabs.is-fullwidth li { - flex-grow: 1; - flex-shrink: 0; + flex-grow: 1; + flex-shrink: 0; } .tabs.is-toggle a { - border-color: #dbdbdb; - border-style: solid; - border-width: 1px; - margin-bottom: 0; - position: relative; + border-color: #dbdbdb; + border-style: solid; + border-width: 1px; + margin-bottom: 0; + position: relative; } .tabs.is-toggle a:hover { - background-color: #f5f5f5; - border-color: #b5b5b5; - z-index: 2; + background-color: #f5f5f5; + border-color: #b5b5b5; + z-index: 2; } .tabs.is-toggle li + li { - margin-left: -1px; + margin-left: -1px; } .tabs.is-toggle li:first-child a { - border-radius: 4px 0 0 4px; + border-radius: 4px 0 0 4px; } .tabs.is-toggle li:last-child a { - border-radius: 0 4px 4px 0; + border-radius: 0 4px 4px 0; } .tabs.is-toggle li.is-active a { - background-color: #3273dc; - border-color: #3273dc; - color: #fff; - z-index: 1; + background-color: #3273dc; + border-color: #3273dc; + color: #fff; + z-index: 1; } .tabs.is-toggle ul { - border-bottom: none; + border-bottom: none; } .tabs.is-toggle.is-toggle-rounded li:first-child a { - border-bottom-left-radius: 290486px; - border-top-left-radius: 290486px; - padding-left: 1.25em; + border-bottom-left-radius: 290486px; + border-top-left-radius: 290486px; + padding-left: 1.25em; } .tabs.is-toggle.is-toggle-rounded li:last-child a { - border-bottom-right-radius: 290486px; - border-top-right-radius: 290486px; - padding-right: 1.25em; + border-bottom-right-radius: 290486px; + border-top-right-radius: 290486px; + padding-right: 1.25em; } .tabs.is-small { - font-size: 0.75rem; + font-size: 0.75rem; } .tabs.is-medium { - font-size: 1.25rem; + font-size: 1.25rem; } .tabs.is-large { - font-size: 1.5rem; + font-size: 1.5rem; } .column { - display: block; - flex-basis: 0; - flex-grow: 1; - flex-shrink: 1; - padding: 0.75rem; + display: block; + flex-basis: 0; + flex-grow: 1; + flex-shrink: 1; + padding: 0.75rem; } .columns.is-mobile > .column.is-narrow { - flex: none; + flex: none; } .columns.is-mobile > .column.is-full { - flex: none; - width: 100%; + flex: none; + width: 100%; } .columns.is-mobile > .column.is-three-quarters { - flex: none; - width: 75%; + flex: none; + width: 75%; } .columns.is-mobile > .column.is-two-thirds { - flex: none; - width: 66.6666%; + flex: none; + width: 66.6666%; } .columns.is-mobile > .column.is-half { - flex: none; - width: 50%; + flex: none; + width: 50%; } .columns.is-mobile > .column.is-one-third { - flex: none; - width: 33.3333%; + flex: none; + width: 33.3333%; } .columns.is-mobile > .column.is-one-quarter { - flex: none; - width: 25%; + flex: none; + width: 25%; } .columns.is-mobile > .column.is-one-fifth { - flex: none; - width: 20%; + flex: none; + width: 20%; } .columns.is-mobile > .column.is-two-fifths { - flex: none; - width: 40%; + flex: none; + width: 40%; } .columns.is-mobile > .column.is-three-fifths { - flex: none; - width: 60%; + flex: none; + width: 60%; } .columns.is-mobile > .column.is-four-fifths { - flex: none; - width: 80%; + flex: none; + width: 80%; } .columns.is-mobile > .column.is-offset-three-quarters { - margin-left: 75%; + margin-left: 75%; } .columns.is-mobile > .column.is-offset-two-thirds { - margin-left: 66.6666%; + margin-left: 66.6666%; } .columns.is-mobile > .column.is-offset-half { - margin-left: 50%; + margin-left: 50%; } .columns.is-mobile > .column.is-offset-one-third { - margin-left: 33.3333%; + margin-left: 33.3333%; } .columns.is-mobile > .column.is-offset-one-quarter { - margin-left: 25%; + margin-left: 25%; } .columns.is-mobile > .column.is-offset-one-fifth { - margin-left: 20%; + margin-left: 20%; } .columns.is-mobile > .column.is-offset-two-fifths { - margin-left: 40%; + margin-left: 40%; } .columns.is-mobile > .column.is-offset-three-fifths { - margin-left: 60%; + margin-left: 60%; } .columns.is-mobile > .column.is-offset-four-fifths { - margin-left: 80%; + margin-left: 80%; } .columns.is-mobile > .column.is-0 { - flex: none; - width: 0%; + flex: none; + width: 0%; } .columns.is-mobile > .column.is-offset-0 { - margin-left: 0%; + margin-left: 0%; } .columns.is-mobile > .column.is-1 { - flex: none; - width: 8.33333%; + flex: none; + width: 8.33333%; } .columns.is-mobile > .column.is-offset-1 { - margin-left: 8.33333%; + margin-left: 8.33333%; } .columns.is-mobile > .column.is-2 { - flex: none; - width: 16.66667%; + flex: none; + width: 16.66667%; } .columns.is-mobile > .column.is-offset-2 { - margin-left: 16.66667%; + margin-left: 16.66667%; } .columns.is-mobile > .column.is-3 { - flex: none; - width: 25%; + flex: none; + width: 25%; } .columns.is-mobile > .column.is-offset-3 { - margin-left: 25%; + margin-left: 25%; } .columns.is-mobile > .column.is-4 { - flex: none; - width: 33.33333%; + flex: none; + width: 33.33333%; } .columns.is-mobile > .column.is-offset-4 { - margin-left: 33.33333%; + margin-left: 33.33333%; } .columns.is-mobile > .column.is-5 { - flex: none; - width: 41.66667%; + flex: none; + width: 41.66667%; } .columns.is-mobile > .column.is-offset-5 { - margin-left: 41.66667%; + margin-left: 41.66667%; } .columns.is-mobile > .column.is-6 { - flex: none; - width: 50%; + flex: none; + width: 50%; } .columns.is-mobile > .column.is-offset-6 { - margin-left: 50%; + margin-left: 50%; } .columns.is-mobile > .column.is-7 { - flex: none; - width: 58.33333%; + flex: none; + width: 58.33333%; } .columns.is-mobile > .column.is-offset-7 { - margin-left: 58.33333%; + margin-left: 58.33333%; } .columns.is-mobile > .column.is-8 { - flex: none; - width: 66.66667%; + flex: none; + width: 66.66667%; } .columns.is-mobile > .column.is-offset-8 { - margin-left: 66.66667%; + margin-left: 66.66667%; } .columns.is-mobile > .column.is-9 { - flex: none; - width: 75%; + flex: none; + width: 75%; } .columns.is-mobile > .column.is-offset-9 { - margin-left: 75%; + margin-left: 75%; } .columns.is-mobile > .column.is-10 { - flex: none; - width: 83.33333%; + flex: none; + width: 83.33333%; } .columns.is-mobile > .column.is-offset-10 { - margin-left: 83.33333%; + margin-left: 83.33333%; } .columns.is-mobile > .column.is-11 { - flex: none; - width: 91.66667%; + flex: none; + width: 91.66667%; } .columns.is-mobile > .column.is-offset-11 { - margin-left: 91.66667%; + margin-left: 91.66667%; } .columns.is-mobile > .column.is-12 { - flex: none; - width: 100%; + flex: none; + width: 100%; } .columns.is-mobile > .column.is-offset-12 { - margin-left: 100%; + margin-left: 100%; } @media screen and (max-width: 768px) { - .column.is-narrow-mobile { - flex: none; - } - .column.is-full-mobile { - flex: none; - width: 100%; - } - .column.is-three-quarters-mobile { - flex: none; - width: 75%; - } - .column.is-two-thirds-mobile { - flex: none; - width: 66.6666%; - } - .column.is-half-mobile { - flex: none; - width: 50%; - } - .column.is-one-third-mobile { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-mobile { - flex: none; - width: 25%; - } - .column.is-one-fifth-mobile { - flex: none; - width: 20%; - } - .column.is-two-fifths-mobile { - flex: none; - width: 40%; - } - .column.is-three-fifths-mobile { - flex: none; - width: 60%; - } - .column.is-four-fifths-mobile { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-mobile { - margin-left: 75%; - } - .column.is-offset-two-thirds-mobile { - margin-left: 66.6666%; - } - .column.is-offset-half-mobile { - margin-left: 50%; - } - .column.is-offset-one-third-mobile { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-mobile { - margin-left: 25%; - } - .column.is-offset-one-fifth-mobile { - margin-left: 20%; - } - .column.is-offset-two-fifths-mobile { - margin-left: 40%; - } - .column.is-offset-three-fifths-mobile { - margin-left: 60%; - } - .column.is-offset-four-fifths-mobile { - margin-left: 80%; - } - .column.is-0-mobile { - flex: none; - width: 0%; - } - .column.is-offset-0-mobile { - margin-left: 0%; - } - .column.is-1-mobile { - flex: none; - width: 8.33333%; - } - .column.is-offset-1-mobile { - margin-left: 8.33333%; - } - .column.is-2-mobile { - flex: none; - width: 16.66667%; - } - .column.is-offset-2-mobile { - margin-left: 16.66667%; - } - .column.is-3-mobile { - flex: none; - width: 25%; - } - .column.is-offset-3-mobile { - margin-left: 25%; - } - .column.is-4-mobile { - flex: none; - width: 33.33333%; - } - .column.is-offset-4-mobile { - margin-left: 33.33333%; - } - .column.is-5-mobile { - flex: none; - width: 41.66667%; - } - .column.is-offset-5-mobile { - margin-left: 41.66667%; - } - .column.is-6-mobile { - flex: none; - width: 50%; - } - .column.is-offset-6-mobile { - margin-left: 50%; - } - .column.is-7-mobile { - flex: none; - width: 58.33333%; - } - .column.is-offset-7-mobile { - margin-left: 58.33333%; - } - .column.is-8-mobile { - flex: none; - width: 66.66667%; - } - .column.is-offset-8-mobile { - margin-left: 66.66667%; - } - .column.is-9-mobile { - flex: none; - width: 75%; - } - .column.is-offset-9-mobile { - margin-left: 75%; - } - .column.is-10-mobile { - flex: none; - width: 83.33333%; - } - .column.is-offset-10-mobile { - margin-left: 83.33333%; - } - .column.is-11-mobile { - flex: none; - width: 91.66667%; - } - .column.is-offset-11-mobile { - margin-left: 91.66667%; - } - .column.is-12-mobile { - flex: none; - width: 100%; - } - .column.is-offset-12-mobile { - margin-left: 100%; - } + .column.is-narrow-mobile { + flex: none; + } + .column.is-full-mobile { + flex: none; + width: 100%; + } + .column.is-three-quarters-mobile { + flex: none; + width: 75%; + } + .column.is-two-thirds-mobile { + flex: none; + width: 66.6666%; + } + .column.is-half-mobile { + flex: none; + width: 50%; + } + .column.is-one-third-mobile { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-mobile { + flex: none; + width: 25%; + } + .column.is-one-fifth-mobile { + flex: none; + width: 20%; + } + .column.is-two-fifths-mobile { + flex: none; + width: 40%; + } + .column.is-three-fifths-mobile { + flex: none; + width: 60%; + } + .column.is-four-fifths-mobile { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-mobile { + margin-left: 75%; + } + .column.is-offset-two-thirds-mobile { + margin-left: 66.6666%; + } + .column.is-offset-half-mobile { + margin-left: 50%; + } + .column.is-offset-one-third-mobile { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-mobile { + margin-left: 25%; + } + .column.is-offset-one-fifth-mobile { + margin-left: 20%; + } + .column.is-offset-two-fifths-mobile { + margin-left: 40%; + } + .column.is-offset-three-fifths-mobile { + margin-left: 60%; + } + .column.is-offset-four-fifths-mobile { + margin-left: 80%; + } + .column.is-0-mobile { + flex: none; + width: 0%; + } + .column.is-offset-0-mobile { + margin-left: 0%; + } + .column.is-1-mobile { + flex: none; + width: 8.33333%; + } + .column.is-offset-1-mobile { + margin-left: 8.33333%; + } + .column.is-2-mobile { + flex: none; + width: 16.66667%; + } + .column.is-offset-2-mobile { + margin-left: 16.66667%; + } + .column.is-3-mobile { + flex: none; + width: 25%; + } + .column.is-offset-3-mobile { + margin-left: 25%; + } + .column.is-4-mobile { + flex: none; + width: 33.33333%; + } + .column.is-offset-4-mobile { + margin-left: 33.33333%; + } + .column.is-5-mobile { + flex: none; + width: 41.66667%; + } + .column.is-offset-5-mobile { + margin-left: 41.66667%; + } + .column.is-6-mobile { + flex: none; + width: 50%; + } + .column.is-offset-6-mobile { + margin-left: 50%; + } + .column.is-7-mobile { + flex: none; + width: 58.33333%; + } + .column.is-offset-7-mobile { + margin-left: 58.33333%; + } + .column.is-8-mobile { + flex: none; + width: 66.66667%; + } + .column.is-offset-8-mobile { + margin-left: 66.66667%; + } + .column.is-9-mobile { + flex: none; + width: 75%; + } + .column.is-offset-9-mobile { + margin-left: 75%; + } + .column.is-10-mobile { + flex: none; + width: 83.33333%; + } + .column.is-offset-10-mobile { + margin-left: 83.33333%; + } + .column.is-11-mobile { + flex: none; + width: 91.66667%; + } + .column.is-offset-11-mobile { + margin-left: 91.66667%; + } + .column.is-12-mobile { + flex: none; + width: 100%; + } + .column.is-offset-12-mobile { + margin-left: 100%; + } } @media screen and (min-width: 769px), print { - .column.is-narrow, - .column.is-narrow-tablet { - flex: none; - } - .column.is-full, - .column.is-full-tablet { - flex: none; - width: 100%; - } - .column.is-three-quarters, - .column.is-three-quarters-tablet { - flex: none; - width: 75%; - } - .column.is-two-thirds, - .column.is-two-thirds-tablet { - flex: none; - width: 66.6666%; - } - .column.is-half, - .column.is-half-tablet { - flex: none; - width: 50%; - } - .column.is-one-third, - .column.is-one-third-tablet { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter, - .column.is-one-quarter-tablet { - flex: none; - width: 25%; - } - .column.is-one-fifth, - .column.is-one-fifth-tablet { - flex: none; - width: 20%; - } - .column.is-two-fifths, - .column.is-two-fifths-tablet { - flex: none; - width: 40%; - } - .column.is-three-fifths, - .column.is-three-fifths-tablet { - flex: none; - width: 60%; - } - .column.is-four-fifths, - .column.is-four-fifths-tablet { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters, - .column.is-offset-three-quarters-tablet { - margin-left: 75%; - } - .column.is-offset-two-thirds, - .column.is-offset-two-thirds-tablet { - margin-left: 66.6666%; - } - .column.is-offset-half, - .column.is-offset-half-tablet { - margin-left: 50%; - } - .column.is-offset-one-third, - .column.is-offset-one-third-tablet { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter, - .column.is-offset-one-quarter-tablet { - margin-left: 25%; - } - .column.is-offset-one-fifth, - .column.is-offset-one-fifth-tablet { - margin-left: 20%; - } - .column.is-offset-two-fifths, - .column.is-offset-two-fifths-tablet { - margin-left: 40%; - } - .column.is-offset-three-fifths, - .column.is-offset-three-fifths-tablet { - margin-left: 60%; - } - .column.is-offset-four-fifths, - .column.is-offset-four-fifths-tablet { - margin-left: 80%; - } - .column.is-0, - .column.is-0-tablet { - flex: none; - width: 0%; - } - .column.is-offset-0, - .column.is-offset-0-tablet { - margin-left: 0%; - } - .column.is-1, - .column.is-1-tablet { - flex: none; - width: 8.33333%; - } - .column.is-offset-1, - .column.is-offset-1-tablet { - margin-left: 8.33333%; - } - .column.is-2, - .column.is-2-tablet { - flex: none; - width: 16.66667%; - } - .column.is-offset-2, - .column.is-offset-2-tablet { - margin-left: 16.66667%; - } - .column.is-3, - .column.is-3-tablet { - flex: none; - width: 25%; - } - .column.is-offset-3, - .column.is-offset-3-tablet { - margin-left: 25%; - } - .column.is-4, - .column.is-4-tablet { - flex: none; - width: 33.33333%; - } - .column.is-offset-4, - .column.is-offset-4-tablet { - margin-left: 33.33333%; - } - .column.is-5, - .column.is-5-tablet { - flex: none; - width: 41.66667%; - } - .column.is-offset-5, - .column.is-offset-5-tablet { - margin-left: 41.66667%; - } - .column.is-6, - .column.is-6-tablet { - flex: none; - width: 50%; - } - .column.is-offset-6, - .column.is-offset-6-tablet { - margin-left: 50%; - } - .column.is-7, - .column.is-7-tablet { - flex: none; - width: 58.33333%; - } - .column.is-offset-7, - .column.is-offset-7-tablet { - margin-left: 58.33333%; - } - .column.is-8, - .column.is-8-tablet { - flex: none; - width: 66.66667%; - } - .column.is-offset-8, - .column.is-offset-8-tablet { - margin-left: 66.66667%; - } - .column.is-9, - .column.is-9-tablet { - flex: none; - width: 75%; - } - .column.is-offset-9, - .column.is-offset-9-tablet { - margin-left: 75%; - } - .column.is-10, - .column.is-10-tablet { - flex: none; - width: 83.33333%; - } - .column.is-offset-10, - .column.is-offset-10-tablet { - margin-left: 83.33333%; - } - .column.is-11, - .column.is-11-tablet { - flex: none; - width: 91.66667%; - } - .column.is-offset-11, - .column.is-offset-11-tablet { - margin-left: 91.66667%; - } - .column.is-12, - .column.is-12-tablet { - flex: none; - width: 100%; - } - .column.is-offset-12, - .column.is-offset-12-tablet { - margin-left: 100%; - } + .column.is-narrow, + .column.is-narrow-tablet { + flex: none; + } + .column.is-full, + .column.is-full-tablet { + flex: none; + width: 100%; + } + .column.is-three-quarters, + .column.is-three-quarters-tablet { + flex: none; + width: 75%; + } + .column.is-two-thirds, + .column.is-two-thirds-tablet { + flex: none; + width: 66.6666%; + } + .column.is-half, + .column.is-half-tablet { + flex: none; + width: 50%; + } + .column.is-one-third, + .column.is-one-third-tablet { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter, + .column.is-one-quarter-tablet { + flex: none; + width: 25%; + } + .column.is-one-fifth, + .column.is-one-fifth-tablet { + flex: none; + width: 20%; + } + .column.is-two-fifths, + .column.is-two-fifths-tablet { + flex: none; + width: 40%; + } + .column.is-three-fifths, + .column.is-three-fifths-tablet { + flex: none; + width: 60%; + } + .column.is-four-fifths, + .column.is-four-fifths-tablet { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters, + .column.is-offset-three-quarters-tablet { + margin-left: 75%; + } + .column.is-offset-two-thirds, + .column.is-offset-two-thirds-tablet { + margin-left: 66.6666%; + } + .column.is-offset-half, + .column.is-offset-half-tablet { + margin-left: 50%; + } + .column.is-offset-one-third, + .column.is-offset-one-third-tablet { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter, + .column.is-offset-one-quarter-tablet { + margin-left: 25%; + } + .column.is-offset-one-fifth, + .column.is-offset-one-fifth-tablet { + margin-left: 20%; + } + .column.is-offset-two-fifths, + .column.is-offset-two-fifths-tablet { + margin-left: 40%; + } + .column.is-offset-three-fifths, + .column.is-offset-three-fifths-tablet { + margin-left: 60%; + } + .column.is-offset-four-fifths, + .column.is-offset-four-fifths-tablet { + margin-left: 80%; + } + .column.is-0, + .column.is-0-tablet { + flex: none; + width: 0%; + } + .column.is-offset-0, + .column.is-offset-0-tablet { + margin-left: 0%; + } + .column.is-1, + .column.is-1-tablet { + flex: none; + width: 8.33333%; + } + .column.is-offset-1, + .column.is-offset-1-tablet { + margin-left: 8.33333%; + } + .column.is-2, + .column.is-2-tablet { + flex: none; + width: 16.66667%; + } + .column.is-offset-2, + .column.is-offset-2-tablet { + margin-left: 16.66667%; + } + .column.is-3, + .column.is-3-tablet { + flex: none; + width: 25%; + } + .column.is-offset-3, + .column.is-offset-3-tablet { + margin-left: 25%; + } + .column.is-4, + .column.is-4-tablet { + flex: none; + width: 33.33333%; + } + .column.is-offset-4, + .column.is-offset-4-tablet { + margin-left: 33.33333%; + } + .column.is-5, + .column.is-5-tablet { + flex: none; + width: 41.66667%; + } + .column.is-offset-5, + .column.is-offset-5-tablet { + margin-left: 41.66667%; + } + .column.is-6, + .column.is-6-tablet { + flex: none; + width: 50%; + } + .column.is-offset-6, + .column.is-offset-6-tablet { + margin-left: 50%; + } + .column.is-7, + .column.is-7-tablet { + flex: none; + width: 58.33333%; + } + .column.is-offset-7, + .column.is-offset-7-tablet { + margin-left: 58.33333%; + } + .column.is-8, + .column.is-8-tablet { + flex: none; + width: 66.66667%; + } + .column.is-offset-8, + .column.is-offset-8-tablet { + margin-left: 66.66667%; + } + .column.is-9, + .column.is-9-tablet { + flex: none; + width: 75%; + } + .column.is-offset-9, + .column.is-offset-9-tablet { + margin-left: 75%; + } + .column.is-10, + .column.is-10-tablet { + flex: none; + width: 83.33333%; + } + .column.is-offset-10, + .column.is-offset-10-tablet { + margin-left: 83.33333%; + } + .column.is-11, + .column.is-11-tablet { + flex: none; + width: 91.66667%; + } + .column.is-offset-11, + .column.is-offset-11-tablet { + margin-left: 91.66667%; + } + .column.is-12, + .column.is-12-tablet { + flex: none; + width: 100%; + } + .column.is-offset-12, + .column.is-offset-12-tablet { + margin-left: 100%; + } } @media screen and (max-width: 1023px) { - .column.is-narrow-touch { - flex: none; - } - .column.is-full-touch { - flex: none; - width: 100%; - } - .column.is-three-quarters-touch { - flex: none; - width: 75%; - } - .column.is-two-thirds-touch { - flex: none; - width: 66.6666%; - } - .column.is-half-touch { - flex: none; - width: 50%; - } - .column.is-one-third-touch { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-touch { - flex: none; - width: 25%; - } - .column.is-one-fifth-touch { - flex: none; - width: 20%; - } - .column.is-two-fifths-touch { - flex: none; - width: 40%; - } - .column.is-three-fifths-touch { - flex: none; - width: 60%; - } - .column.is-four-fifths-touch { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-touch { - margin-left: 75%; - } - .column.is-offset-two-thirds-touch { - margin-left: 66.6666%; - } - .column.is-offset-half-touch { - margin-left: 50%; - } - .column.is-offset-one-third-touch { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-touch { - margin-left: 25%; - } - .column.is-offset-one-fifth-touch { - margin-left: 20%; - } - .column.is-offset-two-fifths-touch { - margin-left: 40%; - } - .column.is-offset-three-fifths-touch { - margin-left: 60%; - } - .column.is-offset-four-fifths-touch { - margin-left: 80%; - } - .column.is-0-touch { - flex: none; - width: 0%; - } - .column.is-offset-0-touch { - margin-left: 0%; - } - .column.is-1-touch { - flex: none; - width: 8.33333%; - } - .column.is-offset-1-touch { - margin-left: 8.33333%; - } - .column.is-2-touch { - flex: none; - width: 16.66667%; - } - .column.is-offset-2-touch { - margin-left: 16.66667%; - } - .column.is-3-touch { - flex: none; - width: 25%; - } - .column.is-offset-3-touch { - margin-left: 25%; - } - .column.is-4-touch { - flex: none; - width: 33.33333%; - } - .column.is-offset-4-touch { - margin-left: 33.33333%; - } - .column.is-5-touch { - flex: none; - width: 41.66667%; - } - .column.is-offset-5-touch { - margin-left: 41.66667%; - } - .column.is-6-touch { - flex: none; - width: 50%; - } - .column.is-offset-6-touch { - margin-left: 50%; - } - .column.is-7-touch { - flex: none; - width: 58.33333%; - } - .column.is-offset-7-touch { - margin-left: 58.33333%; - } - .column.is-8-touch { - flex: none; - width: 66.66667%; - } - .column.is-offset-8-touch { - margin-left: 66.66667%; - } - .column.is-9-touch { - flex: none; - width: 75%; - } - .column.is-offset-9-touch { - margin-left: 75%; - } - .column.is-10-touch { - flex: none; - width: 83.33333%; - } - .column.is-offset-10-touch { - margin-left: 83.33333%; - } - .column.is-11-touch { - flex: none; - width: 91.66667%; - } - .column.is-offset-11-touch { - margin-left: 91.66667%; - } - .column.is-12-touch { - flex: none; - width: 100%; - } - .column.is-offset-12-touch { - margin-left: 100%; - } + .column.is-narrow-touch { + flex: none; + } + .column.is-full-touch { + flex: none; + width: 100%; + } + .column.is-three-quarters-touch { + flex: none; + width: 75%; + } + .column.is-two-thirds-touch { + flex: none; + width: 66.6666%; + } + .column.is-half-touch { + flex: none; + width: 50%; + } + .column.is-one-third-touch { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-touch { + flex: none; + width: 25%; + } + .column.is-one-fifth-touch { + flex: none; + width: 20%; + } + .column.is-two-fifths-touch { + flex: none; + width: 40%; + } + .column.is-three-fifths-touch { + flex: none; + width: 60%; + } + .column.is-four-fifths-touch { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-touch { + margin-left: 75%; + } + .column.is-offset-two-thirds-touch { + margin-left: 66.6666%; + } + .column.is-offset-half-touch { + margin-left: 50%; + } + .column.is-offset-one-third-touch { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-touch { + margin-left: 25%; + } + .column.is-offset-one-fifth-touch { + margin-left: 20%; + } + .column.is-offset-two-fifths-touch { + margin-left: 40%; + } + .column.is-offset-three-fifths-touch { + margin-left: 60%; + } + .column.is-offset-four-fifths-touch { + margin-left: 80%; + } + .column.is-0-touch { + flex: none; + width: 0%; + } + .column.is-offset-0-touch { + margin-left: 0%; + } + .column.is-1-touch { + flex: none; + width: 8.33333%; + } + .column.is-offset-1-touch { + margin-left: 8.33333%; + } + .column.is-2-touch { + flex: none; + width: 16.66667%; + } + .column.is-offset-2-touch { + margin-left: 16.66667%; + } + .column.is-3-touch { + flex: none; + width: 25%; + } + .column.is-offset-3-touch { + margin-left: 25%; + } + .column.is-4-touch { + flex: none; + width: 33.33333%; + } + .column.is-offset-4-touch { + margin-left: 33.33333%; + } + .column.is-5-touch { + flex: none; + width: 41.66667%; + } + .column.is-offset-5-touch { + margin-left: 41.66667%; + } + .column.is-6-touch { + flex: none; + width: 50%; + } + .column.is-offset-6-touch { + margin-left: 50%; + } + .column.is-7-touch { + flex: none; + width: 58.33333%; + } + .column.is-offset-7-touch { + margin-left: 58.33333%; + } + .column.is-8-touch { + flex: none; + width: 66.66667%; + } + .column.is-offset-8-touch { + margin-left: 66.66667%; + } + .column.is-9-touch { + flex: none; + width: 75%; + } + .column.is-offset-9-touch { + margin-left: 75%; + } + .column.is-10-touch { + flex: none; + width: 83.33333%; + } + .column.is-offset-10-touch { + margin-left: 83.33333%; + } + .column.is-11-touch { + flex: none; + width: 91.66667%; + } + .column.is-offset-11-touch { + margin-left: 91.66667%; + } + .column.is-12-touch { + flex: none; + width: 100%; + } + .column.is-offset-12-touch { + margin-left: 100%; + } } @media screen and (min-width: 1024px) { - .column.is-narrow-desktop { - flex: none; - } - .column.is-full-desktop { - flex: none; - width: 100%; - } - .column.is-three-quarters-desktop { - flex: none; - width: 75%; - } - .column.is-two-thirds-desktop { - flex: none; - width: 66.6666%; - } - .column.is-half-desktop { - flex: none; - width: 50%; - } - .column.is-one-third-desktop { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-desktop { - flex: none; - width: 25%; - } - .column.is-one-fifth-desktop { - flex: none; - width: 20%; - } - .column.is-two-fifths-desktop { - flex: none; - width: 40%; - } - .column.is-three-fifths-desktop { - flex: none; - width: 60%; - } - .column.is-four-fifths-desktop { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-desktop { - margin-left: 75%; - } - .column.is-offset-two-thirds-desktop { - margin-left: 66.6666%; - } - .column.is-offset-half-desktop { - margin-left: 50%; - } - .column.is-offset-one-third-desktop { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-desktop { - margin-left: 25%; - } - .column.is-offset-one-fifth-desktop { - margin-left: 20%; - } - .column.is-offset-two-fifths-desktop { - margin-left: 40%; - } - .column.is-offset-three-fifths-desktop { - margin-left: 60%; - } - .column.is-offset-four-fifths-desktop { - margin-left: 80%; - } - .column.is-0-desktop { - flex: none; - width: 0%; - } - .column.is-offset-0-desktop { - margin-left: 0%; - } - .column.is-1-desktop { - flex: none; - width: 8.33333%; - } - .column.is-offset-1-desktop { - margin-left: 8.33333%; - } - .column.is-2-desktop { - flex: none; - width: 16.66667%; - } - .column.is-offset-2-desktop { - margin-left: 16.66667%; - } - .column.is-3-desktop { - flex: none; - width: 25%; - } - .column.is-offset-3-desktop { - margin-left: 25%; - } - .column.is-4-desktop { - flex: none; - width: 33.33333%; - } - .column.is-offset-4-desktop { - margin-left: 33.33333%; - } - .column.is-5-desktop { - flex: none; - width: 41.66667%; - } - .column.is-offset-5-desktop { - margin-left: 41.66667%; - } - .column.is-6-desktop { - flex: none; - width: 50%; - } - .column.is-offset-6-desktop { - margin-left: 50%; - } - .column.is-7-desktop { - flex: none; - width: 58.33333%; - } - .column.is-offset-7-desktop { - margin-left: 58.33333%; - } - .column.is-8-desktop { - flex: none; - width: 66.66667%; - } - .column.is-offset-8-desktop { - margin-left: 66.66667%; - } - .column.is-9-desktop { - flex: none; - width: 75%; - } - .column.is-offset-9-desktop { - margin-left: 75%; - } - .column.is-10-desktop { - flex: none; - width: 83.33333%; - } - .column.is-offset-10-desktop { - margin-left: 83.33333%; - } - .column.is-11-desktop { - flex: none; - width: 91.66667%; - } - .column.is-offset-11-desktop { - margin-left: 91.66667%; - } - .column.is-12-desktop { - flex: none; - width: 100%; - } - .column.is-offset-12-desktop { - margin-left: 100%; - } + .column.is-narrow-desktop { + flex: none; + } + .column.is-full-desktop { + flex: none; + width: 100%; + } + .column.is-three-quarters-desktop { + flex: none; + width: 75%; + } + .column.is-two-thirds-desktop { + flex: none; + width: 66.6666%; + } + .column.is-half-desktop { + flex: none; + width: 50%; + } + .column.is-one-third-desktop { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-desktop { + flex: none; + width: 25%; + } + .column.is-one-fifth-desktop { + flex: none; + width: 20%; + } + .column.is-two-fifths-desktop { + flex: none; + width: 40%; + } + .column.is-three-fifths-desktop { + flex: none; + width: 60%; + } + .column.is-four-fifths-desktop { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-desktop { + margin-left: 75%; + } + .column.is-offset-two-thirds-desktop { + margin-left: 66.6666%; + } + .column.is-offset-half-desktop { + margin-left: 50%; + } + .column.is-offset-one-third-desktop { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-desktop { + margin-left: 25%; + } + .column.is-offset-one-fifth-desktop { + margin-left: 20%; + } + .column.is-offset-two-fifths-desktop { + margin-left: 40%; + } + .column.is-offset-three-fifths-desktop { + margin-left: 60%; + } + .column.is-offset-four-fifths-desktop { + margin-left: 80%; + } + .column.is-0-desktop { + flex: none; + width: 0%; + } + .column.is-offset-0-desktop { + margin-left: 0%; + } + .column.is-1-desktop { + flex: none; + width: 8.33333%; + } + .column.is-offset-1-desktop { + margin-left: 8.33333%; + } + .column.is-2-desktop { + flex: none; + width: 16.66667%; + } + .column.is-offset-2-desktop { + margin-left: 16.66667%; + } + .column.is-3-desktop { + flex: none; + width: 25%; + } + .column.is-offset-3-desktop { + margin-left: 25%; + } + .column.is-4-desktop { + flex: none; + width: 33.33333%; + } + .column.is-offset-4-desktop { + margin-left: 33.33333%; + } + .column.is-5-desktop { + flex: none; + width: 41.66667%; + } + .column.is-offset-5-desktop { + margin-left: 41.66667%; + } + .column.is-6-desktop { + flex: none; + width: 50%; + } + .column.is-offset-6-desktop { + margin-left: 50%; + } + .column.is-7-desktop { + flex: none; + width: 58.33333%; + } + .column.is-offset-7-desktop { + margin-left: 58.33333%; + } + .column.is-8-desktop { + flex: none; + width: 66.66667%; + } + .column.is-offset-8-desktop { + margin-left: 66.66667%; + } + .column.is-9-desktop { + flex: none; + width: 75%; + } + .column.is-offset-9-desktop { + margin-left: 75%; + } + .column.is-10-desktop { + flex: none; + width: 83.33333%; + } + .column.is-offset-10-desktop { + margin-left: 83.33333%; + } + .column.is-11-desktop { + flex: none; + width: 91.66667%; + } + .column.is-offset-11-desktop { + margin-left: 91.66667%; + } + .column.is-12-desktop { + flex: none; + width: 100%; + } + .column.is-offset-12-desktop { + margin-left: 100%; + } } @media screen and (min-width: 1216px) { - .column.is-narrow-widescreen { - flex: none; - } - .column.is-full-widescreen { - flex: none; - width: 100%; - } - .column.is-three-quarters-widescreen { - flex: none; - width: 75%; - } - .column.is-two-thirds-widescreen { - flex: none; - width: 66.6666%; - } - .column.is-half-widescreen { - flex: none; - width: 50%; - } - .column.is-one-third-widescreen { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-widescreen { - flex: none; - width: 25%; - } - .column.is-one-fifth-widescreen { - flex: none; - width: 20%; - } - .column.is-two-fifths-widescreen { - flex: none; - width: 40%; - } - .column.is-three-fifths-widescreen { - flex: none; - width: 60%; - } - .column.is-four-fifths-widescreen { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-widescreen { - margin-left: 75%; - } - .column.is-offset-two-thirds-widescreen { - margin-left: 66.6666%; - } - .column.is-offset-half-widescreen { - margin-left: 50%; - } - .column.is-offset-one-third-widescreen { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-widescreen { - margin-left: 25%; - } - .column.is-offset-one-fifth-widescreen { - margin-left: 20%; - } - .column.is-offset-two-fifths-widescreen { - margin-left: 40%; - } - .column.is-offset-three-fifths-widescreen { - margin-left: 60%; - } - .column.is-offset-four-fifths-widescreen { - margin-left: 80%; - } - .column.is-0-widescreen { - flex: none; - width: 0%; - } - .column.is-offset-0-widescreen { - margin-left: 0%; - } - .column.is-1-widescreen { - flex: none; - width: 8.33333%; - } - .column.is-offset-1-widescreen { - margin-left: 8.33333%; - } - .column.is-2-widescreen { - flex: none; - width: 16.66667%; - } - .column.is-offset-2-widescreen { - margin-left: 16.66667%; - } - .column.is-3-widescreen { - flex: none; - width: 25%; - } - .column.is-offset-3-widescreen { - margin-left: 25%; - } - .column.is-4-widescreen { - flex: none; - width: 33.33333%; - } - .column.is-offset-4-widescreen { - margin-left: 33.33333%; - } - .column.is-5-widescreen { - flex: none; - width: 41.66667%; - } - .column.is-offset-5-widescreen { - margin-left: 41.66667%; - } - .column.is-6-widescreen { - flex: none; - width: 50%; - } - .column.is-offset-6-widescreen { - margin-left: 50%; - } - .column.is-7-widescreen { - flex: none; - width: 58.33333%; - } - .column.is-offset-7-widescreen { - margin-left: 58.33333%; - } - .column.is-8-widescreen { - flex: none; - width: 66.66667%; - } - .column.is-offset-8-widescreen { - margin-left: 66.66667%; - } - .column.is-9-widescreen { - flex: none; - width: 75%; - } - .column.is-offset-9-widescreen { - margin-left: 75%; - } - .column.is-10-widescreen { - flex: none; - width: 83.33333%; - } - .column.is-offset-10-widescreen { - margin-left: 83.33333%; - } - .column.is-11-widescreen { - flex: none; - width: 91.66667%; - } - .column.is-offset-11-widescreen { - margin-left: 91.66667%; - } - .column.is-12-widescreen { - flex: none; - width: 100%; - } - .column.is-offset-12-widescreen { - margin-left: 100%; - } + .column.is-narrow-widescreen { + flex: none; + } + .column.is-full-widescreen { + flex: none; + width: 100%; + } + .column.is-three-quarters-widescreen { + flex: none; + width: 75%; + } + .column.is-two-thirds-widescreen { + flex: none; + width: 66.6666%; + } + .column.is-half-widescreen { + flex: none; + width: 50%; + } + .column.is-one-third-widescreen { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-widescreen { + flex: none; + width: 25%; + } + .column.is-one-fifth-widescreen { + flex: none; + width: 20%; + } + .column.is-two-fifths-widescreen { + flex: none; + width: 40%; + } + .column.is-three-fifths-widescreen { + flex: none; + width: 60%; + } + .column.is-four-fifths-widescreen { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-widescreen { + margin-left: 75%; + } + .column.is-offset-two-thirds-widescreen { + margin-left: 66.6666%; + } + .column.is-offset-half-widescreen { + margin-left: 50%; + } + .column.is-offset-one-third-widescreen { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-widescreen { + margin-left: 25%; + } + .column.is-offset-one-fifth-widescreen { + margin-left: 20%; + } + .column.is-offset-two-fifths-widescreen { + margin-left: 40%; + } + .column.is-offset-three-fifths-widescreen { + margin-left: 60%; + } + .column.is-offset-four-fifths-widescreen { + margin-left: 80%; + } + .column.is-0-widescreen { + flex: none; + width: 0%; + } + .column.is-offset-0-widescreen { + margin-left: 0%; + } + .column.is-1-widescreen { + flex: none; + width: 8.33333%; + } + .column.is-offset-1-widescreen { + margin-left: 8.33333%; + } + .column.is-2-widescreen { + flex: none; + width: 16.66667%; + } + .column.is-offset-2-widescreen { + margin-left: 16.66667%; + } + .column.is-3-widescreen { + flex: none; + width: 25%; + } + .column.is-offset-3-widescreen { + margin-left: 25%; + } + .column.is-4-widescreen { + flex: none; + width: 33.33333%; + } + .column.is-offset-4-widescreen { + margin-left: 33.33333%; + } + .column.is-5-widescreen { + flex: none; + width: 41.66667%; + } + .column.is-offset-5-widescreen { + margin-left: 41.66667%; + } + .column.is-6-widescreen { + flex: none; + width: 50%; + } + .column.is-offset-6-widescreen { + margin-left: 50%; + } + .column.is-7-widescreen { + flex: none; + width: 58.33333%; + } + .column.is-offset-7-widescreen { + margin-left: 58.33333%; + } + .column.is-8-widescreen { + flex: none; + width: 66.66667%; + } + .column.is-offset-8-widescreen { + margin-left: 66.66667%; + } + .column.is-9-widescreen { + flex: none; + width: 75%; + } + .column.is-offset-9-widescreen { + margin-left: 75%; + } + .column.is-10-widescreen { + flex: none; + width: 83.33333%; + } + .column.is-offset-10-widescreen { + margin-left: 83.33333%; + } + .column.is-11-widescreen { + flex: none; + width: 91.66667%; + } + .column.is-offset-11-widescreen { + margin-left: 91.66667%; + } + .column.is-12-widescreen { + flex: none; + width: 100%; + } + .column.is-offset-12-widescreen { + margin-left: 100%; + } } @media screen and (min-width: 1408px) { - .column.is-narrow-fullhd { - flex: none; - } - .column.is-full-fullhd { - flex: none; - width: 100%; - } - .column.is-three-quarters-fullhd { - flex: none; - width: 75%; - } - .column.is-two-thirds-fullhd { - flex: none; - width: 66.6666%; - } - .column.is-half-fullhd { - flex: none; - width: 50%; - } - .column.is-one-third-fullhd { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-fullhd { - flex: none; - width: 25%; - } - .column.is-one-fifth-fullhd { - flex: none; - width: 20%; - } - .column.is-two-fifths-fullhd { - flex: none; - width: 40%; - } - .column.is-three-fifths-fullhd { - flex: none; - width: 60%; - } - .column.is-four-fifths-fullhd { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-fullhd { - margin-left: 75%; - } - .column.is-offset-two-thirds-fullhd { - margin-left: 66.6666%; - } - .column.is-offset-half-fullhd { - margin-left: 50%; - } - .column.is-offset-one-third-fullhd { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-fullhd { - margin-left: 25%; - } - .column.is-offset-one-fifth-fullhd { - margin-left: 20%; - } - .column.is-offset-two-fifths-fullhd { - margin-left: 40%; - } - .column.is-offset-three-fifths-fullhd { - margin-left: 60%; - } - .column.is-offset-four-fifths-fullhd { - margin-left: 80%; - } - .column.is-0-fullhd { - flex: none; - width: 0%; - } - .column.is-offset-0-fullhd { - margin-left: 0%; - } - .column.is-1-fullhd { - flex: none; - width: 8.33333%; - } - .column.is-offset-1-fullhd { - margin-left: 8.33333%; - } - .column.is-2-fullhd { - flex: none; - width: 16.66667%; - } - .column.is-offset-2-fullhd { - margin-left: 16.66667%; - } - .column.is-3-fullhd { - flex: none; - width: 25%; - } - .column.is-offset-3-fullhd { - margin-left: 25%; - } - .column.is-4-fullhd { - flex: none; - width: 33.33333%; - } - .column.is-offset-4-fullhd { - margin-left: 33.33333%; - } - .column.is-5-fullhd { - flex: none; - width: 41.66667%; - } - .column.is-offset-5-fullhd { - margin-left: 41.66667%; - } - .column.is-6-fullhd { - flex: none; - width: 50%; - } - .column.is-offset-6-fullhd { - margin-left: 50%; - } - .column.is-7-fullhd { - flex: none; - width: 58.33333%; - } - .column.is-offset-7-fullhd { - margin-left: 58.33333%; - } - .column.is-8-fullhd { - flex: none; - width: 66.66667%; - } - .column.is-offset-8-fullhd { - margin-left: 66.66667%; - } - .column.is-9-fullhd { - flex: none; - width: 75%; - } - .column.is-offset-9-fullhd { - margin-left: 75%; - } - .column.is-10-fullhd { - flex: none; - width: 83.33333%; - } - .column.is-offset-10-fullhd { - margin-left: 83.33333%; - } - .column.is-11-fullhd { - flex: none; - width: 91.66667%; - } - .column.is-offset-11-fullhd { - margin-left: 91.66667%; - } - .column.is-12-fullhd { - flex: none; - width: 100%; - } - .column.is-offset-12-fullhd { - margin-left: 100%; - } + .column.is-narrow-fullhd { + flex: none; + } + .column.is-full-fullhd { + flex: none; + width: 100%; + } + .column.is-three-quarters-fullhd { + flex: none; + width: 75%; + } + .column.is-two-thirds-fullhd { + flex: none; + width: 66.6666%; + } + .column.is-half-fullhd { + flex: none; + width: 50%; + } + .column.is-one-third-fullhd { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-fullhd { + flex: none; + width: 25%; + } + .column.is-one-fifth-fullhd { + flex: none; + width: 20%; + } + .column.is-two-fifths-fullhd { + flex: none; + width: 40%; + } + .column.is-three-fifths-fullhd { + flex: none; + width: 60%; + } + .column.is-four-fifths-fullhd { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-fullhd { + margin-left: 75%; + } + .column.is-offset-two-thirds-fullhd { + margin-left: 66.6666%; + } + .column.is-offset-half-fullhd { + margin-left: 50%; + } + .column.is-offset-one-third-fullhd { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-fullhd { + margin-left: 25%; + } + .column.is-offset-one-fifth-fullhd { + margin-left: 20%; + } + .column.is-offset-two-fifths-fullhd { + margin-left: 40%; + } + .column.is-offset-three-fifths-fullhd { + margin-left: 60%; + } + .column.is-offset-four-fifths-fullhd { + margin-left: 80%; + } + .column.is-0-fullhd { + flex: none; + width: 0%; + } + .column.is-offset-0-fullhd { + margin-left: 0%; + } + .column.is-1-fullhd { + flex: none; + width: 8.33333%; + } + .column.is-offset-1-fullhd { + margin-left: 8.33333%; + } + .column.is-2-fullhd { + flex: none; + width: 16.66667%; + } + .column.is-offset-2-fullhd { + margin-left: 16.66667%; + } + .column.is-3-fullhd { + flex: none; + width: 25%; + } + .column.is-offset-3-fullhd { + margin-left: 25%; + } + .column.is-4-fullhd { + flex: none; + width: 33.33333%; + } + .column.is-offset-4-fullhd { + margin-left: 33.33333%; + } + .column.is-5-fullhd { + flex: none; + width: 41.66667%; + } + .column.is-offset-5-fullhd { + margin-left: 41.66667%; + } + .column.is-6-fullhd { + flex: none; + width: 50%; + } + .column.is-offset-6-fullhd { + margin-left: 50%; + } + .column.is-7-fullhd { + flex: none; + width: 58.33333%; + } + .column.is-offset-7-fullhd { + margin-left: 58.33333%; + } + .column.is-8-fullhd { + flex: none; + width: 66.66667%; + } + .column.is-offset-8-fullhd { + margin-left: 66.66667%; + } + .column.is-9-fullhd { + flex: none; + width: 75%; + } + .column.is-offset-9-fullhd { + margin-left: 75%; + } + .column.is-10-fullhd { + flex: none; + width: 83.33333%; + } + .column.is-offset-10-fullhd { + margin-left: 83.33333%; + } + .column.is-11-fullhd { + flex: none; + width: 91.66667%; + } + .column.is-offset-11-fullhd { + margin-left: 91.66667%; + } + .column.is-12-fullhd { + flex: none; + width: 100%; + } + .column.is-offset-12-fullhd { + margin-left: 100%; + } } .columns { - margin-left: -0.75rem; - margin-right: -0.75rem; - margin-top: -0.75rem; + margin-left: -0.75rem; + margin-right: -0.75rem; + margin-top: -0.75rem; } .columns:last-child { - margin-bottom: -0.75rem; + margin-bottom: -0.75rem; } .columns:not(:last-child) { - margin-bottom: calc(1.5rem - 0.75rem); + margin-bottom: calc(1.5rem - 0.75rem); } .columns.is-centered { - justify-content: center; + justify-content: center; } .columns.is-gapless { - margin-left: 0; - margin-right: 0; - margin-top: 0; + margin-left: 0; + margin-right: 0; + margin-top: 0; } .columns.is-gapless > .column { - margin: 0; - padding: 0 !important; + margin: 0; + padding: 0 !important; } .columns.is-gapless:not(:last-child) { - margin-bottom: 1.5rem; + margin-bottom: 1.5rem; } .columns.is-gapless:last-child { - margin-bottom: 0; + margin-bottom: 0; } .columns.is-mobile { - display: flex; + display: flex; } .columns.is-multiline { - flex-wrap: wrap; + flex-wrap: wrap; } .columns.is-vcentered { - align-items: center; + align-items: center; } @media screen and (min-width: 769px), print { - .columns:not(.is-desktop) { - display: flex; - } + .columns:not(.is-desktop) { + display: flex; + } } @media screen and (min-width: 1024px) { - .columns.is-desktop { - display: flex; - } + .columns.is-desktop { + display: flex; + } } .columns.is-variable { - --columnGap: 0.75rem; - margin-left: calc(-1 * var(--columnGap)); - margin-right: calc(-1 * var(--columnGap)); + --columnGap: 0.75rem; + margin-left: calc(-1 * var(--columnGap)); + margin-right: calc(-1 * var(--columnGap)); } .columns.is-variable .column { - padding-left: var(--columnGap); - padding-right: var(--columnGap); + padding-left: var(--columnGap); + padding-right: var(--columnGap); } .columns.is-variable.is-0 { - --columnGap: 0rem; + --columnGap: 0rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-0-mobile { - --columnGap: 0rem; - } + .columns.is-variable.is-0-mobile { + --columnGap: 0rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-0-tablet { - --columnGap: 0rem; - } + .columns.is-variable.is-0-tablet { + --columnGap: 0rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-0-tablet-only { - --columnGap: 0rem; - } + .columns.is-variable.is-0-tablet-only { + --columnGap: 0rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-0-touch { - --columnGap: 0rem; - } + .columns.is-variable.is-0-touch { + --columnGap: 0rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-0-desktop { - --columnGap: 0rem; - } + .columns.is-variable.is-0-desktop { + --columnGap: 0rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-0-desktop-only { - --columnGap: 0rem; - } + .columns.is-variable.is-0-desktop-only { + --columnGap: 0rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-0-widescreen { - --columnGap: 0rem; - } + .columns.is-variable.is-0-widescreen { + --columnGap: 0rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-0-widescreen-only { - --columnGap: 0rem; - } + .columns.is-variable.is-0-widescreen-only { + --columnGap: 0rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-0-fullhd { - --columnGap: 0rem; - } + .columns.is-variable.is-0-fullhd { + --columnGap: 0rem; + } } .columns.is-variable.is-1 { - --columnGap: 0.25rem; + --columnGap: 0.25rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-1-mobile { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-mobile { + --columnGap: 0.25rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-1-tablet { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-tablet { + --columnGap: 0.25rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-1-tablet-only { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-tablet-only { + --columnGap: 0.25rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-1-touch { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-touch { + --columnGap: 0.25rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-1-desktop { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-desktop { + --columnGap: 0.25rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-1-desktop-only { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-desktop-only { + --columnGap: 0.25rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-1-widescreen { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-widescreen { + --columnGap: 0.25rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-1-widescreen-only { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-widescreen-only { + --columnGap: 0.25rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-1-fullhd { - --columnGap: 0.25rem; - } + .columns.is-variable.is-1-fullhd { + --columnGap: 0.25rem; + } } .columns.is-variable.is-2 { - --columnGap: 0.5rem; + --columnGap: 0.5rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-2-mobile { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-mobile { + --columnGap: 0.5rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-2-tablet { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-tablet { + --columnGap: 0.5rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-2-tablet-only { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-tablet-only { + --columnGap: 0.5rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-2-touch { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-touch { + --columnGap: 0.5rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-2-desktop { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-desktop { + --columnGap: 0.5rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-2-desktop-only { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-desktop-only { + --columnGap: 0.5rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-2-widescreen { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-widescreen { + --columnGap: 0.5rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-2-widescreen-only { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-widescreen-only { + --columnGap: 0.5rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-2-fullhd { - --columnGap: 0.5rem; - } + .columns.is-variable.is-2-fullhd { + --columnGap: 0.5rem; + } } .columns.is-variable.is-3 { - --columnGap: 0.75rem; + --columnGap: 0.75rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-3-mobile { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-mobile { + --columnGap: 0.75rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-3-tablet { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-tablet { + --columnGap: 0.75rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-3-tablet-only { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-tablet-only { + --columnGap: 0.75rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-3-touch { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-touch { + --columnGap: 0.75rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-3-desktop { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-desktop { + --columnGap: 0.75rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-3-desktop-only { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-desktop-only { + --columnGap: 0.75rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-3-widescreen { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-widescreen { + --columnGap: 0.75rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-3-widescreen-only { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-widescreen-only { + --columnGap: 0.75rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-3-fullhd { - --columnGap: 0.75rem; - } + .columns.is-variable.is-3-fullhd { + --columnGap: 0.75rem; + } } .columns.is-variable.is-4 { - --columnGap: 1rem; + --columnGap: 1rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-4-mobile { - --columnGap: 1rem; - } + .columns.is-variable.is-4-mobile { + --columnGap: 1rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-4-tablet { - --columnGap: 1rem; - } + .columns.is-variable.is-4-tablet { + --columnGap: 1rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-4-tablet-only { - --columnGap: 1rem; - } + .columns.is-variable.is-4-tablet-only { + --columnGap: 1rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-4-touch { - --columnGap: 1rem; - } + .columns.is-variable.is-4-touch { + --columnGap: 1rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-4-desktop { - --columnGap: 1rem; - } + .columns.is-variable.is-4-desktop { + --columnGap: 1rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-4-desktop-only { - --columnGap: 1rem; - } + .columns.is-variable.is-4-desktop-only { + --columnGap: 1rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-4-widescreen { - --columnGap: 1rem; - } + .columns.is-variable.is-4-widescreen { + --columnGap: 1rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-4-widescreen-only { - --columnGap: 1rem; - } + .columns.is-variable.is-4-widescreen-only { + --columnGap: 1rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-4-fullhd { - --columnGap: 1rem; - } + .columns.is-variable.is-4-fullhd { + --columnGap: 1rem; + } } .columns.is-variable.is-5 { - --columnGap: 1.25rem; + --columnGap: 1.25rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-5-mobile { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-mobile { + --columnGap: 1.25rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-5-tablet { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-tablet { + --columnGap: 1.25rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-5-tablet-only { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-tablet-only { + --columnGap: 1.25rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-5-touch { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-touch { + --columnGap: 1.25rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-5-desktop { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-desktop { + --columnGap: 1.25rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-5-desktop-only { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-desktop-only { + --columnGap: 1.25rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-5-widescreen { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-widescreen { + --columnGap: 1.25rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-5-widescreen-only { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-widescreen-only { + --columnGap: 1.25rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-5-fullhd { - --columnGap: 1.25rem; - } + .columns.is-variable.is-5-fullhd { + --columnGap: 1.25rem; + } } .columns.is-variable.is-6 { - --columnGap: 1.5rem; + --columnGap: 1.5rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-6-mobile { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-mobile { + --columnGap: 1.5rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-6-tablet { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-tablet { + --columnGap: 1.5rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-6-tablet-only { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-tablet-only { + --columnGap: 1.5rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-6-touch { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-touch { + --columnGap: 1.5rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-6-desktop { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-desktop { + --columnGap: 1.5rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-6-desktop-only { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-desktop-only { + --columnGap: 1.5rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-6-widescreen { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-widescreen { + --columnGap: 1.5rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-6-widescreen-only { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-widescreen-only { + --columnGap: 1.5rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-6-fullhd { - --columnGap: 1.5rem; - } + .columns.is-variable.is-6-fullhd { + --columnGap: 1.5rem; + } } .columns.is-variable.is-7 { - --columnGap: 1.75rem; + --columnGap: 1.75rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-7-mobile { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-mobile { + --columnGap: 1.75rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-7-tablet { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-tablet { + --columnGap: 1.75rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-7-tablet-only { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-tablet-only { + --columnGap: 1.75rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-7-touch { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-touch { + --columnGap: 1.75rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-7-desktop { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-desktop { + --columnGap: 1.75rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-7-desktop-only { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-desktop-only { + --columnGap: 1.75rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-7-widescreen { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-widescreen { + --columnGap: 1.75rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-7-widescreen-only { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-widescreen-only { + --columnGap: 1.75rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-7-fullhd { - --columnGap: 1.75rem; - } + .columns.is-variable.is-7-fullhd { + --columnGap: 1.75rem; + } } .columns.is-variable.is-8 { - --columnGap: 2rem; + --columnGap: 2rem; } @media screen and (max-width: 768px) { - .columns.is-variable.is-8-mobile { - --columnGap: 2rem; - } + .columns.is-variable.is-8-mobile { + --columnGap: 2rem; + } } @media screen and (min-width: 769px), print { - .columns.is-variable.is-8-tablet { - --columnGap: 2rem; - } + .columns.is-variable.is-8-tablet { + --columnGap: 2rem; + } } @media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-8-tablet-only { - --columnGap: 2rem; - } + .columns.is-variable.is-8-tablet-only { + --columnGap: 2rem; + } } @media screen and (max-width: 1023px) { - .columns.is-variable.is-8-touch { - --columnGap: 2rem; - } + .columns.is-variable.is-8-touch { + --columnGap: 2rem; + } } @media screen and (min-width: 1024px) { - .columns.is-variable.is-8-desktop { - --columnGap: 2rem; - } + .columns.is-variable.is-8-desktop { + --columnGap: 2rem; + } } @media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-8-desktop-only { - --columnGap: 2rem; - } + .columns.is-variable.is-8-desktop-only { + --columnGap: 2rem; + } } @media screen and (min-width: 1216px) { - .columns.is-variable.is-8-widescreen { - --columnGap: 2rem; - } + .columns.is-variable.is-8-widescreen { + --columnGap: 2rem; + } } @media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-8-widescreen-only { - --columnGap: 2rem; - } + .columns.is-variable.is-8-widescreen-only { + --columnGap: 2rem; + } } @media screen and (min-width: 1408px) { - .columns.is-variable.is-8-fullhd { - --columnGap: 2rem; - } + .columns.is-variable.is-8-fullhd { + --columnGap: 2rem; + } } .tile { - align-items: stretch; - display: block; - flex-basis: 0; - flex-grow: 1; - flex-shrink: 1; - min-height: -webkit-min-content; - min-height: -moz-min-content; - min-height: min-content; + align-items: stretch; + display: block; + flex-basis: 0; + flex-grow: 1; + flex-shrink: 1; + min-height: -webkit-min-content; + min-height: -moz-min-content; + min-height: min-content; } .tile.is-ancestor { - margin-left: -0.75rem; - margin-right: -0.75rem; - margin-top: -0.75rem; + margin-left: -0.75rem; + margin-right: -0.75rem; + margin-top: -0.75rem; } .tile.is-ancestor:last-child { - margin-bottom: -0.75rem; + margin-bottom: -0.75rem; } .tile.is-ancestor:not(:last-child) { - margin-bottom: 0.75rem; + margin-bottom: 0.75rem; } .tile.is-child { - margin: 0 !important; + margin: 0 !important; } .tile.is-parent { - padding: 0.75rem; + padding: 0.75rem; } .tile.is-vertical { - flex-direction: column; + flex-direction: column; } .tile.is-vertical > .tile.is-child:not(:last-child) { - margin-bottom: 1.5rem !important; + margin-bottom: 1.5rem !important; } @media screen and (min-width: 769px), print { - .tile:not(.is-child) { - display: flex; - } - .tile.is-1 { - flex: none; - width: 8.33333%; - } - .tile.is-2 { - flex: none; - width: 16.66667%; - } - .tile.is-3 { - flex: none; - width: 25%; - } - .tile.is-4 { - flex: none; - width: 33.33333%; - } - .tile.is-5 { - flex: none; - width: 41.66667%; - } - .tile.is-6 { - flex: none; - width: 50%; - } - .tile.is-7 { - flex: none; - width: 58.33333%; - } - .tile.is-8 { - flex: none; - width: 66.66667%; - } - .tile.is-9 { - flex: none; - width: 75%; - } - .tile.is-10 { - flex: none; - width: 83.33333%; - } - .tile.is-11 { - flex: none; - width: 91.66667%; - } - .tile.is-12 { - flex: none; - width: 100%; - } + .tile:not(.is-child) { + display: flex; + } + .tile.is-1 { + flex: none; + width: 8.33333%; + } + .tile.is-2 { + flex: none; + width: 16.66667%; + } + .tile.is-3 { + flex: none; + width: 25%; + } + .tile.is-4 { + flex: none; + width: 33.33333%; + } + .tile.is-5 { + flex: none; + width: 41.66667%; + } + .tile.is-6 { + flex: none; + width: 50%; + } + .tile.is-7 { + flex: none; + width: 58.33333%; + } + .tile.is-8 { + flex: none; + width: 66.66667%; + } + .tile.is-9 { + flex: none; + width: 75%; + } + .tile.is-10 { + flex: none; + width: 83.33333%; + } + .tile.is-11 { + flex: none; + width: 91.66667%; + } + .tile.is-12 { + flex: none; + width: 100%; + } } .hero { - align-items: stretch; - display: flex; - flex-direction: column; - justify-content: space-between; + align-items: stretch; + display: flex; + flex-direction: column; + justify-content: space-between; } .hero .navbar { - background: none; + background: none; } .hero .tabs ul { - border-bottom: none; + border-bottom: none; } .hero.is-white { - background-color: #fff; - color: #0a0a0a; + background-color: #fff; + color: #0a0a0a; } .hero.is-white - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-white strong { - color: inherit; + color: inherit; } .hero.is-white .title { - color: #0a0a0a; + color: #0a0a0a; } .hero.is-white .subtitle { - color: rgba(10, 10, 10, 0.9); + color: rgba(10, 10, 10, 0.9); } .hero.is-white .subtitle a:not(.button), .hero.is-white .subtitle strong { - color: #0a0a0a; + color: #0a0a0a; } @media screen and (max-width: 1023px) { - .hero.is-white .navbar-menu { - background-color: #fff; - } + .hero.is-white .navbar-menu { + background-color: #fff; + } } .hero.is-white .navbar-item, .hero.is-white .navbar-link { - color: rgba(10, 10, 10, 0.7); + color: rgba(10, 10, 10, 0.7); } .hero.is-white a.navbar-item:hover, .hero.is-white a.navbar-item.is-active, .hero.is-white .navbar-link:hover, .hero.is-white .navbar-link.is-active { - background-color: #f2f2f2; - color: #0a0a0a; + background-color: #f2f2f2; + color: #0a0a0a; } .hero.is-white .tabs a { - color: #0a0a0a; - opacity: 0.9; + color: #0a0a0a; + opacity: 0.9; } .hero.is-white .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-white .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-white .tabs.is-boxed a, .hero.is-white .tabs.is-toggle a { - color: #0a0a0a; + color: #0a0a0a; } .hero.is-white .tabs.is-boxed a:hover, .hero.is-white .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-white .tabs.is-boxed li.is-active a, .hero.is-white .tabs.is-boxed li.is-active a:hover, .hero.is-white .tabs.is-toggle li.is-active a, .hero.is-white .tabs.is-toggle li.is-active a:hover { - background-color: #0a0a0a; - border-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + border-color: #0a0a0a; + color: #fff; } .hero.is-white.is-bold { - background-image: linear-gradient(141deg, #e6e6e6 0%, #fff 71%, #fff 100%); + background-image: linear-gradient(141deg, #e6e6e6 0%, #fff 71%, #fff 100%); } @media screen and (max-width: 768px) { - .hero.is-white.is-bold .navbar-menu { - background-image: linear-gradient(141deg, #e6e6e6 0%, #fff 71%, #fff 100%); - } + .hero.is-white.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #e6e6e6 0%, + #fff 71%, + #fff 100% + ); + } } .hero.is-black { - background-color: #0a0a0a; - color: #fff; + background-color: #0a0a0a; + color: #fff; } .hero.is-black - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-black strong { - color: inherit; + color: inherit; } .hero.is-black .title { - color: #fff; + color: #fff; } .hero.is-black .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-black .subtitle a:not(.button), .hero.is-black .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-black .navbar-menu { - background-color: #0a0a0a; - } + .hero.is-black .navbar-menu { + background-color: #0a0a0a; + } } .hero.is-black .navbar-item, .hero.is-black .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-black a.navbar-item:hover, .hero.is-black a.navbar-item.is-active, .hero.is-black .navbar-link:hover, .hero.is-black .navbar-link.is-active { - background-color: #000; - color: #fff; + background-color: #000; + color: #fff; } .hero.is-black .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-black .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-black .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-black .tabs.is-boxed a, .hero.is-black .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-black .tabs.is-boxed a:hover, .hero.is-black .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-black .tabs.is-boxed li.is-active a, .hero.is-black .tabs.is-boxed li.is-active a:hover, .hero.is-black .tabs.is-toggle li.is-active a, .hero.is-black .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #0a0a0a; + background-color: #fff; + border-color: #fff; + color: #0a0a0a; } .hero.is-black.is-bold { - background-image: linear-gradient(141deg, #000 0%, #0a0a0a 71%, #181616 100%); + background-image: linear-gradient( + 141deg, + #000 0%, + #0a0a0a 71%, + #181616 100% + ); } @media screen and (max-width: 768px) { - .hero.is-black.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #000 0%, - #0a0a0a 71%, - #181616 100% - ); - } + .hero.is-black.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #000 0%, + #0a0a0a 71%, + #181616 100% + ); + } } .hero.is-light { - background-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + color: #363636; } .hero.is-light - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-light strong { - color: inherit; + color: inherit; } .hero.is-light .title { - color: #363636; + color: #363636; } .hero.is-light .subtitle { - color: rgba(54, 54, 54, 0.9); + color: rgba(54, 54, 54, 0.9); } .hero.is-light .subtitle a:not(.button), .hero.is-light .subtitle strong { - color: #363636; + color: #363636; } @media screen and (max-width: 1023px) { - .hero.is-light .navbar-menu { - background-color: #f5f5f5; - } + .hero.is-light .navbar-menu { + background-color: #f5f5f5; + } } .hero.is-light .navbar-item, .hero.is-light .navbar-link { - color: rgba(54, 54, 54, 0.7); + color: rgba(54, 54, 54, 0.7); } .hero.is-light a.navbar-item:hover, .hero.is-light a.navbar-item.is-active, .hero.is-light .navbar-link:hover, .hero.is-light .navbar-link.is-active { - background-color: #e8e8e8; - color: #363636; + background-color: #e8e8e8; + color: #363636; } .hero.is-light .tabs a { - color: #363636; - opacity: 0.9; + color: #363636; + opacity: 0.9; } .hero.is-light .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-light .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-light .tabs.is-boxed a, .hero.is-light .tabs.is-toggle a { - color: #363636; + color: #363636; } .hero.is-light .tabs.is-boxed a:hover, .hero.is-light .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-light .tabs.is-boxed li.is-active a, .hero.is-light .tabs.is-boxed li.is-active a:hover, .hero.is-light .tabs.is-toggle li.is-active a, .hero.is-light .tabs.is-toggle li.is-active a:hover { - background-color: #363636; - border-color: #363636; - color: #f5f5f5; + background-color: #363636; + border-color: #363636; + color: #f5f5f5; } .hero.is-light.is-bold { - background-image: linear-gradient(141deg, #dfd8d9 0%, #f5f5f5 71%, #fff 100%); + background-image: linear-gradient( + 141deg, + #dfd8d9 0%, + #f5f5f5 71%, + #fff 100% + ); } @media screen and (max-width: 768px) { - .hero.is-light.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #dfd8d9 0%, - #f5f5f5 71%, - #fff 100% - ); - } + .hero.is-light.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #dfd8d9 0%, + #f5f5f5 71%, + #fff 100% + ); + } } .hero.is-dark { - background-color: #363636; - color: #f5f5f5; + background-color: #363636; + color: #f5f5f5; } .hero.is-dark - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-dark strong { - color: inherit; + color: inherit; } .hero.is-dark .title { - color: #f5f5f5; + color: #f5f5f5; } .hero.is-dark .subtitle { - color: rgba(245, 245, 245, 0.9); + color: rgba(245, 245, 245, 0.9); } .hero.is-dark .subtitle a:not(.button), .hero.is-dark .subtitle strong { - color: #f5f5f5; + color: #f5f5f5; } @media screen and (max-width: 1023px) { - .hero.is-dark .navbar-menu { - background-color: #363636; - } + .hero.is-dark .navbar-menu { + background-color: #363636; + } } .hero.is-dark .navbar-item, .hero.is-dark .navbar-link { - color: rgba(245, 245, 245, 0.7); + color: rgba(245, 245, 245, 0.7); } .hero.is-dark a.navbar-item:hover, .hero.is-dark a.navbar-item.is-active, .hero.is-dark .navbar-link:hover, .hero.is-dark .navbar-link.is-active { - background-color: #292929; - color: #f5f5f5; + background-color: #292929; + color: #f5f5f5; } .hero.is-dark .tabs a { - color: #f5f5f5; - opacity: 0.9; + color: #f5f5f5; + opacity: 0.9; } .hero.is-dark .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-dark .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-dark .tabs.is-boxed a, .hero.is-dark .tabs.is-toggle a { - color: #f5f5f5; + color: #f5f5f5; } .hero.is-dark .tabs.is-boxed a:hover, .hero.is-dark .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-dark .tabs.is-boxed li.is-active a, .hero.is-dark .tabs.is-boxed li.is-active a:hover, .hero.is-dark .tabs.is-toggle li.is-active a, .hero.is-dark .tabs.is-toggle li.is-active a:hover { - background-color: #f5f5f5; - border-color: #f5f5f5; - color: #363636; + background-color: #f5f5f5; + border-color: #f5f5f5; + color: #363636; } .hero.is-dark.is-bold { - background-image: linear-gradient( - 141deg, - #1f191a 0%, - #363636 71%, - #46403f 100% - ); + background-image: linear-gradient( + 141deg, + #1f191a 0%, + #363636 71%, + #46403f 100% + ); } @media screen and (max-width: 768px) { - .hero.is-dark.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #1f191a 0%, - #363636 71%, - #46403f 100% - ); - } + .hero.is-dark.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #1f191a 0%, + #363636 71%, + #46403f 100% + ); + } } .hero.is-primary { - background-color: #00d1b2; - color: #fff; + background-color: #00d1b2; + color: #fff; } .hero.is-primary - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-primary strong { - color: inherit; + color: inherit; } .hero.is-primary .title { - color: #fff; + color: #fff; } .hero.is-primary .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-primary .subtitle a:not(.button), .hero.is-primary .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-primary .navbar-menu { - background-color: #00d1b2; - } + .hero.is-primary .navbar-menu { + background-color: #00d1b2; + } } .hero.is-primary .navbar-item, .hero.is-primary .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-primary a.navbar-item:hover, .hero.is-primary a.navbar-item.is-active, .hero.is-primary .navbar-link:hover, .hero.is-primary .navbar-link.is-active { - background-color: #00b89c; - color: #fff; + background-color: #00b89c; + color: #fff; } .hero.is-primary .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-primary .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-primary .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-primary .tabs.is-boxed a, .hero.is-primary .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-primary .tabs.is-boxed a:hover, .hero.is-primary .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-primary .tabs.is-boxed li.is-active a, .hero.is-primary .tabs.is-boxed li.is-active a:hover, .hero.is-primary .tabs.is-toggle li.is-active a, .hero.is-primary .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #00d1b2; + background-color: #fff; + border-color: #fff; + color: #00d1b2; } .hero.is-primary.is-bold { - background-image: linear-gradient( - 141deg, - #009e6c 0%, - #00d1b2 71%, - #00e7eb 100% - ); + background-image: linear-gradient( + 141deg, + #009e6c 0%, + #00d1b2 71%, + #00e7eb 100% + ); } @media screen and (max-width: 768px) { - .hero.is-primary.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #009e6c 0%, - #00d1b2 71%, - #00e7eb 100% - ); - } + .hero.is-primary.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #009e6c 0%, + #00d1b2 71%, + #00e7eb 100% + ); + } } .hero.is-link { - background-color: #3273dc; - color: #fff; + background-color: #3273dc; + color: #fff; } .hero.is-link - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-link strong { - color: inherit; + color: inherit; } .hero.is-link .title { - color: #fff; + color: #fff; } .hero.is-link .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-link .subtitle a:not(.button), .hero.is-link .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-link .navbar-menu { - background-color: #3273dc; - } + .hero.is-link .navbar-menu { + background-color: #3273dc; + } } .hero.is-link .navbar-item, .hero.is-link .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-link a.navbar-item:hover, .hero.is-link a.navbar-item.is-active, .hero.is-link .navbar-link:hover, .hero.is-link .navbar-link.is-active { - background-color: #2366d1; - color: #fff; + background-color: #2366d1; + color: #fff; } .hero.is-link .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-link .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-link .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-link .tabs.is-boxed a, .hero.is-link .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-link .tabs.is-boxed a:hover, .hero.is-link .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-link .tabs.is-boxed li.is-active a, .hero.is-link .tabs.is-boxed li.is-active a:hover, .hero.is-link .tabs.is-toggle li.is-active a, .hero.is-link .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #3273dc; + background-color: #fff; + border-color: #fff; + color: #3273dc; } .hero.is-link.is-bold { - background-image: linear-gradient( - 141deg, - #1577c6 0%, - #3273dc 71%, - #4366e5 100% - ); + background-image: linear-gradient( + 141deg, + #1577c6 0%, + #3273dc 71%, + #4366e5 100% + ); } @media screen and (max-width: 768px) { - .hero.is-link.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #1577c6 0%, - #3273dc 71%, - #4366e5 100% - ); - } + .hero.is-link.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #1577c6 0%, + #3273dc 71%, + #4366e5 100% + ); + } } .hero.is-info { - background-color: #209cee; - color: #fff; + background-color: #209cee; + color: #fff; } .hero.is-info - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-info strong { - color: inherit; + color: inherit; } .hero.is-info .title { - color: #fff; + color: #fff; } .hero.is-info .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-info .subtitle a:not(.button), .hero.is-info .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-info .navbar-menu { - background-color: #209cee; - } + .hero.is-info .navbar-menu { + background-color: #209cee; + } } .hero.is-info .navbar-item, .hero.is-info .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-info a.navbar-item:hover, .hero.is-info a.navbar-item.is-active, .hero.is-info .navbar-link:hover, .hero.is-info .navbar-link.is-active { - background-color: #118fe4; - color: #fff; + background-color: #118fe4; + color: #fff; } .hero.is-info .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-info .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-info .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-info .tabs.is-boxed a, .hero.is-info .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-info .tabs.is-boxed a:hover, .hero.is-info .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-info .tabs.is-boxed li.is-active a, .hero.is-info .tabs.is-boxed li.is-active a:hover, .hero.is-info .tabs.is-toggle li.is-active a, .hero.is-info .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #209cee; + background-color: #fff; + border-color: #fff; + color: #209cee; } .hero.is-info.is-bold { - background-image: linear-gradient( - 141deg, - #04a6d7 0%, - #209cee 71%, - #3287f5 100% - ); + background-image: linear-gradient( + 141deg, + #04a6d7 0%, + #209cee 71%, + #3287f5 100% + ); } @media screen and (max-width: 768px) { - .hero.is-info.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #04a6d7 0%, - #209cee 71%, - #3287f5 100% - ); - } + .hero.is-info.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #04a6d7 0%, + #209cee 71%, + #3287f5 100% + ); + } } .hero.is-success { - background-color: #23d160; - color: #fff; + background-color: #23d160; + color: #fff; } .hero.is-success - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-success strong { - color: inherit; + color: inherit; } .hero.is-success .title { - color: #fff; + color: #fff; } .hero.is-success .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-success .subtitle a:not(.button), .hero.is-success .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-success .navbar-menu { - background-color: #23d160; - } + .hero.is-success .navbar-menu { + background-color: #23d160; + } } .hero.is-success .navbar-item, .hero.is-success .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-success a.navbar-item:hover, .hero.is-success a.navbar-item.is-active, .hero.is-success .navbar-link:hover, .hero.is-success .navbar-link.is-active { - background-color: #20bc56; - color: #fff; + background-color: #20bc56; + color: #fff; } .hero.is-success .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-success .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-success .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-success .tabs.is-boxed a, .hero.is-success .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-success .tabs.is-boxed a:hover, .hero.is-success .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-success .tabs.is-boxed li.is-active a, .hero.is-success .tabs.is-boxed li.is-active a:hover, .hero.is-success .tabs.is-toggle li.is-active a, .hero.is-success .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #23d160; + background-color: #fff; + border-color: #fff; + color: #23d160; } .hero.is-success.is-bold { - background-image: linear-gradient( - 141deg, - #12af2f 0%, - #23d160 71%, - #2ce28a 100% - ); + background-image: linear-gradient( + 141deg, + #12af2f 0%, + #23d160 71%, + #2ce28a 100% + ); } @media screen and (max-width: 768px) { - .hero.is-success.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #12af2f 0%, - #23d160 71%, - #2ce28a 100% - ); - } + .hero.is-success.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #12af2f 0%, + #23d160 71%, + #2ce28a 100% + ); + } } .hero.is-warning { - background-color: #ffdd57; - color: rgba(0, 0, 0, 0.7); + background-color: #ffdd57; + color: rgba(0, 0, 0, 0.7); } .hero.is-warning - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-warning strong { - color: inherit; + color: inherit; } .hero.is-warning .title { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } .hero.is-warning .subtitle { - color: rgba(0, 0, 0, 0.9); + color: rgba(0, 0, 0, 0.9); } .hero.is-warning .subtitle a:not(.button), .hero.is-warning .subtitle strong { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } @media screen and (max-width: 1023px) { - .hero.is-warning .navbar-menu { - background-color: #ffdd57; - } + .hero.is-warning .navbar-menu { + background-color: #ffdd57; + } } .hero.is-warning .navbar-item, .hero.is-warning .navbar-link { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } .hero.is-warning a.navbar-item:hover, .hero.is-warning a.navbar-item.is-active, .hero.is-warning .navbar-link:hover, .hero.is-warning .navbar-link.is-active { - background-color: #ffd83d; - color: rgba(0, 0, 0, 0.7); + background-color: #ffd83d; + color: rgba(0, 0, 0, 0.7); } .hero.is-warning .tabs a { - color: rgba(0, 0, 0, 0.7); - opacity: 0.9; + color: rgba(0, 0, 0, 0.7); + opacity: 0.9; } .hero.is-warning .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-warning .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-warning .tabs.is-boxed a, .hero.is-warning .tabs.is-toggle a { - color: rgba(0, 0, 0, 0.7); + color: rgba(0, 0, 0, 0.7); } .hero.is-warning .tabs.is-boxed a:hover, .hero.is-warning .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-warning .tabs.is-boxed li.is-active a, .hero.is-warning .tabs.is-boxed li.is-active a:hover, .hero.is-warning .tabs.is-toggle li.is-active a, .hero.is-warning .tabs.is-toggle li.is-active a:hover { - background-color: rgba(0, 0, 0, 0.7); - border-color: rgba(0, 0, 0, 0.7); - color: #ffdd57; + background-color: rgba(0, 0, 0, 0.7); + border-color: rgba(0, 0, 0, 0.7); + color: #ffdd57; } .hero.is-warning.is-bold { - background-image: linear-gradient( - 141deg, - #ffaf24 0%, - #ffdd57 71%, - #fffa70 100% - ); + background-image: linear-gradient( + 141deg, + #ffaf24 0%, + #ffdd57 71%, + #fffa70 100% + ); } @media screen and (max-width: 768px) { - .hero.is-warning.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #ffaf24 0%, - #ffdd57 71%, - #fffa70 100% - ); - } + .hero.is-warning.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #ffaf24 0%, + #ffdd57 71%, + #fffa70 100% + ); + } } .hero.is-danger { - background-color: #ff3860; - color: #fff; + background-color: #ff3860; + color: #fff; } .hero.is-danger - a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), + a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current), .hero.is-danger strong { - color: inherit; + color: inherit; } .hero.is-danger .title { - color: #fff; + color: #fff; } .hero.is-danger .subtitle { - color: rgba(255, 255, 255, 0.9); + color: rgba(255, 255, 255, 0.9); } .hero.is-danger .subtitle a:not(.button), .hero.is-danger .subtitle strong { - color: #fff; + color: #fff; } @media screen and (max-width: 1023px) { - .hero.is-danger .navbar-menu { - background-color: #ff3860; - } + .hero.is-danger .navbar-menu { + background-color: #ff3860; + } } .hero.is-danger .navbar-item, .hero.is-danger .navbar-link { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .hero.is-danger a.navbar-item:hover, .hero.is-danger a.navbar-item.is-active, .hero.is-danger .navbar-link:hover, .hero.is-danger .navbar-link.is-active { - background-color: #ff1f4b; - color: #fff; + background-color: #ff1f4b; + color: #fff; } .hero.is-danger .tabs a { - color: #fff; - opacity: 0.9; + color: #fff; + opacity: 0.9; } .hero.is-danger .tabs a:hover { - opacity: 1; + opacity: 1; } .hero.is-danger .tabs li.is-active a { - opacity: 1; + opacity: 1; } .hero.is-danger .tabs.is-boxed a, .hero.is-danger .tabs.is-toggle a { - color: #fff; + color: #fff; } .hero.is-danger .tabs.is-boxed a:hover, .hero.is-danger .tabs.is-toggle a:hover { - background-color: rgba(10, 10, 10, 0.1); + background-color: rgba(10, 10, 10, 0.1); } .hero.is-danger .tabs.is-boxed li.is-active a, .hero.is-danger .tabs.is-boxed li.is-active a:hover, .hero.is-danger .tabs.is-toggle li.is-active a, .hero.is-danger .tabs.is-toggle li.is-active a:hover { - background-color: #fff; - border-color: #fff; - color: #ff3860; + background-color: #fff; + border-color: #fff; + color: #ff3860; } .hero.is-danger.is-bold { - background-image: linear-gradient( - 141deg, - #ff0561 0%, - #ff3860 71%, - #ff5257 100% - ); + background-image: linear-gradient( + 141deg, + #ff0561 0%, + #ff3860 71%, + #ff5257 100% + ); } @media screen and (max-width: 768px) { - .hero.is-danger.is-bold .navbar-menu { - background-image: linear-gradient( - 141deg, - #ff0561 0%, - #ff3860 71%, - #ff5257 100% - ); - } + .hero.is-danger.is-bold .navbar-menu { + background-image: linear-gradient( + 141deg, + #ff0561 0%, + #ff3860 71%, + #ff5257 100% + ); + } } .hero.is-small .hero-body { - padding-bottom: 1.5rem; - padding-top: 1.5rem; + padding-bottom: 1.5rem; + padding-top: 1.5rem; } @media screen and (min-width: 769px), print { - .hero.is-medium .hero-body { - padding-bottom: 9rem; - padding-top: 9rem; - } + .hero.is-medium .hero-body { + padding-bottom: 9rem; + padding-top: 9rem; + } } @media screen and (min-width: 769px), print { - .hero.is-large .hero-body { - padding-bottom: 18rem; - padding-top: 18rem; - } + .hero.is-large .hero-body { + padding-bottom: 18rem; + padding-top: 18rem; + } } .hero.is-halfheight .hero-body, .hero.is-fullheight .hero-body, .hero.is-fullheight-with-navbar .hero-body { - align-items: center; - display: flex; + align-items: center; + display: flex; } .hero.is-halfheight .hero-body > .container, .hero.is-fullheight .hero-body > .container, .hero.is-fullheight-with-navbar .hero-body > .container { - flex-grow: 1; - flex-shrink: 1; + flex-grow: 1; + flex-shrink: 1; } .hero.is-halfheight { - min-height: 50vh; + min-height: 50vh; } .hero.is-fullheight { - min-height: 100vh; + min-height: 100vh; } .hero-video { - overflow: hidden; + overflow: hidden; } .hero-video video { - left: 50%; - min-height: 100%; - min-width: 100%; - position: absolute; - top: 50%; - -webkit-transform: translate3d(-50%, -50%, 0); - transform: translate3d(-50%, -50%, 0); + left: 50%; + min-height: 100%; + min-width: 100%; + position: absolute; + top: 50%; + -webkit-transform: translate3d(-50%, -50%, 0); + transform: translate3d(-50%, -50%, 0); } .hero-video.is-transparent { - opacity: 0.3; + opacity: 0.3; } @media screen and (max-width: 768px) { - .hero-video { - display: none; - } + .hero-video { + display: none; + } } .hero-buttons { - margin-top: 1.5rem; + margin-top: 1.5rem; } @media screen and (max-width: 768px) { - .hero-buttons .button { - display: flex; - } - .hero-buttons .button:not(:last-child) { - margin-bottom: 0.75rem; - } + .hero-buttons .button { + display: flex; + } + .hero-buttons .button:not(:last-child) { + margin-bottom: 0.75rem; + } } @media screen and (min-width: 769px), print { - .hero-buttons { - display: flex; - justify-content: center; - } - .hero-buttons .button:not(:last-child) { - margin-right: 1.5rem; - } + .hero-buttons { + display: flex; + justify-content: center; + } + .hero-buttons .button:not(:last-child) { + margin-right: 1.5rem; + } } .hero-head, .hero-foot { - flex-grow: 0; - flex-shrink: 0; + flex-grow: 0; + flex-shrink: 0; } .hero-body { - flex-grow: 1; - flex-shrink: 0; - padding: 3rem 1.5rem; + flex-grow: 1; + flex-shrink: 0; + padding: 3rem 1.5rem; } .section { - padding: 3rem 1.5rem; + padding: 3rem 1.5rem; } @media screen and (min-width: 1024px) { - .section.is-medium { - padding: 9rem 1.5rem; - } - .section.is-large { - padding: 18rem 1.5rem; - } + .section.is-medium { + padding: 9rem 1.5rem; + } + .section.is-large { + padding: 18rem 1.5rem; + } } .footer { - background-color: #fafafa; - padding: 3rem 1.5rem 6rem; + background-color: #fafafa; + padding: 3rem 1.5rem 6rem; } html { - height: 100%; - width: 100%; + height: 100%; + width: 100%; } body { - font-family: "TT Norms Medium", sans-serif; - font-size: 15px; - position: relative; - height: 100%; - width: 100%; - overflow-x: hidden; + font-family: 'TT Norms Medium', sans-serif; + font-size: 15px; + position: relative; + height: 100%; + width: 100%; + overflow-x: hidden; } body.small-header .top-nav { - height: 75px; + height: 75px; } body.small-header #main { - padding-top: 75px; + padding-top: 75px; } .top-nav { - height: 120px; + height: 120px; } @media screen and (max-width: 1023px) { - .top-nav { - height: 75px; - } + .top-nav { + height: 75px; + } } #main { - height: 100%; - display: flex; - flex-direction: row; - background: #f8f8f9; - padding-top: 120px; - overflow-x: hidden; - width: 100%; + height: 100%; + display: flex; + flex-direction: row; + background: #f8f8f9; + padding-top: 120px; + overflow-x: hidden; + width: 100%; } @media screen and (max-width: 1023px) { - #main { - padding-top: 75px; - } + #main { + padding-top: 75px; + } } #main > .sidebar { - padding: 40px 30px; - flex-grow: 0; - flex-shrink: 0; - width: 240px; - border-right: 1px solid #eaeaf1; - height: 100%; - overflow: auto; + padding: 40px 30px; + flex-grow: 0; + flex-shrink: 0; + width: 240px; + border-right: 1px solid #eaeaf1; + height: 100%; + overflow: auto; } #main > .sidebar.tutorials { - width: 320px; + width: 320px; } #main > .core { - padding: 28px; - height: 100%; - overflow: auto; - flex-grow: 1; + padding: 28px; + height: 100%; + overflow: auto; + flex-grow: 1; } @media screen and (max-width: 768px) { - #main > .core { - padding: 0px; - } + #main > .core { + padding: 0px; + } } #main > .core > .content { - background: #fff; - padding: 40px; - border-radius: 4px; - box-shadow: 0 0 40px 0 rgba(115, 134, 160, 0.24); + background: #fff; + padding: 40px; + border-radius: 4px; + box-shadow: 0 0 40px 0 rgba(115, 134, 160, 0.24); } #main > .side-nav { - width: 240px; - padding: 40px 20px; - flex-grow: 0; - flex-shrink: 0; - height: 100%; - border-left: 1px solid #eaeaf1; - overflow: auto; + width: 240px; + padding: 40px 20px; + flex-grow: 0; + flex-shrink: 0; + height: 100%; + border-left: 1px solid #eaeaf1; + overflow: auto; } .content { - margin-bottom: 50px; + margin-bottom: 50px; } .content blockquote { - margin: 30px 0 !important; + margin: 30px 0 !important; } .content .signature-attributes { - margin-left: 8px; - margin-right: 3px; - font-style: italic; + margin-left: 8px; + margin-right: 3px; + font-style: italic; } .content header.page-title p { - font-size: 13px; - margin: 0 0 5px; - text-transform: uppercase; + font-size: 13px; + margin: 0 0 5px; + text-transform: uppercase; } .content header p { - font-size: 20px; + font-size: 20px; } .content h1, .content header.page-title h1 { - font-family: "TT Norms Medium", sans-serif; - font-size: 47px; - font-weight: bold; - margin: 8px 0; + font-family: 'TT Norms Medium', sans-serif; + font-size: 47px; + font-weight: bold; + margin: 8px 0; } .content h2 { - font-size: 26px; - line-height: 48px; - font-weight: bold; - margin-bottom: 26px; + font-size: 26px; + line-height: 48px; + font-weight: bold; + margin-bottom: 26px; } .content h3, .content h4, .content h5, .content h6 { - font-family: "TT Norms Medium", sans-serif; - font-weight: 900; - letter-spacing: 0; + font-family: 'TT Norms Medium', sans-serif; + font-weight: 900; + letter-spacing: 0; } .content code { - color: #101010; - font-family: "Inconsolata", monospace; + color: #101010; + font-family: 'Inconsolata', monospace; } .content .container-overview .prettyprint:last-child { - margin-bottom: 50px; + margin-bottom: 50px; } .content .vertical-section { - padding: 16px 0; + padding: 16px 0; } @media screen and (max-width: 1023px) { - #main-content-wrapper { - padding: 0 30px; - } + #main-content-wrapper { + padding: 0 30px; + } } body.landing > .top-nav { - box-shadow: none; - transition: margin-top 0.3s; - color: #fff; - background: #4268f6; + box-shadow: none; + transition: margin-top 0.3s; + color: #fff; + background: #4268f6; } body.landing > .top-nav.hidden { - transition: margin-top 0.3s; - margin-top: -130px; + transition: margin-top 0.3s; + margin-top: -130px; } @media screen and (max-width: 1023px) { - body.landing > .top-nav.hidden { - margin-top: -85px; - } + body.landing > .top-nav.hidden { + margin-top: -85px; + } } body.landing > .top-nav.sticky { - box-shadow: 0 0 20px 0 rgba(0, 0, 255, 0.5); + box-shadow: 0 0 20px 0 rgba(0, 0, 255, 0.5); } body.landing > .top-nav .inner { - margin: 0 auto; - max-width: 1226px; + margin: 0 auto; + max-width: 1226px; } body.landing > .top-nav a.button { - color: #fff; - border-color: #fff; - background: transparent; + color: #fff; + border-color: #fff; + background: transparent; } body.landing > .top-nav a.button:hover { - background: #fff; - border-color: #fff; - color: #192035; + background: #fff; + border-color: #fff; + color: #192035; } body.landing > .top-nav .menu .navigation a.link { - color: #fff; + color: #fff; } body.landing > .top-nav .menu .navigation a.link:hover { - border-color: #fff; + border-color: #fff; } body.landing > .top-nav .image img { - content: url("../images/logo.svg"); + content: url('../images/logo.svg'); } body.landing > .top-nav #hamburger { - display: none; + display: none; } body.landing #main { - display: block; - height: auto; + display: block; + height: auto; } body.landing .main-hero { - background: #4268f6; - color: #fff; - padding: 300px 40% 160px; - border-bottom-left-radius: 50%; - border-bottom-right-radius: 50%; - margin: -250px -30% 0; - text-align: center; + background: #4268f6; + color: #fff; + padding: 300px 40% 160px; + border-bottom-left-radius: 50%; + border-bottom-right-radius: 50%; + margin: -250px -30% 0; + text-align: center; } body.landing .main-hero .action-buttons { - margin: 60px 0; - vertical-align: middle; + margin: 60px 0; + vertical-align: middle; } body.landing .main-hero .action-buttons span { - color: #fff; + color: #fff; } body.landing .main-hero h3 { - font-size: 24px; - line-height: 65px; - font-weight: lighter; + font-size: 24px; + line-height: 65px; + font-weight: lighter; } body.landing .main-hero h1 { - font-size: 52px; - line-height: 65px; - font-weight: lighter; - max-width: 900px; - margin-left: auto; - margin-right: auto; + font-size: 52px; + line-height: 65px; + font-weight: lighter; + max-width: 900px; + margin-left: auto; + margin-right: auto; } body.landing .main-hero strong { - color: #fff; + color: #fff; } body.landing .gif-box { - margin-top: -140px; - text-align: center; + margin-top: -140px; + text-align: center; } body.landing .grey-logos { - text-align: center; - margin-bottom: 50px; + text-align: center; + margin-bottom: 50px; } body.landing .grey-logos .column { - display: flex; - align-items: center; - justify-content: center; + display: flex; + align-items: center; + justify-content: center; } body.landing .white-oval { - background: #fff; - padding: 110px 500px 100px; - margin: 0 -500px; - text-align: center; - border-bottom-left-radius: 50%; - border-bottom-right-radius: 50%; + background: #fff; + padding: 110px 500px 100px; + margin: 0 -500px; + text-align: center; + border-bottom-left-radius: 50%; + border-bottom-right-radius: 50%; } body.landing h2 { - font-weight: bold; - font-size: 36px; - line-height: 48px; - color: #101010; - margin-bottom: 15px; + font-weight: bold; + font-size: 36px; + line-height: 48px; + color: #101010; + margin-bottom: 15px; } body.landing h2 + p { - color: #767676; - font-size: 16px; + color: #767676; + font-size: 16px; } body.landing h4 { - font-weight: bold; - font-size: 24px; - line-height: 32px; + font-weight: bold; + font-size: 24px; + line-height: 32px; } body.landing .header-message { - margin-bottom: 80px; + margin-bottom: 80px; } body.landing .todo-actions { - text-align: left; - padding: 100px 0 100px 100px; + text-align: left; + padding: 100px 0 100px 100px; } @media screen and (max-width: 1215px) { - body.landing .todo-actions { - padding-top: 20px; - } + body.landing .todo-actions { + padding-top: 20px; + } } body.landing .todo-actions h4 { - margin-bottom: 60px; - position: relative; + margin-bottom: 60px; + position: relative; } body.landing .todo-actions h4:before { - content: ""; - position: absolute; - left: -50px; - top: 0; - height: 30px; - width: 30px; - background: url("../images/check.svg") no-repeat 50% 50%; + content: ''; + position: absolute; + left: -50px; + top: 0; + height: 30px; + width: 30px; + background: url('../images/check.svg') no-repeat 50% 50%; } body.landing .action-buttons span { - line-height: 36px; - margin: 0 10px; - color: #4268f6; + line-height: 36px; + margin: 0 10px; + color: #4268f6; } body.landing .credentials { - text-align: center; - padding: 100px 0; - background: url("../images/map.svg") no-repeat 50% 50%; + text-align: center; + padding: 100px 0; + background: url('../images/map.svg') no-repeat 50% 50%; } body.landing .credentials .fa-youtube { - color: #ff0000; + color: #ff0000; } body.landing .credentials .fa-reddit { - color: #ff4500; + color: #ff4500; } body.landing .credentials .fa-github { - color: #101010; + color: #101010; } body.landing .credentials .columns { - margin-bottom: 20px; + margin-bottom: 20px; } body.landing .credentials .column { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; } body.landing .credentials .box { - flex-direction: column; - padding: 30px; - height: 100%; - box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.25); - display: flex; - justify-content: center; + flex-direction: column; + padding: 30px; + height: 100%; + box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.25); + display: flex; + justify-content: center; } body.landing .credentials .box:hover { - box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.5); + box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.5); } body.landing .credentials .box h5 { - align-self: center; - font-size: 22px; - line-height: 26px; - margin-bottom: 30px; + align-self: center; + font-size: 22px; + line-height: 26px; + margin-bottom: 30px; } body.landing .credentials .box span { - font-size: 11px; + font-size: 11px; } body.landing .stat-box { - padding: 40px 65px; - box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.25); + padding: 40px 65px; + box-shadow: 0px 0px 40px rgba(115, 134, 160, 0.25); } @media screen and (max-width: 768px) { - body.landing .stat-box .column:first-child { - padding-bottom: 40px; - } + body.landing .stat-box .column:first-child { + padding-bottom: 40px; + } } body.landing .stat-box .fa-github { - color: #101010; + color: #101010; } body.landing .stat-box h2 { - margin: 0 0 60px; + margin: 0 0 60px; } body.landing .stat-box h4 { - font-size: 32px; - font-weight: bolder; - margin-top: 15px; - color: #101010; + font-size: 32px; + font-weight: bolder; + margin-top: 15px; + color: #101010; } body.landing .stat-box h4 strong { - color: #101010; + color: #101010; } body.landing .stat-box .level { - border-bottom: #4c73f7 3px solid; - margin-bottom: -3px; + border-bottom: #4c73f7 3px solid; + margin-bottom: -3px; } body.landing .stat-box .level img { - position: relative; - bottom: -3px; + position: relative; + bottom: -3px; } body.landing .stat-box .action-buttons { - margin: 50px 0 0; + margin: 50px 0 0; } body.landing .feature-docs { - margin-top: -200px; - padding-top: 300px; + margin-top: -200px; + padding-top: 300px; } @media screen and (min-width: 1216px) { - body.landing .feature-docs .container .columns.is-multiline { - margin: 0 8.333%; - } + body.landing .feature-docs .container .columns.is-multiline { + margin: 0 8.333%; + } } body.landing .feature-docs .columns.is-multiline .column { - display: flex; + display: flex; } body.landing .feature-docs .box { - color: #101010; + color: #101010; } body.landing .feature-docs .box:hover { - box-shadow: 4px 8px 12px rgba(115, 134, 160, 0.25); + box-shadow: 4px 8px 12px rgba(115, 134, 160, 0.25); } body.landing .feature-docs .box img { - margin: -10px 0; + margin: -10px 0; } body.landing .feature-docs .box h4 { - line-height: 36px; - font-size: 26px; + line-height: 36px; + font-size: 26px; } body.landing .feature-docs .box p { - font-size: 20px; - line-height: 26px; - margin: 35px 0; + font-size: 20px; + line-height: 26px; + margin: 35px 0; } body.landing .feature-docs .action-buttons { - margin: 100px 0 50px; + margin: 100px 0 50px; } body.landing .feature-side-blocks .bg-crud { - background: url("../images/bg-crud.png") no-repeat 100% 50%; + background: url('../images/bg-crud.png') no-repeat 100% 50%; } @media screen and (max-width: 1215px) { - body.landing .feature-side-blocks .bg-crud { - background-position-x: 150%; - } + body.landing .feature-side-blocks .bg-crud { + background-position-x: 150%; + } } @media screen and (max-width: 1023px) { - body.landing .feature-side-blocks .bg-crud { - background: none; - text-align: center; - } + body.landing .feature-side-blocks .bg-crud { + background: none; + text-align: center; + } } body.landing .feature-side-blocks .bg-filter { - background: url("../images/bg-filter.png") no-repeat 0% 50%; + background: url('../images/bg-filter.png') no-repeat 0% 50%; } @media screen and (max-width: 1215px) { - body.landing .feature-side-blocks .bg-filter { - background-position-x: -200px; - } + body.landing .feature-side-blocks .bg-filter { + background-position-x: -200px; + } } @media screen and (max-width: 1023px) { - body.landing .feature-side-blocks .bg-filter { - background: none; - text-align: center; - } + body.landing .feature-side-blocks .bg-filter { + background: none; + text-align: center; + } } body.landing .feature-side-blocks .column { - justify-content: center; - display: flex; - flex-direction: column; + justify-content: center; + display: flex; + flex-direction: column; } @media screen and (min-width: 1024px) { - body.landing .feature-side-blocks .column { - height: 700px; - } + body.landing .feature-side-blocks .column { + height: 700px; + } } body.landing .feature-side-blocks .container { - margin-top: 50px; - margin-bottom: 50px; + margin-top: 50px; + margin-bottom: 50px; } body.landing .feature-side-blocks .action-buttons { - margin: 30px 0; + margin: 30px 0; } body.landing .support-block { - padding: 80px 0 350px; - background: #fff; - margin-bottom: -200px; + padding: 80px 0 350px; + background: #fff; + margin-bottom: -200px; } body.landing .support-block .column { - display: flex; - flex-direction: column; + display: flex; + flex-direction: column; } body.landing .support-block .column .box { - flex-grow: 1; + flex-grow: 1; } body.landing .support-block .img { - text-align: center; - border-bottom: 1px solid #d8d8d8; - margin: 0 -20px 20px; + text-align: center; + border-bottom: 1px solid #d8d8d8; + margin: 0 -20px 20px; } body.landing .support-block h4 { - font-weight: bolder; - font-size: 26px; - line-height: 48px; + font-weight: bolder; + font-size: 26px; + line-height: 48px; } body.landing .support-block .text { - padding: 0 10px 20px; + padding: 0 10px 20px; } body.landing .support-block .form { - background: #4268f6; - padding: 40px; - border-radius: 10px; + background: #4268f6; + padding: 40px; + border-radius: 10px; } body.landing .button.is-success { - width: 170px; - height: 50px; + width: 170px; + height: 50px; } body.landing .form { - color: #fff; + color: #fff; } body.landing .form .success-msg { - display: none; + display: none; } body.landing .form .success-msg img { - width: 150px; - margin: 100px 0; + width: 150px; + margin: 100px 0; } body.landing .form.completed .success-msg { - display: block; + display: block; } body.landing .form.completed .form-fields { - display: none; + display: none; } body.landing .form h2 { - color: #fff; - margin-bottom: 30px; + color: #fff; + margin-bottom: 30px; } body.landing .form .label { - font-size: 20px; + font-size: 20px; } body.landing .form .field { - margin-bottom: 40px; - color: #fff; + margin-bottom: 40px; + color: #fff; } body.landing .form .field label { - color: #fff; - font-weight: bold; + color: #fff; + font-weight: bold; } body.landing .form .field input { - border-radius: 4px; - height: 54px; + border-radius: 4px; + height: 54px; } body.landing .form .checkbox { - display: block; - padding: 8px 0; - font-size: 16px; + display: block; + padding: 8px 0; + font-size: 16px; } body.landing .form .checkbox:hover { - color: #fff; + color: #fff; } body.landing .form .checkbox input { - margin-right: 5px; + margin-right: 5px; } body.landing .form .interested { - padding: 0 0 20px; + padding: 0 0 20px; } body.landing .form .interested .label { - color: #fff; + color: #fff; } body.landing .form textarea { - height: 80px; + height: 80px; } body.landing .form .notice { - font-size: 14px; - font-weight: lighter; - padding: 10px 30px; + font-size: 14px; + font-weight: lighter; + padding: 10px 30px; } body.landing .curved-footer { - background: #4268f6; - padding: 110px 500px; - margin: 0 -500px; - border-top-left-radius: 50%; - border-top-right-radius: 50%; - color: #fff; + background: #4268f6; + padding: 110px 500px; + margin: 0 -500px; + border-top-left-radius: 50%; + border-top-right-radius: 50%; + color: #fff; } body.landing .curved-footer .the-part { - position: relative; + position: relative; } body.landing .curved-footer .the-part h2 { - font-size: 90px; - line-height: 120px; - opacity: 0.08; - color: #fff; + font-size: 90px; + line-height: 120px; + opacity: 0.08; + color: #fff; } @media screen and (max-width: 1023px) { - body.landing .curved-footer .the-part h2 { - font-size: 70px; - } + body.landing .curved-footer .the-part h2 { + font-size: 70px; + } } body.landing .curved-footer .the-part h4 { - font-size: 56px; - line-height: 65px; - position: absolute; - left: 0; - top: 0; - right: 0; - padding: 80px 0; + font-size: 56px; + line-height: 65px; + position: absolute; + left: 0; + top: 0; + right: 0; + padding: 80px 0; } body.landing .button.is-link { - background: transparent; + background: transparent; } body.landing .button.is-link span { - border-bottom: 1px solid #fff; + border-bottom: 1px solid #fff; } body.landing .button.is-link:hover span { - border-bottom: none; + border-bottom: none; } body.landing .top { - border-bottom: 1px solid rgba(255, 255, 255, 0.2); - padding-bottom: 120px; - text-align: center; + border-bottom: 1px solid rgba(255, 255, 255, 0.2); + padding-bottom: 120px; + text-align: center; } body.landing .bottom { - font-size: 14px; - padding: 65px 0 0; + font-size: 14px; + padding: 65px 0 0; } @media screen and (max-width: 768px) { - body.landing .bottom { - padding: 20px; - } + body.landing .bottom { + padding: 20px; + } } body.landing .bottom strong { - color: #fff; + color: #fff; } body.landing .bottom p { - padding: 6px 0; + padding: 6px 0; } body.landing .bottom a { - color: #fff; + color: #fff; } body.landing .bottom .sb { - padding-top: 40px; + padding-top: 40px; } body.landing .bottom .logo { - padding-bottom: 30px; + padding-bottom: 30px; } body.landing .bottom .button.is-success { - margin-top: 40px; - height: 54px; + margin-top: 40px; + height: 54px; } body.landing .bottom .form { - margin-top: 30px; + margin-top: 30px; } .top-nav { - background: #fff; - padding: 8px 24px; - box-shadow: 0 0 40px 0 rgba(115, 134, 160, 0.24); - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 5; + background: #fff; + padding: 8px 24px; + box-shadow: 0 0 40px 0 rgba(115, 134, 160, 0.24); + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 5; } @media screen and (max-width: 768px) { - .top-nav { - padding: 8px; - } + .top-nav { + padding: 8px; + } } .top-nav h1 { - font-size: 20px; + font-size: 20px; } .top-nav .inner { - display: flex; - align-items: center; + display: flex; + align-items: center; } .top-nav #hamburger { - margin-left: 0; + margin-left: 0; } @media screen and (max-width: 768px) { - .top-nav .logo { - display: none; - } + .top-nav .logo { + display: none; + } } .top-nav .menu { - flex-grow: 1; + flex-grow: 1; } .top-nav .menu .top-buttons { - text-align: right; - margin-bottom: 8px; - margin-top: 2px; + text-align: right; + margin-bottom: 8px; + margin-top: 2px; } @media screen and (max-width: 1023px) { - .top-nav .menu .top-buttons { - display: none; - } + .top-nav .menu .top-buttons { + display: none; + } } .top-nav .menu .top-buttons .button { - margin-left: 16px; + margin-left: 16px; } .top-nav .menu .navigation { - text-align: right; - margin-bottom: 4px; + text-align: right; + margin-bottom: 4px; } .top-nav .menu .navigation .link { - border: none; - display: inline-block; - padding: 4px 8px; - color: #101010; - margin-right: 2px; - line-height: 48px; - height: 48px; - vertical-align: middle; - height: 46px; + border: none; + display: inline-block; + padding: 4px 8px; + color: #101010; + margin-right: 2px; + line-height: 48px; + height: 48px; + vertical-align: middle; + height: 46px; } .top-nav .menu .navigation .link:hover:not(.no-hover) { - border-bottom: 2px solid #101010; + border-bottom: 2px solid #101010; } @media screen and (max-width: 768px) { - .top-nav .menu .navigation .link.user-link { - display: none; - } + .top-nav .menu .navigation .link.user-link { + display: none; + } } .sidebar { - padding-bottom: 120px; + padding-bottom: 120px; } .sidebar .search-wrapper { - margin: -20px -15px 21px; + margin: -20px -15px 21px; } .sidebar .search-wrapper input { - border-radius: 0; + border-radius: 0; } .sidebar a { - color: #798897; - overflow-wrap: break-word; + color: #798897; + overflow-wrap: break-word; } .sidebar a:hover, .sidebar a.active { - color: #e6282b; + color: #e6282b; } .sidebar h3 { - margin: 1.6rem 0 0.4rem; - color: #211d1a; - font-size: 12px; - text-transform: uppercase; + margin: 1.6rem 0 0.4rem; + color: #211d1a; + font-size: 12px; + text-transform: uppercase; } .sidebar ul { - padding: 0 0 0.26667rem 1.06667rem; + padding: 0 0 0.26667rem 1.06667rem; } .sidebar ul li { - padding: 0.2rem 0; + padding: 0.2rem 0; } .sidebar li > ul { - padding: 0 0 0px 25px; + padding: 0 0 0px 25px; } .sidebar .category h2 { - color: #000; - font-size: 20px; - margin-top: 40px; + color: #000; + font-size: 20px; + margin-top: 40px; } #sidebarNav.sticky { - left: 0; - transition: left 0.5s; + left: 0; + transition: left 0.5s; } @media screen and (max-width: 1023px) { - #sidebarNav { - z-index: 100; - top: 0; - left: -300px; - position: fixed; - transition: left 0.5s; - padding: 28px; - width: 300px; - bottom: 0; - overflow: auto; - background: #fff; - } - #sidebarNav .sidebar { - padding-bottom: 10px; - } + #sidebarNav { + z-index: 100; + top: 0; + left: -300px; + position: fixed; + transition: left 0.5s; + padding: 28px; + width: 300px; + bottom: 0; + overflow: auto; + background: #fff; + } + #sidebarNav .sidebar { + padding-bottom: 10px; + } } #stickyNavbarOverlay { - position: absolute; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: 40; - background: rgba(0, 0, 0, 0.2); - display: none; + position: absolute; + left: 0; + right: 0; + bottom: 0; + top: 0; + z-index: 40; + background: rgba(0, 0, 0, 0.2); + display: none; } #stickyNavbarOverlay.active { - display: block; + display: block; } .side-nav a { - color: #798897; - overflow-wrap: break-word; + color: #798897; + overflow-wrap: break-word; } .side-nav a:hover, .side-nav a.is-active { - color: #e6282b; + color: #e6282b; } .side-nav a.is-past { - opacity: 0.7; + opacity: 0.7; } .side-nav h3 { - margin: 1.6rem 0 0.4rem; - color: #211d1a; - font-size: 12px; - text-transform: uppercase; + margin: 1.6rem 0 0.4rem; + color: #211d1a; + font-size: 12px; + text-transform: uppercase; } .side-nav ul { - padding: 0 0 0.26667rem 1.06667rem; + padding: 0 0 0.26667rem 1.06667rem; } .side-nav ul li { - padding: 0.2rem 0; + padding: 0.2rem 0; } @media screen and (max-width: 768px) { - .side-nav { - display: none; - } + .side-nav { + display: none; + } } .footer { - border-top: 1px solid #eaeaf1; - padding: 20px; - margin: 0 -30px -30px; - background: #f8f8f9; + border-top: 1px solid #eaeaf1; + padding: 20px; + margin: 0 -30px -30px; + background: #f8f8f9; } .footer .content { - margin-bottom: 0; + margin-bottom: 0; } .footer .fas { - color: #e6282b; + color: #e6282b; } .footer a { - font-weight: bold; + font-weight: bold; } .footer a:hover { - color: #e6282b; + color: #e6282b; } .members { - margin-top: 24px; + margin-top: 24px; } .member:not(:last-child):after { - content: ""; - background: #eaeaf1; - height: 2px; - display: block; - margin: 45px -40px 40px; + content: ''; + background: #eaeaf1; + height: 2px; + display: block; + margin: 45px -40px 40px; } .member > .is-pulled-right { - position: relative; - z-index: 2; + position: relative; + z-index: 2; } .member > .name { - color: #211d1a; - font-size: 20px; - line-height: 26px; - position: relative; - margin-bottom: 8px; + color: #211d1a; + font-size: 20px; + line-height: 26px; + position: relative; + margin-bottom: 8px; } .member > .name .code-name { - font-family: "Inconsolata", monospace; - display: block; - font-size: 25px; - line-height: 30px; - margin-top: 8px; + font-family: 'Inconsolata', monospace; + display: block; + font-size: 25px; + line-height: 30px; + margin-top: 8px; } .member > .name .code-name:first-child { - margin-left: 0; + margin-left: 0; } .member > .name .tag { - position: relative; - top: -1px; - margin-right: 3px; + position: relative; + top: -1px; + margin-right: 3px; } .member > .name .href-link { - color: #211d1a; - position: absolute; - padding: 1px; - left: -20px; - top: 0; - bottom: 0; - width: 21px; - opacity: 0; + color: #211d1a; + position: absolute; + padding: 1px; + left: -20px; + top: 0; + bottom: 0; + width: 21px; + opacity: 0; } .member > .name:hover .href-link { - opacity: 1; + opacity: 1; } .member h5 { - font-size: 20px; + font-size: 20px; } .member > .description { - margin-bottom: 25px; + margin-bottom: 25px; } .member > .description p { - font-size: 20px; - margin: 25px 0; + font-size: 20px; + margin: 25px 0; } table.params, table.props { - border: 1px solid #eaeaf1; - line-height: 26px; + border: 1px solid #eaeaf1; + line-height: 26px; } table.params thead, table.props thead { - border: none; + border: none; } table.params thead th, table.props thead th { - font-weight: normal; - padding: 13px 26px; + font-weight: normal; + padding: 13px 26px; } table.params tr, table.props tr { - border-bottom: 1px solid #eaeaf1; + border-bottom: 1px solid #eaeaf1; } table.params td, table.props td { - padding: 13px 26px; + padding: 13px 26px; } table.params td.name code, table.props td.name code { - background: transparent; - padding: 0; - font-size: 15px; - color: #211d1a; + background: transparent; + padding: 0; + font-size: 15px; + color: #211d1a; } table.params tr.deep-level-1, table.props tr.deep-level-1 { - background: #fafafa; + background: #fafafa; } table.params tr.deep-level-1 .name code, table.props tr.deep-level-1 .name code { - padding-left: 25px; - margin-left: 0px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 0px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-2, table.props tr.deep-level-2 { - background: #f5f5f5; + background: #f5f5f5; } table.params tr.deep-level-2 .name code, table.props tr.deep-level-2 .name code { - padding-left: 25px; - margin-left: 25px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 25px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-3, table.props tr.deep-level-3 { - background: #f0f0f0; + background: #f0f0f0; } table.params tr.deep-level-3 .name code, table.props tr.deep-level-3 .name code { - padding-left: 25px; - margin-left: 50px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 50px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-4, table.props tr.deep-level-4 { - background: #ebebeb; + background: #ebebeb; } table.params tr.deep-level-4 .name code, table.props tr.deep-level-4 .name code { - padding-left: 25px; - margin-left: 75px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 75px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-5, table.props tr.deep-level-5 { - background: #e6e6e6; + background: #e6e6e6; } table.params tr.deep-level-5 .name code, table.props tr.deep-level-5 .name code { - padding-left: 25px; - margin-left: 100px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 100px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-6, table.props tr.deep-level-6 { - background: #e0e0e0; + background: #e0e0e0; } table.params tr.deep-level-6 .name code, table.props tr.deep-level-6 .name code { - padding-left: 25px; - margin-left: 125px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 125px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-7, table.props tr.deep-level-7 { - background: #dbdbdb; + background: #dbdbdb; } table.params tr.deep-level-7 .name code, table.props tr.deep-level-7 .name code { - padding-left: 25px; - margin-left: 150px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 150px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-8, table.props tr.deep-level-8 { - background: #d6d6d6; + background: #d6d6d6; } table.params tr.deep-level-8 .name code, table.props tr.deep-level-8 .name code { - padding-left: 25px; - margin-left: 175px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 175px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-9, table.props tr.deep-level-9 { - background: #d1d1d1; + background: #d1d1d1; } table.params tr.deep-level-9 .name code, table.props tr.deep-level-9 .name code { - padding-left: 25px; - margin-left: 200px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 200px; + border-left: 1px solid #dee1e5; } table.params tr.deep-level-10, table.props tr.deep-level-10 { - background: #ccc; + background: #ccc; } table.params tr.deep-level-10 .name code, table.props tr.deep-level-10 .name code { - padding-left: 25px; - margin-left: 225px; - border-left: 1px solid #dee1e5; + padding-left: 25px; + margin-left: 225px; + border-left: 1px solid #dee1e5; } .prettyprint { - border-radius: 2px; - background-color: #2f4858; + border-radius: 2px; + background-color: #2f4858; } .prettyprint code { - font-family: "Inconsolata", monospace; + font-family: 'Inconsolata', monospace; } pre.prettyprint li.L0, pre.prettyprint li.L1, @@ -10747,98 +10763,98 @@ pre.prettyprint li.L6, pre.prettyprint li.L7, pre.prettyprint li.L8, pre.prettyprint li.L9 { - background: none; + background: none; } .button { - transition: all 0.2s; - border-radius: 4px; - padding: 8px 24px; - height: 40px; - border-color: #4268f6; - color: #4268f6; + transition: all 0.2s; + border-radius: 4px; + padding: 8px 24px; + height: 40px; + border-color: #4268f6; + color: #4268f6; } .button:hover { - color: #535b8e; - border-color: #535b8e; - transition: all 0.2s; + color: #535b8e; + border-color: #535b8e; + transition: all 0.2s; } .button.is-primary { - background-color: #4268f6; + background-color: #4268f6; } .button.is-primary:hover { - background-color: #535b8e; + background-color: #535b8e; } .button.is-primary.is-outlined { - border-color: #4268f6; - color: #4268f6; + border-color: #4268f6; + color: #4268f6; } .button.is-primary.is-outlined:hover { - border-color: #535b8e; - color: #535b8e; - background: transparent; + border-color: #535b8e; + color: #535b8e; + background: transparent; } .button.is-success { - background: #69d6d4; + background: #69d6d4; } .button.is-white.is-outlined { - background: transparent; - border-color: #fff; + background: transparent; + border-color: #fff; } .button > i:first-child { - margin-right: 8px; - margin-left: -8px; + margin-right: 8px; + margin-left: -8px; } .tag-source { - margin: 28px 0; + margin: 28px 0; } .tag-source span { - display: inline-block; - padding: 13px 14px; + display: inline-block; + padding: 13px 14px; } .tag-source span a { - color: #eaeaf1; + color: #eaeaf1; } .tag-source span a:hover { - color: #798897; + color: #798897; } .method-parameter { - font-size: 20px; + font-size: 20px; } .method-parameter label { - color: 18px; + color: 18px; } .method-parameter ul { - margin: 0 0 0 25px; + margin: 0 0 0 25px; } .mermaid .edgeLabel { - background: white; - color: #2f4858; - font-size: 15px; - font-weight: normal; + background: white; + color: #2f4858; + font-size: 15px; + font-weight: normal; } .mermaid .node circle, .mermaid .node ellipse, .mermaid .node polygon, .mermaid .node rect { - fill: rgba(248, 249, 250, 0.8) !important; - stroke: rgba(121, 136, 151, 0.6) !important; + fill: rgba(248, 249, 250, 0.8) !important; + stroke: rgba(121, 136, 151, 0.6) !important; } .mermaid .cluster rect { - fill: rgba(125, 132, 255, 0.1) !important; - stroke: rgba(125, 132, 255, 0.5) !important; + fill: rgba(125, 132, 255, 0.1) !important; + stroke: rgba(125, 132, 255, 0.5) !important; } .mermaid .node g.label { - color: #2f4858; + color: #2f4858; } .mermaid .node g.label div { - font-weight: normal; - font-size: 15px; + font-weight: normal; + font-size: 15px; } .tag { - text-transform: uppercase; + text-transform: uppercase; } .details dt { - font-size: 20px; - border-left: 2px solid #008ddf; - padding-left: 16px; + font-size: 20px; + border-left: 2px solid #008ddf; + padding-left: 16px; } diff --git a/docs/styles/iframe.css b/docs/styles/iframe.css index b54e014a..00124faa 100644 --- a/docs/styles/iframe.css +++ b/docs/styles/iframe.css @@ -1,13 +1,13 @@ .bd__button { - padding: 10px 0; - text-align: right; + padding: 10px 0; + text-align: right; } .bd__button > a { - font-weight: 100; - text-decoration: none; - color: #bdc3cb; - font-family: sans-serif; + font-weight: 100; + text-decoration: none; + color: #bdc3cb; + font-family: sans-serif; } .bd__button > a:hover { - color: #798897; + color: #798897; } diff --git a/docs/styles/prettify-jsdoc.css b/docs/styles/prettify-jsdoc.css deleted file mode 100644 index 5a2526e3..00000000 --- a/docs/styles/prettify-jsdoc.css +++ /dev/null @@ -1,111 +0,0 @@ -/* JSDoc prettify.js theme */ - -/* plain text */ -.pln { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* string content */ -.str { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a keyword */ -.kwd { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a comment */ -.com { - font-weight: normal; - font-style: italic; -} - -/* a type name */ -.typ { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* a literal value */ -.lit { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* punctuation */ -.pun { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* lisp open bracket */ -.opn { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* lisp close bracket */ -.clo { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a markup tag name */ -.tag { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a markup attribute name */ -.atn { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a markup attribute value */ -.atv { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a declaration */ -.dec { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a variable name */ -.var { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* a function name */ -.fun { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; -} diff --git a/docs/styles/prettify-tomorrow.css b/docs/styles/prettify-tomorrow.css index 3c8d71ee..550b6b62 100644 --- a/docs/styles/prettify-tomorrow.css +++ b/docs/styles/prettify-tomorrow.css @@ -4,123 +4,123 @@ /* SPAN elements with the classes below are added by prettyprint. */ /* plain text */ .pln { - color: #4d4d4c; + color: #4d4d4c; } @media screen { - /* string content */ - .str { - color: #718c00; - } - - /* a keyword */ - .kwd { - color: #8959a8; - } - - /* a comment */ - .com { - color: #8e908c; - } - - /* a type name */ - .typ { - color: #4271ae; - } - - /* a literal value */ - .lit { - color: #f5871f; - } - - /* punctuation */ - .pun { - color: #4d4d4c; - } - - /* lisp open bracket */ - .opn { - color: #4d4d4c; - } - - /* lisp close bracket */ - .clo { - color: #4d4d4c; - } - - /* a markup tag name */ - .tag { - color: #c82829; - } - - /* a markup attribute name */ - .atn { - color: #f5871f; - } - - /* a markup attribute value */ - .atv { - color: #3e999f; - } - - /* a declaration */ - .dec { - color: #f5871f; - } - - /* a variable name */ - .var { - color: #c82829; - } - - /* a function name */ - .fun { - color: #4271ae; - } + /* string content */ + .str { + color: #718c00; + } + + /* a keyword */ + .kwd { + color: #8959a8; + } + + /* a comment */ + .com { + color: #8e908c; + } + + /* a type name */ + .typ { + color: #4271ae; + } + + /* a literal value */ + .lit { + color: #f5871f; + } + + /* punctuation */ + .pun { + color: #4d4d4c; + } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; + } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; + } + + /* a markup tag name */ + .tag { + color: #c82829; + } + + /* a markup attribute name */ + .atn { + color: #f5871f; + } + + /* a markup attribute value */ + .atv { + color: #3e999f; + } + + /* a declaration */ + .dec { + color: #f5871f; + } + + /* a variable name */ + .var { + color: #c82829; + } + + /* a function name */ + .fun { + color: #4271ae; + } } /* Use higher contrast and text-weight for printable form. */ @media print, projection { - .str { - color: #060; - } - - .kwd { - color: #006; - font-weight: bold; - } - - .com { - color: #600; - font-style: italic; - } - - .typ { - color: #404; - font-weight: bold; - } - - .lit { - color: #044; - } - - .pun, - .opn, - .clo { - color: #440; - } - - .tag { - color: #006; - font-weight: bold; - } - - .atn { - color: #404; - } - - .atv { - color: #060; - } + .str { + color: #060; + } + + .kwd { + color: #006; + font-weight: bold; + } + + .com { + color: #600; + font-style: italic; + } + + .typ { + color: #404; + font-weight: bold; + } + + .lit { + color: #044; + } + + .pun, + .opn, + .clo { + color: #440; + } + + .tag { + color: #006; + font-weight: bold; + } + + .atn { + color: #404; + } + + .atv { + color: #060; + } } /* Style */ /* @@ -135,8 +135,8 @@ pre.prettyprint { /* Specify class=linenums on a pre to get line numbering */ ol.linenums { - margin-top: 0; - margin-bottom: 0; + margin-top: 0; + margin-bottom: 0; } /* IE indents via margin-left */ @@ -150,7 +150,7 @@ li.L6, li.L7, li.L8, li.L9 { - /* */ + /* */ } /* Alternate shading for lines */ @@ -159,5 +159,5 @@ li.L3, li.L5, li.L7, li.L9 { - /* */ + /* */ } diff --git a/docs/styles/reset.css b/docs/styles/reset.css index 92899fe7..727e934f 100644 --- a/docs/styles/reset.css +++ b/docs/styles/reset.css @@ -80,12 +80,12 @@ time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, @@ -99,27 +99,27 @@ hgroup, menu, nav, section { - display: block; + display: block; } body { - line-height: 1; + line-height: 1; } ol, ul { - list-style: none; + list-style: none; } blockquote, q { - quotes: none; + quotes: none; } blockquote:before, blockquote:after, q:before, q:after { - content: ""; - content: none; + content: ''; + content: none; } table { - border-collapse: collapse; - border-spacing: 0; + border-collapse: collapse; + border-spacing: 0; } diff --git a/examples/blockchain/oracle-blockchain.js b/examples/blockchain/oracle-blockchain.js new file mode 100644 index 00000000..6c39062e --- /dev/null +++ b/examples/blockchain/oracle-blockchain.js @@ -0,0 +1,221 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const blockchain = ncProviders.oracle.blockchain(); + +function createBlockchainPlatform() { + const createBlockchainPlatformDetails = { + displayName: 'EXAMPLE-displayName-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + description: 'EXAMPLE-description-Value', + platformRole: blockchain.models.BlockchainPlatform.PlatformRole.Founder, + computeShape: + blockchain.models.BlockchainPlatform.ComputeShape.EnterpriseLarge, + isByol: false, + platformVersion: 'EXAMPLE-platformVersion-Value', + idcsAccessToken: 'EXAMPLE-idcsAccessToken-Value', + federatedUserId: + 'ocid1.test.oc1..EXAMPLE-federatedUserId-Value', + caCertArchiveText: 'EXAMPLE-caCertArchiveText-Value', + freeformTags: { + EXAMPLE_KEY_5jMMt: 'EXAMPLE_VALUE_jEoiKdbMNj9ZpvWIv8RP', + }, + definedTags: { + EXAMPLE_KEY_VMIqB: { + EXAMPLE_KEY_ijkHB: 'EXAMPLE--Value', + }, + }, + }; + + const createBlockchainPlatformRequest = { + createBlockchainPlatformDetails: createBlockchainPlatformDetails, + }; + + blockchain.createBlockchainPlatform(createBlockchainPlatformRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function listBlockchainPlatforms() { + const listBlockchainPlatformsRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + displayName: 'EXAMPLE-displayName-Value', + page: 'EXAMPLE-page-Value', + limit: 634, + sortOrder: + blockchain.requests.ListBlockchainPlatformsRequest.SortOrder.Asc, + sortBy: + blockchain.requests.ListBlockchainPlatformsRequest.SortBy + .TimeCreated, + opcRequestId: 'GVUKMUVQJY3MLL3NJS5X', + lifecycleState: + blockchain.models.BlockchainPlatform.LifecycleState.Failed, + }; + blockchain.listBlockchainPlatforms(listBlockchainPlatformsRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteBlockchainPlatform() { + const deleteBlockchainPlatformRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + opcRequestId: 'DNF7RAAWJSQVOCL01VC4', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + blockchain.deleteBlockchainPlatform(deleteBlockchainPlatformRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createOsn() { + const createOsnDetails = { + ad: blockchain.models.AvailabilityDomain.Ads.Ad1, + ocpuAllocationParam: { + ocpuAllocationNumber: 12.899105, + }, + }; + + const createOsnRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + createOsnDetails: createOsnDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'HIRLQG44ELIUHHVHYYKD', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + blockchain.createOsn(createOsnRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createPeer() { + const createPeerDetails = { + role: blockchain.models.PeerRole.Role.Member, + alias: 'EXAMPLE-alias-Value', + ocpuAllocationParam: { + ocpuAllocationNumber: 13.278614, + }, + ad: blockchain.models.AvailabilityDomain.Ads.Ad3, + }; + + const createPeerRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + createPeerDetails: createPeerDetails, + opcRequestId: 'FZNBVDEF2GGZZ6F4RVMI', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + blockchain.createPeer(createPeerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteOsn() { + const deleteOsnRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + osnId: 'ocid1.test.oc1..EXAMPLE-osnId-Value', + opcRequestId: 'X49PWBJDH0Y6UH1IOWMD', + ifMatch: 'EXAMPLE-ifMatch-Value', + }; + + blockchain.deleteOsn(deleteOsnRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deletePeer() { + const deletePeerRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + peerId: 'ocid1.test.oc1..EXAMPLE-peerId-Value', + opcRequestId: 'NOUO7MV7JKYCHBC6NUES', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + blockchain.deletePeer(deletePeerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getOsn() { + const getOsnRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + osnId: 'ocid1.test.oc1..EXAMPLE-osnId-Value', + opcRequestId: 'MKQOZAOGIGOSE3HFDTSK', + }; + blockchain.getOsn(getOsnRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function listOsns() { + const listOsnsRequest = { + blockchainPlatformId: + 'ocid1.test.oc1..EXAMPLE-blockchainPlatformId-Value', + displayName: 'EXAMPLE-displayName-Value', + opcRequestId: 'CSLTDH1IFPIPPDQSPMMC', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + sortOrder: blockchain.requests.ListOsnsRequest.SortOrder.Desc, + sortBy: blockchain.requests.ListOsnsRequest.SortBy.DisplayName, + page: 'EXAMPLE-page-Value', + limit: 838, + }; + blockchain.listOsns(listOsnsRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/compute/linode-ks.js b/examples/compute/linode-ks.js new file mode 100644 index 00000000..1f0af64d --- /dev/null +++ b/examples/compute/linode-ks.js @@ -0,0 +1,129 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const kubernetes = ncProviders.linode.kubernetes(); + +//Create Kubernetes cluster +function createCluster() { + let clusterDetails = { + label: 'cluster12345', + region: 'us-central', + k8s_version: '1.26', + tags: ['ecomm', 'blogs'], + control_plane: { + high_availability: true, + }, + node_pools: [ + { + type: 'g6-standard-4', + count: 6, + autoscaler: { + enabled: true, + max: 12, + min: 3, + }, + }, + ], + }; + + kubernetes.create(clusterDetails).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +// Get all clusters +function getAllClusters() { + kubernetes.getAllClusters().then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Delete cluster +function deleteCluster() { + let clusterID = 127044; + kubernetes.delete(clusterID).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Create a Node pool +function createNodePool() { + let clusterID = 127044; + let poolDetails = { + type: 'g6-standard-4', + count: 6, + tags: ['example-tag'], + autoscaler: { + enabled: true, + max: 12, + min: 3, + }, + }; + + kubernetes.createNodePool(clusterID, poolDetails).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Delete a node pool +function deleteNodePool() { + let nodePoolID = 188341; + let clusterID = 127044; + kubernetes.deleteNodePool(clusterID, nodePoolID).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Get details of Node Pools +function getNodePool() { + let nodePoolID = 188341; + let clusterID = 127044; + kubernetes.getNodePool(clusterID, nodePoolID).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Get all Nodepools +function getNodePools() { + let clusterID = 127044; + kubernetes.getNodePools(clusterID).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/compute/linode-linodes.js b/examples/compute/linode-linodes.js new file mode 100644 index 00000000..9b3d6b6b --- /dev/null +++ b/examples/compute/linode-linodes.js @@ -0,0 +1,103 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +// get compute object for Linode +const linode = ncProviders.linode.compute(); + +function launchInstance() { + const instanceParams = { + image: 'linode/debian9', + root_pass: 'aComplexP@ssword', + stackscript_id: 10079, + stackscript_data: { + gh_username: 'linode', + }, + interfaces: [ + { + purpose: 'public', + label: '', + ipam_address: '', + }, + { + purpose: 'vlan', + label: 'vlan-1', + ipam_address: '10.0.0.1/24', + }, + ], + authorized_users: ['myUser'], + booted: true, + label: 'linode123', + type: 'g6-standard-2', + region: 'us-east', + group: 'Linode-Group', + }; + + // create Linode instance + linode + .create(instanceParams) + .then(res => { + console.log(`All done ! ${res}`); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//list Instances +function listInstances() { + linode + .list() + .then(res => { + console.log('Instances are' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//delete an Instance +function deleteInstance() { + let instanceId = 3164444; + linode + .delete(instanceId) + .then(res => { + console.log('Output is' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//update an Instance + +function updateInstance() { + let instanceId = 3164444; + const values = { + label: 'linode123', + group: 'Linode-Group', + alerts: { + cpu: 180, + network_in: 10, + network_out: 10, + transfer_quota: 80, + io: 10000, + }, + backups: { + schedule: { + day: 'Saturday', + window: 'W22', + }, + }, + }; + linode + .update(instanceId, values) + .then(res => { + console.log('Output is' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} diff --git a/examples/compute/oracle-compute.js b/examples/compute/oracle-compute.js new file mode 100644 index 00000000..072879bc --- /dev/null +++ b/examples/compute/oracle-compute.js @@ -0,0 +1,194 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +// get compute object for Digital Ocean +const compute = ncProviders.oracle.compute(); + +function launchInstance() { + const createContainerInstanceDetails = { + displayName: 'EXAMPLE-displayName-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + faultDomain: 'EXAMPLE-faultDomain-Value', + shape: 'EXAMPLE-shape-Value', + shapeConfig: { + ocpus: 7512.337, + memoryInGBs: 6286.233, + }, + volumes: [ + { + volumeType: 'CONFIGFILE', + configs: [ + { + fileName: 'EXAMPLE-fileName-Value', + data: 'some Byte data', + path: 'EXAMPLE-path-Value', + }, + ], + name: 'EXAMPLE-name-Value', + }, + ], + containers: [ + { + displayName: 'EXAMPLE-displayName-Value', + imageUrl: 'EXAMPLE-imageUrl-Value', + command: ['EXAMPLE--Value'], + arguments: ['EXAMPLE--Value'], + workingDirectory: 'EXAMPLE-workingDirectory-Value', + environmentVariables: { + EXAMPLE_KEY_G5s18: 'EXAMPLE_VALUE_wWLCNgaQ44ph3dqgfX9r', + }, + volumeMounts: [ + { + mountPath: 'EXAMPLE-mountPath-Value', + volumeName: 'EXAMPLE-volumeName-Value', + subPath: 'EXAMPLE-subPath-Value', + isReadOnly: true, + partition: 104, + }, + ], + isResourcePrincipalDisabled: false, + resourceConfig: { + vcpusLimit: 5310.2256, + memoryLimitInGBs: 5633.6304, + }, + healthChecks: [ + { + healthCheckType: 'TCP', + port: 36294, + name: 'EXAMPLE-name-Value', + initialDelayInSeconds: 5, + intervalInSeconds: 460, + failureThreshold: 208, + successThreshold: 829, + timeoutInSeconds: 330, + failureAction: + containerinstances.models + .ContainerHealthCheckFailureAction.None, + }, + ], + securityContext: { + securityContextType: 'LINUX', + runAsUser: 37461, + runAsGroup: 22242, + isNonRootUserCheckEnabled: true, + isRootFileSystemReadonly: false, + }, + freeformTags: { + EXAMPLE_KEY_18g5q: 'EXAMPLE_VALUE_rsGa5LMXtkRRSH59kOAs', + }, + definedTags: { + EXAMPLE_KEY_5gzH1: { + EXAMPLE_KEY_CJmyv: 'EXAMPLE--Value', + }, + }, + }, + ], + vnics: [ + { + displayName: 'EXAMPLE-displayName-Value', + hostnameLabel: 'EXAMPLE-hostnameLabel-Value', + isPublicIpAssigned: false, + skipSourceDestCheck: false, + nsgIds: ['EXAMPLE--Value'], + privateIp: 'EXAMPLE-privateIp-Value', + subnetId: 'ocid1.test.oc1..EXAMPLE-subnetId-Value', + freeformTags: { + EXAMPLE_KEY_YTEnr: 'EXAMPLE_VALUE_8ipL7sDyGnx31ZgWpMIK', + }, + definedTags: { + EXAMPLE_KEY_c6IAF: { + EXAMPLE_KEY_3vdP1: 'EXAMPLE--Value', + }, + }, + }, + ], + dnsConfig: { + nameservers: ['EXAMPLE--Value'], + searches: ['EXAMPLE--Value'], + options: ['EXAMPLE--Value'], + }, + gracefulShutdownTimeoutInSeconds: 83, + imagePullSecrets: [ + { + secretType: 'BASIC', + username: 'EXAMPLE-username-Value', + password: 'EXAMPLE-password-Value', + registryEndpoint: 'EXAMPLE-registryEndpoint-Value', + }, + ], + containerRestartPolicy: + containerinstances.models.ContainerInstance.ContainerRestartPolicy + .OnFailure, + freeformTags: { + EXAMPLE_KEY_jlcSh: 'EXAMPLE_VALUE_Pv2DXOkbfhrhg9xWIsCw', + }, + definedTags: { + EXAMPLE_KEY_77xk2: { + EXAMPLE_KEY_QTFc0: 'EXAMPLE--Value', + }, + }, + }; + const createContainerInstanceRequest = { + createContainerInstanceDetails: createContainerInstanceDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'FNPFICCMKFONY495PTZP', + }; + + compute + .create(createContainerInstanceRequest) + .then(res => { + console.log(`All done ! ${res}`); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//list Instances +function listInstances() { + const listContainersRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + }; + compute + .list(listContainersRequest) + .then(res => { + console.log('Instances are' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +function get() { + const getContainerRequest = { + containerId: 'ocid1.test.oc1..EXAMPLE-containerId-Value', + }; + compute + .get(getContainerRequest) + .then(res => { + console.log('Instance' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//destroy an Instance +function deleteInstance() { + const deleteContainerInstanceRequest = { + containerInstanceId: + 'ocid1.test.oc1..EXAMPLE-containerInstanceId-Value', + }; + compute + .delete(deleteContainerInstanceRequest) + .then(res => { + console.log('Output is' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} diff --git a/examples/compute/oracle-ks.js b/examples/compute/oracle-ks.js new file mode 100644 index 00000000..594e51a2 --- /dev/null +++ b/examples/compute/oracle-ks.js @@ -0,0 +1,149 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const kubernetes = ncProviders.oracle.kubernetes(); + +//Create Kubernetes cluster +function createCluster() { + const createClusterDetails = { + name: 'EXAMPLE-name-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + vcnId: 'ocid1.test.oc1..EXAMPLE-vcnId-Value', + kubernetesVersion: 'EXAMPLE-kubernetesVersion-Value', + }; + const createClusterRequest = { + createClusterDetails: createClusterDetails, + }; + + kubernetes.create(createClusterRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Get Cluster details +function getClusterDetails() { + const getClusterRequest = { + clusterId: 'ocid1.test.oc1..EXAMPLE-clusterId-Value', + }; + kubernetes.getCluster(getClusterRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +// Get all clusters +function getAllClusters() { + const listClustersRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + }; + + kubernetes.listClusters(listClustersRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Delete cluster +function deleteCluster() { + const deleteClusterRequest = { + clusterId: 'ocid1.test.oc1..EXAMPLE-clusterId-Value', + }; + kubernetes.deleteCluster(deleteClusterRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Create a Node Group +function createNodePool() { + const createNodePoolDetails = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + clusterId: 'ocid1.test.oc1..EXAMPLE-clusterId-Value', + name: 'EXAMPLE-name-Value', + nodeShape: 'EXAMPLE-nodeShape-Value', + }; + const createNodePoolRequest = { + createNodePoolDetails: createNodePoolDetails, + }; + + kubernetes.createNodePool(createNodePoolRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Delete a node group +function deleteNode() { + const deleteNodeRequest = { + nodePoolId: 'ocid1.test.oc1..EXAMPLE-nodePoolId-Value', + nodeId: 'ocid1.test.oc1..EXAMPLE-nodeId-Value', + }; + + kubernetes.deleteNode(deleteNodeRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +//Get all Nodegroups +function getNodePool() { + const getNodePoolRequest = { + nodePoolId: 'ocid1.test.oc1..EXAMPLE-nodePoolId-Value', + }; + kubernetes.getNodePool(getNodePoolRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateNodePool() { + const updateNodePoolDetails = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + clusterId: 'ocid1.test.oc1..EXAMPLE-clusterId-Value', + name: 'EXAMPLE-name-Value', + nodeShape: 'EXAMPLE-nodeShape-Value', + }; + const updateNodePoolRequest = { + nodePoolId: 'ocid1.test.oc1..EXAMPLE-nodePoolId-Value', + updateNodePoolDetails: updateNodePoolDetails, + }; + kubernetes.updateNodePool(updateNodePoolRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/database/linode-sql.js b/examples/database/linode-sql.js new file mode 100644 index 00000000..77b82c10 --- /dev/null +++ b/examples/database/linode-sql.js @@ -0,0 +1,72 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +// get database object for Linode +const linodeSql = ncProviders.linode.sql(); + +function createDatabase() { + const engine = 'mysql'; + const dbParams = { + label: 'example-db', + region: 'us-east', + type: 'g6-dedicated-2', + engine: 'mysql/8.0.30', + replication_type: 'semi_synch', + }; + + // create database + linodeSql + .createDatabase(dbParams) + .then(res => { + console.log(`All done ! ${res}`); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//list Databases +function listDatabases() { + linodeSql + .getDatabases() + .then(res => { + console.log('Instances are' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} + +//delete a Database +function deleteDatabase() { + const engine = 'mysql'; + const dbId = 12345; + linodeSql + .deleteDatabase(engine, dbId) + .then(res => { + console.log('Output is' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} +//update a Database +function updateDatabase() { + const engine = 'mysql'; + const dbId = 12345; + const updateData = { + label: 'example-db', + allow_list: ['203.0.113.1', '192.0.1.0/24'], + }; + linodeSql + .updateDatabase(engine, dbId, updateData) + .then(res => { + console.log('Output is' + res); + }) + .catch(err => { + console.log(`Oops something happened ${err}`); + }); +} diff --git a/examples/database/oracle-nosql.js b/examples/database/oracle-nosql.js new file mode 100644 index 00000000..3f9b8c8a --- /dev/null +++ b/examples/database/oracle-nosql.js @@ -0,0 +1,205 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const nosql = ncProviders.oracle.nosql(); + +function createTable() { + const createTableDetails = { + name: 'EXAMPLE-name-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + ddlStatement: 'EXAMPLE-ddlStatement-Value', + tableLimits: { + maxReadUnits: 965, + maxWriteUnits: 92, + maxStorageInGBs: 683, + capacityMode: nosql.models.TableLimits.CapacityMode.OnDemand, + }, + isAutoReclaimable: false, + freeformTags: { + EXAMPLE_KEY_Ykr64: 'EXAMPLE_VALUE_JJhu45eGQcWfWGYZ5z76', + }, + definedTags: { + EXAMPLE_KEY_BxJ47: { + EXAMPLE_KEY_YQppK: 'EXAMPLE--Value', + }, + }, + }; + + const createTableRequest = { + createTableDetails: createTableDetails, + }; + + nosql.createTable(createTableRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteTable() { + const deleteTableRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + isIfExists: true, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'VP7LHXQFITYQVLQNMYWD', + }; + nosql.deleteTable(deleteTableRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getTable() { + const getTableRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + opcRequestId: 'BFGJJBXIJYLHDO2T1UUG', + }; + nosql.getTable(getTableRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function listTables() { + const listTablesRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + name: 'EXAMPLE-name-Value', + limit: 437, + page: 'EXAMPLE-page-Value', + sortOrder: nosql.requests.ListTablesRequest.SortOrder.Asc, + sortBy: nosql.requests.ListTablesRequest.SortBy.TimeCreated, + opcRequestId: 'ZEXHT99S9PEPIGXJE5BJ', + lifecycleState: nosql.requests.ListTablesRequest.LifecycleState.Deleted, + }; + nosql.listTables(listTablesRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateTable() { + const updateTableDetails = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + ddlStatement: 'EXAMPLE-ddlStatement-Value', + tableLimits: { + maxReadUnits: 867, + maxWriteUnits: 125, + maxStorageInGBs: 90, + capacityMode: nosql.models.TableLimits.CapacityMode.OnDemand, + }, + freeformTags: { + EXAMPLE_KEY_JG0pK: 'EXAMPLE_VALUE_zjsJHBvnRosWWlWBqBRP', + }, + definedTags: { + EXAMPLE_KEY_DVPPS: { + EXAMPLE_KEY_HGrFb: 'EXAMPLE--Value', + }, + }, + }; + + const updateTableRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + updateTableDetails: updateTableDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: '0HJVQCB2MO8DFGCGI1RC', + }; + + nosql.updateTable(updateTableRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteRow() { + const deleteRowRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + key: ['EXAMPLE--Value'], + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + isGetReturnRow: false, + timeoutInMs: 493, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'IG6WLEMRIWIGQ4HYDO3N', + }; + + nosql.deleteRow(deleteRowRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getRow() { + const getRowRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + key: ['EXAMPLE--Value'], + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + consistency: nosql.requests.GetRowRequest.Consistency.Absolute, + timeoutInMs: 893, + opcRequestId: 'DRJTVP9EOTMYYTCNH6HS', + }; + nosql.getRow(getRowRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateRow() { + const updateRowDetails = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + value: { + EXAMPLE_KEY_Cy33m: 'EXAMPLE--Value', + }, + option: nosql.models.UpdateRowDetails.Option.IfAbsent, + isGetReturnRow: false, + timeoutInMs: 418, + ttl: 46, + isTtlUseTableDefault: false, + identityCacheSize: 498, + isExactMatch: false, + }; + + const updateRowRequest = { + tableNameOrId: 'ocid1.test.oc1..EXAMPLE-tableNameOrId-Value', + updateRowDetails: updateRowDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'XS6TTM9EHFEPKBZ9GB88', + }; + nosql.updateRow(updateRowRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/database/oracle-rdbms.js b/examples/database/oracle-rdbms.js new file mode 100644 index 00000000..e8953a37 --- /dev/null +++ b/examples/database/oracle-rdbms.js @@ -0,0 +1,245 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const sql = ncProviders.oracle.sql(); + +function createDBSystem() { + const createDbSystemDetails = { + displayName: 'EXAMPLE-displayName-Value', + description: 'EXAMPLE-description-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + isHighlyAvailable: true, + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + faultDomain: 'EXAMPLE-faultDomain-Value', + configurationId: + 'ocid1.test.oc1..EXAMPLE-configurationId-Value', + shapeName: 'EXAMPLE-shapeName-Value', + mysqlVersion: 'EXAMPLE-mysqlVersion-Value', + subnetId: 'ocid1.test.oc1..EXAMPLE-subnetId-Value', + adminUsername: 'EXAMPLE-adminUsername-Value', + adminPassword: 'EXAMPLE-adminPassword-Value', + dataStorageSizeInGBs: 51167, + hostnameLabel: 'EXAMPLE-hostnameLabel-Value', + ipAddress: 'EXAMPLE-ipAddress-Value', + port: 27968, + portX: 40934, + backupPolicy: { + isEnabled: true, + windowStartTime: 'EXAMPLE-windowStartTime-Value', + retentionInDays: 13, + freeformTags: { + EXAMPLE_KEY_R5Ysm: 'EXAMPLE_VALUE_SdvCphWRvXl5dG3I2Pxu', + }, + definedTags: { + EXAMPLE_KEY_WW4Gm: { + EXAMPLE_KEY_WBPT5: 'EXAMPLE--Value', + }, + }, + pitrPolicy: { + isEnabled: false, + }, + }, + source: { + sourceType: 'PITR', + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + recoveryPoint: new Date('Mon Oct 09 20:41:31 UTC 2017'), + }, + maintenance: { + windowStartTime: 'EXAMPLE-windowStartTime-Value', + }, + freeformTags: { + EXAMPLE_KEY_Avut3: 'EXAMPLE_VALUE_gvReU0oO9E33537CtI4J', + }, + definedTags: { + EXAMPLE_KEY_2jVQj: { + EXAMPLE_KEY_nWnMI: 'EXAMPLE--Value', + }, + }, + deletionPolicy: { + automaticBackupRetention: + mysql.models.CreateDeletionPolicyDetails + .AutomaticBackupRetention.Retain, + finalBackup: + mysql.models.CreateDeletionPolicyDetails.FinalBackup + .SkipFinalBackup, + isDeleteProtected: false, + }, + crashRecovery: mysql.models.CrashRecoveryStatus.Enabled, + }; + + const createDbSystemRequest = { + createDbSystemDetails: createDbSystemDetails, + }; + + sql.createDBSystem(createDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteDBSystem() { + const deleteDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'TRQ6QZLWORCUIGH3YTCU', + }; + sql.deleteDBSystem(deleteDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getDBSystem() { + const getDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + opcRequestId: 'R6TEK3F6GHSTB8RYIFQH', + ifNoneMatch: 'EXAMPLE-ifNoneMatch-Value', + }; + sql.getDBSystem(getDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function restartDBSystem() { + const restartDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + restartDbSystemDetails: restartDbSystemDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: '8LMKNF5FD5ZEIJASSCV8', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + sql.restartDBSystem(restartDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function startDBSystem() { + const startDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'XKMPNCLCZXRELHPXPJSW', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + sql.startDBSystem(startDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function stopDBSystem() { + const stopDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + stopDbSystemDetails: stopDbSystemDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'TVHF7TPALMLHN06AGNNR', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + sql.stopDBSystem(stopDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateDBSystem() { + const updateDbSystemDetails = { + displayName: 'EXAMPLE-displayName-Value', + description: 'EXAMPLE-description-Value', + subnetId: 'ocid1.test.oc1..EXAMPLE-subnetId-Value', + isHighlyAvailable: false, + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + faultDomain: 'EXAMPLE-faultDomain-Value', + shapeName: 'EXAMPLE-shapeName-Value', + mysqlVersion: 'EXAMPLE-mysqlVersion-Value', + configurationId: + 'ocid1.test.oc1..EXAMPLE-configurationId-Value', + adminUsername: 'EXAMPLE-adminUsername-Value', + adminPassword: 'EXAMPLE-adminPassword-Value', + dataStorageSizeInGBs: 109406, + hostnameLabel: 'EXAMPLE-hostnameLabel-Value', + ipAddress: 'EXAMPLE-ipAddress-Value', + port: 55106, + portX: 56042, + backupPolicy: { + isEnabled: false, + windowStartTime: 'EXAMPLE-windowStartTime-Value', + retentionInDays: 14, + freeformTags: { + EXAMPLE_KEY_1NCuL: 'EXAMPLE_VALUE_2svBmpLOuA9IZpkBRyWd', + }, + definedTags: { + EXAMPLE_KEY_kD8th: { + EXAMPLE_KEY_0bhZD: 'EXAMPLE--Value', + }, + }, + pitrPolicy: { + isEnabled: false, + }, + }, + maintenance: { + windowStartTime: 'EXAMPLE-windowStartTime-Value', + }, + freeformTags: { + EXAMPLE_KEY_czcih: 'EXAMPLE_VALUE_OTugU5bPOLZeWAjiTS13', + }, + definedTags: { + EXAMPLE_KEY_wMHz6: { + EXAMPLE_KEY_a3me2: 'EXAMPLE--Value', + }, + }, + deletionPolicy: { + automaticBackupRetention: + mysql.models.UpdateDeletionPolicyDetails + .AutomaticBackupRetention.Retain, + finalBackup: + mysql.models.UpdateDeletionPolicyDetails.FinalBackup + .SkipFinalBackup, + isDeleteProtected: false, + }, + crashRecovery: mysql.models.CrashRecoveryStatus.Disabled, + }; + + const updateDbSystemRequest = { + dbSystemId: 'ocid1.test.oc1..EXAMPLE-dbSystemId-Value', + updateDbSystemDetails: updateDbSystemDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: '4FT2UQOAOR2VX4SUNHA4', + }; + sql.updateDBSystem(updateDbSystemRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/devops/oracle-devops.js b/examples/devops/oracle-devops.js new file mode 100644 index 00000000..b01de224 --- /dev/null +++ b/examples/devops/oracle-devops.js @@ -0,0 +1,318 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const devops = ncProviders.oracle.devops(); + +function createDeployment() { + const createDeploymentDetails = { + deploymentType: 'SINGLE_STAGE_DEPLOYMENT', + deployStageId: 'ocid1.test.oc1..EXAMPLE-deployStageId-Value', + deploymentArguments: { + items: [ + { + name: 'EXAMPLE-name-Value', + value: 'EXAMPLE-value-Value', + }, + ], + }, + deployStageOverrideArguments: { + items: [ + { + deployStageId: + 'ocid1.test.oc1..EXAMPLE-deployStageId-Value', + name: 'EXAMPLE-name-Value', + value: 'EXAMPLE-value-Value', + }, + ], + }, + deployArtifactOverrideArguments: { + items: [ + { + deployArtifactId: + 'ocid1.test.oc1..EXAMPLE-deployArtifactId-Value', + name: 'EXAMPLE-name-Value', + value: 'EXAMPLE-value-Value', + }, + ], + }, + deployPipelineId: + 'ocid1.test.oc1..EXAMPLE-deployPipelineId-Value', + displayName: 'EXAMPLE-displayName-Value', + freeformTags: { + EXAMPLE_KEY_fJe4t: 'EXAMPLE_VALUE_LhVMfCaTDThcJ1NzqAnO', + }, + definedTags: { + EXAMPLE_KEY_rIlC2: { + EXAMPLE_KEY_efmUy: 'EXAMPLE--Value', + }, + }, + }; + + const createDeploymentRequest = { + createDeploymentDetails: createDeploymentDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'EZHAY0RNJ916QS2NTZTK', + }; + + devops.createDeployment(createDeploymentRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createProject() { + const createProjectDetails = { + name: 'EXAMPLE-name-Value', + description: 'EXAMPLE-description-Value', + notificationConfig: { + topicId: 'ocid1.test.oc1..EXAMPLE-topicId-Value', + }, + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + freeformTags: { + EXAMPLE_KEY_QN82W: 'EXAMPLE_VALUE_Ahg4fyoWT8zy4uiQpEz5', + }, + definedTags: { + EXAMPLE_KEY_At2j8: { + EXAMPLE_KEY_NlZCc: 'EXAMPLE--Value', + }, + }, + }; + + const createProjectRequest = { + createProjectDetails: createProjectDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'B2AHFLOJQIIRQQHN8JFZ', + }; + devops.createProject(createProjectRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteProject() { + const deleteProjectRequest = { + projectId: 'ocid1.test.oc1..EXAMPLE-projectId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'ZTNJ63CBUG5XOIDVCFFB', + }; + devops.deleteProject(deleteProjectRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getProject() { + const getProjectRequest = { + projectId: 'ocid1.test.oc1..EXAMPLE-projectId-Value', + opcRequestId: '6WAH42FXYYDMB4B3E1JI', + }; + devops.getProject(getProjectRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createRepository() { + const createRepositoryDetails = { + name: 'EXAMPLE-name-Value', + projectId: 'ocid1.test.oc1..EXAMPLE-projectId-Value', + defaultBranch: 'EXAMPLE-defaultBranch-Value', + repositoryType: devops.models.Repository.RepositoryType.Mirrored, + mirrorRepositoryConfig: { + connectorId: 'ocid1.test.oc1..EXAMPLE-connectorId-Value', + repositoryUrl: 'EXAMPLE-repositoryUrl-Value', + triggerSchedule: { + scheduleType: devops.models.TriggerSchedule.ScheduleType.None, + customSchedule: 'EXAMPLE-customSchedule-Value', + }, + }, + description: 'EXAMPLE-description-Value', + freeformTags: { + EXAMPLE_KEY_5WGnt: 'EXAMPLE_VALUE_UU4ENeR7Xhl6oF31Kv5R', + }, + definedTags: { + EXAMPLE_KEY_u27k5: { + EXAMPLE_KEY_g4HCZ: 'EXAMPLE--Value', + }, + }, + }; + + const createRepositoryRequest = { + createRepositoryDetails: createRepositoryDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'A1R16MSHFEZ6SICEDTRP', + }; + + devops.createRepository(createRepositoryRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteRepository() { + const deleteRepositoryRequest = { + repositoryId: 'ocid1.test.oc1..EXAMPLE-repositoryId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: 'RJFXG25NTTCXOPCYHOT4', + }; + devops.deleteRepository(deleteRepositoryRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createDeployArtifact() { + const createDeployArtifactDetails = { + description: 'EXAMPLE-description-Value', + displayName: 'EXAMPLE-displayName-Value', + deployArtifactType: + devops.models.DeployArtifact.DeployArtifactType.GenericFile, + deployArtifactSource: { + deployArtifactSourceType: 'INLINE', + base64EncodedContent: 'some Byte data', + }, + argumentSubstitutionMode: + devops.models.DeployArtifact.ArgumentSubstitutionMode + .SubstitutePlaceholders, + projectId: 'ocid1.test.oc1..EXAMPLE-projectId-Value', + freeformTags: { + EXAMPLE_KEY_hrqku: 'EXAMPLE_VALUE_Pk3EGMdSHaojKVCJwuji', + }, + definedTags: { + EXAMPLE_KEY_qk5Vg: { + EXAMPLE_KEY_Fgjka: 'EXAMPLE--Value', + }, + }, + }; + + const createDeployArtifactRequest = { + createDeployArtifactDetails: createDeployArtifactDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'NVSVUI2KGXMPEEWBK8WI', + }; + devops.createDeployArtifact(createDeployArtifactRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getDeployArtifact() { + const getDeployArtifactRequest = { + deployArtifactId: + 'ocid1.test.oc1..EXAMPLE-deployArtifactId-Value', + opcRequestId: 'EW8MOJQFF6G7WSHSREPB', + }; + devops.getDeployArtifact(getDeployArtifactRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteDeployArtifact() { + const deleteDeployArtifactRequest = { + deployArtifactId: + 'ocid1.test.oc1..EXAMPLE-deployArtifactId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: '5RKI12VNYBOI3IOIBWSA', + }; + + devops.deleteDeployArtifact(deleteDeployArtifactRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function createDeployPipeline() { + const createDeployPipelineDetails = { + description: 'EXAMPLE-description-Value', + displayName: 'EXAMPLE-displayName-Value', + projectId: 'ocid1.test.oc1..EXAMPLE-projectId-Value', + deployPipelineParameters: { + items: [ + { + name: 'EXAMPLE-name-Value', + defaultValue: 'EXAMPLE-defaultValue-Value', + description: 'EXAMPLE-description-Value', + }, + ], + }, + freeformTags: { + EXAMPLE_KEY_wbzDt: 'EXAMPLE_VALUE_iofppUTuQTPl6LLppnDK', + }, + definedTags: { + EXAMPLE_KEY_zou4q: { + EXAMPLE_KEY_GVDfg: 'EXAMPLE--Value', + }, + }, + }; + + const createDeployPipelineRequest = { + createDeployPipelineDetails: createDeployPipelineDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + opcRequestId: 'WQ25DNCOCI2TVTJQZVVX', + }; + devops.createDeployPipeline(createDeployPipelineRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteDeployPipeline() { + const deleteDeployPipelineRequest = { + deployPipelineId: + 'ocid1.test.oc1..EXAMPLE-deployPipelineId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRequestId: '5R8TM7FHLRFOLHFFR846', + }; + + devops.deleteDeployPipeline(deleteDeployPipelineRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/images/linode-images.js b/examples/images/linode-images.js new file mode 100644 index 00000000..dd61a061 --- /dev/null +++ b/examples/images/linode-images.js @@ -0,0 +1,70 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const images = ncProviders.linode.images(); + +function createImage() { + const diskId = 123; + const label = 'this_is_a_label'; + const description = 'A longer description of the image'; + images + .createImage(diskId, label, description) + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function updateImage() { + const imageId = 123; + const label = 'this_is_a_new_label'; + const description = 'A new longer description of the image'; + images + .updateImage(imageId, label, description) + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function deleteImage() { + const imageId = 123; + images + .deleteImage(details) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function getImage() { + const imageId = 1234; + images + .getImage(imageId) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function listImages() { + images + .getImages() + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/network/linode-dns.js b/examples/network/linode-dns.js new file mode 100644 index 00000000..deef064f --- /dev/null +++ b/examples/network/linode-dns.js @@ -0,0 +1,96 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const dns = ncProviders.linode.dns(); + +// Create a DNS Domain +function createDomain() { + let domainCreateOptions = { + domain: 'scorelab.com', + type: 'master', + soa_email: 'admin@example.com', + description: 'Example Description', + refresh_sec: 14400, + retry_sec: 3600, + expire_sec: 604800, + ttl_sec: 3600, + status: 'active', + master_ips: ['127.0.0.1', '255.255.255.1', '123.123.123.7'], + axfr_ips: ['44.55.66.77'], + group: 'Example Display Group', + tags: ['tag1', 'tag2'], + }; + + dns.createDomain(domainCreateOptions) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Get all DNS records +function getDomains() { + dns.getDomains() + .then(records => { + console.log('Records are: ', records); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Get a DNS record +function getDomain() { + let recordID = 3352896; + dns.getDomains(recordID) + .then(result => { + console.log('Record are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Delete a DNS record +function deleteDomain() { + let recordID = 3352896; + dns.deleteDomain(recordID) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Change a DNS record +function updateDomain() { + let recordID = 3352896; + let options = { + domain: 'scorelab.com', + type: 'master', + soa_email: 'admin@example.com', + description: 'Example Description', + refresh_sec: 14400, + retry_sec: 3600, + expire_sec: 604800, + ttl_sec: 3600, + status: 'active', + master_ips: ['127.0.0.1', '255.255.255.1', '123.123.123.7'], + axfr_ips: ['44.55.66.77'], + group: 'Example Display Group', + tags: ['tag1', 'tag2'], + }; + dns.updateDomain(recordID, options) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/network/linode-lb.js b/examples/network/linode-lb.js new file mode 100644 index 00000000..43af4742 --- /dev/null +++ b/examples/network/linode-lb.js @@ -0,0 +1,65 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const lb = ncProviders.linode.loadBalancer(); + +//Create a LoadBalancer +function create() { + let options = { + region: 'us-east', + label: 'balancer12345', + client_conn_throttle: 0, + configs: [], + }; + + 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 = 4884969; + lb.delete(lbId) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Update a loadbalancer +function updateLoadBalancer() { + let lbId = 4954884; + let options = { + region: 'us-east', + label: 'newbalancer12345', + client_conn_throttle: 0, + configs: [], + }; + lb.update(lbId, options) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/network/oracle-dns.js b/examples/network/oracle-dns.js new file mode 100644 index 00000000..7b9e0148 --- /dev/null +++ b/examples/network/oracle-dns.js @@ -0,0 +1,151 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const dns = ncProviders.oracle.dns(); + +function createZone() { + const createZoneBaseDetails = { + migrationSource: 'DYNECT', + dynectMigrationDetails: { + customerName: 'EXAMPLE-customerName-Value', + username: 'EXAMPLE-username-Value', + password: 'EXAMPLE-password-Value', + httpRedirectReplacements: { + EXAMPLE_KEY_rgIHR: [ + { + rtype: 'EXAMPLE-rtype-Value', + substituteRtype: 'EXAMPLE-substituteRtype-Value', + ttl: 179534, + rdata: 'EXAMPLE-rdata-Value', + }, + ], + }, + }, + name: 'EXAMPLE-name-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + freeformTags: { + EXAMPLE_KEY_hA60A: 'EXAMPLE_VALUE_KxdAvV0cz1u962IutZU7', + }, + definedTags: { + EXAMPLE_KEY_4VSpC: { + EXAMPLE_KEY_J7HPg: 'EXAMPLE--Value', + }, + }, + }; + + const createZoneRequest = { + createZoneDetails: createZoneBaseDetails, + opcRequestId: 'PTOWQXKAHQD98DSTOZWD', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + scope: dns.models.Scope.Global, + viewId: 'ocid1.test.oc1..EXAMPLE-viewId-Value', + }; + + dns.create(createZoneRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteZone() { + const deleteZoneRequest = { + zoneNameOrId: 'ocid1.test.oc1..EXAMPLE-zoneNameOrId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + ifUnmodifiedSince: 'EXAMPLE-ifUnmodifiedSince-Value', + opcRequestId: 'U37S7JZ22VLJJ14AZVLA', + scope: dns.models.Scope.Global, + viewId: 'ocid1.test.oc1..EXAMPLE-viewId-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + }; + + dns.delete(deleteZoneRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function listZones() { + const listZonesRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + opcRequestId: 'ZNYZ40KRNPWEIJY6TPX6', + limit: 4, + page: 'EXAMPLE-page-Value', + name: 'EXAMPLE-name-Value', + nameContains: 'EXAMPLE-nameContains-Value', + zoneType: dns.requests.ListZonesRequest.ZoneType.Secondary, + timeCreatedGreaterThanOrEqualTo: new Date( + 'Fri May 31 20:21:14 UTC 2047' + ), + timeCreatedLessThan: new Date('Thu May 01 15:49:41 UTC 2042'), + lifecycleState: dns.requests.ListZonesRequest.LifecycleState.Failed, + sortBy: dns.requests.ListZonesRequest.SortBy.Name, + sortOrder: dns.models.SortOrder.Asc, + scope: dns.models.Scope.Private, + viewId: 'ocid1.test.oc1..EXAMPLE-viewId-Value', + tsigKeyId: 'ocid1.test.oc1..EXAMPLE-tsigKeyId-Value', + }; + dns.list(listZonesRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateZone() { + const updateZoneDetails = { + freeformTags: { + EXAMPLE_KEY_hyR1G: 'EXAMPLE_VALUE_8CJa77BIwVDiHxc3FANG', + }, + definedTags: { + EXAMPLE_KEY_npzd4: { + EXAMPLE_KEY_OluDh: 'EXAMPLE--Value', + }, + }, + externalMasters: [ + { + address: 'EXAMPLE-address-Value', + port: 26, + tsigKeyId: 'ocid1.test.oc1..EXAMPLE-tsigKeyId-Value', + }, + ], + externalDownstreams: [ + { + address: 'EXAMPLE-address-Value', + port: 115, + tsigKeyId: 'ocid1.test.oc1..EXAMPLE-tsigKeyId-Value', + }, + ], + }; + + const updateZoneRequest = { + zoneNameOrId: 'ocid1.test.oc1..EXAMPLE-zoneNameOrId-Value', + updateZoneDetails: updateZoneDetails, + ifMatch: 'EXAMPLE-ifMatch-Value', + ifUnmodifiedSince: 'EXAMPLE-ifUnmodifiedSince-Value', + opcRequestId: 'UFZJ7GGJB8AXW06DIEHC', + scope: dns.models.Scope.Private, + viewId: 'ocid1.test.oc1..EXAMPLE-viewId-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + }; + dns.update(updateZoneRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/network/oracle-lb.js b/examples/network/oracle-lb.js new file mode 100644 index 00000000..581db10b --- /dev/null +++ b/examples/network/oracle-lb.js @@ -0,0 +1,265 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); +const loadBalancer = ncProviders.oracle.loadBalancer(); + +function createLoadBalancer() { + const createLoadBalancerDetails = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + displayName: 'EXAMPLE-displayName-Value', + shapeName: 'EXAMPLE-shapeName-Value', + shapeDetails: { + minimumBandwidthInMbps: 2509, + maximumBandwidthInMbps: 3515, + }, + isPrivate: true, + ipMode: loadbalancer.models.CreateLoadBalancerDetails.IpMode.Ipv4, + reservedIps: [ + { + id: 'ocid1.test.oc1..EXAMPLE-id-Value', + }, + ], + listeners: { + EXAMPLE_KEY_0SITj: { + defaultBackendSetName: 'EXAMPLE-defaultBackendSetName-Value', + port: 51819, + protocol: 'EXAMPLE-protocol-Value', + hostnameNames: ['EXAMPLE--Value'], + pathRouteSetName: 'EXAMPLE-pathRouteSetName-Value', + sslConfiguration: { + verifyDepth: 302, + verifyPeerCertificate: false, + trustedCertificateAuthorityIds: ['EXAMPLE--Value'], + certificateIds: ['EXAMPLE--Value'], + certificateName: 'EXAMPLE-certificateName-Value', + protocols: ['EXAMPLE--Value'], + cipherSuiteName: 'EXAMPLE-cipherSuiteName-Value', + serverOrderPreference: + loadbalancer.models.SSLConfigurationDetails + .ServerOrderPreference.Disabled, + }, + connectionConfiguration: { + idleTimeout: 420, + backendTcpProxyProtocolVersion: 1, + }, + routingPolicyName: 'EXAMPLE-routingPolicyName-Value', + ruleSetNames: ['EXAMPLE--Value'], + }, + }, + hostnames: { + EXAMPLE_KEY_5QQ3c: { + name: 'EXAMPLE-name-Value', + hostname: 'EXAMPLE-hostname-Value', + }, + }, + backendSets: { + EXAMPLE_KEY_HVvDn: { + policy: 'EXAMPLE-policy-Value', + backends: [ + { + ipAddress: 'EXAMPLE-ipAddress-Value', + port: 32156, + weight: 480, + backup: true, + drain: false, + offline: true, + }, + ], + healthChecker: { + protocol: 'EXAMPLE-protocol-Value', + urlPath: 'EXAMPLE-urlPath-Value', + port: 17610, + returnCode: 264, + retries: 135, + timeoutInMillis: 294086, + intervalInMillis: 710451, + responseBodyRegex: 'EXAMPLE-responseBodyRegex-Value', + isForcePlainText: true, + }, + sslConfiguration: { + verifyDepth: 880, + verifyPeerCertificate: true, + trustedCertificateAuthorityIds: ['EXAMPLE--Value'], + certificateIds: ['EXAMPLE--Value'], + certificateName: 'EXAMPLE-certificateName-Value', + protocols: ['EXAMPLE--Value'], + cipherSuiteName: 'EXAMPLE-cipherSuiteName-Value', + serverOrderPreference: + loadbalancer.models.SSLConfigurationDetails + .ServerOrderPreference.Enabled, + }, + sessionPersistenceConfiguration: { + cookieName: 'EXAMPLE-cookieName-Value', + disableFallback: true, + }, + lbCookieSessionPersistenceConfiguration: { + cookieName: 'EXAMPLE-cookieName-Value', + disableFallback: false, + domain: 'EXAMPLE-domain-Value', + path: 'EXAMPLE-path-Value', + maxAgeInSeconds: 342, + isSecure: false, + isHttpOnly: false, + }, + }, + }, + networkSecurityGroupIds: ['EXAMPLE--Value'], + subnetIds: ['EXAMPLE--Value'], + certificates: { + EXAMPLE_KEY_rcxtl: { + passphrase: 'EXAMPLE-passphrase-Value', + privateKey: 'EXAMPLE-privateKey-Value', + publicCertificate: 'EXAMPLE-publicCertificate-Value', + caCertificate: 'EXAMPLE-caCertificate-Value', + certificateName: 'EXAMPLE-certificateName-Value', + }, + }, + sslCipherSuites: { + EXAMPLE_KEY_HStuD: { + name: 'EXAMPLE-name-Value', + ciphers: ['EXAMPLE--Value'], + }, + }, + pathRouteSets: { + EXAMPLE_KEY_l65LH: { + pathRoutes: [ + { + path: 'EXAMPLE-path-Value', + pathMatchType: { + matchType: + loadbalancer.models.PathMatchType.MatchType + .SuffixMatch, + }, + backendSetName: 'EXAMPLE-backendSetName-Value', + }, + ], + }, + }, + freeformTags: { + EXAMPLE_KEY_Ya01L: 'EXAMPLE_VALUE_Ns0iwpuvVm1pTnBCzFch', + }, + definedTags: { + EXAMPLE_KEY_5own7: { + EXAMPLE_KEY_luUx9: 'EXAMPLE--Value', + }, + }, + ruleSets: { + EXAMPLE_KEY_yEEEQ: { + items: [ + { + action: 'REMOVE_HTTP_RESPONSE_HEADER', + header: 'EXAMPLE-header-Value', + }, + ], + }, + }, + }; + + const createLoadBalancerRequest = { + createLoadBalancerDetails: createLoadBalancerDetails, + opcRequestId: 'BZSVAFRKNSH41IJN5ULL', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + + loadBalancer.create(createLoadBalancerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function deleteLoadBalancer() { + const deleteLoadBalancerRequest = { + loadBalancerId: + 'ocid1.test.oc1..EXAMPLE-loadBalancerId-Value', + opcRequestId: 'O498V7GGOUHZZOXAQ8M5', + ifMatch: 'EXAMPLE-ifMatch-Value', + }; + + loadBalancer.delete(deleteLoadBalancerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function getLoadBalancer() { + const getLoadBalancerRequest = { + loadBalancerId: + 'ocid1.test.oc1..EXAMPLE-loadBalancerId-Value', + opcRequestId: 'A50VEU27L1M2K2NURVJC', + ifMatch: 'EXAMPLE-ifMatch-Value', + }; + loadBalancer.get(getLoadBalancerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function updateLoadBalancer() { + const updateLoadBalancerDetails = { + displayName: 'EXAMPLE-displayName-Value', + freeformTags: { + EXAMPLE_KEY_djEQJ: 'EXAMPLE_VALUE_F4MYA8eB9KREpFeRfsHr', + }, + definedTags: { + EXAMPLE_KEY_1Fxbb: { + EXAMPLE_KEY_L8VFW: 'EXAMPLE--Value', + }, + }, + }; + + const updateLoadBalancerRequest = { + updateLoadBalancerDetails: updateLoadBalancerDetails, + loadBalancerId: + 'ocid1.test.oc1..EXAMPLE-loadBalancerId-Value', + opcRequestId: 'PCEZRPVCMLCNV3OMDAY2', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + loadBalancer.update(updateLoadBalancerRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} + +function listLoadBalancers() { + const listLoadBalancersRequest = { + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + opcRequestId: 'L5LRM3X5PPS1P5VZWAIR', + limit: 388, + page: 'EXAMPLE-page-Value', + detail: 'EXAMPLE-detail-Value', + sortBy: + loadbalancer.requests.ListLoadBalancersRequest.SortBy.Displayname, + sortOrder: + loadbalancer.requests.ListLoadBalancersRequest.SortOrder.Desc, + displayName: 'EXAMPLE-displayName-Value', + lifecycleState: + loadbalancer.models.LoadBalancer.LifecycleState.Deleting, + }; + loadBalancer.list(listLoadBalancersRequest).then( + result => { + console.log('Output :', result); + }, + error => { + console.error('Error :', error); + } + ); +} diff --git a/examples/storage/linode-blockStorage.js b/examples/storage/linode-blockStorage.js new file mode 100644 index 00000000..47c5db8a --- /dev/null +++ b/examples/storage/linode-blockStorage.js @@ -0,0 +1,65 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const volume = ncProviders.linode.blockStorage(); + +//List all volumes +function listVolumes() { + volume + .list() + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Create a volume +function createVolume() { + let option = { + label: 'my-volume', + size: 20, + linode_id: 12346, + }; + volume + .create(option) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Update details of a Volume +function updateVolume() { + let volumeId = 5067840; + let option = { + label: 'my-volume', + }; + volume + .update(volumeId, option) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Delete a volume +function deleteVolume() { + let volumeId = 5067840; + volume + .delete(volumeId) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/storage/linode-objectStorage.js b/examples/storage/linode-objectStorage.js new file mode 100644 index 00000000..03e355ad --- /dev/null +++ b/examples/storage/linode-objectStorage.js @@ -0,0 +1,62 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const objectStorage = ncProviders.linode.objectStorage(); + +function createBucket() { + const details = { + label: 'nodecloud-bucket', + cluster: 'us-east-1', + cors_enabled: true, + }; + objectStorage + .create(details) + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function deleteBucket() { + const details = { + cluster: 'us-east-1', + label: 'nodecloud-bucket', + }; + objectStorage + .delete(details) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function getBucket() { + const clusterId = 'us-east-1'; + const bucketName = 'nodecloud-bucket'; + objectStorage + .get(clusterId, bucketName) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function listBuckets() { + objectStorage + .list() + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/storage/oracle-archivalStorage.js b/examples/storage/oracle-archivalStorage.js new file mode 100644 index 00000000..e69de29b diff --git a/examples/storage/oracle-blockStorage.js b/examples/storage/oracle-blockStorage.js new file mode 100644 index 00000000..c1ea3885 --- /dev/null +++ b/examples/storage/oracle-blockStorage.js @@ -0,0 +1,117 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const volume = ncProviders.oracle.blockStorage(); + +//List all volumes +function listVolumes() { + const listVolumesRequest = { + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + limit: 89, + page: 'EXAMPLE-page-Value', + displayName: 'EXAMPLE-displayName-Value', + sortBy: core.requests.ListVolumesRequest.SortBy.Timecreated, + sortOrder: core.requests.ListVolumesRequest.SortOrder.Desc, + volumeGroupId: 'ocid1.test.oc1..EXAMPLE-volumeGroupId-Value', + lifecycleState: core.models.Volume.LifecycleState.Restoring, + }; + volume + .list(listVolumesRequest) + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Create a volume +function createVolume() { + const createVolumeDetails = { + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + backupPolicyId: + 'ocid1.test.oc1..EXAMPLE-backupPolicyId-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + definedTags: { + EXAMPLE_KEY_vAfP5: { + EXAMPLE_KEY_ACxNQ: 'EXAMPLE--Value', + }, + }, + displayName: 'EXAMPLE-displayName-Value', + freeformTags: { + EXAMPLE_KEY_nkMB6: 'EXAMPLE_VALUE_2g12dKUwUaramNSOrRSN', + }, + kmsKeyId: 'ocid1.test.oc1..EXAMPLE-kmsKeyId-Value', + vpusPerGB: 912, + sizeInGBs: 516, + sizeInMBs: 419, + sourceDetails: { + type: 'blockVolumeReplica', + id: 'ocid1.test.oc1..EXAMPLE-id-Value', + }, + volumeBackupId: + 'ocid1.test.oc1..EXAMPLE-volumeBackupId-Value', + isAutoTuneEnabled: false, + blockVolumeReplicas: [ + { + displayName: 'EXAMPLE-displayName-Value', + availabilityDomain: 'EXAMPLE-availabilityDomain-Value', + }, + ], + autotunePolicies: [ + { + autotuneType: 'PERFORMANCE_BASED', + maxVpusPerGB: 8, + }, + ], + }; + + const createVolumeRequest = { + createVolumeDetails: createVolumeDetails, + opcRetryToken: 'EXAMPLE-opcRetryToken-Value', + }; + volume + .create(createVolumeRequest) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Update details of a Volume +function updateVolume() { + let volumeId = 5067840; + let option = { + label: 'my-volume', + }; + volume + .update(volumeId, option) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +//Delete a volume +function deleteVolume() { + const deleteVolumeRequest = { + volumeId: 'ocid1.test.oc1..EXAMPLE-volumeId-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + }; + volume + .delete(deleteVolumeRequest) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} diff --git a/examples/storage/oracle-objectStorage.js b/examples/storage/oracle-objectStorage.js new file mode 100644 index 00000000..f6feac21 --- /dev/null +++ b/examples/storage/oracle-objectStorage.js @@ -0,0 +1,105 @@ +const nodeCloud = require('../../lib/'); +const optionsProvider = { + overrideProviders: false, +}; +const ncProviders = nodeCloud.getProviders(optionsProvider); + +const objectStorage = ncProviders.oracle.objectStorage(); + +function createBucket() { + const createBucketDetails = { + name: 'EXAMPLE-name-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + metadata: { + EXAMPLE_KEY_1M368: 'EXAMPLE_VALUE_hXIGigTyIWcLyjyuf1u3', + }, + publicAccessType: + objectstorage.models.CreateBucketDetails.PublicAccessType + .ObjectReadWithoutList, + storageTier: + objectstorage.models.CreateBucketDetails.StorageTier.Standard, + objectEventsEnabled: false, + freeformTags: { + EXAMPLE_KEY_cHyYB: 'EXAMPLE_VALUE_KDrs1RUhRhMVjpyPwe4A', + }, + definedTags: { + EXAMPLE_KEY_7rbam: { + EXAMPLE_KEY_P9HZf: 'EXAMPLE--Value', + }, + }, + kmsKeyId: 'ocid1.test.oc1..EXAMPLE-kmsKeyId-Value', + versioning: objectstorage.models.CreateBucketDetails.Versioning.Enabled, + autoTiering: objectstorage.models.Bucket.AutoTiering.Disabled, + }; + + const createBucketRequest = { + namespaceName: 'EXAMPLE-namespaceName-Value', + createBucketDetails: createBucketDetails, + opcClientRequestId: + 'ocid1.test.oc1..EXAMPLE-opcClientRequestId-Value', + }; + objectStorage + .create(createBucketRequest) + .then(result => { + console.log('Volumes are: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function deleteBucket() { + const deleteBucketRequest = { + namespaceName: 'EXAMPLE-namespaceName-Value', + bucketName: 'EXAMPLE-bucketName-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + opcClientRequestId: + 'ocid1.test.oc1..EXAMPLE-opcClientRequestId-Value', + }; + objectStorage + .delete(deleteBucketRequest) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function getBucket() { + const getBucketRequest = { + namespaceName: 'EXAMPLE-namespaceName-Value', + bucketName: 'EXAMPLE-bucketName-Value', + ifMatch: 'EXAMPLE-ifMatch-Value', + ifNoneMatch: 'EXAMPLE-ifNoneMatch-Value', + opcClientRequestId: + 'ocid1.test.oc1..EXAMPLE-opcClientRequestId-Value', + }; + objectStorage + .get(getBucketRequest) + .then(result => { + console.log('Output is: ', result); + }) + .catch(err => { + console.log('Error is: ', err); + }); +} + +function listBuckets() { + const listBucketsRequest = { + namespaceName: 'EXAMPLE-namespaceName-Value', + compartmentId: 'ocid1.test.oc1..EXAMPLE-compartmentId-Value', + limit: 178, + page: 'EXAMPLE-page-Value', + opcClientRequestId: + 'ocid1.test.oc1..EXAMPLE-opcClientRequestId-Value', + }; + objectStorage + .list(listBucketsRequest) + .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 d5d70d46..99043f6a 100644 --- a/generator/README.md +++ b/generator/README.md @@ -23,7 +23,7 @@ The execution of the generator starts form the `main.ts` file, where the basic i ## Structure of `node-cloud.yml` file -- AWS +- AWS ``` AWS: @@ -35,7 +35,7 @@ AWS:

      -- Azure +- Azure ``` Azure: @@ -47,7 +47,7 @@ Azure:

      -- Google Cloud (client based) +- Google Cloud (client based) ``` GCP: @@ -67,7 +67,7 @@ GCP:

      -- Google Cloud (class based) +- Google Cloud (class based) ``` GCP: @@ -82,7 +82,7 @@ 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 +- Digital Ocean ``` DO: @@ -94,23 +94,77 @@ DO:

      +- Oracle + +``` +Oracle: + create: containerengine createCluster +``` + +

      + + +

      + +``` +Oracle: + createKey: keymanagement createKey KmsManagementClient +``` + +

      + + +

      + +- Linode + +``` +Linode: + create: kubernetes kubernetes.d.ts createKubernetesCluster + + +``` + +

      + + +

      + ## 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**. +This is the simplest part of the code generation tool. The SDK files are read from the relevant SDKs as specified in the `node-cloud.yml` file. Afterwards, it is converted to an **Abstract Syntax Tree**. Finally, the class declaration Node of that **Abstract Syntax Tree** is returned in case of SDKs which are class based, for SDKs like Linode which are function based we collect the FirstStatement nodes in an array which represent the exported arrow function declaration. This retured Node is another **Abstract Syntax Tree** since a class declaration itself is another **Abstract Syntax Tree**. ## Data extraction functions These functions are located in the generators of the each cloud providers. Each data extration function has a unique logic depending on the **Abstract Syntax Tree** of a SDK class. The goal here is to extract all the data required to generate the new JavaScript class. At the end it is retured as `classData`. The data extration function collects imports, clients, method parameters, types of parameters, method return types and package names. Additionally, class relationships are identified in the Google Cloud data extraction function for the Google Cloud class based transformer. +For Linode Cloud Provider in some function the function parameters had two nested parameters so to solve this problem and take both the parameters into consideration the below code has been implemented. + +``` + if (param.name.elements) { + const parameter: param = { + name: + '{' + + param.name.elements[0].name.text + + ',' + + param.name.elements[1].name.text + + '}', + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + typeName: null, + }; +``` +In the above code we have looked for sub elements in a function parameter and printed both of them in braces. + ## Transformers This is the most important part of the code generator tool. Currently, there are four transformers. Two transformers for Google Cloud, and one each for AWS and Azure. All of the transformers runs three main transformations. -- `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**. +- `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. +- `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`. +- `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 @@ -136,4 +190,4 @@ transformer which transforms the dummy class into an working Nodecloud class for ## Running the code generation tool -- To build classes run `tsc main && node main` or 'yarn run tool' if inside generator directory and `yarn run generator` if inside nodecloud directory. +- 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/linode.js b/generator/dummyClasses/linode.js new file mode 100644 index 00000000..3982cd47 --- /dev/null +++ b/generator/dummyClasses/linode.js @@ -0,0 +1,23 @@ +class ClassName { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + + function() { + return new Promise((resolve, reject) => { + this._linode + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/dummyClasses/oracle.js b/generator/dummyClasses/oracle.js new file mode 100644 index 00000000..cc7dece5 --- /dev/null +++ b/generator/dummyClasses/oracle.js @@ -0,0 +1,26 @@ +class ClassName { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._sdkClassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/generatedClasses/AWS/appServices/aws-paaS.js b/generator/generatedClasses/AWS/appServices/aws-paaS.js index f6eee331..f8e62ded 100644 --- a/generator/generatedClasses/AWS/appServices/aws-paaS.js +++ b/generator/generatedClasses/AWS/appServices/aws-paaS.js @@ -4,280 +4,295 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - updateEnvironment(params) { - return new Promise((resolve, reject) => { - this._elasticBeanstalk.updateEnvironment(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/artificialinteligence/aws-translation.js b/generator/generatedClasses/AWS/artificialinteligence/aws-translation.js index 978c2249..c89ce192 100644 --- a/generator/generatedClasses/AWS/artificialinteligence/aws-translation.js +++ b/generator/generatedClasses/AWS/artificialinteligence/aws-translation.js @@ -4,97 +4,97 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - translate(params) { - return new Promise((resolve, reject) => { - this._translate.translateText(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/compute/aws-computeInstance.js b/generator/generatedClasses/AWS/compute/aws-computeInstance.js index e3010568..7ac04a34 100644 --- a/generator/generatedClasses/AWS/compute/aws-computeInstance.js +++ b/generator/generatedClasses/AWS/compute/aws-computeInstance.js @@ -4,161 +4,161 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - unmonitor(params) { - return new Promise((resolve, reject) => { - this._eC2.unmonitorInstances(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/compute/aws-container.js b/generator/generatedClasses/AWS/compute/aws-container.js index 2e9e6863..44da8f96 100644 --- a/generator/generatedClasses/AWS/compute/aws-container.js +++ b/generator/generatedClasses/AWS/compute/aws-container.js @@ -4,81 +4,81 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - list(params) { - return new Promise((resolve, reject) => { - this._eCS.listClusters(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/compute/aws-kubernetes.js b/generator/generatedClasses/AWS/compute/aws-kubernetes.js index 394d8b9a..6381ac0f 100644 --- a/generator/generatedClasses/AWS/compute/aws-kubernetes.js +++ b/generator/generatedClasses/AWS/compute/aws-kubernetes.js @@ -4,177 +4,177 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - updateConfig(params) { - return new Promise((resolve, reject) => { - this._eKS.updateClusterConfig(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/database/aws-RDBMS.js b/generator/generatedClasses/AWS/database/aws-RDBMS.js index 215ab2fb..b53f2bcb 100644 --- a/generator/generatedClasses/AWS/database/aws-RDBMS.js +++ b/generator/generatedClasses/AWS/database/aws-RDBMS.js @@ -4,113 +4,113 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - restoreDatabase(params) { - return new Promise((resolve, reject) => { - this._rDS.rebootDBInstance(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/database/aws-noSql.js b/generator/generatedClasses/AWS/database/aws-noSql.js index c11898c9..3eebfbbd 100644 --- a/generator/generatedClasses/AWS/database/aws-noSql.js +++ b/generator/generatedClasses/AWS/database/aws-noSql.js @@ -4,113 +4,113 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - updateItem(params) { - return new Promise((resolve, reject) => { - this._dynamoDB.updateItem(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/database/aws-noSqlIndexed.js b/generator/generatedClasses/AWS/database/aws-noSqlIndexed.js index c86ffc13..82128eef 100644 --- a/generator/generatedClasses/AWS/database/aws-noSqlIndexed.js +++ b/generator/generatedClasses/AWS/database/aws-noSqlIndexed.js @@ -4,161 +4,161 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - query(params) { - return new Promise((resolve, reject) => { - this._simpleDB.select(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/management/aws-keyManagement.js b/generator/generatedClasses/AWS/management/aws-keyManagement.js index 7bab4b56..c311e123 100644 --- a/generator/generatedClasses/AWS/management/aws-keyManagement.js +++ b/generator/generatedClasses/AWS/management/aws-keyManagement.js @@ -4,97 +4,97 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - update(params) { - return new Promise((resolve, reject) => { - this._kMS.updateKeyDescription(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/management/aws-monitoring.js b/generator/generatedClasses/AWS/management/aws-monitoring.js index ba4a17de..24c83246 100644 --- a/generator/generatedClasses/AWS/management/aws-monitoring.js +++ b/generator/generatedClasses/AWS/management/aws-monitoring.js @@ -4,81 +4,81 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - updateAlarm(params) { - return new Promise((resolve, reject) => { - this._cloudWatch.putMetricAlarm(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/management/aws-notificationService.js b/generator/generatedClasses/AWS/management/aws-notificationService.js index 7e37e378..50efb35e 100644 --- a/generator/generatedClasses/AWS/management/aws-notificationService.js +++ b/generator/generatedClasses/AWS/management/aws-notificationService.js @@ -4,145 +4,145 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - unsubscribe(params) { - return new Promise((resolve, reject) => { - this._sNS.unsubscribe(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/network/aws-DNS.js b/generator/generatedClasses/AWS/network/aws-DNS.js index 422f035b..7a62602f 100644 --- a/generator/generatedClasses/AWS/network/aws-DNS.js +++ b/generator/generatedClasses/AWS/network/aws-DNS.js @@ -4,81 +4,81 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - listZones(params) { - return new Promise((resolve, reject) => { - this._route53.listHostedZones(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/network/aws-loadBalancer.js b/generator/generatedClasses/AWS/network/aws-loadBalancer.js index f722dd14..d9eba23b 100644 --- a/generator/generatedClasses/AWS/network/aws-loadBalancer.js +++ b/generator/generatedClasses/AWS/network/aws-loadBalancer.js @@ -4,97 +4,97 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - list(params) { - return new Promise((resolve, reject) => { - this._eLB.describeLoadBalancers(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/security/aws-IAM.js b/generator/generatedClasses/AWS/security/aws-IAM.js index 265a6a31..9191ab3d 100644 --- a/generator/generatedClasses/AWS/security/aws-IAM.js +++ b/generator/generatedClasses/AWS/security/aws-IAM.js @@ -4,97 +4,97 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - describe(params) { - return new Promise((resolve, reject) => { - this._iAM.getGroup(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/storage/aws-archivalStorage.js b/generator/generatedClasses/AWS/storage/aws-archivalStorage.js index 2b5236ec..a5189f99 100644 --- a/generator/generatedClasses/AWS/storage/aws-archivalStorage.js +++ b/generator/generatedClasses/AWS/storage/aws-archivalStorage.js @@ -4,97 +4,97 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - list(params) { - return new Promise((resolve, reject) => { - this._glacier.listParts(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/storage/aws-blockStorage.js b/generator/generatedClasses/AWS/storage/aws-blockStorage.js index 8ada4a2a..b362afec 100644 --- a/generator/generatedClasses/AWS/storage/aws-blockStorage.js +++ b/generator/generatedClasses/AWS/storage/aws-blockStorage.js @@ -4,81 +4,81 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - list(params) { - return new Promise((resolve, reject) => { - this._eC2.describeVolumes(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/AWS/storage/aws-storageBucket.js b/generator/generatedClasses/AWS/storage/aws-storageBucket.js index ef50b831..f738acfc 100644 --- a/generator/generatedClasses/AWS/storage/aws-storageBucket.js +++ b/generator/generatedClasses/AWS/storage/aws-storageBucket.js @@ -4,96 +4,96 @@ * @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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - upload(params) { - return new Promise((resolve, reject) => { - this._s3.uploadPart(params, (error, data) => { - if (error) { - reject(error); - } else { - resolve(data); - } - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/appServices/azure-paaS.js b/generator/generatedClasses/Azure/appServices/azure-paaS.js index 02c914e5..db0d3ff8 100644 --- a/generator/generatedClasses/Azure/appServices/azure-paaS.js +++ b/generator/generatedClasses/Azure/appServices/azure-paaS.js @@ -1,422 +1,429 @@ -const { WebSiteManagementClient } = require("@azure/arm-appservice"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/compute/azure-computeInstance.js b/generator/generatedClasses/Azure/compute/azure-computeInstance.js index 8029d665..d793562a 100644 --- a/generator/generatedClasses/Azure/compute/azure-computeInstance.js +++ b/generator/generatedClasses/Azure/compute/azure-computeInstance.js @@ -1,202 +1,207 @@ -const { ComputeManagementClient } = require("@azure/arm-compute"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/compute/azure-container.js b/generator/generatedClasses/Azure/compute/azure-container.js index 14991423..f27e4286 100644 --- a/generator/generatedClasses/Azure/compute/azure-container.js +++ b/generator/generatedClasses/Azure/compute/azure-container.js @@ -1,147 +1,151 @@ -const { ContainerServiceClient } = require("@azure/arm-containerservice"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/compute/azure-kubernetes.js b/generator/generatedClasses/Azure/compute/azure-kubernetes.js index 3e5f50a2..9ce5157f 100644 --- a/generator/generatedClasses/Azure/compute/azure-kubernetes.js +++ b/generator/generatedClasses/Azure/compute/azure-kubernetes.js @@ -1,360 +1,379 @@ -const { ContainerServiceClient } = require("@azure/arm-containerservice"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/database/azure-RDBMS.js b/generator/generatedClasses/Azure/database/azure-RDBMS.js index 8767d939..d4d7d062 100644 --- a/generator/generatedClasses/Azure/database/azure-RDBMS.js +++ b/generator/generatedClasses/Azure/database/azure-RDBMS.js @@ -1,233 +1,238 @@ -const { SqlManagementClient } = require("@azure/arm-sql"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/database/azure-noSql.js b/generator/generatedClasses/Azure/database/azure-noSql.js index c59fe9dd..70b2d295 100644 --- a/generator/generatedClasses/Azure/database/azure-noSql.js +++ b/generator/generatedClasses/Azure/database/azure-noSql.js @@ -1,211 +1,221 @@ -const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/management/azure-keyManagement.js b/generator/generatedClasses/Azure/management/azure-keyManagement.js index 2a6a8316..ef080569 100644 --- a/generator/generatedClasses/Azure/management/azure-keyManagement.js +++ b/generator/generatedClasses/Azure/management/azure-keyManagement.js @@ -1,187 +1,197 @@ -const { KeyVaultManagementClient } = require("@azure/arm-keyvault"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/management/azure-monitoring.js b/generator/generatedClasses/Azure/management/azure-monitoring.js index f365ad1d..efb43c1f 100644 --- a/generator/generatedClasses/Azure/management/azure-monitoring.js +++ b/generator/generatedClasses/Azure/management/azure-monitoring.js @@ -1,174 +1,186 @@ -const { MonitorManagementClient } = require("@azure/arm-monitor"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/network/azure-DNS.js b/generator/generatedClasses/Azure/network/azure-DNS.js index 9e52b9cb..38ae476b 100644 --- a/generator/generatedClasses/Azure/network/azure-DNS.js +++ b/generator/generatedClasses/Azure/network/azure-DNS.js @@ -1,154 +1,159 @@ -const { DnsManagementClient } = require("@azure/arm-dns"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/network/azure-loadBalancer.js b/generator/generatedClasses/Azure/network/azure-loadBalancer.js index 437a80c8..db3ae534 100644 --- a/generator/generatedClasses/Azure/network/azure-loadBalancer.js +++ b/generator/generatedClasses/Azure/network/azure-loadBalancer.js @@ -1,185 +1,196 @@ -const { NetworkManagementClient } = require("@azure/arm-network"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/storage/azure-blockStorage.js b/generator/generatedClasses/Azure/storage/azure-blockStorage.js index 638df80b..a792ee41 100644 --- a/generator/generatedClasses/Azure/storage/azure-blockStorage.js +++ b/generator/generatedClasses/Azure/storage/azure-blockStorage.js @@ -1,169 +1,174 @@ -const { ComputeManagementClient } = require("@azure/arm-compute"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/Azure/storage/azure-storageBucket.js b/generator/generatedClasses/Azure/storage/azure-storageBucket.js index b060e6fc..fd7c99ec 100644 --- a/generator/generatedClasses/Azure/storage/azure-storageBucket.js +++ b/generator/generatedClasses/Azure/storage/azure-storageBucket.js @@ -1,129 +1,129 @@ -const { StorageManagementClient } = require("@azure/arm-storage"); +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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/DO/compute/do-computeInstance.js b/generator/generatedClasses/DO/compute/do-computeInstance.js index 7f925773..e7ff6377 100644 --- a/generator/generatedClasses/DO/compute/do-computeInstance.js +++ b/generator/generatedClasses/DO/compute/do-computeInstance.js @@ -4,76 +4,76 @@ * @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)); - }); - } + /** + * + * @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} + */ + start(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 index ae3db733..bcf976ed 100644 --- a/generator/generatedClasses/DO/compute/do-kubernetes.js +++ b/generator/generatedClasses/DO/compute/do-kubernetes.js @@ -4,132 +4,136 @@ * @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)); - }); - } + /** + * + * @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 index 9363be19..216c49fd 100644 --- a/generator/generatedClasses/DO/database/do-RDBMS.js +++ b/generator/generatedClasses/DO/database/do-RDBMS.js @@ -4,76 +4,76 @@ * @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)); - }); - } + /** + * + * @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 index 808b12d4..1fcbbe5e 100644 --- a/generator/generatedClasses/DO/database/do-noSql.js +++ b/generator/generatedClasses/DO/database/do-noSql.js @@ -4,76 +4,76 @@ * @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)); - }); - } + /** + * + * @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 index ec2921ee..5af44abb 100644 --- a/generator/generatedClasses/DO/management/do-keyManagement.js +++ b/generator/generatedClasses/DO/management/do-keyManagement.js @@ -4,75 +4,75 @@ * @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)); - }); - } + /** + * + * @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 index 377e3bb7..39ffe53e 100644 --- a/generator/generatedClasses/DO/network/do-DNS.js +++ b/generator/generatedClasses/DO/network/do-DNS.js @@ -4,95 +4,95 @@ * @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)); - }); - } + /** + * + * @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 index c1d64d0b..665ebb2f 100644 --- a/generator/generatedClasses/DO/network/do-loadBalancer.js +++ b/generator/generatedClasses/DO/network/do-loadBalancer.js @@ -4,67 +4,67 @@ * @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)); - }); - } + /** + * + * @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 index 2a2c86f5..ce6bc60e 100644 --- a/generator/generatedClasses/DO/storage/do-blockStorage.js +++ b/generator/generatedClasses/DO/storage/do-blockStorage.js @@ -4,67 +4,67 @@ * @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)); - }); - } + /** + * + * @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/Linode/compute/linode-computeInstance.js b/generator/generatedClasses/Linode/compute/linode-computeInstance.js new file mode 100644 index 00000000..07d14748 --- /dev/null +++ b/generator/generatedClasses/Linode/compute/linode-computeInstance.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ComputeInstanceLinodeClass object + * @category Linode + */ +class Linode_ComputeInstance { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getLinodes function of ComputeInstanceLinodeClass + * @param {Params} params - Data required for getLinodes + * @param {Filter} filter - Data required for getLinodes + * @returns {Promise} + */ + list(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getLinodes(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createLinode function of ComputeInstanceLinodeClass + * @param {CreateLinodeRequest} data - Data required for createLinode + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createLinode(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for updateLinode + * @param {DeepPartial} values - Data required for updateLinode + * @returns {Promise} + */ + update(linodeId, values) { + return new Promise((resolve, reject) => { + this._linode + .updateLinode(linodeId, values) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for deleteLinode + * @returns {Promise} + */ + delete(linodeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteLinode(linodeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_ComputeInstance; diff --git a/generator/generatedClasses/Linode/compute/linode-kubernetes.js b/generator/generatedClasses/Linode/compute/linode-kubernetes.js new file mode 100644 index 00000000..5b73741d --- /dev/null +++ b/generator/generatedClasses/Linode/compute/linode-kubernetes.js @@ -0,0 +1,130 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a KubernetesLinodeClass object + * @category Linode + */ +class Linode_Kubernetes { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getKubernetesClusters function of KubernetesLinodeClass + * @param {Params} params - Data required for getKubernetesClusters + * @param {Filter} filters - Data required for getKubernetesClusters + * @returns {Promise} + */ + getAllClusters(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getKubernetesClusters(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createKubernetesCluster function of KubernetesLinodeClass + * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createKubernetesCluster(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster + * @returns {Promise} + */ + delete(clusterID) { + return new Promise((resolve, reject) => { + this._linode + .deleteKubernetesCluster(clusterID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePools + * @param {Params} params - Data required for getNodePools + * @param {Filter} filters - Data required for getNodePools + * @returns {Promise} + */ + getNodePools(clusterID, params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodePools(clusterID, params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePool + * @param {NumberKeyword} nodePoolID - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .getNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for createNodePool + * @param {CreateNodePoolData} data - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(clusterID, data) { + return new Promise((resolve, reject) => { + this._linode + .createNodePool(clusterID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for updateNodePool + * @param {NumberKeyword} nodePoolID - Data required for updateNodePool + * @param {Partial} data - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(clusterID, nodePoolID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodePool(clusterID, nodePoolID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteNodePool + * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Kubernetes; diff --git a/generator/generatedClasses/Linode/database/linode-RDBMS.js b/generator/generatedClasses/Linode/database/linode-RDBMS.js new file mode 100644 index 00000000..a3b2b0f7 --- /dev/null +++ b/generator/generatedClasses/Linode/database/linode-RDBMS.js @@ -0,0 +1,103 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a RDBMSLinodeClass object + * @category Linode + */ +class Linode_RDBMS { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDatabases function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabases + * @param {Filter} filter - Data required for getDatabases + * @returns {Promise} + */ + getDatabases(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabases(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDatabaseEngines function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabaseEngines + * @param {Filter} filter - Data required for getDatabaseEngines + * @returns {Promise} + */ + getDatabaseEngines(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabaseEngines(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDatabase function of RDBMSLinodeClass + * @param {UnionType} engine - Data required for createDatabase + * @param {CreateDatabasePayload} data - Data required for createDatabase + * @returns {Promise} + */ + createDatabase(engine, data) { + return new Promise((resolve, reject) => { + this._linode + .createDatabase(engine, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getEngineDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for getEngineDatabase + * @param {NumberKeyword} databaseID - Data required for getEngineDatabase + * @returns {Promise} + */ + getEngineDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .getEngineDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for updateDatabase + * @param {NumberKeyword} databaseID - Data required for updateDatabase + * @param {UpdateDatabasePayload} data - Data required for updateDatabase + * @returns {Promise} + */ + updateDatabase(engine, databaseID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDatabase(engine, databaseID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for deleteDatabase + * @param {NumberKeyword} databaseID - Data required for deleteDatabase + * @returns {Promise} + */ + deleteDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .deleteDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_RDBMS; diff --git a/generator/generatedClasses/Linode/firewalls/linode-firewalls.js b/generator/generatedClasses/Linode/firewalls/linode-firewalls.js new file mode 100644 index 00000000..2cfc10f0 --- /dev/null +++ b/generator/generatedClasses/Linode/firewalls/linode-firewalls.js @@ -0,0 +1,111 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a FirewallsLinodeClass object + * @category Linode + */ +class Linode_Firewalls { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getFirewalls function of FirewallsLinodeClass + * @param {Params} params - Data required for getFirewalls + * @param {Filter} filter - Data required for getFirewalls + * @returns {Promise} + */ + getFirewalls(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getFirewalls(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for getFirewall + * @returns {Promise} + */ + getFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .getFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createFirewall function of FirewallsLinodeClass + * @param {CreateFirewallPayload} data - Data required for createFirewall + * @returns {Promise} + */ + createFirewall(data) { + return new Promise((resolve, reject) => { + this._linode + .createFirewall(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for updateFirewall + * @param {UpdateFirewallPayload} data - Data required for updateFirewall + * @returns {Promise} + */ + updateFirewall(firewallID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateFirewall(firewallID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for enableFirewall + * @returns {Promise} + */ + enableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .enableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for disableFirewall + * @returns {Promise} + */ + disableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .disableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for deleteFirewall + * @returns {Promise} + */ + deleteFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .deleteFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Firewalls; diff --git a/generator/generatedClasses/Linode/images/linode-images.js b/generator/generatedClasses/Linode/images/linode-images.js new file mode 100644 index 00000000..2d0651fc --- /dev/null +++ b/generator/generatedClasses/Linode/images/linode-images.js @@ -0,0 +1,107 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ImagesLinodeClass object + * @category Linode + */ +class Linode_Images { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for getImage + * @returns {Promise} + */ + getImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .getImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getImages function of ImagesLinodeClass + * @param {Params} params - Data required for getImages + * @param {Filter} filters - Data required for getImages + * @returns {Promise} + */ + getImages(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getImages(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createImage function of ImagesLinodeClass + * @param {NumberKeyword} diskId - Data required for createImage + * @param {StringKeyword} label - Data required for createImage + * @param {StringKeyword} description - Data required for createImage + * @param {BooleanKeyword} cloud_init - Data required for createImage + * @returns {Promise} + */ + createImage( + diskId, + label = undefined, + description = undefined, + cloud_init = undefined + ) { + return new Promise((resolve, reject) => { + this._linode + .createImage(diskId, label, description, cloud_init) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for updateImage + * @param {StringKeyword} label - Data required for updateImage + * @param {StringKeyword} description - Data required for updateImage + * @returns {Promise} + */ + updateImage(imageId, label = undefined, description = undefined) { + return new Promise((resolve, reject) => { + this._linode + .updateImage(imageId, label, description) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for deleteImage + * @returns {Promise} + */ + deleteImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .deleteImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the uploadImage function of ImagesLinodeClass + * @param {ImageUploadPayload} data - Data required for uploadImage + * @returns {Promise} + */ + uploadImage(data) { + return new Promise((resolve, reject) => { + this._linode + .uploadImage(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Images; diff --git a/generator/generatedClasses/Linode/management/linode-monitoring.js b/generator/generatedClasses/Linode/management/linode-monitoring.js new file mode 100644 index 00000000..87bd1334 --- /dev/null +++ b/generator/generatedClasses/Linode/management/linode-monitoring.js @@ -0,0 +1,139 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a MonitoringLinodeClass object + * @category Linode + */ +class Linode_Monitoring { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getServices function of MonitoringLinodeClass + * @param {Params} params - Data required for getServices + * @param {Filter} filters - Data required for getServices + * @returns {Promise} + */ + getServices(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getServices(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor + * @returns {Promise} + */ + disableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .disableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor + * @returns {Promise} + */ + enableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .enableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor + * @returns {Promise} + */ + deleteServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .deleteServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createServiceMonitor function of MonitoringLinodeClass + * @param {ManagedServicePayload} data - Data required for createServiceMonitor + * @returns {Promise} + */ + createServiceMonitor(data) { + return new Promise((resolve, reject) => { + this._linode + .createServiceMonitor(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor + * @param {Partial} data - Data required for updateServiceMonitor + * @returns {Promise} + */ + updateServiceMonitor(monitorID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateServiceMonitor(monitorID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCredentials function of MonitoringLinodeClass + * @param {Params} params - Data required for getCredentials + * @param {Filter} filters - Data required for getCredentials + * @returns {Promise} + */ + getCredentials(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getCredentials(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for updateCredential + * @param {UpdateCredentialPayload} data - Data required for updateCredential + * @returns {Promise} + */ + updateCredential(credentialID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateCredential(credentialID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for deleteCredential + * @returns {Promise} + */ + deleteCredential(credentialID) { + return new Promise((resolve, reject) => { + this._linode + .deleteCredential(credentialID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Monitoring; diff --git a/generator/generatedClasses/Linode/network/linode-DNS.js b/generator/generatedClasses/Linode/network/linode-DNS.js new file mode 100644 index 00000000..a3c1d066 --- /dev/null +++ b/generator/generatedClasses/Linode/network/linode-DNS.js @@ -0,0 +1,99 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DNSLinodeClass object + * @category Linode + */ +class Linode_DNS { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDomains function of DNSLinodeClass + * @param {Params} params - Data required for getDomains + * @param {Filter} filter - Data required for getDomains + * @returns {Promise} + */ + getDomains(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDomains(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for getDomain + * @returns {Promise} + */ + getDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .getDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDomain function of DNSLinodeClass + * @param {CreateDomainPayload} data - Data required for createDomain + * @returns {Promise} + */ + createDomain(data) { + return new Promise((resolve, reject) => { + this._linode + .createDomain(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for updateDomain + * @param {UpdateDomainPayload} data - Data required for updateDomain + * @returns {Promise} + */ + updateDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for deleteDomain + * @returns {Promise} + */ + deleteDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .deleteDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the cloneDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for cloneDomain + * @param {CloneDomainPayload} data - Data required for cloneDomain + * @returns {Promise} + */ + cloneDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .cloneDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_DNS; diff --git a/generator/generatedClasses/Linode/network/linode-loadBalancer.js b/generator/generatedClasses/Linode/network/linode-loadBalancer.js new file mode 100644 index 00000000..7af0d984 --- /dev/null +++ b/generator/generatedClasses/Linode/network/linode-loadBalancer.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancerLinodeClass object + * @category Linode + */ +class Linode_LoadBalancer { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getNodeBalancers function of LoadBalancerLinodeClass + * @param {Params} params - Data required for getNodeBalancers + * @param {Filter} filters - Data required for getNodeBalancers + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodeBalancers(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer + * @param {Partial} data - Data required for updateNodeBalancer + * @returns {Promise} + */ + update(nodeBalancerId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodeBalancer(nodeBalancerId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodeBalancer function of LoadBalancerLinodeClass + * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createNodeBalancer(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer + * @returns {Promise} + */ + delete(nodeBalancerId) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodeBalancer(nodeBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_LoadBalancer; diff --git a/generator/generatedClasses/Linode/storage/linode-blockStorage.js b/generator/generatedClasses/Linode/storage/linode-blockStorage.js new file mode 100644 index 00000000..29846fc6 --- /dev/null +++ b/generator/generatedClasses/Linode/storage/linode-blockStorage.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockStorageLinodeClass object + * @category Linode + */ +class Linode_BlockStorage { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getVolumes function of BlockStorageLinodeClass + * @param {Params} params - Data required for getVolumes + * @param {Filter} filters - Data required for getVolumes + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getVolumes(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for deleteVolume + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteVolume(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for updateVolume + * @param {UpdateVolumeRequest} data - Data required for updateVolume + * @returns {Promise} + */ + update(volumeId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateVolume(volumeId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createVolume function of BlockStorageLinodeClass + * @param {VolumeRequestPayload} data - Data required for createVolume + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createVolume(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_BlockStorage; diff --git a/generator/generatedClasses/Linode/storage/linode-storageBucket.js b/generator/generatedClasses/Linode/storage/linode-storageBucket.js new file mode 100644 index 00000000..54b7b993 --- /dev/null +++ b/generator/generatedClasses/Linode/storage/linode-storageBucket.js @@ -0,0 +1,101 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a StorageBucketLinodeClass object + * @category Linode + */ +class Linode_StorageBucket { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getBucket function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucket + * @param {StringKeyword} bucketName - Data required for getBucket + * @returns {Promise} + */ + get(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucket(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBuckets function of StorageBucketLinodeClass + * @param {Params} params - Data required for getBuckets + * @param {Filter} filters - Data required for getBuckets + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getBuckets(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createBucket function of StorageBucketLinodeClass + * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createBucket(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of StorageBucketLinodeClass + * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket + * @returns {Promise} + */ + delete({ cluster, label }) { + return new Promise((resolve, reject) => { + this._linode + .deleteBucket({ cluster, label }) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucketAccess + * @param {StringKeyword} bucketName - Data required for getBucketAccess + * @returns {Promise} + */ + getBucketAccess(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucketAccess(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for updateBucketAccess + * @param {StringKeyword} bucketName - Data required for updateBucketAccess + * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess + * @returns {Promise} + */ + updateBucketAccess(clusterId, bucketName, data) { + return new Promise((resolve, reject) => { + this._linode + .updateBucketAccess(clusterId, bucketName, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_StorageBucket; diff --git a/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js b/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js new file mode 100644 index 00000000..8ec5a5fa --- /dev/null +++ b/generator/generatedClasses/Oracle/blockchain/oci-blockChain.js @@ -0,0 +1,151 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockchainPlatformClient object + * @category Oracle Cloud + */ +class Oracle_BlockChain { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockchainPlatformClient = this._oci.BlockchainPlatformClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBlockchainPlatform function of BlockchainPlatformClient + * @param {CreateBlockchainPlatformRequest} createBlockchainPlatformRequest - Data required for createBlockchainPlatform + * @returns {Promise} + */ + createBlockchainPlatform(createBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createBlockchainPlatform(createBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createOsn function of BlockchainPlatformClient + * @param {CreateOsnRequest} createOsnRequest - Data required for createOsn + * @returns {Promise} + */ + createOsn(createOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createOsn(createOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createPeer function of BlockchainPlatformClient + * @param {CreatePeerRequest} createPeerRequest - Data required for createPeer + * @returns {Promise} + */ + createPeer(createPeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createPeer(createPeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBlockchainPlatform function of BlockchainPlatformClient + * @param {DeleteBlockchainPlatformRequest} deleteBlockchainPlatformRequest - Data required for deleteBlockchainPlatform + * @returns {Promise} + */ + deleteBlockchainPlatform(deleteBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteBlockchainPlatform(deleteBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteOsn function of BlockchainPlatformClient + * @param {DeleteOsnRequest} deleteOsnRequest - Data required for deleteOsn + * @returns {Promise} + */ + deleteOsn(deleteOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteOsn(deleteOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deletePeer function of BlockchainPlatformClient + * @param {DeletePeerRequest} deletePeerRequest - Data required for deletePeer + * @returns {Promise} + */ + deletePeer(deletePeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deletePeer(deletePeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getOsn function of BlockchainPlatformClient + * @param {GetOsnRequest} getOsnRequest - Data required for getOsn + * @returns {Promise} + */ + getOsn(getOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .getOsn(getOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBlockchainPlatforms function of BlockchainPlatformClient + * @param {ListBlockchainPlatformsRequest} listBlockchainPlatformsRequest - Data required for listBlockchainPlatforms + * @returns {Promise} + */ + listBlockchainPlatforms(listBlockchainPlatformsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listBlockchainPlatforms(listBlockchainPlatformsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listOsns function of BlockchainPlatformClient + * @param {ListOsnsRequest} listOsnsRequest - Data required for listOsns + * @returns {Promise} + */ + listOsns(listOsnsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listOsns(listOsnsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listPeers function of BlockchainPlatformClient + * @param {ListPeersRequest} listPeersRequest - Data required for listPeers + * @returns {Promise} + */ + listPeers(listPeersRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listPeers(listPeersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_BlockChain; diff --git a/generator/generatedClasses/Oracle/compute/oci-computeInstance.js b/generator/generatedClasses/Oracle/compute/oci-computeInstance.js new file mode 100644 index 00000000..61a4d3c6 --- /dev/null +++ b/generator/generatedClasses/Oracle/compute/oci-computeInstance.js @@ -0,0 +1,138 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ +class Oracle_ComputeInstance { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerInstanceClient = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + getAll(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainerInstance function of ContainerInstanceClient + * @param {GetContainerInstanceRequest} getContainerInstanceRequest - Data required for getContainerInstance + * @returns {Promise} + */ + get(getContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainerInstance(getContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartContainerInstance function of ContainerInstanceClient + * @param {RestartContainerInstanceRequest} restartContainerInstanceRequest - Data required for restartContainerInstance + * @returns {Promise} + */ + restart(restartContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .restartContainerInstance(restartContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateContainer function of ContainerInstanceClient + * @param {UpdateContainerRequest} updateContainerRequest - Data required for updateContainer + * @returns {Promise} + */ + update(updateContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .updateContainer(updateContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_ComputeInstance; diff --git a/generator/generatedClasses/Oracle/compute/oci-container.js b/generator/generatedClasses/Oracle/compute/oci-container.js new file mode 100644 index 00000000..9e51ea9f --- /dev/null +++ b/generator/generatedClasses/Oracle/compute/oci-container.js @@ -0,0 +1,99 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ +class Oracle_Container { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerInstanceClient = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + describe(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Container; diff --git a/generator/generatedClasses/Oracle/compute/oci-kubernetes.js b/generator/generatedClasses/Oracle/compute/oci-kubernetes.js new file mode 100644 index 00000000..f2a468c8 --- /dev/null +++ b/generator/generatedClasses/Oracle/compute/oci-kubernetes.js @@ -0,0 +1,151 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerEngineClient object + * @category Oracle Cloud + */ +class Oracle_Kubernetes { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerEngineClient = this._oci.ContainerEngineClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createCluster function of ContainerEngineClient + * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster + * @returns {Promise} + */ + create(createClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createCluster(createClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of ContainerEngineClient + * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(createNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createNodePool(createNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCluster function of ContainerEngineClient + * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster + * @returns {Promise} + */ + delete(deleteClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteCluster(deleteClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNode function of ContainerEngineClient + * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode + * @returns {Promise} + */ + deleteNode(deleteNodeRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNode(deleteNodeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of ContainerEngineClient + * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(deleteNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNodePool(deleteNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCluster function of ContainerEngineClient + * @param {GetClusterRequest} getClusterRequest - Data required for getCluster + * @returns {Promise} + */ + get(getClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getCluster(getClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of ContainerEngineClient + * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(getNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getNodePool(getNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listClusters function of ContainerEngineClient + * @param {ListClustersRequest} listClustersRequest - Data required for listClusters + * @returns {Promise} + */ + list(listClustersRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .listClusters(listClustersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCluster function of ContainerEngineClient + * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster + * @returns {Promise} + */ + update(updateClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateCluster(updateClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of ContainerEngineClient + * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(updateNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateNodePool(updateNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Kubernetes; diff --git a/generator/generatedClasses/Oracle/database/oci-RDBMS.js b/generator/generatedClasses/Oracle/database/oci-RDBMS.js new file mode 100644 index 00000000..4032123f --- /dev/null +++ b/generator/generatedClasses/Oracle/database/oci-RDBMS.js @@ -0,0 +1,112 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DbSystemClient object + * @category Oracle Cloud + */ +class Oracle_RDBMS { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dbSystemClient = this._oci.DbSystemClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDbSystem function of DbSystemClient + * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem + * @returns {Promise} + */ + createDBSystem(createDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .createDbSystem(createDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDbSystem function of DbSystemClient + * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem + * @returns {Promise} + */ + deleteDBSystem(deleteDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .deleteDbSystem(deleteDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDbSystem function of DbSystemClient + * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem + * @returns {Promise} + */ + getDBSystem(getDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .getDbSystem(getDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartDbSystem function of DbSystemClient + * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem + * @returns {Promise} + */ + restartDBSystem(restartDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .restartDbSystem(restartDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startDbSystem function of DbSystemClient + * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem + * @returns {Promise} + */ + startDBSystem(startDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .startDbSystem(startDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopDbSystem function of DbSystemClient + * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem + * @returns {Promise} + */ + stopDBSystem(stopDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .stopDbSystem(stopDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDbSystem function of DbSystemClient + * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem + * @returns {Promise} + */ + updateDBSystem(updateDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .updateDbSystem(updateDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_RDBMS; diff --git a/generator/generatedClasses/Oracle/database/oci-noSql.js b/generator/generatedClasses/Oracle/database/oci-noSql.js new file mode 100644 index 00000000..d049fbfd --- /dev/null +++ b/generator/generatedClasses/Oracle/database/oci-noSql.js @@ -0,0 +1,122 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a NosqlClient object + * @category Oracle Cloud + */ +class Oracle_NoSql { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); + } + /** + * Trigers the createTable function of NosqlClient + * @param {CreateTableRequest} createTableRequest - Data required for createTable + * @returns {Promise} + */ + createTable(createTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .createTable(createTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRow function of NosqlClient + * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow + * @returns {Promise} + */ + deleteRow(deleteRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteRow(deleteRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteTable function of NosqlClient + * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable + * @returns {Promise} + */ + deleteTable(deleteTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteTable(deleteTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRow function of NosqlClient + * @param {GetRowRequest} getRowRequest - Data required for getRow + * @returns {Promise} + */ + getRow(getRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getRow(getRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getTable function of NosqlClient + * @param {GetTableRequest} getTableRequest - Data required for getTable + * @returns {Promise} + */ + getTable(getTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getTable(getTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listTables function of NosqlClient + * @param {ListTablesRequest} listTablesRequest - Data required for listTables + * @returns {Promise} + */ + listTables(listTablesRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .listTables(listTablesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRow function of NosqlClient + * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow + * @returns {Promise} + */ + updateRow(updateRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateRow(updateRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateTable function of NosqlClient + * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable + * @returns {Promise} + */ + updateTable(updateTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateTable(updateTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_NoSql; diff --git a/generator/generatedClasses/Oracle/devops/oci-devops.js b/generator/generatedClasses/Oracle/devops/oci-devops.js new file mode 100644 index 00000000..f0943636 --- /dev/null +++ b/generator/generatedClasses/Oracle/devops/oci-devops.js @@ -0,0 +1,190 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DevopsClient object + * @category Oracle Cloud + */ +class Oracle_Devops { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._devopsClient = this._oci.DevopsClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDeployArtifact function of DevopsClient + * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact + * @returns {Promise} + */ + createDeployArtifact(createDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployArtifact(createDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployPipeline function of DevopsClient + * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline + * @returns {Promise} + */ + createDeployPipeline(createDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployPipeline(createDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployment function of DevopsClient + * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment + * @returns {Promise} + */ + createDeployment(createDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployment(createDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createProject function of DevopsClient + * @param {CreateProjectRequest} createProjectRequest - Data required for createProject + * @returns {Promise} + */ + createProject(createProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createProject(createProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRepository function of DevopsClient + * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository + * @returns {Promise} + */ + createRepository(createRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createRepository(createRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployArtifact function of DevopsClient + * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact + * @returns {Promise} + */ + deleteDeployArtifact(deleteDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployArtifact(deleteDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployPipeline function of DevopsClient + * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline + * @returns {Promise} + */ + deleteDeployPipeline(deleteDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployPipeline(deleteDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteProject function of DevopsClient + * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject + * @returns {Promise} + */ + deleteProject(deleteProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteProject(deleteProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRepository function of DevopsClient + * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository + * @returns {Promise} + */ + deleteRepository(deleteRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteRepository(deleteRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployArtifact function of DevopsClient + * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact + * @returns {Promise} + */ + getDeployArtifact(getDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployArtifact(getDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployPipeline function of DevopsClient + * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline + * @returns {Promise} + */ + getDeployPipeline(getDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployPipeline(getDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployment function of DevopsClient + * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment + * @returns {Promise} + */ + getDeployment(getDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployment(getDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getProject function of DevopsClient + * @param {GetProjectRequest} getProjectRequest - Data required for getProject + * @returns {Promise} + */ + getProject(getProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getProject(getProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Devops; diff --git a/generator/generatedClasses/Oracle/management/oci-keyManagement.js b/generator/generatedClasses/Oracle/management/oci-keyManagement.js new file mode 100644 index 00000000..49c34874 --- /dev/null +++ b/generator/generatedClasses/Oracle/management/oci-keyManagement.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a KmsManagementClient object + * @category Oracle Cloud + */ +class Oracle_KeyManagement { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._kmsManagementClient = this._oci.KmsManagementClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createKey function of KmsManagementClient + * @param {CreateKeyRequest} createKeyRequest - Data required for createKey + * @returns {Promise} + */ + createKey(createKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .createKey(createKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableKey function of KmsManagementClient + * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey + * @returns {Promise} + */ + disableKey(disableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .disableKey(disableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableKey function of KmsManagementClient + * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey + * @returns {Promise} + */ + enableKey(enableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .enableKey(enableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateKey function of KmsManagementClient + * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey + * @returns {Promise} + */ + update(updateKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .updateKey(updateKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_KeyManagement; diff --git a/generator/generatedClasses/Oracle/management/oci-notificationService.js b/generator/generatedClasses/Oracle/management/oci-notificationService.js new file mode 100644 index 00000000..0bc11a1b --- /dev/null +++ b/generator/generatedClasses/Oracle/management/oci-notificationService.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a NotificationDataPlaneClient object + * @category Oracle Cloud + */ +class Oracle_NotificationService { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createSubscription function of NotificationDataPlaneClient + * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription + * @returns {Promise} + */ + subscribe(createSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .createSubscription(createSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteSubscription function of NotificationDataPlaneClient + * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription + * @returns {Promise} + */ + unsubscribe(deleteSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .deleteSubscription(deleteSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listSubscriptions function of NotificationDataPlaneClient + * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions + * @returns {Promise} + */ + listSubscriptions(listSubscriptionsRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .listSubscriptions(listSubscriptionsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the publishMessage function of NotificationDataPlaneClient + * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage + * @returns {Promise} + */ + publish(publishMessageRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .publishMessage(publishMessageRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_NotificationService; diff --git a/generator/generatedClasses/Oracle/network/oci-DNS.js b/generator/generatedClasses/Oracle/network/oci-DNS.js new file mode 100644 index 00000000..52cd67f9 --- /dev/null +++ b/generator/generatedClasses/Oracle/network/oci-DNS.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DnsClient object + * @category Oracle Cloud + */ +class Oracle_DNS { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dnsClient = this._oci.DnsClient(params, clientConfiguration); + } + /** + * Trigers the createZone function of DnsClient + * @param {CreateZoneRequest} createZoneRequest - Data required for createZone + * @returns {Promise} + */ + create(createZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .createZone(createZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteZone function of DnsClient + * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone + * @returns {Promise} + */ + delete(deleteZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .deleteZone(deleteZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listZones function of DnsClient + * @param {ListZonesRequest} listZonesRequest - Data required for listZones + * @returns {Promise} + */ + list(listZonesRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .listZones(listZonesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateZone function of DnsClient + * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone + * @returns {Promise} + */ + update(updateZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .updateZone(updateZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_DNS; diff --git a/generator/generatedClasses/Oracle/network/oci-loadBalancer.js b/generator/generatedClasses/Oracle/network/oci-loadBalancer.js new file mode 100644 index 00000000..21faafa6 --- /dev/null +++ b/generator/generatedClasses/Oracle/network/oci-loadBalancer.js @@ -0,0 +1,86 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancerClient object + * @category Oracle Cloud + */ +class Oracle_LoadBalancer { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._loadBalancerClient = this._oci.LoadBalancerClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createLoadBalancer function of LoadBalancerClient + * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer + * @returns {Promise} + */ + create(createLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .createLoadBalancer(createLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLoadBalancer function of LoadBalancerClient + * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer + * @returns {Promise} + */ + delete(deleteLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .deleteLoadBalancer(deleteLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getLoadBalancer function of LoadBalancerClient + * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer + * @returns {Promise} + */ + get(getLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .getLoadBalancer(getLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listLoadBalancers function of LoadBalancerClient + * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers + * @returns {Promise} + */ + list(listLoadBalancersRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .listLoadBalancers(listLoadBalancersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLoadBalancer function of LoadBalancerClient + * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer + * @returns {Promise} + */ + update(updateLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .updateLoadBalancer(updateLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_LoadBalancer; diff --git a/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js b/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js new file mode 100644 index 00000000..fe306c87 --- /dev/null +++ b/generator/generatedClasses/Oracle/storage/oci-archivalStorage.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ +class Oracle_ArchivalStorage { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucket function of ObjectStorageClient + * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket + * @returns {Promise} + */ + update(updateBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .updateBucket(updateBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_ArchivalStorage; diff --git a/generator/generatedClasses/Oracle/storage/oci-blockStorage.js b/generator/generatedClasses/Oracle/storage/oci-blockStorage.js new file mode 100644 index 00000000..26dc83ac --- /dev/null +++ b/generator/generatedClasses/Oracle/storage/oci-blockStorage.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockstorageClient object + * @category Oracle Cloud + */ +class Oracle_BlockStorage { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockstorageClient = this._oci.BlockstorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createVolume function of BlockstorageClient + * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume + * @returns {Promise} + */ + create(createVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .createVolume(createVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockstorageClient + * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume + * @returns {Promise} + */ + delete(deleteVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .deleteVolume(deleteVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getVolume function of BlockstorageClient + * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume + * @returns {Promise} + */ + get(getVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .getVolume(getVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listVolumes function of BlockstorageClient + * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes + * @returns {Promise} + */ + list(listVolumesRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .listVolumes(listVolumesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_BlockStorage; diff --git a/generator/generatedClasses/Oracle/storage/oci-storageBucket.js b/generator/generatedClasses/Oracle/storage/oci-storageBucket.js new file mode 100644 index 00000000..b7d643ed --- /dev/null +++ b/generator/generatedClasses/Oracle/storage/oci-storageBucket.js @@ -0,0 +1,86 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ +class Oracle_StorageBucket { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucket function of ObjectStorageClient + * @param {GetBucketRequest} getBucketRequest - Data required for getBucket + * @returns {Promise} + */ + get(getBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .getBucket(getBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the reencryptBucket function of ObjectStorageClient + * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket + * @returns {Promise} + */ + reencrypt(reencryptBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .reencryptBucket(reencryptBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_StorageBucket; diff --git a/generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js b/generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js index bcc03216..5ff02a87 100644 --- a/generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js +++ b/generator/generatedClasses/googleCloud/artificialinteligence/gcp-translation.js @@ -1,106 +1,106 @@ -const { TranslationServiceClient } = require("@google-cloud/translate"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - detectLanguage(request, options = undefined) { - return new Promise((resolve, reject) => { - this._translationServiceClient - .detectLanguage(request, options) - .then(result => { - resolve(result); - }) - .catch(err => { - reject(err); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js b/generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js index e0c08e67..8b2d00e5 100644 --- a/generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js +++ b/generator/generatedClasses/googleCloud/compute/gcp-kubernetes.js @@ -1,178 +1,178 @@ -const { ClusterManagerClient } = require("@google-cloud/container"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - updateConfig(request, options = undefined) { - return new Promise((resolve, reject) => { - this._clusterManagerClient - .setAddonsConfig(request, options) - .then(result => { - resolve(result); - }) - .catch(err => { - reject(err); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/googleCloud/database/gcp-RDBMS.js b/generator/generatedClasses/googleCloud/database/gcp-RDBMS.js index 46bbe942..e783c97f 100644 --- a/generator/generatedClasses/googleCloud/database/gcp-RDBMS.js +++ b/generator/generatedClasses/googleCloud/database/gcp-RDBMS.js @@ -1,134 +1,138 @@ -const { DatabaseAdminClient } = require("@google-cloud/spanner"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - databasePath(project, instance, database) { - return this._databaseAdminClient.databasePath(project, instance, database); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + databasePath(project, instance, database) { + return this._databaseAdminClient.databasePath( + project, + instance, + database + ); + } } module.exports = GCP_RDBMS; diff --git a/generator/generatedClasses/googleCloud/database/gcp-noSql.js b/generator/generatedClasses/googleCloud/database/gcp-noSql.js index 7857a959..626a8256 100644 --- a/generator/generatedClasses/googleCloud/database/gcp-noSql.js +++ b/generator/generatedClasses/googleCloud/database/gcp-noSql.js @@ -1,79 +1,79 @@ -const { FirestoreClient } = require("@google-cloud/firestore"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - query(request = undefined, options = undefined) { - return this._firestoreClient.runQuery(request, options); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + query(request = undefined, options = undefined) { + return this._firestoreClient.runQuery(request, options); + } } module.exports = GCP_NoSql; diff --git a/generator/generatedClasses/googleCloud/management/gcp-keyManagement.js b/generator/generatedClasses/googleCloud/management/gcp-keyManagement.js index 8a106f5d..e90fee97 100644 --- a/generator/generatedClasses/googleCloud/management/gcp-keyManagement.js +++ b/generator/generatedClasses/googleCloud/management/gcp-keyManagement.js @@ -1,107 +1,109 @@ -const { KeyManagementServiceClient } = require("@google-cloud/kms"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/googleCloud/management/gcp-monitoring.js b/generator/generatedClasses/googleCloud/management/gcp-monitoring.js index 8ea14029..4c03f5d1 100644 --- a/generator/generatedClasses/googleCloud/management/gcp-monitoring.js +++ b/generator/generatedClasses/googleCloud/management/gcp-monitoring.js @@ -1,116 +1,116 @@ -const { AlertPolicyServiceClient } = require("@google-cloud/monitoring"); -const { MetricServiceClient } = require("@google-cloud/monitoring"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - projectPath(project) { - return this._alertPolicyServiceClient.projectPath(project); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + projectPath(project) { + return this._alertPolicyServiceClient.projectPath(project); + } } module.exports = GCP_Monitoring; diff --git a/generator/generatedClasses/googleCloud/management/gcp-notificationService.js b/generator/generatedClasses/googleCloud/management/gcp-notificationService.js index ff4ee74f..447558f5 100644 --- a/generator/generatedClasses/googleCloud/management/gcp-notificationService.js +++ b/generator/generatedClasses/googleCloud/management/gcp-notificationService.js @@ -1,162 +1,162 @@ -const { PublisherClient } = require("@google-cloud/pubsub"); -const { SubscriberClient } = require("@google-cloud/pubsub"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - unsubscribe(request, options = undefined) { - return new Promise((resolve, reject) => { - this._subscriberClient - .deleteSubscription(request, options) - .then(result => { - resolve(result); - }) - .catch(err => { - reject(err); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/googleCloud/network/gcp-DNS.js b/generator/generatedClasses/googleCloud/network/gcp-DNS.js index acb9acd3..eadb0c8a 100644 --- a/generator/generatedClasses/googleCloud/network/gcp-DNS.js +++ b/generator/generatedClasses/googleCloud/network/gcp-DNS.js @@ -1,104 +1,101 @@ -const { DNS } = require("@google-cloud/dns"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - record(dns, type, metadata) { - return this.dns.record(type, metadata); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + record(dns, type, metadata) { + return this.dns.record(type, metadata); + } } module.exports = GCP_dns; diff --git a/generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js b/generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js index a51af327..75ab8af4 100644 --- a/generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js +++ b/generator/generatedClasses/googleCloud/storage/gcp-archivalStorage.js @@ -1,111 +1,111 @@ -const { Storage } = require("@google-cloud/storage"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - list(options = undefined) { - return new Promise((resolve, reject) => { - this._storage - .getBuckets(options) - .then(result => { - resolve(result); - }) - .catch(err => { - reject(err); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js b/generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js index a51af327..75ab8af4 100644 --- a/generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js +++ b/generator/generatedClasses/googleCloud/storage/gcp-storageBucket.js @@ -1,111 +1,111 @@ -const { Storage } = require("@google-cloud/storage"); +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} - */ - 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} - */ - 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} - */ - 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} - */ - 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} - */ - list(options = undefined) { - return new Promise((resolve, reject) => { - this._storage - .getBuckets(options) - .then(result => { - resolve(result); - }) - .catch(err => { - reject(err); - }); - }); - } + /** + * + * @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} + */ + 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} + */ + 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} + */ + 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} + */ + 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} + */ + 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/generator/generators/aws/generator.js b/generator/generators/aws/generator.js index 33d55ba9..508d06c2 100644 --- a/generator/generators/aws/generator.js +++ b/generator/generators/aws/generator.js @@ -1,251 +1,268 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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.generateAWSClass = exports.extractSDKData = void 0; -var fs = require("fs"); -var typescript_1 = require("typescript"); -var parser_1 = require("../../parsers/aws/parser"); -var transformer_1 = require("../../transformers/aws/transformer"); -var helper_1 = require("../lib/helper"); -var dummyFile = process.cwd() + "/dummyClasses/aws.js"; +var fs = require('fs'); +var typescript_1 = require('typescript'); +var parser_1 = require('../../parsers/aws/parser'); +var transformer_1 = require('../../transformers/aws/transformer'); +var helper_1 = require('../lib/helper'); +var dummyFile = process.cwd() + '/dummyClasses/aws.js'; var dummyAst = typescript_1.createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - typescript_1.ScriptTarget.Latest, - true + 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.right.text; - } - parameters_1.push(parameter); - } - }); - methods.push({ - functionName: name_1.toString(), - SDKFunctionName: method.name.text.toString(), - params: parameters_1 - }); - } - }); - var groupedMethods = helper_1.groupers.aws(methods); - methods = helper_1.filters.aws(groupedMethods); - var classData = { - className: sdkClassAst.name.text, - functions: methods, - serviceName: null - }; - return classData; + 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.right.text; + } + parameters_1.push(parameter); + } + }); + methods.push({ + functionName: name_1.toString(), + SDKFunctionName: method.name.text.toString(), + params: parameters_1, + }); + } + }); + var groupedMethods = helper_1.groupers.aws(methods); + methods = helper_1.filters.aws(groupedMethods); + var classData = { + className: sdkClassAst.name.text, + functions: methods, + serviceName: null, + }; + return classData; } exports.extractSDKData = extractSDKData; function generateAWSClass(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/AWS/" + dir) - ) { - fs.mkdirSync(process.cwd() + "/generatedClasses/AWS/" + dir); - } - if (/^[A-Z]*$/.test(serviceName)) { - filePath = - process.cwd() + - "/generatedClasses/AWS/" + - dir + - "/aws-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/AWS/" + - dir + - "/aws-" + - 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*/]; - } - }); - }); - }); + 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/AWS/' + dir + ) + ) { + fs.mkdirSync( + process.cwd() + '/generatedClasses/AWS/' + dir + ); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + '/generatedClasses/AWS/' + + dir + + '/aws-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/AWS/' + + dir + + '/aws-' + + 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.generateAWSClass = generateAWSClass; diff --git a/generator/generators/azure/generator.js b/generator/generators/azure/generator.js index cf75bcc8..9fecc505 100644 --- a/generator/generators/azure/generator.js +++ b/generator/generators/azure/generator.js @@ -1,301 +1,323 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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.generateAzureClass = exports.extractSDKData = void 0; -var fs = require("fs"); -var typescript_1 = require("typescript"); -var parser_1 = require("../../parsers/azure/parser"); -var helper_1 = require("../lib/helper"); -var transformer_1 = require("../../transformers/azure/transformer"); -var dummyFile = process.cwd() + "/dummyClasses/azure.js"; +var fs = require('fs'); +var typescript_1 = require('typescript'); +var parser_1 = require('../../parsers/azure/parser'); +var transformer_1 = require('../../transformers/azure/transformer'); +var helper_1 = require('../lib/helper'); +var dummyFile = process.cwd() + '/dummyClasses/azure.js'; var dummyAst = typescript_1.createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - typescript_1.ScriptTarget.Latest, - true + dummyFile, + fs.readFileSync(dummyFile).toString(), + typescript_1.ScriptTarget.Latest, + true ); function extractSDKData(sdkFiles, methods) { - var specifiedMethods = JSON.parse(JSON.stringify(methods)); - sdkFiles.map(function(sdkFile) { - sdkFile.ast.members.map(function(member) { - if (typescript_1.SyntaxKind[member.kind] === "Constructor") { - member.parameters.map(function(param) { - var tempStr = param.type.typeName.text.split(/(?=[A-Z])/); - tempStr.pop(); - sdkFile.client = tempStr.join(""); - }); - } - if ( - typescript_1.SyntaxKind[member.kind] === "MethodDeclaration" && - sdkFile.sdkFunctionNames.includes(member.name.text) - ) { - var method = methods.find(function(methd) { - return ( - methd.SDKFunctionName === member.name.text && - methd.fileName === sdkFile.fileName - ); - }); - var parameters = member.parameters.map(function(param) { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: typescript_1.SyntaxKind[param.type.kind] - }; - }); - var returnType = typescript_1.SyntaxKind[member.type.kind]; - if (!method.returnType) { - method.params = parameters; - method.returnType = returnType; - method.client = sdkFile.client; - } else { - var clone = JSON.parse(JSON.stringify(method)); - clone.params = parameters; - clone.returnType = returnType; - clone.client = sdkFile.client; - methods.push(clone); - } - } - }); - }); - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - throw new Error("Data extraction unsuccessful"); - } - var groupedMethods = helper_1.groupers.azure(methods); - methods = helper_1.filters.azure(groupedMethods); - var classData = { - functions: methods - }; - return classData; + var specifiedMethods = JSON.parse(JSON.stringify(methods)); + sdkFiles.map(function(sdkFile) { + sdkFile.ast.members.map(function(member) { + if (typescript_1.SyntaxKind[member.kind] === 'Constructor') { + member.parameters.map(function(param) { + var tempStr = param.type.typeName.text.split(/(?=[A-Z])/); + tempStr.pop(); + sdkFile.client = tempStr.join(''); + }); + } + if ( + typescript_1.SyntaxKind[member.kind] === 'MethodDeclaration' && + sdkFile.sdkFunctionNames.includes(member.name.text) + ) { + var method = methods.find(function(methd) { + return ( + methd.SDKFunctionName === member.name.text && + methd.fileName === sdkFile.fileName + ); + }); + var parameters = member.parameters.map(function(param) { + return { + name: param.name.text, + optional: param.questionToken ? true : false, + type: typescript_1.SyntaxKind[param.type.kind], + }; + }); + var returnType = typescript_1.SyntaxKind[member.type.kind]; + if (!method.returnType) { + method.params = parameters; + method.returnType = returnType; + method.client = sdkFile.client; + } else { + var clone = JSON.parse(JSON.stringify(method)); + clone.params = parameters; + clone.returnType = returnType; + clone.client = sdkFile.client; + methods.push(clone); + } + } + }); + }); + if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { + throw new Error('Data extraction unsuccessful'); + } + var groupedMethods = helper_1.groupers.azure(methods); + methods = helper_1.filters.azure(groupedMethods); + var classData = { + functions: methods, + }; + return classData; } exports.extractSDKData = extractSDKData; function generateAzureClass(serviceClass, serviceName) { - return __awaiter(this, void 0, void 0, function() { - var methods, files, sdkFiles, classData, output, filePath, dir; - var _this = this; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - methods = []; - Object.keys(serviceClass).map(function(key, index) { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - fileName: serviceClass[key].split(" ")[1], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[2], - params: [], - returnType: null, - client: null - }); - }); - files = Array.from( - new Set( - methods.map(function(method) { - return method.fileName; - }) - ) - ); - sdkFiles = files.map(function(file) { - return { - fileName: file, - pkgName: methods[0].pkgName, - ast: null, - client: null, - sdkFunctionNames: methods - .filter(function(method) { - return method.fileName === file; - }) - .map(function(method) { - return method.SDKFunctionName; - }) - }; - }); - return [ - 4 /*yield*/, - Promise.all( - sdkFiles.map(function(file) { - return __awaiter(_this, void 0, void 0, function() { - var _a; - return __generator(this, function(_b) { - switch (_b.label) { - case 0: - _a = file; - return [4 /*yield*/, parser_1.getAST(file)]; - case 1: - _a.ast = _b.sent(); - return [2 /*return*/]; - } - }); - }); - }) - ) - ]; - case 1: - _a.sent(); - classData = extractSDKData(sdkFiles, methods); - classData.serviceName = 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/" + - dir + - "/azure-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/Azure/" + - dir + - "/azure-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - helper_1.printFile(filePath, output); - return [2 /*return*/]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var methods, files, sdkFiles, classData, output, filePath, dir; + var _this = this; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + methods = []; + Object.keys(serviceClass).map(function(key, index) { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + client: null, + }); + }); + files = Array.from( + new Set( + methods.map(function(method) { + return method.fileName; + }) + ) + ); + sdkFiles = files.map(function(file) { + return { + fileName: file, + pkgName: methods[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods + .filter(function(method) { + return method.fileName === file; + }) + .map(function(method) { + return method.SDKFunctionName; + }), + }; + }); + return [ + 4 /*yield*/, + Promise.all( + sdkFiles.map(function(file) { + return __awaiter( + _this, + void 0, + void 0, + function() { + var _a; + return __generator(this, function(_b) { + switch (_b.label) { + case 0: + _a = file; + return [ + 4 /*yield*/, + parser_1.getAST(file), + ]; + case 1: + _a.ast = _b.sent(); + return [2 /*return*/]; + } + }); + } + ); + }) + ), + ]; + case 1: + _a.sent(); + classData = extractSDKData(sdkFiles, methods); + classData.serviceName = 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/' + + dir + + '/azure-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Azure/' + + dir + + '/azure-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + helper_1.printFile(filePath, output); + return [2 /*return*/]; + } + }); + }); } exports.generateAzureClass = generateAzureClass; diff --git a/generator/generators/azure/generator.ts b/generator/generators/azure/generator.ts index 2aa27b60..38839d33 100644 --- a/generator/generators/azure/generator.ts +++ b/generator/generators/azure/generator.ts @@ -1,152 +1,152 @@ -import * as fs from "fs"; -import { createSourceFile, ScriptTarget,SyntaxKind } from "typescript"; +import * as fs from 'fs'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; -import { getAST } from "../../parsers/azure/parser"; -import { transform } from "../../transformers/azure/transformer"; -import { filters, getDir,groupers, printFile } from "../lib/helper"; +import { getAST } from '../../parsers/azure/parser'; +import { transform } from '../../transformers/azure/transformer'; +import { filters, getDir, groupers, printFile } from '../lib/helper'; interface FunctionData { - pkgName: string; - fileName: string; - functionName: string; - SDKFunctionName: string; - params: param[]; - returnType: string; - client: string; + pkgName: string; + fileName: string; + functionName: string; + SDKFunctionName: string; + params: param[]; + returnType: string; + client: string; } interface param { - name: string; - type: string; + name: string; + type: string; } -const dummyFile = process.cwd() + "/dummyClasses/azure.js"; +const dummyFile = process.cwd() + '/dummyClasses/azure.js'; const dummyAst = createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - ScriptTarget.Latest, - true + dummyFile, + fs.readFileSync(dummyFile).toString(), + ScriptTarget.Latest, + true ); export function extractSDKData(sdkFiles, methods) { - const specifiedMethods = JSON.parse(JSON.stringify(methods)); - sdkFiles.map(sdkFile => { - sdkFile.ast.members.map(member => { - if (SyntaxKind[member.kind] === "Constructor") { - member.parameters.map(param => { - const tempStr = param.type.typeName.text.split(/(?=[A-Z])/); - tempStr.pop(); - sdkFile.client = tempStr.join(""); - }); - } - - if ( - SyntaxKind[member.kind] === "MethodDeclaration" && - sdkFile.sdkFunctionNames.includes(member.name.text) - ) { - const method = methods.find( - methd => - methd.SDKFunctionName === member.name.text && - methd.fileName === sdkFile.fileName - ); - const parameters = member.parameters.map(param => { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: SyntaxKind[param.type.kind] - }; - }); - - const returnType = SyntaxKind[member.type.kind]; - if (!method.returnType) { - method.params = parameters; - method.returnType = returnType; - method.client = sdkFile.client; - } else { - const clone = JSON.parse(JSON.stringify(method)); - clone.params = parameters; - clone.returnType = returnType; - clone.client = sdkFile.client; - methods.push(clone); - } - } - }); - }); - - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - throw new Error("Data extraction unsuccessful"); - } - - const groupedMethods = groupers.azure(methods); - methods = filters.azure(groupedMethods); - - const classData = { - functions: methods - }; - - return classData; + const specifiedMethods = JSON.parse(JSON.stringify(methods)); + sdkFiles.map(sdkFile => { + sdkFile.ast.members.map(member => { + if (SyntaxKind[member.kind] === 'Constructor') { + member.parameters.map(param => { + const tempStr = param.type.typeName.text.split(/(?=[A-Z])/); + tempStr.pop(); + sdkFile.client = tempStr.join(''); + }); + } + + if ( + SyntaxKind[member.kind] === 'MethodDeclaration' && + sdkFile.sdkFunctionNames.includes(member.name.text) + ) { + const method = methods.find( + methd => + methd.SDKFunctionName === member.name.text && + methd.fileName === sdkFile.fileName + ); + const parameters = member.parameters.map(param => { + return { + name: param.name.text, + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + }; + }); + + const returnType = SyntaxKind[member.type.kind]; + if (!method.returnType) { + method.params = parameters; + method.returnType = returnType; + method.client = sdkFile.client; + } else { + const clone = JSON.parse(JSON.stringify(method)); + clone.params = parameters; + clone.returnType = returnType; + clone.client = sdkFile.client; + methods.push(clone); + } + } + }); + }); + + if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { + throw new Error('Data extraction unsuccessful'); + } + + const groupedMethods = groupers.azure(methods); + methods = filters.azure(groupedMethods); + + const classData = { + functions: methods, + }; + + return classData; } export async function generateAzureClass(serviceClass, serviceName) { - let methods: FunctionData[] = []; - - Object.keys(serviceClass).map((key, index) => { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - fileName: serviceClass[key].split(" ")[1], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[2], - params: [], - returnType: null, - client: null - }); - }); - - const files = Array.from(new Set(methods.map(method => method.fileName))); - - const sdkFiles = files.map(file => { - return { - fileName: file, - pkgName: methods[0].pkgName, - ast: null, - client: null, - sdkFunctionNames: methods - .filter(method => method.fileName === file) - .map(method => method.SDKFunctionName) - }; - }); - - await Promise.all( - sdkFiles.map(async file => { - file.ast = await getAST(file); - }) - ); - - const classData: any = extractSDKData(sdkFiles, methods); - 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/" + - dir + - "/azure-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/Azure/" + - dir + - "/azure-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - printFile(filePath, output); + const methods: FunctionData[] = []; + + Object.keys(serviceClass).map((key, index) => { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + client: null, + }); + }); + + const files = Array.from(new Set(methods.map(method => method.fileName))); + + const sdkFiles = files.map(file => { + return { + fileName: file, + pkgName: methods[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods + .filter(method => method.fileName === file) + .map(method => method.SDKFunctionName), + }; + }); + + await Promise.all( + sdkFiles.map(async file => { + file.ast = await getAST(file); + }) + ); + + const classData: any = extractSDKData(sdkFiles, methods); + 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/' + + dir + + '/azure-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Azure/' + + dir + + '/azure-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + printFile(filePath, output); } diff --git a/generator/generators/do/generator.js b/generator/generators/do/generator.js index 56ae7d57..f6c11156 100644 --- a/generator/generators/do/generator.js +++ b/generator/generators/do/generator.js @@ -1,247 +1,266 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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 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 + 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; + 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*/]; - } - }); - }); - }); + 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 index 052b13e0..7a97277d 100644 --- a/generator/generators/do/generator.ts +++ b/generator/generators/do/generator.ts @@ -1,123 +1,129 @@ -import * as fs from "fs"; -import { createSourceFile, ScriptTarget, SyntaxKind } from "typescript"; +import * as fs from 'fs'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; -import { getAST } from "../../parsers/do/parser"; -import { transform } from "../../transformers/do/transformer"; -import { getDir,printFile } from "../lib/helper"; +import { getAST } from '../../parsers/do/parser'; +import { transform } from '../../transformers/do/transformer'; +import { getDir, printFile } from '../lib/helper'; interface FunctionData { - functionName: string; - SDKFunctionName: string; - params: param[]; + functionName: string; + SDKFunctionName: string; + params: param[]; } interface param { - name: string; - type: string; - typeName: string; + name: string; + type: string; + typeName: string; } interface ClassData { - className: string; - functions: FunctionData[]; - serviceName: string; + className: string; + functions: FunctionData[]; + serviceName: string; } -const dummyFile = process.cwd() + "/dummyClasses/do.js"; +const dummyFile = process.cwd() + '/dummyClasses/do.js'; const dummyAst = createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - ScriptTarget.Latest, - true + 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; + const 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); - } - }); + 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 664103f9..84a364b2 100644 --- a/generator/generators/googleCloud/generator.js +++ b/generator/generators/googleCloud/generator.js @@ -1,594 +1,701 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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.generateGCPClass = exports.extractClientBasedSDKdata = exports.extractClassBasedSDKData = void 0; -var fs = require("fs"); -var path = require("path"); -var typescript_1 = require("typescript"); -var parser_1 = require("../../parsers/googleCloud/parser"); -var helper_1 = require("../lib/helper"); -var clientBasedTransformer_1 = require("../../transformers/googleCloud/clientBasedTransformer"); -var classBasedTransformer_1 = require("../../transformers/googleCloud/classBasedTransformer"); -var dummyFile = process.cwd() + "/dummyClasses/gcp.js"; +var fs = require('fs'); +var path = require('path'); +var typescript_1 = require('typescript'); +var parser_1 = require('../../parsers/googleCloud/parser'); +var classBasedTransformer_1 = require('../../transformers/googleCloud/classBasedTransformer'); +var clientBasedTransformer_1 = require('../../transformers/googleCloud/clientBasedTransformer'); +var helper_1 = require('../lib/helper'); +var dummyFile = process.cwd() + '/dummyClasses/gcp.js'; var dummyAst = typescript_1.createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - typescript_1.ScriptTarget.Latest, - true + dummyFile, + fs.readFileSync(dummyFile).toString(), + typescript_1.ScriptTarget.Latest, + true ); function extractClassBasedSDKData(methods, sdkFiles) { - var _this = this; - var specifiedMethods = JSON.parse(JSON.stringify(methods)); - return new Promise(function(resolve, reject) { - return __awaiter(_this, void 0, void 0, function() { - var classes_1, extractedData; - return __generator(this, function(_a) { - try { - classes_1 = []; - sdkFiles.map(function(file) { - file.classes.map(function(classAst) { - var classInfo = { - name: classAst.name.text, - methods: [], - properties: [], - constructor: null - }; - classAst.members.map(function(member) { - if ( - typescript_1.SyntaxKind[member.kind] === "MethodDeclaration" - ) { - var returnType = typescript_1.SyntaxKind[member.type.kind]; - var parameters = member.parameters.map(function(param) { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: typescript_1.SyntaxKind[param.type.kind] - }; - }); - var method_1 = { - pkgName: file.pkgName, - version: null, - fileName: file.fileName, - functionName: null, - SDKFunctionName: member.name.text, - params: parameters, - returnType: returnType, - returnTypeName: null, - client: classAst.name.text // Class name - }; - if (returnType === "TypeReference") { - method_1.returnTypeName = member.type.typeName.text; - } - var meth = methods.find(function(meth) { - return ( - meth.SDKFunctionName === method_1.SDKFunctionName && - meth.fileName === method_1.fileName - ); - }); - method_1.functionName = meth ? meth.functionName : null; - classInfo.methods.push(method_1); - } - if (typescript_1.SyntaxKind[member.kind] === "Constructor") { - var parameters = member.parameters.map(function(param) { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: typescript_1.SyntaxKind[param.type.kind], - typeRefName: param.type.typeName - ? param.type.typeName.text - : null - }; - }); - classInfo.constructor = { - parameters: parameters - }; - } - if ( - typescript_1.SyntaxKind[member.kind] === "PropertyDeclaration" - ) { - var isPrivateProp = - member.modifiers && - member.modifiers.some(function(modifier) { - return ( - typescript_1.SyntaxKind[modifier.kind] === - "PrivateKeyword" - ); - }); - if (!isPrivateProp) { - var prop = { - name: member.name.text, - type: typescript_1.SyntaxKind[member.type.kind], - typeRefName: member.type.typeName - ? member.type.typeName.text - : null - }; - classInfo.properties.push(prop); - } - } - }); - classes_1.push(classInfo); - }); - }); - methods = []; - classes_1.map(function(classData) { - var filteredMethods = classData.methods.filter(function(meth) { - return meth.functionName !== null; - }); - filteredMethods.map(function(filMeth) { - filMeth.classConstructorData = classData.constructor; - }); - methods = methods.concat(filteredMethods); - }); - extractedData = { - classes: classes_1, - methods: methods - }; - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - reject(new Error("Data extraction unsuccessful")); - } else { - resolve(extractedData); - } - } catch (error) { - reject(error); - } - return [2 /*return*/]; - }); - }); - }); + var _this = this; + var specifiedMethods = JSON.parse(JSON.stringify(methods)); + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + var classes_1, extractedData; + return __generator(this, function(_a) { + try { + classes_1 = []; + sdkFiles.map(function(file) { + file.classes.map(function(classAst) { + var classInfo = { + name: classAst.name.text, + methods: [], + properties: [], + constructor: null, + }; + classAst.members.map(function(member) { + if ( + typescript_1.SyntaxKind[member.kind] === + 'MethodDeclaration' + ) { + var returnType = + typescript_1.SyntaxKind[ + member.type.kind + ]; + var parameters = member.parameters.map( + function(param) { + return { + name: param.name.text, + optional: param.questionToken + ? true + : false, + type: + typescript_1.SyntaxKind[ + param.type.kind + ], + }; + } + ); + var method_1 = { + pkgName: file.pkgName, + version: null, + fileName: file.fileName, + functionName: null, + SDKFunctionName: member.name.text, + params: parameters, + returnType: returnType, + returnTypeName: null, + client: classAst.name.text, + }; + if (returnType === 'TypeReference') { + method_1.returnTypeName = + member.type.typeName.text; + } + var meth = methods.find(function(meth) { + return ( + meth.SDKFunctionName === + method_1.SDKFunctionName && + meth.fileName === method_1.fileName + ); + }); + method_1.functionName = meth + ? meth.functionName + : null; + classInfo.methods.push(method_1); + } + if ( + typescript_1.SyntaxKind[member.kind] === + 'Constructor' + ) { + var parameters = member.parameters.map( + function(param) { + return { + name: param.name.text, + optional: param.questionToken + ? true + : false, + type: + typescript_1.SyntaxKind[ + param.type.kind + ], + typeRefName: param.type.typeName + ? param.type.typeName.text + : null, + }; + } + ); + classInfo.constructor = { + parameters: parameters, + }; + } + if ( + typescript_1.SyntaxKind[member.kind] === + 'PropertyDeclaration' + ) { + var isPrivateProp = + member.modifiers && + member.modifiers.some(function( + modifier + ) { + return ( + typescript_1.SyntaxKind[ + modifier.kind + ] === 'PrivateKeyword' + ); + }); + if (!isPrivateProp) { + var prop = { + name: member.name.text, + type: + typescript_1.SyntaxKind[ + member.type.kind + ], + typeRefName: member.type.typeName + ? member.type.typeName.text + : null, + }; + classInfo.properties.push(prop); + } + } + }); + classes_1.push(classInfo); + }); + }); + methods = []; + classes_1.map(function(classData) { + var filteredMethods = classData.methods.filter(function( + meth + ) { + return meth.functionName !== null; + }); + filteredMethods.map(function(filMeth) { + filMeth.classConstructorData = + classData.constructor; + }); + methods = methods.concat(filteredMethods); + }); + extractedData = { + classes: classes_1, + methods: methods, + }; + if ( + JSON.stringify(methods) === + JSON.stringify(specifiedMethods) + ) { + reject(new Error('Data extraction unsuccessful')); + } else { + resolve(extractedData); + } + } catch (error) { + reject(error); + } + return [2 /*return*/]; + }); + }); + }); } exports.extractClassBasedSDKData = extractClassBasedSDKData; function extractClientBasedSDKdata(methods, sdkFiles) { - var _this = this; - var specifiedMethods = JSON.parse(JSON.stringify(methods)); - return new Promise(function(resolve, reject) { - return __awaiter(_this, void 0, void 0, function() { - return __generator(this, function(_a) { - try { - sdkFiles.map(function(sdkFile) { - sdkFile.client = sdkFile.ast.name.text; - sdkFile.ast.members.map(function(member) { - if ( - typescript_1.SyntaxKind[member.kind] === "MethodDeclaration" && - sdkFile.sdkFunctionNames.includes(member.name.text) - ) { - var method = methods.find(function(methd) { - return methd.SDKFunctionName === member.name.text; - }); - var parameters = member.parameters.map(function(param) { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: typescript_1.SyntaxKind[param.type.kind] - }; - }); - var returnType = typescript_1.SyntaxKind[member.type.kind]; - if (returnType === "TypeReference") { - method.returnTypeName = member.type.typeName.text; - } - if (!method.returnType) { - method.params = parameters; - method.returnType = returnType; - method.client = sdkFile.client; - } else { - var clone = JSON.parse(JSON.stringify(method)); - clone.params = parameters; - clone.returnType = returnType; - clone.client = sdkFile.client; - methods.push(clone); - } - } - }); - }); - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - reject(new Error("Data extraction unsuccessful")); - } else { - resolve(methods); - } - } catch (error) { - reject(error); - } - return [2 /*return*/]; - }); - }); - }); + var _this = this; + var specifiedMethods = JSON.parse(JSON.stringify(methods)); + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + return __generator(this, function(_a) { + try { + sdkFiles.map(function(sdkFile) { + sdkFile.client = sdkFile.ast.name.text; + sdkFile.ast.members.map(function(member) { + if ( + typescript_1.SyntaxKind[member.kind] === + 'MethodDeclaration' && + sdkFile.sdkFunctionNames.includes( + member.name.text + ) + ) { + var method = methods.find(function(methd) { + return ( + methd.SDKFunctionName === + member.name.text + ); + }); + var parameters = member.parameters.map(function( + param + ) { + return { + name: param.name.text, + optional: param.questionToken + ? true + : false, + type: + typescript_1.SyntaxKind[ + param.type.kind + ], + }; + }); + var returnType = + typescript_1.SyntaxKind[member.type.kind]; + if (returnType === 'TypeReference') { + method.returnTypeName = + member.type.typeName.text; + } + if (!method.returnType) { + method.params = parameters; + method.returnType = returnType; + method.client = sdkFile.client; + } else { + var clone = JSON.parse( + JSON.stringify(method) + ); + clone.params = parameters; + clone.returnType = returnType; + clone.client = sdkFile.client; + methods.push(clone); + } + } + }); + }); + if ( + JSON.stringify(methods) === + JSON.stringify(specifiedMethods) + ) { + reject(new Error('Data extraction unsuccessful')); + } else { + resolve(methods); + } + } catch (error) { + reject(error); + } + return [2 /*return*/]; + }); + }); + }); } exports.extractClientBasedSDKdata = extractClientBasedSDKdata; function generateClassBasedCode(methods, data, serviceName) { - return __awaiter(this, void 0, void 0, function() { - var dirPath, - files, - sdkFiles, - extractedData, - groupedMethods, - output, - filePath, - dir; - var _this = this; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - dirPath = - "../../../node_modules/@google-cloud/" + - methods[0].pkgName + - "/build/src/"; - files = fs.readdirSync(path.join(__dirname, dirPath)); - files = files.filter(function(fileName) { - return ( - fileName.split(".")[1] === "d" && fileName.split(".")[2] === "ts" - ); - }); - sdkFiles = files.map(function(fileName) { - return { - fileName: fileName, - pkgName: methods[0].pkgName, - classes: null, - sdkFunctionNames: methods - .filter(function(method) { - return method.fileName === fileName; - }) - .map(function(method) { - return method.SDKFunctionName; - }) - }; - }); - return [ - 4 /*yield*/, - Promise.all( - sdkFiles.map(function(file) { - return __awaiter(_this, void 0, void 0, function() { - var _a; - return __generator(this, function(_b) { - switch (_b.label) { - case 0: - _a = file; - return [4 /*yield*/, parser_1.getAST(file, true)]; - case 1: - _a.classes = _b.sent(); - return [2 /*return*/]; - } - }); - }); - }) - ) - ]; - case 1: - _a.sent(); - return [ - 4 /*yield*/, - extractClassBasedSDKData(methods, sdkFiles).then(function(result) { - return result; - }) - ]; - case 2: - extractedData = _a.sent(); - groupedMethods = helper_1.groupers.gcp(extractedData.methods); - methods = helper_1.filters.gcp(groupedMethods); - data.functions = methods; - data.classData = extractedData.classes; - data.serviceName = serviceName; - return [ - 4 /*yield*/, - classBasedTransformer_1.classBasedTransform(dummyAst, data) - ]; - 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/" + - dir + - "/gcp-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/googleCloud/" + - dir + - "/gcp-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - helper_1.printFile(filePath, output); - return [2 /*return*/]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var dirPath, + files, + sdkFiles, + extractedData, + groupedMethods, + output, + filePath, + dir; + var _this = this; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + dirPath = + '../../../node_modules/@google-cloud/' + + methods[0].pkgName + + '/build/src/'; + files = fs.readdirSync(path.join(__dirname, dirPath)); + files = files.filter(function(fileName) { + return ( + fileName.split('.')[1] === 'd' && + fileName.split('.')[2] === 'ts' + ); + }); + sdkFiles = files.map(function(fileName) { + return { + fileName: fileName, + pkgName: methods[0].pkgName, + classes: null, + sdkFunctionNames: methods + .filter(function(method) { + return method.fileName === fileName; + }) + .map(function(method) { + return method.SDKFunctionName; + }), + }; + }); + return [ + 4 /*yield*/, + Promise.all( + sdkFiles.map(function(file) { + return __awaiter( + _this, + void 0, + void 0, + function() { + var _a; + return __generator(this, function(_b) { + switch (_b.label) { + case 0: + _a = file; + return [ + 4 /*yield*/, + parser_1.getAST( + file, + true + ), + ]; + case 1: + _a.classes = _b.sent(); + return [2 /*return*/]; + } + }); + } + ); + }) + ), + ]; + case 1: + _a.sent(); + return [ + 4 /*yield*/, + extractClassBasedSDKData(methods, sdkFiles).then( + function(result) { + return result; + } + ), + ]; + case 2: + extractedData = _a.sent(); + groupedMethods = helper_1.groupers.gcp( + extractedData.methods + ); + methods = helper_1.filters.gcp(groupedMethods); + data.functions = methods; + data.classData = extractedData.classes; + data.serviceName = serviceName; + return [ + 4 /*yield*/, + classBasedTransformer_1.classBasedTransform( + dummyAst, + data + ), + ]; + 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/' + + dir + + '/gcp-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/googleCloud/' + + dir + + '/gcp-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + helper_1.printFile(filePath, output); + return [2 /*return*/]; + } + }); + }); } function generateClientBasedCode(methods, serviceName) { - return __awaiter(this, void 0, void 0, function() { - var files, sdkFiles, groupedMethods, classData, output, filePath, dir; - var _this = this; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - files = Array.from( - new Set( - methods.map(function(method) { - return method.fileName + " " + method.version; - }) - ) - ); - sdkFiles = files.map(function(file) { - return { - fileName: file.split(" ")[0], - version: file.split(" ")[1], - pkgName: methods[0].pkgName, - ast: null, - client: null, - sdkFunctionNames: methods - .filter(function(method) { - return method.fileName === file.split(" ")[0]; - }) - .map(function(method) { - return method.SDKFunctionName; - }) - }; - }); - return [ - 4 /*yield*/, - Promise.all( - sdkFiles.map(function(file) { - return __awaiter(_this, void 0, void 0, function() { - var _a; - return __generator(this, function(_b) { - switch (_b.label) { - case 0: - _a = file; - return [4 /*yield*/, parser_1.getAST(file)]; - case 1: - _a.ast = _b.sent(); - return [2 /*return*/]; - } - }); - }); - }) - ) - ]; - case 1: - _a.sent(); - return [ - 4 /*yield*/, - extractClientBasedSDKdata(methods, sdkFiles).then(function(result) { - return result; - }) - ]; - case 2: - methods = _a.sent(); - groupedMethods = helper_1.groupers.gcp(methods); - methods = helper_1.filters.gcp(groupedMethods); - classData = { - functions: methods, - serviceName: serviceName - }; - return [ - 4 /*yield*/, - clientBasedTransformer_1.clientBasedTransform(dummyAst, classData) - ]; - 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/" + - dir + - "/gcp-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/googleCloud/" + - dir + - "/gcp-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - helper_1.printFile(filePath, output); - return [2 /*return*/]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var files, sdkFiles, groupedMethods, classData, output, filePath, dir; + var _this = this; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + files = Array.from( + new Set( + methods.map(function(method) { + return method.fileName + ' ' + method.version; + }) + ) + ); + sdkFiles = files.map(function(file) { + return { + fileName: file.split(' ')[0], + version: file.split(' ')[1], + pkgName: methods[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods + .filter(function(method) { + return ( + method.fileName === file.split(' ')[0] + ); + }) + .map(function(method) { + return method.SDKFunctionName; + }), + }; + }); + return [ + 4 /*yield*/, + Promise.all( + sdkFiles.map(function(file) { + return __awaiter( + _this, + void 0, + void 0, + function() { + var _a; + return __generator(this, function(_b) { + switch (_b.label) { + case 0: + _a = file; + return [ + 4 /*yield*/, + parser_1.getAST(file), + ]; + case 1: + _a.ast = _b.sent(); + return [2 /*return*/]; + } + }); + } + ); + }) + ), + ]; + case 1: + _a.sent(); + return [ + 4 /*yield*/, + extractClientBasedSDKdata(methods, sdkFiles).then( + function(result) { + return result; + } + ), + ]; + case 2: + methods = _a.sent(); + groupedMethods = helper_1.groupers.gcp(methods); + methods = helper_1.filters.gcp(groupedMethods); + classData = { + functions: methods, + serviceName: serviceName, + }; + return [ + 4 /*yield*/, + clientBasedTransformer_1.clientBasedTransform( + dummyAst, + classData + ), + ]; + 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/' + + dir + + '/gcp-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/googleCloud/' + + dir + + '/gcp-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + helper_1.printFile(filePath, output); + return [2 /*return*/]; + } + }); + }); } function generateGCPClass(serviceClass, serviceName) { - return __awaiter(this, void 0, void 0, function() { - var methods, data; - return __generator(this, function(_a) { - methods = []; - data = {}; - Object.keys(serviceClass).map(function(key, index) { - if (key === "mainClass") { - data.mainClass = serviceClass[key]; - } else if ( - serviceClass[key].split(" ")[1].length === 2 && - serviceClass[key].split(" ")[1].charAt(0) === "v" - ) { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - version: serviceClass[key].split(" ")[1], - fileName: serviceClass[key].split(" ")[2], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[3], - params: [], - returnType: null, - returnTypeName: null, - client: null - }); - } else { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - version: null, - fileName: serviceClass[key].split(" ")[1], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[2], - params: [], - returnType: null, - returnTypeName: null, - client: null - }); - } - }); - if (methods[0].version) { - generateClientBasedCode(methods, serviceName); - } else { - generateClassBasedCode(methods, data, serviceName); - } - return [2 /*return*/]; - }); - }); + return __awaiter(this, void 0, void 0, function() { + var methods, data; + return __generator(this, function(_a) { + methods = []; + data = {}; + Object.keys(serviceClass).map(function(key, index) { + if (key === 'mainClass') { + data.mainClass = serviceClass[key]; + } else if ( + serviceClass[key].split(' ')[1].length === 2 && + serviceClass[key].split(' ')[1].charAt(0) === 'v' + ) { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + version: serviceClass[key].split(' ')[1], + fileName: serviceClass[key].split(' ')[2], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[3], + params: [], + returnType: null, + returnTypeName: null, + client: null, + }); + } else { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + version: null, + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + returnTypeName: null, + client: null, + }); + } + }); + if (methods[0].version) { + generateClientBasedCode(methods, serviceName); + } else { + generateClassBasedCode(methods, data, serviceName); + } + return [2 /*return*/]; + }); + }); } exports.generateGCPClass = generateGCPClass; diff --git a/generator/generators/googleCloud/generator.ts b/generator/generators/googleCloud/generator.ts index 9a2702cf..c3996431 100644 --- a/generator/generators/googleCloud/generator.ts +++ b/generator/generators/googleCloud/generator.ts @@ -1,388 +1,405 @@ -import * as fs from "fs"; -import * as path from "path"; -import { createSourceFile, ScriptTarget,SyntaxKind } from "typescript"; +import * as fs from 'fs'; +import * as path from 'path'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; -import { getAST } from "../../parsers/googleCloud/parser"; -import { classBasedTransform } from "../../transformers/googleCloud/classBasedTransformer"; -import { clientBasedTransform } from "../../transformers/googleCloud/clientBasedTransformer"; -import { filters, getDir,groupers, printFile } from "../lib/helper"; +import { getAST } from '../../parsers/googleCloud/parser'; +import { classBasedTransform } from '../../transformers/googleCloud/classBasedTransformer'; +import { clientBasedTransform } from '../../transformers/googleCloud/clientBasedTransformer'; +import { filters, getDir, groupers, printFile } from '../lib/helper'; interface ClassData { - name: string; - methods: FunctionData[]; - constructor: constructorData; - properties: propertyData[]; + name: string; + methods: FunctionData[]; + constructor: constructorData; + properties: propertyData[]; } interface FunctionData { - pkgName: string; - version: string; - fileName: string; - functionName: string; - SDKFunctionName: string; - params: param[]; - returnType: string; - returnTypeName: string; - client: string; + pkgName: string; + version: string; + fileName: string; + functionName: string; + SDKFunctionName: string; + params: param[]; + returnType: string; + returnTypeName: string; + client: string; } interface propertyData { - name: string; - type: string; + name: string; + type: string; } interface constructorData { - parameters: param[]; + parameters: param[]; } interface param { - name: string; - type: string; - optional: boolean; + name: string; + type: string; + optional: boolean; } -const dummyFile = process.cwd() + "/dummyClasses/gcp.js"; +const dummyFile = process.cwd() + '/dummyClasses/gcp.js'; const dummyAst = createSourceFile( - dummyFile, - fs.readFileSync(dummyFile).toString(), - ScriptTarget.Latest, - true + dummyFile, + fs.readFileSync(dummyFile).toString(), + ScriptTarget.Latest, + true ); export function extractClassBasedSDKData(methods, sdkFiles): any { - const specifiedMethods = JSON.parse(JSON.stringify(methods)); - return new Promise(async (resolve, reject) => { - try { - let classes: ClassData[] = []; - - sdkFiles.map(file => { - file.classes.map(classAst => { - const classInfo: ClassData = { - name: classAst.name.text, - methods: [], - properties: [], - constructor: null - }; - - classAst.members.map(member => { - if (SyntaxKind[member.kind] === "MethodDeclaration") { - const returnType = SyntaxKind[member.type.kind]; - - const parameters = member.parameters.map(param => { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: SyntaxKind[param.type.kind] - }; - }); - const method: FunctionData = { - pkgName: file.pkgName, - version: null, - fileName: file.fileName, - functionName: null, - SDKFunctionName: member.name.text, - params: parameters, - returnType: returnType, - returnTypeName: null, - client: classAst.name.text // Class name - }; - - if (returnType === "TypeReference") { - method.returnTypeName = member.type.typeName.text; - } - - const meth = methods.find( - meth => - meth.SDKFunctionName === method.SDKFunctionName && - meth.fileName === method.fileName - ); - method.functionName = meth ? meth.functionName : null; - classInfo.methods.push(method); - } - - if (SyntaxKind[member.kind] === "Constructor") { - const parameters = member.parameters.map(param => { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: SyntaxKind[param.type.kind], - typeRefName: param.type.typeName - ? param.type.typeName.text - : null - }; - }); - - classInfo.constructor = { - parameters - }; - } - - if (SyntaxKind[member.kind] === "PropertyDeclaration") { - const isPrivateProp = - member.modifiers && - member.modifiers.some( - modifier => SyntaxKind[modifier.kind] === "PrivateKeyword" - ); - if (!isPrivateProp) { - const prop = { - name: member.name.text, - type: SyntaxKind[member.type.kind], - typeRefName: member.type.typeName - ? member.type.typeName.text - : null - }; - classInfo.properties.push(prop); - } - } - }); - classes.push(classInfo); - }); - }); - - methods = []; - - classes.map(classData => { - let filteredMethods: any = classData.methods.filter( - meth => meth.functionName !== null - ); - filteredMethods.map(filMeth => { - filMeth.classConstructorData = classData.constructor; - }); - - methods = methods.concat(filteredMethods); - }); - - const extractedData = { - classes, - methods - }; - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - reject(new Error("Data extraction unsuccessful")); - } else { - resolve(extractedData); - } - } catch (error) { - reject(error); - } - }); + const specifiedMethods = JSON.parse(JSON.stringify(methods)); + return new Promise(async (resolve, reject) => { + try { + const classes: ClassData[] = []; + + sdkFiles.map(file => { + file.classes.map(classAst => { + const classInfo: ClassData = { + name: classAst.name.text, + methods: [], + properties: [], + constructor: null, + }; + + classAst.members.map(member => { + if (SyntaxKind[member.kind] === 'MethodDeclaration') { + const returnType = SyntaxKind[member.type.kind]; + + const parameters = member.parameters.map(param => { + return { + name: param.name.text, + optional: param.questionToken + ? true + : false, + type: SyntaxKind[param.type.kind], + }; + }); + const method: FunctionData = { + pkgName: file.pkgName, + version: null, + fileName: file.fileName, + functionName: null, + SDKFunctionName: member.name.text, + params: parameters, + returnType: returnType, + returnTypeName: null, + client: classAst.name.text, // Class name + }; + + if (returnType === 'TypeReference') { + method.returnTypeName = + member.type.typeName.text; + } + + const meth = methods.find( + meth => + meth.SDKFunctionName === + method.SDKFunctionName && + meth.fileName === method.fileName + ); + method.functionName = meth + ? meth.functionName + : null; + classInfo.methods.push(method); + } + + if (SyntaxKind[member.kind] === 'Constructor') { + const parameters = member.parameters.map(param => { + return { + name: param.name.text, + optional: param.questionToken + ? true + : false, + type: SyntaxKind[param.type.kind], + typeRefName: param.type.typeName + ? param.type.typeName.text + : null, + }; + }); + + classInfo.constructor = { + parameters, + }; + } + + if (SyntaxKind[member.kind] === 'PropertyDeclaration') { + const isPrivateProp = + member.modifiers && + member.modifiers.some( + modifier => + SyntaxKind[modifier.kind] === + 'PrivateKeyword' + ); + if (!isPrivateProp) { + const prop = { + name: member.name.text, + type: SyntaxKind[member.type.kind], + typeRefName: member.type.typeName + ? member.type.typeName.text + : null, + }; + classInfo.properties.push(prop); + } + } + }); + classes.push(classInfo); + }); + }); + + methods = []; + + classes.map(classData => { + const filteredMethods: any = classData.methods.filter( + meth => meth.functionName !== null + ); + filteredMethods.map(filMeth => { + filMeth.classConstructorData = classData.constructor; + }); + + methods = methods.concat(filteredMethods); + }); + + const extractedData = { + classes, + methods, + }; + if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { + reject(new Error('Data extraction unsuccessful')); + } else { + resolve(extractedData); + } + } catch (error) { + reject(error); + } + }); } export function extractClientBasedSDKdata(methods, sdkFiles): any { - const specifiedMethods = JSON.parse(JSON.stringify(methods)); - return new Promise(async (resolve, reject) => { - try { - sdkFiles.map(sdkFile => { - sdkFile.client = sdkFile.ast.name.text; - sdkFile.ast.members.map(member => { - if ( - SyntaxKind[member.kind] === "MethodDeclaration" && - sdkFile.sdkFunctionNames.includes(member.name.text) - ) { - const method = methods.find( - methd => methd.SDKFunctionName === member.name.text - ); - - const parameters = member.parameters.map(param => { - return { - name: param.name.text, - optional: param.questionToken ? true : false, - type: SyntaxKind[param.type.kind] - }; - }); - - const returnType = SyntaxKind[member.type.kind]; - if (returnType === "TypeReference") { - method.returnTypeName = member.type.typeName.text; - } - - if (!method.returnType) { - method.params = parameters; - method.returnType = returnType; - method.client = sdkFile.client; - } else { - const clone = JSON.parse(JSON.stringify(method)); - clone.params = parameters; - clone.returnType = returnType; - clone.client = sdkFile.client; - methods.push(clone); - } - } - }); - }); - - if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { - reject(new Error("Data extraction unsuccessful")); - } else { - resolve(methods); - } - } catch (error) { - reject(error); - } - }); + const specifiedMethods = JSON.parse(JSON.stringify(methods)); + return new Promise(async (resolve, reject) => { + try { + sdkFiles.map(sdkFile => { + sdkFile.client = sdkFile.ast.name.text; + sdkFile.ast.members.map(member => { + if ( + SyntaxKind[member.kind] === 'MethodDeclaration' && + sdkFile.sdkFunctionNames.includes(member.name.text) + ) { + const method = methods.find( + methd => methd.SDKFunctionName === member.name.text + ); + + const parameters = member.parameters.map(param => { + return { + name: param.name.text, + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + }; + }); + + const returnType = SyntaxKind[member.type.kind]; + if (returnType === 'TypeReference') { + method.returnTypeName = member.type.typeName.text; + } + + if (!method.returnType) { + method.params = parameters; + method.returnType = returnType; + method.client = sdkFile.client; + } else { + const clone = JSON.parse(JSON.stringify(method)); + clone.params = parameters; + clone.returnType = returnType; + clone.client = sdkFile.client; + methods.push(clone); + } + } + }); + }); + + if (JSON.stringify(methods) === JSON.stringify(specifiedMethods)) { + reject(new Error('Data extraction unsuccessful')); + } else { + resolve(methods); + } + } catch (error) { + reject(error); + } + }); } async function generateClassBasedCode(methods, data, serviceName) { - const dirPath = `../../../node_modules/@google-cloud/${methods[0].pkgName}/build/src/`; - let files = fs.readdirSync(path.join(__dirname, dirPath)); - files = files.filter( - fileName => - fileName.split(".")[1] === "d" && fileName.split(".")[2] === "ts" - ); - - const sdkFiles = files.map(fileName => { - return { - fileName: fileName, - pkgName: methods[0].pkgName, - classes: null, - sdkFunctionNames: methods - .filter(method => method.fileName === fileName) - .map(method => method.SDKFunctionName) - }; - }); - - await Promise.all( - sdkFiles.map(async file => { - file.classes = await getAST(file, true); - }) - ); - - const extractedData = await extractClassBasedSDKData(methods, sdkFiles).then( - result => result - ); - const groupedMethods = groupers.gcp(extractedData.methods); - methods = filters.gcp(groupedMethods); - data.functions = methods; - data.classData = extractedData.classes; - data.serviceName = 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/" + - dir + - "/gcp-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/googleCloud/" + - dir + - "/gcp-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - printFile(filePath, output); + const dirPath = `../../../node_modules/@google-cloud/${methods[0].pkgName}/build/src/`; + let files = fs.readdirSync(path.join(__dirname, dirPath)); + files = files.filter( + fileName => + fileName.split('.')[1] === 'd' && fileName.split('.')[2] === 'ts' + ); + + const sdkFiles = files.map(fileName => { + return { + fileName: fileName, + pkgName: methods[0].pkgName, + classes: null, + sdkFunctionNames: methods + .filter(method => method.fileName === fileName) + .map(method => method.SDKFunctionName), + }; + }); + + await Promise.all( + sdkFiles.map(async file => { + file.classes = await getAST(file, true); + }) + ); + + const extractedData = await extractClassBasedSDKData( + methods, + sdkFiles + ).then(result => result); + const groupedMethods = groupers.gcp(extractedData.methods); + methods = filters.gcp(groupedMethods); + data.functions = methods; + data.classData = extractedData.classes; + data.serviceName = 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/' + + dir + + '/gcp-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/googleCloud/' + + dir + + '/gcp-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + printFile(filePath, output); } async function generateClientBasedCode(methods, serviceName) { - const files = Array.from( - new Set(methods.map(method => method.fileName + " " + method.version)) - ); - const sdkFiles = files.map(file => { - return { - fileName: (file).split(" ")[0], - version: (file).split(" ")[1], - pkgName: methods[0].pkgName, - ast: null, - client: null, - sdkFunctionNames: methods - .filter(method => method.fileName === (file).split(" ")[0]) - .map(method => method.SDKFunctionName) - }; - }); - - await Promise.all( - sdkFiles.map(async file => { - file.ast = await getAST(file); - }) - ); - - methods = await extractClientBasedSDKdata(methods, sdkFiles).then( - result => result - ); - const groupedMethods = groupers.gcp(methods); - methods = filters.gcp(groupedMethods); - - const classData = { - functions: 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/" + - dir + - "/gcp-" + - serviceName + - ".js"; - } else { - filePath = - process.cwd() + - "/generatedClasses/googleCloud/" + - dir + - "/gcp-" + - serviceName.charAt(0).toLowerCase() + - serviceName.slice(1) + - ".js"; - } - printFile(filePath, output); + const files = Array.from( + new Set(methods.map(method => method.fileName + ' ' + method.version)) + ); + const sdkFiles = files.map(file => { + return { + fileName: (file).split(' ')[0], + version: (file).split(' ')[1], + pkgName: methods[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods + .filter( + method => method.fileName === (file).split(' ')[0] + ) + .map(method => method.SDKFunctionName), + }; + }); + + await Promise.all( + sdkFiles.map(async file => { + file.ast = await getAST(file); + }) + ); + + methods = await extractClientBasedSDKdata(methods, sdkFiles).then( + result => result + ); + const groupedMethods = groupers.gcp(methods); + methods = filters.gcp(groupedMethods); + + const classData = { + functions: 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/' + + dir + + '/gcp-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/googleCloud/' + + dir + + '/gcp-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + printFile(filePath, output); } export async function generateGCPClass(serviceClass, serviceName) { - let methods: FunctionData[] = []; - const data: any = {}; - - Object.keys(serviceClass).map((key, index) => { - if (key === "mainClass") { - data.mainClass = serviceClass[key]; - } else if ( - serviceClass[key].split(" ")[1].length === 2 && - serviceClass[key].split(" ")[1].charAt(0) === "v" - ) { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - version: serviceClass[key].split(" ")[1], - fileName: serviceClass[key].split(" ")[2], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[3], - params: [], - returnType: null, - returnTypeName: null, - client: null - }); - } else { - methods.push({ - pkgName: serviceClass[key].split(" ")[0], - version: null, - fileName: serviceClass[key].split(" ")[1], - functionName: key, - SDKFunctionName: serviceClass[key].split(" ")[2], - params: [], - returnType: null, - returnTypeName: null, - client: null - }); - } - }); - - if (methods[0].version) { - generateClientBasedCode(methods, serviceName); - } else { - generateClassBasedCode(methods, data, serviceName); - } + const methods: FunctionData[] = []; + const data: any = {}; + + Object.keys(serviceClass).map((key, index) => { + if (key === 'mainClass') { + data.mainClass = serviceClass[key]; + } else if ( + serviceClass[key].split(' ')[1].length === 2 && + serviceClass[key].split(' ')[1].charAt(0) === 'v' + ) { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + version: serviceClass[key].split(' ')[1], + fileName: serviceClass[key].split(' ')[2], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[3], + params: [], + returnType: null, + returnTypeName: null, + client: null, + }); + } else { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + version: null, + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + returnTypeName: null, + client: null, + }); + } + }); + + if (methods[0].version) { + generateClientBasedCode(methods, serviceName); + } else { + generateClassBasedCode(methods, data, serviceName); + } } diff --git a/generator/generators/lib/aws/awsHelper.js b/generator/generators/lib/aws/awsHelper.js index e3a2f3fa..b43d982f 100644 --- a/generator/generators/lib/aws/awsHelper.js +++ b/generator/generators/lib/aws/awsHelper.js @@ -1,38 +1,38 @@ -"use strict"; +'use strict'; exports.__esModule = true; exports.filterAWSMethods = exports.groupAWSMethods = void 0; function groupAWSMethods(methods) { - var methodArr = Object.values( - methods.reduce(function(result, _a) { - var functionName = _a.functionName, - SDKFunctionName = _a.SDKFunctionName, - params = _a.params; - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName: functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName: functionName, - SDKFunctionName: SDKFunctionName, - params: params - }); - return result; - }, {}) - ); - return methodArr; + var methodArr = Object.values( + methods.reduce(function(result, _a) { + var functionName = _a.functionName, + SDKFunctionName = _a.SDKFunctionName, + params = _a.params; + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName: functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName: functionName, + SDKFunctionName: SDKFunctionName, + params: params, + }); + return result; + }, {}) + ); + return methodArr; } exports.groupAWSMethods = groupAWSMethods; function filterAWSMethods(groupedMethods) { - var methods = []; - groupedMethods.map(function(group) { - group.array.sort(function(a, b) { - return a.params.length - b.params.length; - }); - methods.push(group.array.slice(-1)[0]); - }); - return methods; + var methods = []; + groupedMethods.map(function(group) { + group.array.sort(function(a, b) { + return a.params.length - b.params.length; + }); + methods.push(group.array.slice(-1)[0]); + }); + return methods; } exports.filterAWSMethods = filterAWSMethods; diff --git a/generator/generators/lib/aws/awsHelper.ts b/generator/generators/lib/aws/awsHelper.ts index 7cfe04de..13ddcd09 100644 --- a/generator/generators/lib/aws/awsHelper.ts +++ b/generator/generators/lib/aws/awsHelper.ts @@ -1,32 +1,32 @@ export function groupAWSMethods(methods): any { - const methodArr = Object.values( - methods.reduce((result, { functionName, SDKFunctionName, params }) => { - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName, - SDKFunctionName, - params - }); - return result; - }, {}) - ); + const methodArr = Object.values( + methods.reduce((result, { functionName, SDKFunctionName, params }) => { + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName, + SDKFunctionName, + params, + }); + return result; + }, {}) + ); - return methodArr; + return methodArr; } export function filterAWSMethods(groupedMethods): any { - let methods = []; - groupedMethods.map(group => { - group.array.sort(function(a, b) { - return a.params.length - b.params.length; - }); - methods.push(group.array.slice(-1)[0]); - }); - return methods; + const methods = []; + groupedMethods.map(group => { + group.array.sort(function(a, b) { + return a.params.length - b.params.length; + }); + methods.push(group.array.slice(-1)[0]); + }); + return methods; } diff --git a/generator/generators/lib/azure/azureHelper.js b/generator/generators/lib/azure/azureHelper.js index 3956a128..38e14b07 100644 --- a/generator/generators/lib/azure/azureHelper.js +++ b/generator/generators/lib/azure/azureHelper.js @@ -1,60 +1,60 @@ -"use strict"; +'use strict'; exports.__esModule = true; exports.filterAzureMethods = exports.groupAzureMethods = void 0; function groupAzureMethods(methods) { - var methodArr = Object.values( - methods.reduce(function(result, _a) { - var functionName = _a.functionName, - SDKFunctionName = _a.SDKFunctionName, - params = _a.params, - pkgName = _a.pkgName, - fileName = _a.fileName, - client = _a.client, - returnType = _a.returnType; - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName: functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName: functionName, - SDKFunctionName: SDKFunctionName, - params: params, - pkgName: pkgName, - fileName: fileName, - client: client, - returnType: returnType - }); - return result; - }, {}) - ); - return methodArr; + var methodArr = Object.values( + methods.reduce(function(result, _a) { + var functionName = _a.functionName, + SDKFunctionName = _a.SDKFunctionName, + params = _a.params, + pkgName = _a.pkgName, + fileName = _a.fileName, + client = _a.client, + returnType = _a.returnType; + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName: functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName: functionName, + SDKFunctionName: SDKFunctionName, + params: params, + pkgName: pkgName, + fileName: fileName, + client: client, + returnType: returnType, + }); + return result; + }, {}) + ); + return methodArr; } exports.groupAzureMethods = groupAzureMethods; function filterAzureMethods(groupedMethods) { - var methods = []; - groupedMethods.map(function(group) { - if (group.array.length === 1) { - methods.push(group.array[0]); - } else { - var methodPushed_1 = false; - group.array.map(function(method) { - if ( - !method.params.find(function(param) { - return param.name === "callback"; - }) - ) { - methods.push(method); - methodPushed_1 = true; - } - }); - if (!methodPushed_1) { - methods.push(group.array[0]); - } - } - }); - return methods; + var methods = []; + groupedMethods.map(function(group) { + if (group.array.length === 1) { + methods.push(group.array[0]); + } else { + var methodPushed_1 = false; + group.array.map(function(method) { + if ( + !method.params.find(function(param) { + return param.name === 'callback'; + }) + ) { + methods.push(method); + methodPushed_1 = true; + } + }); + if (!methodPushed_1) { + methods.push(group.array[0]); + } + } + }); + return methods; } exports.filterAzureMethods = filterAzureMethods; diff --git a/generator/generators/lib/azure/azureHelper.ts b/generator/generators/lib/azure/azureHelper.ts index dc066724..d9d752db 100644 --- a/generator/generators/lib/azure/azureHelper.ts +++ b/generator/generators/lib/azure/azureHelper.ts @@ -1,60 +1,60 @@ export function groupAzureMethods(methods): any { - const methodArr = Object.values( - methods.reduce( - ( - result, - { - functionName, - SDKFunctionName, - params, - pkgName, - fileName, - client, - returnType - } - ) => { - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName, - SDKFunctionName, - params, - pkgName, - fileName, - client, - returnType - }); - return result; - }, - {} - ) - ); + const methodArr = Object.values( + methods.reduce( + ( + result, + { + functionName, + SDKFunctionName, + params, + pkgName, + fileName, + client, + returnType, + } + ) => { + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName, + SDKFunctionName, + params, + pkgName, + fileName, + client, + returnType, + }); + return result; + }, + {} + ) + ); - return methodArr; + return methodArr; } export function filterAzureMethods(groupedMethods): any { - let methods = []; - groupedMethods.map(group => { - if (group.array.length === 1) { - methods.push(group.array[0]); - } else { - let methodPushed = false; - group.array.map(method => { - if (!method.params.find(param => param.name === "callback")) { - methods.push(method); - methodPushed = true; - } - }); - if (!methodPushed) { - methods.push(group.array[0]); - } - } - }); - return methods; + const methods = []; + groupedMethods.map(group => { + if (group.array.length === 1) { + methods.push(group.array[0]); + } else { + let methodPushed = false; + group.array.map(method => { + if (!method.params.find(param => param.name === 'callback')) { + methods.push(method); + methodPushed = true; + } + }); + if (!methodPushed) { + methods.push(group.array[0]); + } + } + }); + return methods; } diff --git a/generator/generators/lib/googleCloud/gcpHelper.js b/generator/generators/lib/googleCloud/gcpHelper.js index 90353fc4..3a8caddd 100644 --- a/generator/generators/lib/googleCloud/gcpHelper.js +++ b/generator/generators/lib/googleCloud/gcpHelper.js @@ -1,64 +1,64 @@ -"use strict"; +'use strict'; exports.__esModule = true; exports.filterGCPMethods = exports.groupGCPMethods = void 0; function groupGCPMethods(methods) { - var methodArr = Object.values( - methods.reduce(function(result, _a) { - var functionName = _a.functionName, - SDKFunctionName = _a.SDKFunctionName, - params = _a.params, - pkgName = _a.pkgName, - fileName = _a.fileName, - client = _a.client, - returnType = _a.returnType, - returnTypeName = _a.returnTypeName, - classConstructorData = _a.classConstructorData; - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName: functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName: functionName, - SDKFunctionName: SDKFunctionName, - params: params, - pkgName: pkgName, - fileName: fileName, - client: client, - returnType: returnType, - returnTypeName: returnTypeName, - classConstructorData: classConstructorData - }); - return result; - }, {}) - ); - return methodArr; + var methodArr = Object.values( + methods.reduce(function(result, _a) { + var functionName = _a.functionName, + SDKFunctionName = _a.SDKFunctionName, + params = _a.params, + pkgName = _a.pkgName, + fileName = _a.fileName, + client = _a.client, + returnType = _a.returnType, + returnTypeName = _a.returnTypeName, + classConstructorData = _a.classConstructorData; + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName: functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName: functionName, + SDKFunctionName: SDKFunctionName, + params: params, + pkgName: pkgName, + fileName: fileName, + client: client, + returnType: returnType, + returnTypeName: returnTypeName, + classConstructorData: classConstructorData, + }); + return result; + }, {}) + ); + return methodArr; } exports.groupGCPMethods = groupGCPMethods; function filterGCPMethods(groupedMethods) { - var methods = []; - groupedMethods.map(function(group) { - if (group.array.length === 1) { - methods.push(group.array[0]); - } else { - var methodPushed_1 = false; - group.array.map(function(method) { - if ( - !method.params.find(function(param) { - return param.name === "callback"; - }) - ) { - methods.push(method); - methodPushed_1 = true; - } - }); - if (!methodPushed_1) { - methods.push(group.array[0]); - } - } - }); - return methods; + var methods = []; + groupedMethods.map(function(group) { + if (group.array.length === 1) { + methods.push(group.array[0]); + } else { + var methodPushed_1 = false; + group.array.map(function(method) { + if ( + !method.params.find(function(param) { + return param.name === 'callback'; + }) + ) { + methods.push(method); + methodPushed_1 = true; + } + }); + if (!methodPushed_1) { + methods.push(group.array[0]); + } + } + }); + return methods; } exports.filterGCPMethods = filterGCPMethods; diff --git a/generator/generators/lib/googleCloud/gcpHelper.ts b/generator/generators/lib/googleCloud/gcpHelper.ts index 2b93f726..ee196b45 100644 --- a/generator/generators/lib/googleCloud/gcpHelper.ts +++ b/generator/generators/lib/googleCloud/gcpHelper.ts @@ -1,64 +1,64 @@ export function groupGCPMethods(methods): any { - const methodArr = Object.values( - methods.reduce( - ( - result, - { - functionName, - SDKFunctionName, - params, - pkgName, - fileName, - client, - returnType, - returnTypeName, - classConstructorData - } - ) => { - // Create new group - if (!result[functionName]) - result[functionName] = { - functionName, - array: [] - }; - // Append to group - result[functionName].array.push({ - functionName, - SDKFunctionName, - params, - pkgName, - fileName, - client, - returnType, - returnTypeName, - classConstructorData - }); - return result; - }, - {} - ) - ); + const methodArr = Object.values( + methods.reduce( + ( + result, + { + functionName, + SDKFunctionName, + params, + pkgName, + fileName, + client, + returnType, + returnTypeName, + classConstructorData, + } + ) => { + // Create new group + if (!result[functionName]) + result[functionName] = { + functionName, + array: [], + }; + // Append to group + result[functionName].array.push({ + functionName, + SDKFunctionName, + params, + pkgName, + fileName, + client, + returnType, + returnTypeName, + classConstructorData, + }); + return result; + }, + {} + ) + ); - return methodArr; + return methodArr; } export function filterGCPMethods(groupedMethods): any { - let methods = []; - groupedMethods.map(group => { - if (group.array.length === 1) { - methods.push(group.array[0]); - } else { - let methodPushed = false; - group.array.map(method => { - if (!method.params.find(param => param.name === "callback")) { - methods.push(method); - methodPushed = true; - } - }); - if (!methodPushed) { - methods.push(group.array[0]); - } - } - }); - return methods; + const methods = []; + groupedMethods.map(group => { + if (group.array.length === 1) { + methods.push(group.array[0]); + } else { + let methodPushed = false; + group.array.map(method => { + if (!method.params.find(param => param.name === 'callback')) { + methods.push(method); + methodPushed = true; + } + }); + if (!methodPushed) { + methods.push(group.array[0]); + } + } + }); + return methods; } diff --git a/generator/generators/lib/helper.js b/generator/generators/lib/helper.js index 5cdd24ce..7cc5b17e 100644 --- a/generator/generators/lib/helper.js +++ b/generator/generators/lib/helper.js @@ -1,47 +1,51 @@ -"use strict"; +'use strict'; exports.__esModule = true; -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"); -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"); +exports.groupers = exports.getDir = exports.filters = exports.printFile = void 0; +var fs = require('fs'); +var awsHelper_1 = require('../lib/aws/awsHelper'); +var awsHelper_2 = require('../lib/aws/awsHelper'); +var azureHelper_1 = require('../lib/azure/azureHelper'); +var azureHelper_2 = require('../lib/azure/azureHelper'); +var gcpHelper_1 = require('../lib/googleCloud/gcpHelper'); +var gcpHelper_2 = require('../lib/googleCloud/gcpHelper'); 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"] + 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'], + firewalls: ['Firewalls'], + images: ['Images'], + blockchain: ['BlockChain'], + devops: ['Devops'], }; function printFile(fileName, data) { - fs.writeFile(fileName, data, function(err) { - if (err) throw err; - }); + fs.writeFile(fileName, data, function(err) { + if (err) throw err; + }); } exports.printFile = printFile; var groupers = { - aws: awsHelper_1.groupAWSMethods, - gcp: gcpHelper_1.groupGCPMethods, - azure: azureHelper_1.groupAzureMethods + aws: awsHelper_1.groupAWSMethods, + gcp: gcpHelper_1.groupGCPMethods, + azure: azureHelper_1.groupAzureMethods, }; exports.groupers = groupers; var filters = { - aws: awsHelper_2.filterAWSMethods, - gcp: gcpHelper_2.filterGCPMethods, - azure: azureHelper_2.filterAzureMethods + aws: awsHelper_2.filterAWSMethods, + gcp: gcpHelper_2.filterGCPMethods, + 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); + 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 31c67b7c..c0d7ce26 100644 --- a/generator/generators/lib/helper.ts +++ b/generator/generators/lib/helper.ts @@ -1,48 +1,52 @@ -import * as fs from "fs"; +import * as fs from 'fs'; -import { groupAWSMethods } from "../lib/aws/awsHelper"; -import { filterAWSMethods } from "../lib/aws/awsHelper"; -import { groupAzureMethods } from "../lib/azure/azureHelper"; -import { filterAzureMethods } from "../lib/azure/azureHelper"; -import { groupGCPMethods } from "../lib/googleCloud/gcpHelper"; -import { filterGCPMethods } from "../lib/googleCloud/gcpHelper"; +import { groupAWSMethods } from '../lib/aws/awsHelper'; +import { filterAWSMethods } from '../lib/aws/awsHelper'; +import { groupAzureMethods } from '../lib/azure/azureHelper'; +import { filterAzureMethods } from '../lib/azure/azureHelper'; +import { groupGCPMethods } from '../lib/googleCloud/gcpHelper'; +import { filterGCPMethods } from '../lib/googleCloud/gcpHelper'; 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"] + 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'], + firewalls: ['Firewalls'], + images: ['Images'], + blockchain: ['BlockChain'], + devops: ['Devops'], }; export function printFile(fileName, data) { - fs.writeFile(fileName, data, function(err) { - if (err) throw err; - }); + fs.writeFile(fileName, data, function(err) { + if (err) throw err; + }); } const groupers = { - aws: groupAWSMethods, - gcp: groupGCPMethods, - azure: groupAzureMethods + aws: groupAWSMethods, + gcp: groupGCPMethods, + azure: groupAzureMethods, }; const filters = { - aws: filterAWSMethods, - gcp: filterGCPMethods, - azure: filterAzureMethods + aws: filterAWSMethods, + gcp: filterGCPMethods, + azure: filterAzureMethods, }; const getDir = (service: string): string => { - for (let dir in dirMap) { - if (dirMap[dir].includes(service)) { - return dir; - } - } - throw new Error("Not a valid service: " + service); + for (const dir in dirMap) { + if (dirMap[dir].includes(service)) { + return dir; + } + } + throw new Error('Not a valid service: ' + service); }; -export { filters, getDir,groupers }; +export { filters, getDir, groupers }; diff --git a/generator/generators/linode/generator.js b/generator/generators/linode/generator.js new file mode 100644 index 00000000..83c2fe13 --- /dev/null +++ b/generator/generators/linode/generator.js @@ -0,0 +1,387 @@ +'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.generateLinodeClass = exports.getFunctions = exports.extractSDKData = void 0; +var fs = require('fs'); +var typescript_1 = require('typescript'); +var parser_1 = require('../../parsers/linode/parser'); +var transformer_1 = require('../../transformers/linode/transformer'); +var helper_1 = require('../lib/helper'); +var dummyFile = process.cwd() + '/dummyClasses/linode.js'; +var dummyAst = typescript_1.createSourceFile( + dummyFile, + fs.readFileSync(dummyFile).toString(), + typescript_1.ScriptTarget.Latest, + true +); +function extractSDKData(sdkAst, serviceClass) { + var methods = []; + var functions = []; + Object.keys(serviceClass).map(function(key, index) { + functions.push(serviceClass[key].split(' ')[2]); + }); + sdkAst.map(function(method) { + var methodName = method.name.escapedText; + if (methodName && functions.includes(methodName)) { + var name_1; + Object.keys(serviceClass).map(function(key, index) { + if (serviceClass[key].split(' ')[2] === methodName) { + name_1 = key; + } + }); + var parameters_1 = []; + var methodParameters = method.type.parameters; + methodParameters.map(function(param) { + if (!param.name.elements && param.name.text !== 'callback') { + var parameter = { + name: param.name.text, + optional: param.questionToken ? true : false, + type: typescript_1.SyntaxKind[param.type.kind], + typeName: null, + }; + // common type + if (param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + parameters_1.push(parameter); + } else if (param.name.elements) { + var parameter = { + name: + '{' + + param.name.elements[0].name.text + + ',' + + param.name.elements[1].name.text + + '}', + optional: param.questionToken ? true : false, + type: typescript_1.SyntaxKind[param.type.kind], + typeName: null, + }; + if (param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + parameters_1.push(parameter); + } + }); + methods.push({ + functionName: name_1.toString(), + SDKFunctionName: methodName, + params: parameters_1, + }); + } + }); + return methods; +} +exports.extractSDKData = extractSDKData; +function getFunctions(sdkFiles, serviceClass) { + return __awaiter(this, void 0, void 0, function() { + var functionsArray; + var _this = this; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + functionsArray = []; + return [ + 4 /*yield*/, + sdkFiles.map(function(file) { + return __awaiter(_this, void 0, void 0, function() { + var _this = this; + return __generator(this, function(_a) { + parser_1 + .getAST(file) + .then(function(result) { + return __awaiter( + _this, + void 0, + void 0, + function() { + var sdkAst, functions; + return __generator( + this, + function(_a) { + sdkAst = result; + try { + functions = extractSDKData( + sdkAst, + serviceClass + ); + functions.map( + function( + method, + index + ) { + functionsArray.push( + method + ); + } + ); + } catch (e) { + console.error( + e + ); + } + return [ + 2 /*return*/, + ]; + } + ); + } + ); + }); + return [2 /*return*/]; + }); + }); + }), + ]; + case 1: + _a.sent(); + return [2 /*return*/, functionsArray]; + } + }); + }); +} +exports.getFunctions = getFunctions; +function generateLinodeClass(serviceClass, serviceName) { + return __awaiter(this, void 0, void 0, function() { + var methods_1, + files, + sdkFiles, + functionsArray, + classData, + output, + dir, + filePath, + e_1; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 3, , 4]); + methods_1 = []; + if (serviceClass == null) return [2 /*return*/]; + Object.keys(serviceClass).map(function(key, index) { + methods_1.push({ + pkgName: serviceClass[key].split(' ')[0], + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + client: null, + }); + }); + files = Array.from( + new Set( + methods_1.map(function(method) { + return method.fileName; + }) + ) + ); + sdkFiles = files.map(function(file) { + return { + fileName: file, + pkgName: methods_1[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods_1 + .filter(function(method) { + return method.fileName === file; + }) + .map(function(method) { + return method.SDKFunctionName; + }), + }; + }); + return [4 /*yield*/, getFunctions(sdkFiles, serviceClass)]; + case 1: + functionsArray = _a.sent(); + classData = { + className: serviceName + 'LinodeClass', + functions: functionsArray, + serviceName: serviceName, + }; + return [ + 4 /*yield*/, + transformer_1.transform(dummyAst, classData), + ]; + case 2: + output = _a.sent(); + dir = helper_1.getDir(serviceName); + filePath = void 0; + if ( + !fs.existsSync( + process.cwd() + '/generatedClasses/Linode/' + dir + ) + ) { + fs.mkdirSync( + process.cwd() + '/generatedClasses/Linode/' + dir + ); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + '/generatedClasses/Linode/' + + dir + + '/linode-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Linode/' + + dir + + '/linode-' + + 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.generateLinodeClass = generateLinodeClass; diff --git a/generator/generators/linode/generator.ts b/generator/generators/linode/generator.ts new file mode 100644 index 00000000..a49ade61 --- /dev/null +++ b/generator/generators/linode/generator.ts @@ -0,0 +1,202 @@ +import * as fs from 'fs'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; + +import { getAST } from '../../parsers/linode/parser'; +import { transform } from '../../transformers/linode/transformer'; +import { getDir, printFile } from '../lib/helper'; + +interface SDKClassData { + pkgName: string; + fileName: string; + functionName: string; + SDKFunctionName: string; + params: param[]; + returnType: string; + client: string; +} + +interface FunctionData { + functionName: string; + SDKFunctionName: string; + params: param[]; +} + +interface ClassData { + className: string; + functions: FunctionData[]; + serviceName: string; +} + +interface param { + name: string; + type: string; + typeName: string; + optional: boolean; +} + +const dummyFile = process.cwd() + '/dummyClasses/linode.js'; + +const dummyAst = createSourceFile( + dummyFile, + fs.readFileSync(dummyFile).toString(), + ScriptTarget.Latest, + true +); + +export function extractSDKData(sdkAst, serviceClass) { + const methods: FunctionData[] = []; + const functions = []; + + Object.keys(serviceClass).map((key, index) => { + functions.push(serviceClass[key].split(' ')[2]); + }); + + sdkAst.map(method => { + const methodName = method.name.escapedText; + if (methodName && functions.includes(methodName)) { + let name; + Object.keys(serviceClass).map((key, index) => { + if (serviceClass[key].split(' ')[2] === methodName) { + name = key; + } + }); + const parameters = []; + + const methodParameters = method.type.parameters; + + methodParameters.map(param => { + if (!param.name.elements && param.name.text !== 'callback') { + const parameter: param = { + name: param.name.text, + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + typeName: null, + }; + // common type + if (param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + parameters.push(parameter); + } else if (param.name.elements) { + const parameter: param = { + name: + '{' + + param.name.elements[0].name.text + + ',' + + param.name.elements[1].name.text + + '}', + optional: param.questionToken ? true : false, + type: SyntaxKind[param.type.kind], + typeName: null, + }; + if (param.type.typeName) { + parameter.typeName = param.type.typeName.text; + } + parameters.push(parameter); + } + }); + + methods.push({ + functionName: name.toString(), + SDKFunctionName: methodName, + params: parameters, + }); + } + }); + + return methods; +} + +export async function getFunctions(sdkFiles, serviceClass) { + const functionsArray: FunctionData[] = []; + await sdkFiles.map(async file => { + getAST(file).then(async result => { + const sdkAst = result; + try { + const functions: FunctionData[] = extractSDKData( + sdkAst, + serviceClass + ); + + functions.map((method, index) => { + functionsArray.push(method); + }); + } catch (e) { + console.error(e); + } + }); + }); + return functionsArray; +} + +export async function generateLinodeClass(serviceClass, serviceName) { + try { + const methods: SDKClassData[] = []; + if (serviceClass == null) return; + Object.keys(serviceClass).map((key, index) => { + methods.push({ + pkgName: serviceClass[key].split(' ')[0], + fileName: serviceClass[key].split(' ')[1], + functionName: key, + SDKFunctionName: serviceClass[key].split(' ')[2], + params: [], + returnType: null, + client: null, + }); + }); + + const files = Array.from( + new Set(methods.map(method => method.fileName)) + ); + + const sdkFiles = files.map(file => { + return { + fileName: file, + pkgName: methods[0].pkgName, + ast: null, + client: null, + sdkFunctionNames: methods + .filter(method => method.fileName === file) + .map(method => method.SDKFunctionName), + }; + }); + const functionsArray: FunctionData[] = await getFunctions( + sdkFiles, + serviceClass + ); + + const classData: ClassData = { + className: serviceName + 'LinodeClass', + functions: functionsArray, + serviceName: serviceName, + }; + + const output = await transform(dummyAst, classData); + const dir = getDir(serviceName); + let filePath; + if (!fs.existsSync(process.cwd() + '/generatedClasses/Linode/' + dir)) { + fs.mkdirSync(process.cwd() + '/generatedClasses/Linode/' + dir); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + '/generatedClasses/Linode/' + + dir + + '/linode-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Linode/' + + dir + + '/linode-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + printFile(filePath, output); + } catch (e) { + console.error(e); + } +} diff --git a/generator/generators/oracle/generator.js b/generator/generators/oracle/generator.js new file mode 100644 index 00000000..35c2323a --- /dev/null +++ b/generator/generators/oracle/generator.js @@ -0,0 +1,276 @@ +'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.generateOracleClass = exports.extractSDKData = void 0; +var fs = require('fs'); +var typescript_1 = require('typescript'); +var parser_1 = require('../../parsers/oracle/parser'); +var transformer_1 = require('../../transformers/oracle/transformer'); +var helper_1 = require('../lib/helper'); +var dummyFile = process.cwd() + '/dummyClasses/oracle.js'; +var dummyAst = typescript_1.createSourceFile( + dummyFile, + 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.right.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 generateOracleClass(serviceClass, serviceName) { + var _this = this; + var multi = false; + var className = ''; + var sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(' ')[0]; + if (serviceClass[Object.keys(serviceClass)[0]].split(' ').length > 2) { + multi = true; + className = serviceClass[Object.keys(serviceClass)[0]].split(' ')[2]; + } + parser_1.getAST(sdkFile, multi, className).then(function(result) { + return __awaiter(_this, void 0, void 0, function() { + var sdkClassAst, classData, output, filePath, dir, error_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/Oracle/' + + dir + ) + ) { + fs.mkdirSync( + process.cwd() + + '/generatedClasses/Oracle/' + + dir + ); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + '/generatedClasses/Oracle/' + + dir + + '/oci-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Oracle/' + + dir + + '/oci-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + helper_1.printFile(filePath, output); + return [3 /*break*/, 4]; + case 3: + error_1 = _a.sent(); + console.error(error_1); + return [3 /*break*/, 4]; + case 4: + return [2 /*return*/]; + } + }); + }); + }); +} +exports.generateOracleClass = generateOracleClass; diff --git a/generator/generators/oracle/generator.ts b/generator/generators/oracle/generator.ts new file mode 100644 index 00000000..a63dedde --- /dev/null +++ b/generator/generators/oracle/generator.ts @@ -0,0 +1,137 @@ +import * as fs from 'fs'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; + +import { getAST } from '../../parsers/oracle/parser'; +import { transform } from '../../transformers/oracle/transformer'; +import { getDir, printFile } 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/oracle.js'; + +const dummyAst = createSourceFile( + dummyFile, + fs.readFileSync(dummyFile).toString(), + ScriptTarget.Latest, + true +); + +export function extractSDKData(sdkClassAst, serviceClass) { + const 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.right.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 generateOracleClass(serviceClass, serviceName) { + let multi = false; + let className = ''; + const sdkFile = serviceClass[Object.keys(serviceClass)[0]].split(' ')[0]; + if (serviceClass[Object.keys(serviceClass)[0]].split(' ').length > 2) { + multi = true; + className = serviceClass[Object.keys(serviceClass)[0]].split(' ')[2]; + } + + getAST(sdkFile, multi, className).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/Oracle/' + dir + ) + ) { + fs.mkdirSync(process.cwd() + '/generatedClasses/Oracle/' + dir); + } + if (/^[A-Z]*$/.test(serviceName)) { + filePath = + process.cwd() + + '/generatedClasses/Oracle/' + + dir + + '/oci-' + + serviceName + + '.js'; + } else { + filePath = + process.cwd() + + '/generatedClasses/Oracle/' + + dir + + '/oci-' + + serviceName.charAt(0).toLowerCase() + + serviceName.slice(1) + + '.js'; + } + printFile(filePath, output); + } catch (error) { + console.error(error); + } + }); +} diff --git a/generator/main.js b/generator/main.js index 4f556141..5413f1e7 100644 --- a/generator/main.js +++ b/generator/main.js @@ -1,26 +1,50 @@ -"use strict"; +'use strict'; exports.__esModule = true; -var yaml = require("js-yaml"); -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"); +var fs = require('fs'); +var yaml = require('js-yaml'); +var generator_1 = require('./generators/aws/generator'); +var generator_2 = require('./generators/azure/generator'); +var generator_3 = require('./generators/do/generator'); +var generator_4 = require('./generators/googleCloud/generator'); +var generator_5 = require('./generators/linode/generator'); +var generator_6 = require('./generators/oracle/generator'); try { - var services_1 = yaml.safeLoad(fs.readFileSync("node-cloud.yml", "utf8")); - Object.keys(services_1).map(function(service, index) { - Object.keys(services_1[service]).map(function(provider, index1) { - if (provider === "Azure") { - generator_2.generateAzureClass(services_1[service][provider], service); - } else if (provider === "AWS") { - 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); - } - }); - }); + var services_1 = yaml.safeLoad(fs.readFileSync('node-cloud.yml', 'utf8')); + Object.keys(services_1).map(function(service, index) { + Object.keys(services_1[service]).map(function(provider, index1) { + if (provider === 'Azure') { + generator_2.generateAzureClass( + services_1[service][provider], + service + ); + } else if (provider === 'AWS') { + generator_1.generateAWSClass( + services_1[service][provider], + service + ); + } else if (provider === 'GCP') { + generator_4.generateGCPClass( + services_1[service][provider], + service + ); + } else if (provider == 'DO') { + generator_3.generateDOClass( + services_1[service][provider], + service + ); + } else if (provider == 'Oracle') { + generator_6.generateOracleClass( + services_1[service][provider], + service + ); + } else if (provider == 'Linode') { + generator_5.generateLinodeClass( + services_1[service][provider], + service + ); + } + }); + }); } catch (error) { - console.error("Error : ", error); + console.error('Error : ', error); } diff --git a/generator/main.ts b/generator/main.ts index 5374718c..f0d1bee8 100644 --- a/generator/main.ts +++ b/generator/main.ts @@ -1,26 +1,32 @@ -import * as fs from "fs"; -import * as yaml from "js-yaml"; +import * as fs from 'fs'; +import * as yaml from 'js-yaml'; -import { generateAWSClass } from "./generators/aws/generator"; -import { generateAzureClass } from "./generators/azure/generator"; -import { generateDOClass } from "./generators/do/generator"; -import { generateGCPClass } from "./generators/googleCloud/generator"; +import { generateAWSClass } from './generators/aws/generator'; +import { generateAzureClass } from './generators/azure/generator'; +import { generateDOClass } from './generators/do/generator'; +import { generateGCPClass } from './generators/googleCloud/generator'; +import { generateLinodeClass } from './generators/linode/generator'; +import { generateOracleClass } from './generators/oracle/generator'; try { - const services = yaml.safeLoad(fs.readFileSync("node-cloud.yml", "utf8")); - Object.keys(services).map((service, index) => { - Object.keys(services[service]).map((provider, index1) => { - if (provider === "Azure") { - generateAzureClass(services[service][provider], service); - } else if (provider === "AWS") { - generateAWSClass(services[service][provider], service); - } else if (provider === "GCP") { - generateGCPClass(services[service][provider], service); - } else if (provider == "DO") { - generateDOClass(services[service][provider], service); - } - }); - }); + const services = yaml.safeLoad(fs.readFileSync('node-cloud.yml', 'utf8')); + Object.keys(services).map((service, index) => { + Object.keys(services[service]).map((provider, index1) => { + if (provider === 'Azure') { + generateAzureClass(services[service][provider], service); + } else if (provider === 'AWS') { + generateAWSClass(services[service][provider], service); + } else if (provider === 'GCP') { + generateGCPClass(services[service][provider], service); + } else if (provider == 'DO') { + generateDOClass(services[service][provider], service); + } else if (provider == 'Oracle') { + generateOracleClass(services[service][provider], service); + } else if (provider == 'Linode') { + generateLinodeClass(services[service][provider], service); + } + }); + }); } catch (error) { - console.error("Error : ", error); + console.error('Error : ', error); } diff --git a/generator/node-cloud.yml b/generator/node-cloud.yml index 88d97d24..1dccca6b 100644 --- a/generator/node-cloud.yml +++ b/generator/node-cloud.yml @@ -1,365 +1,550 @@ ComputeInstance: - AWS: - create: ec2.d.ts runInstances - list: ec2.d.ts describeInstances - start: ec2.d.ts startInstances - stop: ec2.d.ts stopInstances - reboot: ec2.d.ts rebootInstances - destroy: ec2.d.ts terminateInstances - monitor: ec2.d.ts monitorInstances - unmonitor: ec2.d.ts unmonitorInstances - addTags: ec2.d.ts createTags - Azure: - create: arm-compute virtualMachines.d.ts createOrUpdate - list: arm-compute virtualMachines.d.ts list - start: arm-compute virtualMachines.d.ts start - stop: arm-compute virtualMachines.d.ts powerOff - 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 + AWS: + create: ec2.d.ts runInstances + list: ec2.d.ts describeInstances + start: ec2.d.ts startInstances + stop: ec2.d.ts stopInstances + reboot: ec2.d.ts rebootInstances + destroy: ec2.d.ts terminateInstances + monitor: ec2.d.ts monitorInstances + unmonitor: ec2.d.ts unmonitorInstances + addTags: ec2.d.ts createTags + Azure: + create: arm-compute virtualMachines.d.ts createOrUpdate + list: arm-compute virtualMachines.d.ts list + start: arm-compute virtualMachines.d.ts start + stop: arm-compute virtualMachines.d.ts powerOff + 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 requestActio + Linode: + create: linodes linodes.d.ts createLinode + list: linodes linodes.d.ts getLinodes + update: linodes linodes.d.ts updateLinode + delete: linodes linodes.d.ts deleteLinode + clone: linodes linodes.d.ts cloneLinode + Oracle: + getAll: containerinstances getContainer + update: containerinstances updateContainer + list: containerinstances listContainers + create: containerinstances createContainerInstance + delete: containerinstances deleteContainerInstance + get: containerinstances getContainerInstance + restart: containerinstances restartContainerInstance + start: containerinstances startContainerInstance + stop: containerinstances stopContainerInstance StorageBucket: - AWS: - create: s3.d.ts createBucket - delete: s3.d.ts deleteBucket - list: s3.d.ts listBuckets - upload: s3.d.ts uploadPart - deleteFiles: s3.d.ts deleteObjects - Azure: - create: arm-storage blobContainers.d.ts create - delete: arm-storage blobContainers.d.ts deleteMethod - list: arm-storage blobContainers.d.ts list - GCP: - mainClass: Storage - create: storage storage.d.ts createBucket - deleteFiles: storage bucket.d.ts deleteFiles - delete: storage bucket.d.ts delete - list: storage storage.d.ts getBuckets - upload: storage bucket.d.ts upload - makePublic: storage file.d.ts makePublic + AWS: + create: s3.d.ts createBucket + delete: s3.d.ts deleteBucket + list: s3.d.ts listBuckets + upload: s3.d.ts uploadPart + deleteFiles: s3.d.ts deleteObjects + Azure: + create: arm-storage blobContainers.d.ts create + delete: arm-storage blobContainers.d.ts deleteMethod + list: arm-storage blobContainers.d.ts list + GCP: + mainClass: Storage + create: storage storage.d.ts createBucket + deleteFiles: storage bucket.d.ts deleteFiles + delete: storage bucket.d.ts delete + list: storage storage.d.ts getBuckets + upload: storage bucket.d.ts upload + makePublic: storage file.d.ts makePublic + Linode: + create: object-storage buckets.d.ts createBucket + get: object-storage buckets.d.ts getBucket + list: object-storage buckets.d.ts getBuckets + delete: object-storage buckets.d.ts deleteBucket + getBucketAccess: object-storage buckets.d.ts getBucketAccess + updateBucketAccess: object-storage buckets.d.ts updateBucketAccess + Oracle: + create: objectstorage createBucket + delete: objectstorage deleteBucket + get: objectstorage getBucket + list: objectstorage listBuckets + reencrypt: objectstorage reencryptBucket PaaS: - AWS: - create: elasticbeanstalk.d.ts createApplication - update: elasticbeanstalk.d.ts updateApplication - describe: elasticbeanstalk.d.ts describeApplications - delete: elasticbeanstalk.d.ts deleteApplication - restart: elasticbeanstalk.d.ts restartAppServer - createEnvironment: elasticbeanstalk.d.ts createEnvironment - updateEnvironment: elasticbeanstalk.d.ts updateEnvironment - createConfigTemplate: elasticbeanstalk.d.ts createConfigurationTemplate - describeConfigSettings: elasticbeanstalk.d.ts describeConfigurationSettings - listVersions: elasticbeanstalk.d.ts listPlatformVersions - deleteConfigTemplate: elasticbeanstalk.d.ts deleteConfigurationTemplate - describeAccountAttributes: elasticbeanstalk.d.ts describeAccountAttributes - composeEnvironments: elasticbeanstalk.d.ts composeEnvironments - checkDNSAvailability: elasticbeanstalk.d.ts checkDNSAvailability - terminateEnvironment: elasticbeanstalk.d.ts terminateEnvironment - createStorageLocation: elasticbeanstalk.d.ts createStorageLocation - Azure: - create: arm-appservice webApps.d.ts createOrUpdate - update: arm-appservice webApps.d.ts update - describe: arm-appservice webApps.d.ts get - delete: arm-appservice webApps.d.ts deleteMethod - restart: arm-appservice webApps.d.ts restart - createEnvironment: arm-appservice appServiceEnvironments.d.ts createOrUpdate - updateEnvironment: arm-appservice appServiceEnvironments.d.ts update - createConfigTemplate: arm-appservice webApps.d.ts createOrUpdateSlot - describeConfigSettings: arm-appservice webApps.d.ts getSlot - deleteConfigTemplate: arm-appservice webApps.d.ts deleteSlot - checkDNSAvailability: arm-appservice domains.d.ts checkAvailability - terminateEnvironment: arm-appservice appServiceEnvironments.d.ts deleteMethod + AWS: + create: elasticbeanstalk.d.ts createApplication + update: elasticbeanstalk.d.ts updateApplication + describe: elasticbeanstalk.d.ts describeApplications + delete: elasticbeanstalk.d.ts deleteApplication + restart: elasticbeanstalk.d.ts restartAppServer + createEnvironment: elasticbeanstalk.d.ts createEnvironment + updateEnvironment: elasticbeanstalk.d.ts updateEnvironment + createConfigTemplate: elasticbeanstalk.d.ts createConfigurationTemplate + describeConfigSettings: elasticbeanstalk.d.ts describeConfigurationSettings + listVersions: elasticbeanstalk.d.ts listPlatformVersions + deleteConfigTemplate: elasticbeanstalk.d.ts deleteConfigurationTemplate + describeAccountAttributes: elasticbeanstalk.d.ts describeAccountAttributes + composeEnvironments: elasticbeanstalk.d.ts composeEnvironments + checkDNSAvailability: elasticbeanstalk.d.ts checkDNSAvailability + terminateEnvironment: elasticbeanstalk.d.ts terminateEnvironment + createStorageLocation: elasticbeanstalk.d.ts createStorageLocation + Azure: + create: arm-appservice webApps.d.ts createOrUpdate + update: arm-appservice webApps.d.ts update + describe: arm-appservice webApps.d.ts get + delete: arm-appservice webApps.d.ts deleteMethod + restart: arm-appservice webApps.d.ts restart + createEnvironment: arm-appservice appServiceEnvironments.d.ts createOrUpdate + updateEnvironment: arm-appservice appServiceEnvironments.d.ts update + createConfigTemplate: arm-appservice webApps.d.ts createOrUpdateSlot + describeConfigSettings: arm-appservice webApps.d.ts getSlot + deleteConfigTemplate: arm-appservice webApps.d.ts deleteSlot + checkDNSAvailability: arm-appservice domains.d.ts checkAvailability + terminateEnvironment: arm-appservice appServiceEnvironments.d.ts deleteMethod Kubernetes: - Azure: - create: arm-containerservice managedClusters.d.ts createOrUpdate - delete: arm-containerservice managedClusters.d.ts deleteMethod - updateTags: arm-containerservice managedClusters.d.ts updateTags - listClusters: arm-containerservice managedClusters.d.ts list - describeCluster: arm-containerservice managedClusters.d.ts get - createNodeGroup: arm-containerservice agentPools.d.ts createOrUpdate - deleteNodegroup: arm-containerservice agentPools.d.ts deleteMethod - describeNodeGroup: arm-containerservice agentPools.d.ts get - listNodegroups: arm-containerservice agentPools.d.ts list - updateConfig: arm-containerservice managedClusters.d.ts rotateClusterCertificates - GCP: - create: container v1 cluster_manager_client.d.ts createCluster - delete: container v1 cluster_manager_client.d.ts deleteCluster - listClusters: container v1 cluster_manager_client.d.ts listClusters - describeCluster: container v1 cluster_manager_client.d.ts getCluster - createNodeGroup: container v1 cluster_manager_client.d.ts createNodePool - deleteNodegroup: container v1 cluster_manager_client.d.ts deleteNodePool - describeNodeGroup: container v1 cluster_manager_client.d.ts getNodePool - listNodegroups: container v1 cluster_manager_client.d.ts listNodePools - updateConfig: container v1 cluster_manager_client.d.ts setAddonsConfig - AWS: - create: eks.d.ts createCluster - delete: eks.d.ts deleteCluster - listClusters: eks.d.ts listClusters - describeCluster: eks.d.ts describeCluster - updateTags: eks.d.ts tagResource - createNodeGroup: eks.d.ts createNodegroup - deleteNodegroup: eks.d.ts deleteNodegroup - 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 + Azure: + create: arm-containerservice managedClusters.d.ts createOrUpdate + delete: arm-containerservice managedClusters.d.ts deleteMethod + updateTags: arm-containerservice managedClusters.d.ts updateTags + listClusters: arm-containerservice managedClusters.d.ts list + describeCluster: arm-containerservice managedClusters.d.ts get + createNodeGroup: arm-containerservice agentPools.d.ts createOrUpdate + deleteNodegroup: arm-containerservice agentPools.d.ts deleteMethod + describeNodeGroup: arm-containerservice agentPools.d.ts get + listNodegroups: arm-containerservice agentPools.d.ts list + updateConfig: arm-containerservice managedClusters.d.ts rotateClusterCertificates + GCP: + create: container v1 cluster_manager_client.d.ts createCluster + delete: container v1 cluster_manager_client.d.ts deleteCluster + listClusters: container v1 cluster_manager_client.d.ts listClusters + describeCluster: container v1 cluster_manager_client.d.ts getCluster + createNodeGroup: container v1 cluster_manager_client.d.ts createNodePool + deleteNodegroup: container v1 cluster_manager_client.d.ts deleteNodePool + describeNodeGroup: container v1 cluster_manager_client.d.ts getNodePool + listNodegroups: container v1 cluster_manager_client.d.ts listNodePools + updateConfig: container v1 cluster_manager_client.d.ts setAddonsConfig + AWS: + create: eks.d.ts createCluster + delete: eks.d.ts deleteCluster + listClusters: eks.d.ts listClusters + describeCluster: eks.d.ts describeCluster + updateTags: eks.d.ts tagResource + createNodeGroup: eks.d.ts createNodegroup + deleteNodegroup: eks.d.ts deleteNodegroup + 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 + Linode: + create: kubernetes kubernetes.d.ts createKubernetesCluster + delete: kubernetes kubernetes.d.ts deleteKubernetesCluster + getNodePool: kubernetes nodePools.d.ts getNodePool + getNodePools: kubernetes nodePools.d.ts getNodePools + createNodePool: kubernetes nodePools.d.ts createNodePool + updateNodePool: kubernetes nodePools.d.ts updateNodePool + deleteNodePool: kubernetes nodePools.d.ts deleteNodePool + getAllClusters: kubernetes kubernetes.d.ts getKubernetesClusters + Oracle: + create: containerengine createCluster + delete: containerengine deleteCluster + get: containerengine getCluster + update: containerengine updateCluster + list: containerengine listClusters + createNodePool: containerengine createNodePool + deleteNode: containerengine deleteNode + deleteNodePool: containerengine deleteNodePool + getNodePool: containerengine getNodePool + updateNodePool: containerengine updateNodePool Monitoring: - GCP: - createAlarm: monitoring v3 alert_policy_service_client.d.ts createAlertPolicy - deleteAlarm: monitoring v3 alert_policy_service_client.d.ts deleteAlertPolicy - updateAlarm: monitoring v3 alert_policy_service_client.d.ts updateAlertPolicy - listAlarms: monitoring v3 alert_policy_service_client.d.ts listAlertPolicies - getMetricData: monitoring v3 metric_service_client.d.ts getMetricDescriptor - projectPath: monitoring v3 alert_policy_service_client.d.ts projectPath - AWS: - createAlarm: cloudwatch.d.ts putMetricAlarm - deleteAlarm: cloudwatch.d.ts deleteAlarms - updateAlarm: cloudwatch.d.ts putMetricAlarm # same method for update - listAlarms: cloudwatch.d.ts listMetrics - getMetricData: cloudwatch.d.ts getMetricData - Azure: - createAlarm: arm-monitor alertRules.d.ts createOrUpdate - deleteAlarm: arm-monitor alertRules.d.ts deleteMethod - updateAlarm: arm-monitor alertRules.d.ts update - listAlarms: arm-monitor alertRules.d.ts listBySubscription - getMetricData: arm-monitor alertRules.d.ts get + GCP: + createAlarm: monitoring v3 alert_policy_service_client.d.ts createAlertPolicy + deleteAlarm: monitoring v3 alert_policy_service_client.d.ts deleteAlertPolicy + updateAlarm: monitoring v3 alert_policy_service_client.d.ts updateAlertPolicy + listAlarms: monitoring v3 alert_policy_service_client.d.ts listAlertPolicies + getMetricData: monitoring v3 metric_service_client.d.ts getMetricDescriptor + projectPath: monitoring v3 alert_policy_service_client.d.ts projectPath + AWS: + createAlarm: cloudwatch.d.ts putMetricAlarm + deleteAlarm: cloudwatch.d.ts deleteAlarms + updateAlarm: cloudwatch.d.ts putMetricAlarm # same method for update + listAlarms: cloudwatch.d.ts listMetrics + getMetricData: cloudwatch.d.ts getMetricData + Azure: + createAlarm: arm-monitor alertRules.d.ts createOrUpdate + deleteAlarm: arm-monitor alertRules.d.ts deleteMethod + updateAlarm: arm-monitor alertRules.d.ts update + listAlarms: arm-monitor alertRules.d.ts listBySubscription + getMetricData: arm-monitor alertRules.d.ts get + Linode: + getServices: managed managed.d.ts getServices + disableServiceMonitor: managed managed.d.ts disableServiceMonitor + enableServiceMonitor: managed managed.d.ts enableServiceMonitor + deleteServiceMonitor: managed managed.d.ts deleteServiceMonitor + createServiceMonitor: managed managed.d.ts createServiceMonitor + updateServiceMonitor: managed managed.d.ts updateServiceMonitor + getCredentials: managed managed.d.ts getCredentials + updateCredential: managed managed.d.ts updateCredential + deleteCredential: managed managed.d.ts deleteCredential Container: - AWS: - create: ecs.d.ts createCluster - delete: ecs.d.ts deleteCluster - describe: ecs.d.ts describeClusters - list: ecs.d.ts listClusters - Azure: - create: arm-containerservice containerServices.d.ts createOrUpdate - delete: arm-containerservice containerServices.d.ts deleteMethod - describe: arm-containerservice containerServices.d.ts get - list: arm-containerservice containerServices.d.ts list + AWS: + create: ecs.d.ts createCluster + delete: ecs.d.ts deleteCluster + describe: ecs.d.ts describeClusters + list: ecs.d.ts listClusters + Azure: + create: arm-containerservice containerServices.d.ts createOrUpdate + delete: arm-containerservice containerServices.d.ts deleteMethod + describe: arm-containerservice containerServices.d.ts get + list: arm-containerservice containerServices.d.ts list + Oracle: + create: containerinstances createContainerInstance + delete: containerinstances deleteContainerInstance + start: containerinstances startContainerInstance + stop: containerinstances stopContainerInstance + describe: containerinstances getContainer + list: containerinstances listContainers NoSqlIndexed: - AWS: - createCollection: SimpleDB.d.ts createDomain - deleteCollection: SimpleDB.d.ts deleteDomain - listCollections: SimpleDB.d.ts listDomains - batchDelete: SimpleDB.d.ts batchDeleteAttributes - batchWrite: SimpleDB.d.ts batchPutAttributes - query: SimpleDB.d.ts select - setAttribute: SimpleDB.d.ts putAttributes - deleteAttribute: SimpleDB.d.ts deleteAttributes - getAttributes: SimpleDB.d.ts getAttributes + AWS: + createCollection: SimpleDB.d.ts createDomain + deleteCollection: SimpleDB.d.ts deleteDomain + listCollections: SimpleDB.d.ts listDomains + batchDelete: SimpleDB.d.ts batchDeleteAttributes + batchWrite: SimpleDB.d.ts batchPutAttributes + query: SimpleDB.d.ts select + setAttribute: SimpleDB.d.ts putAttributes + deleteAttribute: SimpleDB.d.ts deleteAttributes + getAttributes: SimpleDB.d.ts getAttributes RDBMS: - AWS: - createDatabse: rds.d.ts createDBCluster - deleteDatabase: rds.d.ts deleteDBCluster - createSnapshots: rds.d.ts createDBSnapshot - modifyDB: rds.d.ts modifyDBCluster - restoreDatabase: rds.d.ts rebootDBInstance - deleteDBSnapshot: rds.d.ts deleteDBSnapshot - Azure: - createDatabse: arm-sql databases.d.ts createOrUpdate - deleteDatabase: arm-sql databases.d.ts deleteMethod - createSnapshots: arm-sql databases.d.ts exportMethod - modifyDB: arm-sql databases.d.ts update - restoreDatabase: arm-sql managedDatabases.d.ts completeRestore - GCP: - createDatabse: spanner v1 database_admin_client.d.ts createDatabase - deleteDatabase: spanner v1 database_admin_client.d.ts dropDatabase - createSnapshots: spanner v1 database_admin_client.d.ts createBackup - modifyDB: spanner v1 database_admin_client.d.ts updateDatabaseDdl - 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 + AWS: + createDatabse: rds.d.ts createDBCluster + deleteDatabase: rds.d.ts deleteDBCluster + createSnapshots: rds.d.ts createDBSnapshot + modifyDB: rds.d.ts modifyDBCluster + restoreDatabase: rds.d.ts rebootDBInstance + deleteDBSnapshot: rds.d.ts deleteDBSnapshot + Azure: + createDatabse: arm-sql databases.d.ts createOrUpdate + deleteDatabase: arm-sql databases.d.ts deleteMethod + createSnapshots: arm-sql databases.d.ts exportMethod + modifyDB: arm-sql databases.d.ts update + restoreDatabase: arm-sql managedDatabases.d.ts completeRestore + GCP: + createDatabse: spanner v1 database_admin_client.d.ts createDatabase + deleteDatabase: spanner v1 database_admin_client.d.ts dropDatabase + createSnapshots: spanner v1 database_admin_client.d.ts createBackup + modifyDB: spanner v1 database_admin_client.d.ts updateDatabaseDdl + 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 + Oracle: + createDBSystem: mysql createDbSystem DbSystemClient + deleteDBSystem: mysql deleteDbSystem DbSystemClient + getDBSystem: mysql getDbSystem DbSystemClient + restartDBSystem: mysql restartDbSystem DbSystemClient + startDBSystem: mysql startDbSystem DbSystemClient + stopDBSystem: mysql stopDbSystem DbSystemClient + updateDBSystem: mysql updateDbSystem DbSystemClient + Linode: + createDatabase: databases databases.d.ts createDatabase + updateDatabase: databases databases.d.ts updateDatabase + deleteDatabase: databases databases.d.ts deleteDatabase + getDatabases: databases databases.d.ts getDatabases + getDatabaseEngines: databases databases.d.ts getDatabaseEngines + getEngineDatabase: databases databases.d.ts getEngineDatabase NoSql: - AWS: - createTable: dynamodb.d.ts createTable - createItem: dynamodb.d.ts putItem - deleteItem: dynamodb.d.ts deleteItem - updateItem: dynamodb.d.ts updateItem - query: dynamodb.d.ts query - deleteTable: dynamodb.d.ts deleteTable - Azure: - createCollection: arm-cosmosdb tableResources.d.ts createUpdateTable - deleteCollection: arm-cosmosdb tableResources.d.ts deleteTable - listCollections: arm-cosmosdb tableResources.d.ts listTables - setAttribute: arm-cosmosdb tableResources.d.ts updateTableThroughput - getAttributes: arm-cosmosdb tableResources.d.ts getTable - GCP: - createItem: firestore v1 firestore_client.d.ts createDocument - 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 + AWS: + createTable: dynamodb.d.ts createTable + createItem: dynamodb.d.ts putItem + deleteItem: dynamodb.d.ts deleteItem + updateItem: dynamodb.d.ts updateItem + query: dynamodb.d.ts query + deleteTable: dynamodb.d.ts deleteTable + Azure: + createCollection: arm-cosmosdb tableResources.d.ts createUpdateTable + deleteCollection: arm-cosmosdb tableResources.d.ts deleteTable + listCollections: arm-cosmosdb tableResources.d.ts listTables + setAttribute: arm-cosmosdb tableResources.d.ts updateTableThroughput + getAttributes: arm-cosmosdb tableResources.d.ts getTable + GCP: + createItem: firestore v1 firestore_client.d.ts createDocument + 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 + Oracle: + createTable: nosql createTable + deleteTable: nosql deleteTable + getTable: nosql getTable + listTables: nosql listTables + updateTable: nosql updateTable + deleteRow: nosql deleteRow + getRow: nosql getRow + updateRow: nosql updateRow DNS: - AWS: - createZone: route53.d.ts createHostedZone - deleteZone: route53.d.ts deleteHostedZone - listZones: route53.d.ts listHostedZones - changeRecordSets: route53.d.ts changeResourceRecordSets - Azure: - createZone: arm-dns zones.d.ts createOrUpdate - deleteZone: arm-dns zones.d.ts deleteMethod - listZones: arm-dns zones.d.ts list - changeRecordSets: arm-dns recordSets.d.ts createOrUpdate - GCP: - mainClass: DNS - createZone: dns zone.d.ts create - deleteZone: dns zone.d.ts delete - 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 + AWS: + createZone: route53.d.ts createHostedZone + deleteZone: route53.d.ts deleteHostedZone + listZones: route53.d.ts listHostedZones + changeRecordSets: route53.d.ts changeResourceRecordSets + Azure: + createZone: arm-dns zones.d.ts createOrUpdate + deleteZone: arm-dns zones.d.ts deleteMethod + listZones: arm-dns zones.d.ts list + changeRecordSets: arm-dns recordSets.d.ts createOrUpdate + GCP: + mainClass: DNS + createZone: dns zone.d.ts create + deleteZone: dns zone.d.ts delete + 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 + Oracle: + create: dns createZone + delete: dns deleteZone + list: dns listZones + update: dns updateZone + Linode: + createDomain: domains domains.d.ts createDomain + updateDomain: domains domains.d.ts updateDomain + deleteDomain: domains domains.d.ts deleteDomain + cloneDomain: domains domains.d.ts cloneDomain + getDomain: domains domains.d.ts getDomain + getDomains: domains domains.d.ts getDomains LoadBalancer: - AWS: - create: elb.d.ts createLoadBalancer - delete: elb.d.ts deleteLoadBalancer - list: elb.d.ts describeLoadBalancers - addTags: elb.d.ts addTags - describe: elb.d.ts describeLoadBalancerAttributes - Azure: - create: arm-network loadBalancers.d.ts createOrUpdate - delete: arm-network loadBalancers.d.ts deleteMethod - 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 - + AWS: + create: elb.d.ts createLoadBalancer + delete: elb.d.ts deleteLoadBalancer + list: elb.d.ts describeLoadBalancers + addTags: elb.d.ts addTags + describe: elb.d.ts describeLoadBalancerAttributes + Azure: + create: arm-network loadBalancers.d.ts createOrUpdate + delete: arm-network loadBalancers.d.ts deleteMethod + 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 + Oracle: + create: loadbalancer createLoadBalancer + delete: loadbalancer deleteLoadBalancer + list: loadbalancer listLoadBalancers + update: loadbalancer updateLoadBalancer + get: loadbalancer getLoadBalancer + Linode: + create: nodebalancers nodebalancers.d.ts createNodeBalancer + delete: nodebalancers nodebalancers.d.ts deleteNodeBalancer + list: nodebalancers nodebalancers.d.ts getNodeBalancers + update: nodebalancers nodebalancers.d.ts updateNodeBalancer IAM: - AWS: - createGroup: iam.d.ts createGroup - deleteGroup: iam.d.ts deleteGroup - attachGroupPolicy: iam.d.ts attachGroupPolicy - detachGroupPolicy: iam.d.ts detachGroupPolicy - describe: iam.d.ts getGroup + AWS: + createGroup: iam.d.ts createGroup + deleteGroup: iam.d.ts deleteGroup + attachGroupPolicy: iam.d.ts attachGroupPolicy + detachGroupPolicy: iam.d.ts detachGroupPolicy + describe: iam.d.ts getGroup ArchivalStorage: - AWS: - create: glacier.d.ts createVault - delete: glacier.d.ts deleteVault - list: glacier.d.ts listParts - upload: glacier.d.ts initiateMultipartUpload - deleteFiles: glacier.d.ts deleteArchive - - GCP: - # Use storage class as coldline - mainClass: Storage - create: storage storage.d.ts createBucket - deleteFiles: storage bucket.d.ts deleteFiles - delete: storage bucket.d.ts delete - list: storage storage.d.ts getBuckets - upload: storage bucket.d.ts upload - makePublic: storage file.d.ts makePublic - + AWS: + create: glacier.d.ts createVault + delete: glacier.d.ts deleteVault + list: glacier.d.ts listParts + upload: glacier.d.ts initiateMultipartUpload + deleteFiles: glacier.d.ts deleteArchive + GCP: + # Use storage class as coldline + mainClass: Storage + create: storage storage.d.ts createBucket + deleteFiles: storage bucket.d.ts deleteFiles + delete: storage bucket.d.ts delete + list: storage storage.d.ts getBuckets + upload: storage bucket.d.ts upload + makePublic: storage file.d.ts makePublic + Oracle: + create: objectstorage createBucket + delete: objectstorage deleteBucket + list: objectstorage listBuckets + update: objectstorage updateBucket Translation: - AWS: - translate: translate.d.ts translateText - batchTranslate: translate.d.ts startTextTranslationJob - getGlossary: translate.d.ts getTerminology - createGlossary: translate.d.ts importTerminology - deleteGlossary: translate.d.ts deleteTerminology - GCP: - translate: translate v3 translation_service_client.d.ts translateText - batchTranslate: translate v3 translation_service_client.d.ts batchTranslateText - getGlossary: translate v3 translation_service_client.d.ts getGlossary - createGlossary: translate v3 translation_service_client.d.ts createGlossary - detectLanguage: translate v3 translation_service_client.d.ts detectLanguage + AWS: + translate: translate.d.ts translateText + batchTranslate: translate.d.ts startTextTranslationJob + getGlossary: translate.d.ts getTerminology + createGlossary: translate.d.ts importTerminology + deleteGlossary: translate.d.ts deleteTerminology + GCP: + translate: translate v3 translation_service_client.d.ts translateText + batchTranslate: translate v3 translation_service_client.d.ts batchTranslateText + getGlossary: translate v3 translation_service_client.d.ts getGlossary + createGlossary: translate v3 translation_service_client.d.ts createGlossary + detectLanguage: translate v3 translation_service_client.d.ts detectLanguage KeyManagement: - AWS: - createKey: kms.d.ts createKey - deleteKey: kms.d.ts deleteCustomKeyStore - update: kms.d.ts updateKeyDescription - describeKey: kms.d.ts describeKey - putKeyPolicy: kms.d.ts putKeyPolicy - Azure: - createKey: arm-keyvault vaults.d.ts createOrUpdate - deleteKey: arm-keyvault vaults.d.ts deleteMethod - update: arm-keyvault vaults.d.ts update - describeKey: arm-keyvault vaults.d.ts get - putKeyPolicy: arm-keyvault vaults.d.ts updateAccessPolicy - GCP: - createKey: kms v1 key_management_service_client.d.ts createCryptoKey - deleteKey: kms v1 key_management_service_client.d.ts destroyCryptoKeyVersion - 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 + AWS: + createKey: kms.d.ts createKey + deleteKey: kms.d.ts deleteCustomKeyStore + update: kms.d.ts updateKeyDescription + describeKey: kms.d.ts describeKey + putKeyPolicy: kms.d.ts putKeyPolicy + Azure: + createKey: arm-keyvault vaults.d.ts createOrUpdate + deleteKey: arm-keyvault vaults.d.ts deleteMethod + update: arm-keyvault vaults.d.ts update + describeKey: arm-keyvault vaults.d.ts get + putKeyPolicy: arm-keyvault vaults.d.ts updateAccessPolicy + GCP: + createKey: kms v1 key_management_service_client.d.ts createCryptoKey + deleteKey: kms v1 key_management_service_client.d.ts destroyCryptoKeyVersion + 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 + Oracle: + createKey: keymanagement createKey KmsManagementClient + disableKey: keymanagement disableKey KmsManagementClient + enableKey: keymanagement enableKey KmsManagementClient + update: keymanagement updateKey KmsManagementClient NotificationService: - AWS: - createTopic: sns.d.ts createTopic - deleteTopic: sns.d.ts deleteTopic - getTopicAttributes: sns.d.ts getTopicAttributes - listSubscriptions: sns.d.ts listSubscriptions - publish: sns.d.ts publish - subscribe: sns.d.ts subscribe - listTopics: sns.d.ts listTopics - unsubscribe: sns.d.ts unsubscribe - GCP: - createTopic: pubsub v1 publisher_client.d.ts createTopic - deleteTopic: pubsub v1 publisher_client.d.ts deleteTopic - getTopicAttributes: pubsub v1 publisher_client.d.ts getTopic - listSubscriptions: pubsub v1 publisher_client.d.ts listTopicSubscriptions - subscribe: pubsub v1 subscriber_client.d.ts createSubscription - publish: pubsub v1 publisher_client.d.ts publish - listTopics: pubsub v1 publisher_client.d.ts listTopics - unsubscribe: pubsub v1 subscriber_client.d.ts deleteSubscription - + AWS: + createTopic: sns.d.ts createTopic + deleteTopic: sns.d.ts deleteTopic + getTopicAttributes: sns.d.ts getTopicAttributes + listSubscriptions: sns.d.ts listSubscriptions + publish: sns.d.ts publish + subscribe: sns.d.ts subscribe + listTopics: sns.d.ts listTopics + unsubscribe: sns.d.ts unsubscribe + GCP: + createTopic: pubsub v1 publisher_client.d.ts createTopic + deleteTopic: pubsub v1 publisher_client.d.ts deleteTopic + getTopicAttributes: pubsub v1 publisher_client.d.ts getTopic + listSubscriptions: pubsub v1 publisher_client.d.ts listTopicSubscriptions + subscribe: pubsub v1 subscriber_client.d.ts createSubscription + publish: pubsub v1 publisher_client.d.ts publish + listTopics: pubsub v1 publisher_client.d.ts listTopics + unsubscribe: pubsub v1 subscriber_client.d.ts deleteSubscription + Oracle: + createTopic: ons createTopic + deleteTopic: ons deleteTopic + getTopic: ons getTopic + listTopics: ons listTopics + publish: ons publishMessage + updateTopic: ons updateTopic + subscribe: ons createSubscription + listSubscriptions: ons listSubscriptions + unsubscribe: ons deleteSubscription BlockStorage: - AWS: - create: ec2.d.ts createVolume - delete: ec2.d.ts deleteVolume - describe: ec2.d.ts describeVolumeAttribute - list: ec2.d.ts describeVolumes - Azure: - create: arm-compute disks.d.ts createOrUpdate - delete: arm-compute disks.d.ts deleteMethod - 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 + AWS: + create: ec2.d.ts createVolume + delete: ec2.d.ts deleteVolume + describe: ec2.d.ts describeVolumeAttribute + list: ec2.d.ts describeVolumes + Azure: + create: arm-compute disks.d.ts createOrUpdate + delete: arm-compute disks.d.ts deleteMethod + 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 + Linode: + create: volumes volumes.d.ts createVolume + delete: volumes volumes.d.ts deleteVolume + update: volumes volumes.d.ts updateVolume + list: volumes volumes.d.ts getVolumes + Oracle: + create: core createVolume BlockstorageClient + delete: core deleteVolume BlockstorageClient + list: core listVolumes BlockstorageClient + get: core getVolume BlockstorageClient +Images: + Linode: + getImage: images images.d.ts getImage + getImages: images images.d.ts getImages + createImage: images images.d.ts createImage + updateImage: images images.d.ts updateImage + deleteImage: images images.d.ts deleteImage + uploadImage: images images.d.ts uploadImage + +Firewalls: + Linode: + getFirewalls: firewalls firewalls.d.ts getFirewalls + getFirewall: firewalls firewalls.d.ts getFirewall + createFirewall: firewalls firewalls.d.ts createFirewall + updateFirewall: firewalls firewalls.d.ts updateFirewall + enableFirewall: firewalls firewalls.d.ts enableFirewall + disableFirewall: firewalls firewalls.d.ts disableFirewall + deleteFirewall: firewalls firewalls.d.ts deleteFirewall +BlockChain: + Oracle: + createBlockchainPlatform: blockchain createBlockchainPlatform + createOsn: blockchain createOsn + createPeer: blockchain createPeer + deleteBlockchainPlatform: blockchain deleteBlockchainPlatform + deleteOsn: blockchain deleteOsn + deletePeer: blockchain deletePeer + getOsn: blockchain getOsn + listOsns: blockchain listOsns + listPeers: blockchain listPeers + listBlockchainPlatforms: blockchain listBlockchainPlatforms + +Devops: + Oracle: + createDeployment: devops createDeployment + createProject: devops createProject + createRepository: devops createRepository + deleteProject: devops deleteProject + deleteRepository: devops deleteRepository + createDeployArtifact: devops createDeployArtifact + createDeployPipeline: devops createDeployPipeline + deleteDeployPipeline: devops deleteDeployPipeline + deleteDeployArtifact: devops deleteDeployArtifact + getDeployArtifact: devops getDeployArtifact + getDeployPipeline: devops getDeployPipeline + getDeployment: devops getDeployment + getProject: devops getProject diff --git a/generator/package.json b/generator/package.json index 9ac31b84..8f6f595c 100644 --- a/generator/package.json +++ b/generator/package.json @@ -1,42 +1,44 @@ { - "name": "class-generator", - "version": "1.0.0", - "main": "main.js", - "author": "Scorelab", - "description": "NodeCloud code generation tool", - "license": "Apache-2.0", - "keywords": [ - "nodecloud", - "code-generation" - ], - "scripts": { - "test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --colors test/**/*.ts", - "tool": "tsc main && node main", - "lint": "eslint .", + "name": "class-generator", + "version": "1.0.0", + "main": "main.js", + "author": "Scorelab", + "description": "NodeCloud code generation tool", + "license": "Apache-2.0", + "keywords": [ + "nodecloud", + "code-generation" + ], + "scripts": { + "test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --colors test/**/*.ts", + "tool": "tsc main && node main", + "lint": "eslint .", "lint-fix": "eslint --fix ." - }, - "dependencies": { - "@azure/arm-appservice": "^6.0.0", - "@azure/arm-compute": "^14.0.0", - "@azure/arm-containerservice": "^11.0.0", - "@azure/arm-cosmosdb": "^8.0.0", - "@azure/arm-keyvault": "^1.2.1", - "@azure/arm-monitor": "^6.0.0", - "@azure/arm-sql": "^7.0.0", - "@azure/arm-storage": "^15.0.0", - "@google-cloud/compute": "^2.0.0", - "@google-cloud/container": "^2.1.0", - "@google-cloud/dns": "^2.0.1", - "@google-cloud/monitoring": "^2.0.0", - "@google-cloud/pubsub": "^2.1.0", - "@google-cloud/storage": "^5.1.1", - "@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", - "typescript": "^3.9.3" - } + }, + "dependencies": { + "@azure/arm-appservice": "^6.0.0", + "@azure/arm-compute": "^14.0.0", + "@azure/arm-containerservice": "^11.0.0", + "@azure/arm-cosmosdb": "^8.0.0", + "@azure/arm-keyvault": "^1.2.1", + "@azure/arm-monitor": "^6.0.0", + "@azure/arm-sql": "^7.0.0", + "@azure/arm-storage": "^15.0.0", + "@google-cloud/compute": "^2.0.0", + "@google-cloud/container": "^2.1.0", + "@google-cloud/dns": "^2.0.1", + "@google-cloud/monitoring": "^2.0.0", + "@google-cloud/pubsub": "^2.1.0", + "@google-cloud/storage": "^5.1.1", + "@google-cloud/translate": "^6.0.0", + "@linode/api-v4": "^0.97.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", + "oci-sdk": "^2.55.0", + "typescript": "^3.9.3" + } } diff --git a/generator/parsers/aws/parser.js b/generator/parsers/aws/parser.js index 8fd5e392..7e661687 100644 --- a/generator/parsers/aws/parser.js +++ b/generator/parsers/aws/parser.js @@ -1,194 +1,202 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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"); +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/aws-sdk/clients/" + - 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*/]; - } - }); - }); - }); + 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/aws-sdk/clients/' + + 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/azure/parser.js b/generator/parsers/azure/parser.js index 317dfc5f..d88c5450 100644 --- a/generator/parsers/azure/parser.js +++ b/generator/parsers/azure/parser.js @@ -1,196 +1,204 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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"); +var fs = require('fs'); +var path = require('path'); +var typescript_1 = require('typescript'); function getAST(sdkFileInfo) { - 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/@azure/" + - sdkFileInfo.pkgName + - "/esm/operations/" + - sdkFileInfo.fileName - ); - 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*/]; - } - }); - }); - }); + 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/@azure/' + + sdkFileInfo.pkgName + + '/esm/operations/' + + sdkFileInfo.fileName + ); + 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.js b/generator/parsers/do/parser.js index 3e03d611..e1fb57ec 100644 --- a/generator/parsers/do/parser.js +++ b/generator/parsers/do/parser.js @@ -1,194 +1,202 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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"); +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*/]; - } - }); - }); - }); + 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/googleCloud/parser.js b/generator/parsers/googleCloud/parser.js index 4c9dc64c..1fcf3819 100644 --- a/generator/parsers/googleCloud/parser.js +++ b/generator/parsers/googleCloud/parser.js @@ -1,220 +1,234 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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"); +var fs = require('fs'); +var path = require('path'); +var typescript_1 = require('typescript'); function getAST(sdkFileInfo, multi) { - var _this = this; - var filePath; - if (sdkFileInfo.version) { - filePath = - "../../../node_modules/@google-cloud/" + - sdkFileInfo.pkgName + - "/build/src/" + - sdkFileInfo.version + - "/" + - sdkFileInfo.fileName; - } else { - filePath = - "../../../node_modules/@google-cloud/" + - sdkFileInfo.pkgName + - "/build/src/" + - sdkFileInfo.fileName; - } - return new Promise(function(resolve, reject) { - return __awaiter(_this, void 0, void 0, function() { - var file, ast, classes_1, cloned, error_1; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - _a.trys.push([0, 4, , 5]); - file = path.join(__dirname, filePath); - ast = typescript_1.createSourceFile( - file, - fs.readFileSync(file).toString(), - typescript_1.ScriptTarget.Latest, - true - ); - if (!(multi === true)) return [3 /*break*/, 1]; - classes_1 = []; - ast.forEachChild(function(child) { - if (typescript_1.SyntaxKind[child.kind] === "ClassDeclaration") { - var cloned = Object.assign({}, child); - classes_1.push(cloned); - } - }); - resolve(classes_1); - return [3 /*break*/, 3]; - case 1: - cloned = null; - return [ - 4 /*yield*/, - ast.forEachChild(function(child) { - if ( - typescript_1.SyntaxKind[child.kind] === "ClassDeclaration" - ) { - var cloned_1 = Object.assign({}, child); - return resolve(cloned_1); - } - }) - ]; - case 2: - _a.sent(); - if (!cloned) { - return [2 /*return*/, reject(new Error("Class not found!"))]; - } else { - return [2 /*return*/, resolve(cloned)]; - } - _a.label = 3; - case 3: - return [3 /*break*/, 5]; - case 4: - error_1 = _a.sent(); - if (error_1.code === "ENOENT") { - reject(new Error("File not found!")); - } else { - reject(error_1); - } - return [3 /*break*/, 5]; - case 5: - return [2 /*return*/]; - } - }); - }); - }); + var _this = this; + var filePath; + if (sdkFileInfo.version) { + filePath = + '../../../node_modules/@google-cloud/' + + sdkFileInfo.pkgName + + '/build/src/' + + sdkFileInfo.version + + '/' + + sdkFileInfo.fileName; + } else { + filePath = + '../../../node_modules/@google-cloud/' + + sdkFileInfo.pkgName + + '/build/src/' + + sdkFileInfo.fileName; + } + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + var file, ast, classes_1, cloned, error_1; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 4, , 5]); + file = path.join(__dirname, filePath); + ast = typescript_1.createSourceFile( + file, + fs.readFileSync(file).toString(), + typescript_1.ScriptTarget.Latest, + true + ); + if (!(multi === true)) return [3 /*break*/, 1]; + classes_1 = []; + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === + 'ClassDeclaration' + ) { + var cloned = Object.assign({}, child); + classes_1.push(cloned); + } + }); + resolve(classes_1); + return [3 /*break*/, 3]; + case 1: + cloned = null; + return [ + 4 /*yield*/, + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === + 'ClassDeclaration' + ) { + var cloned_1 = Object.assign({}, child); + return resolve(cloned_1); + } + }), + ]; + case 2: + _a.sent(); + if (!cloned) { + return [ + 2 /*return*/, + reject(new Error('Class not found!')), + ]; + } else { + return [2 /*return*/, resolve(cloned)]; + } + _a.label = 3; + case 3: + return [3 /*break*/, 5]; + case 4: + error_1 = _a.sent(); + if (error_1.code === 'ENOENT') { + reject(new Error('File not found!')); + } else { + reject(error_1); + } + return [3 /*break*/, 5]; + case 5: + return [2 /*return*/]; + } + }); + }); + }); } exports.getAST = getAST; diff --git a/generator/parsers/googleCloud/parser.ts b/generator/parsers/googleCloud/parser.ts index b8701074..1cf53b17 100644 --- a/generator/parsers/googleCloud/parser.ts +++ b/generator/parsers/googleCloud/parser.ts @@ -1,55 +1,55 @@ -import * as fs from "fs"; -import * as path from "path"; -import { createSourceFile, ScriptTarget, SyntaxKind } from "typescript"; +import * as fs from 'fs'; +import * as path from 'path'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; export function getAST(sdkFileInfo, multi?: boolean) { - let filePath; - if (sdkFileInfo.version) { - filePath = `../../../node_modules/@google-cloud/${sdkFileInfo.pkgName}/build/src/${sdkFileInfo.version}/${sdkFileInfo.fileName}`; - } else { - filePath = `../../../node_modules/@google-cloud/${sdkFileInfo.pkgName}/build/src/${sdkFileInfo.fileName}`; - } + let filePath; + if (sdkFileInfo.version) { + filePath = `../../../node_modules/@google-cloud/${sdkFileInfo.pkgName}/build/src/${sdkFileInfo.version}/${sdkFileInfo.fileName}`; + } else { + filePath = `../../../node_modules/@google-cloud/${sdkFileInfo.pkgName}/build/src/${sdkFileInfo.fileName}`; + } - return new Promise(async (resolve, reject) => { - try { - const file = path.join(__dirname, filePath); - const ast = createSourceFile( - file, - fs.readFileSync(file).toString(), - ScriptTarget.Latest, - true - ); + return new Promise(async (resolve, reject) => { + try { + const file = path.join(__dirname, filePath); + const ast = createSourceFile( + file, + fs.readFileSync(file).toString(), + ScriptTarget.Latest, + true + ); - if (multi === true) { - let classes = []; - ast.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - let cloned = Object.assign({}, child); - classes.push(cloned); - } - }); - resolve(classes); - } else { - let cloned = null; - await ast.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - let cloned = Object.assign({}, child); - return resolve(cloned); - } - }); + if (multi === true) { + const classes = []; + ast.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + const cloned = Object.assign({}, child); + classes.push(cloned); + } + }); + resolve(classes); + } else { + const cloned = null; + await ast.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + const cloned = Object.assign({}, child); + return resolve(cloned); + } + }); - if (!cloned) { - return reject(new Error("Class not found!")); - } else { - return resolve(cloned); - } - } - } catch (error) { - if (error.code === "ENOENT") { - reject(new Error("File not found!")); - } else { - reject(error); - } - } - }); + if (!cloned) { + return reject(new Error('Class not found!')); + } else { + return resolve(cloned); + } + } + } catch (error) { + if (error.code === 'ENOENT') { + reject(new Error('File not found!')); + } else { + reject(error); + } + } + }); } diff --git a/generator/parsers/linode/parser.js b/generator/parsers/linode/parser.js new file mode 100644 index 00000000..22ee07b0 --- /dev/null +++ b/generator/parsers/linode/parser.js @@ -0,0 +1,208 @@ +'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(sdkFileInfo) { + var _this = this; + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + var file, ast, cloned_1, tmp_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/@linode/api-v4/lib/' + + sdkFileInfo.pkgName + + '/' + + sdkFileInfo.fileName + ); + ast = typescript_1.createSourceFile( + file, + fs.readFileSync(file).toString(), + typescript_1.ScriptTarget.Latest, + true + ); + cloned_1 = []; + tmp_1 = null; + return [ + 4 /*yield*/, + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === + 'FirstStatement' + ) { + tmp_1 = Object.assign({}, child); + cloned_1.push( + tmp_1.declarationList.declarations[0] + ); + } + }), + ]; + case 1: + _a.sent(); + if (!cloned_1) { + reject(new Error('Function 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/linode/parser.ts b/generator/parsers/linode/parser.ts new file mode 100644 index 00000000..a5e80f99 --- /dev/null +++ b/generator/parsers/linode/parser.ts @@ -0,0 +1,42 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; + +export function getAST(sdkFileInfo) { + return new Promise(async (resolve, reject) => { + try { + const file = path.join( + __dirname, + '../../../node_modules/@linode/api-v4/lib/' + + sdkFileInfo.pkgName + + '/' + + sdkFileInfo.fileName + ); + const ast = createSourceFile( + file, + fs.readFileSync(file).toString(), + ScriptTarget.Latest, + true + ); + const cloned = []; + let tmp = null; + await ast.forEachChild(child => { + if (SyntaxKind[child.kind] === 'FirstStatement') { + tmp = Object.assign({}, child); + cloned.push(tmp.declarationList.declarations[0]); + } + }); + if (!cloned) { + reject(new Error('Function not found!')); + } else { + resolve(cloned); + } + } catch (error) { + if (error.code === 'ENOENT') { + reject(new Error('File not found!')); + } else { + reject(error); + } + } + }); +} diff --git a/generator/parsers/oracle/parser.js b/generator/parsers/oracle/parser.js new file mode 100644 index 00000000..87d7d21f --- /dev/null +++ b/generator/parsers/oracle/parser.js @@ -0,0 +1,233 @@ +'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, multi, className) { + var _this = this; + return new Promise(function(resolve, reject) { + return __awaiter(_this, void 0, void 0, function() { + var file, ast, cloned_1, finalClassAst_1, classes_1, error_1; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 5, , 6]); + file = path.join( + __dirname, + '../../../node_modules/oci-' + + sdkFileName.toLowerCase() + + '/lib/client.d.ts' + ); + ast = typescript_1.createSourceFile( + file, + fs.readFileSync(file).toString(), + typescript_1.ScriptTarget.Latest, + true + ); + cloned_1 = null; + if (!multi) return [3 /*break*/, 2]; + classes_1 = []; + return [ + 4 /*yield*/, + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === + 'ClassDeclaration' + ) { + cloned_1 = Object.assign({}, child); + classes_1.push(cloned_1); + } + }), + ]; + case 1: + _a.sent(); + if (classes_1.length == 0) { + reject(new Error('Class not found!')); + } else { + classes_1.forEach(function(result) { + if (result.name.text == className) { + finalClassAst_1 = result; + } + }); + } + return [3 /*break*/, 4]; + case 2: + return [ + 4 /*yield*/, + ast.forEachChild(function(child) { + if ( + typescript_1.SyntaxKind[child.kind] === + 'ClassDeclaration' + ) { + cloned_1 = Object.assign({}, child); + } + }), + ]; + case 3: + _a.sent(); + if (!cloned_1) { + reject(new Error('Class not found!')); + } else { + finalClassAst_1 = cloned_1; + } + _a.label = 4; + case 4: + resolve(finalClassAst_1); + return [3 /*break*/, 6]; + case 5: + error_1 = _a.sent(); + if (error_1.code === 'ENOENT') { + reject(new Error('File not found!')); + } else { + reject(error_1); + } + return [3 /*break*/, 6]; + case 6: + return [2 /*return*/]; + } + }); + }); + }); +} +exports.getAST = getAST; diff --git a/generator/parsers/oracle/parser.ts b/generator/parsers/oracle/parser.ts new file mode 100644 index 00000000..7540074a --- /dev/null +++ b/generator/parsers/oracle/parser.ts @@ -0,0 +1,59 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { createSourceFile, ScriptTarget, SyntaxKind } from 'typescript'; + +export function getAST(sdkFileName, multi?: boolean, className?: string) { + return new Promise(async (resolve, reject) => { + try { + const file = path.join( + __dirname, + `../../../node_modules/oci-${sdkFileName.toLowerCase()}/lib/client.d.ts` + ); + const ast = createSourceFile( + file, + fs.readFileSync(file).toString(), + ScriptTarget.Latest, + true + ); + + let cloned = null; + let finalClassAst; + if (multi) { + const classes = []; + await ast.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + classes.push(cloned); + } + }); + if (classes.length == 0) { + reject(new Error('Class not found!')); + } else { + classes.forEach(result => { + if (result.name.text == className) { + finalClassAst = result; + } + }); + } + } else { + await ast.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); + if (!cloned) { + reject(new Error('Class not found!')); + } else { + finalClassAst = cloned; + } + } + resolve(finalClassAst); + } catch (error) { + if (error.code === 'ENOENT') { + reject(new Error('File not found!')); + } else { + reject(error); + } + } + }); +} diff --git a/generator/test/generators/googleCloud/generator.test.ts b/generator/test/generators/googleCloud/generator.test.ts index 3b339d3c..0702d965 100644 --- a/generator/test/generators/googleCloud/generator.test.ts +++ b/generator/test/generators/googleCloud/generator.test.ts @@ -1,159 +1,163 @@ -import { expect } from "chai"; -import { SyntaxKind } from "typescript"; +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; import { - extractClassBasedSDKData, - extractClientBasedSDKdata -} from "../../../generators/googleCloud/generator"; -import { readJsonData, readSourceFile } from "../lib/helper"; - -describe("GCP generator extractClassBasedSDKData", () => { - context("with valid methods and valid AST", () => { - it("should return class data", async () => { - const methods: any = await readJsonData( - "validDataset_1", - "googleCloud", - "methods" - ); - - const sdkFiles: any = await readJsonData( - "validDataset_1", - "googleCloud", - "files" - ); - - await Promise.all( - sdkFiles.map(async file => { - file.classes = []; - const sdkFile: any = await readSourceFile( - "validDataset_1", - "googleCloud" - ); - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - let cloned = Object.assign({}, child); - file.classes.push(cloned); - } - }); - }) - ); - - extractClassBasedSDKData(methods, sdkFiles).then(result => { - expect(result).to.be.an("object"); - expect(result.methods).to.be.an("array"); - }); - }); - }); - - context("with invalid AST", () => { - it("should return Error", async () => { - const methods: any = await readJsonData( - "invalidDataset_1", - "googleCloud", - "methods" - ); - - const sdkFiles: any = await readJsonData( - "invalidDataset_1", - "googleCloud", - "files" - ); - - await Promise.all( - sdkFiles.map(async file => { - file.classes = []; - const sdkFile: any = await readSourceFile( - "invalidDataset_1", - "googleCloud" - ); - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - let cloned = Object.assign({}, child); - file.classes.push(cloned); - } - }); - }) - ); - - extractClassBasedSDKData(methods, sdkFiles).then( - result => {}, - error => { - expect(error.message).to.eql("Data extraction unsuccessful"); - } - ); - }); - }); + extractClassBasedSDKData, + extractClientBasedSDKdata, +} from '../../../generators/googleCloud/generator'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +describe('GCP generator extractClassBasedSDKData', () => { + context('with valid methods and valid AST', () => { + it('should return class data', async () => { + const methods: any = await readJsonData( + 'validDataset_1', + 'googleCloud', + 'methods' + ); + + const sdkFiles: any = await readJsonData( + 'validDataset_1', + 'googleCloud', + 'files' + ); + + await Promise.all( + sdkFiles.map(async file => { + file.classes = []; + const sdkFile: any = await readSourceFile( + 'validDataset_1', + 'googleCloud' + ); + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + const cloned = Object.assign({}, child); + file.classes.push(cloned); + } + }); + }) + ); + + extractClassBasedSDKData(methods, sdkFiles).then(result => { + expect(result).to.be.an('object'); + expect(result.methods).to.be.an('array'); + }); + }); + }); + + context('with invalid AST', () => { + it('should return Error', async () => { + const methods: any = await readJsonData( + 'invalidDataset_1', + 'googleCloud', + 'methods' + ); + + const sdkFiles: any = await readJsonData( + 'invalidDataset_1', + 'googleCloud', + 'files' + ); + + await Promise.all( + sdkFiles.map(async file => { + file.classes = []; + const sdkFile: any = await readSourceFile( + 'invalidDataset_1', + 'googleCloud' + ); + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + const cloned = Object.assign({}, child); + file.classes.push(cloned); + } + }); + }) + ); + + extractClassBasedSDKData(methods, sdkFiles).then( + result => {}, + error => { + expect(error.message).to.eql( + 'Data extraction unsuccessful' + ); + } + ); + }); + }); }); -describe("GCP generator extractClientBasedSDKdata", () => { - context("with valid methods and valid AST", () => { - it("should return class data", async () => { - const methods: any = await readJsonData( - "validDataset_2", - "googleCloud", - "methods" - ); - - const sdkFiles: any = await readJsonData( - "validDataset_2", - "googleCloud", - "files" - ); - - await Promise.all( - sdkFiles.map(async file => { - const sdkFile: any = await readSourceFile( - "validDataset_2", - "googleCloud" - ); - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - file.ast = Object.assign({}, child); - } - }); - }) - ); - - extractClientBasedSDKdata(methods, sdkFiles).then(result => { - expect(result).to.be.an("array"); - }); - }); - }); - - context("with invalid AST", () => { - it("should return Error", async () => { - const methods: any = await readJsonData( - "invalidDataset_2", - "googleCloud", - "methods" - ); - - const sdkFiles: any = await readJsonData( - "invalidDataset_2", - "googleCloud", - "files" - ); - - await Promise.all( - sdkFiles.map(async file => { - const sdkFile: any = await readSourceFile( - "invalidDataset_2", - "googleCloud" - ); - sdkFile.forEachChild(child => { - if (SyntaxKind[child.kind] === "ClassDeclaration") { - file.ast = Object.assign({}, child); - } - }); - }) - ); - - extractClientBasedSDKdata(methods, sdkFiles).then( - result => {}, - error => { - expect(error.message).to.eql("Data extraction unsuccessful"); - } - ); - }); - }); +describe('GCP generator extractClientBasedSDKdata', () => { + context('with valid methods and valid AST', () => { + it('should return class data', async () => { + const methods: any = await readJsonData( + 'validDataset_2', + 'googleCloud', + 'methods' + ); + + const sdkFiles: any = await readJsonData( + 'validDataset_2', + 'googleCloud', + 'files' + ); + + await Promise.all( + sdkFiles.map(async file => { + const sdkFile: any = await readSourceFile( + 'validDataset_2', + 'googleCloud' + ); + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + file.ast = Object.assign({}, child); + } + }); + }) + ); + + extractClientBasedSDKdata(methods, sdkFiles).then(result => { + expect(result).to.be.an('array'); + }); + }); + }); + + context('with invalid AST', () => { + it('should return Error', async () => { + const methods: any = await readJsonData( + 'invalidDataset_2', + 'googleCloud', + 'methods' + ); + + const sdkFiles: any = await readJsonData( + 'invalidDataset_2', + 'googleCloud', + 'files' + ); + + await Promise.all( + sdkFiles.map(async file => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_2', + 'googleCloud' + ); + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + file.ast = Object.assign({}, child); + } + }); + }) + ); + + extractClientBasedSDKdata(methods, sdkFiles).then( + result => {}, + error => { + expect(error.message).to.eql( + 'Data extraction unsuccessful' + ); + } + ); + }); + }); }); diff --git a/generator/test/generators/linode/dummyData/invalidDataset_1/sdkFile.txt b/generator/test/generators/linode/dummyData/invalidDataset_1/sdkFile.txt new file mode 100644 index 00000000..d2a6e413 --- /dev/null +++ b/generator/test/generators/linode/dummyData/invalidDataset_1/sdkFile.txt @@ -0,0 +1,82 @@ +import { ResourcePage as Page } from '../types'; +import { CreateKubeClusterPayload, KubeConfigResponse, KubernetesCluster, KubernetesEndpointResponse, KubernetesDashboardResponse, KubernetesVersion } from './types'; +/** + * getKubernetesClusters + * + * Gets a list of a uinterface ClassData { + className: string; + functions: FunctionData[]; + serviceName: string; +}ser's Kubernetes clusters + */ +export declare const getKubernetesClusters: (params?: any, filters?: any) => Promise>; +/** + * getKubernetesCluster + * + * Return details about a single Kubernetes cluster + */ +export declare const getKubernetesCluster: (clusterID: number) => Promise; +/** + * createKubernetesClusters + * + * Create a new cluster. + */ +export declare const createKubernetesCluster: (data: CreateKubeClusterPayload) => Promise; +/** + * updateKubernetesCluster + * + * Update an existing cluster. + */ +export declare const updateKubernetesCluster: (clusterID: number, data: Partial) => Promise; +/** + * deleteKubernetesCluster + * + * Delete the specified Cluster. + */ +export declare const deleteKubernetesCluster: (clusterID: number) => Promise<{}>; +/** + * getKubeConfig + * + * Returns a base64 encoded string of a cluster's kubeconfig.yaml + * + * @param clusterId + */ +export declare const getKubeConfig: (clusterId: number) => Promise; +/** + * resetKubeConfig + * + * Regenerates the cluster's kubeconfig.yaml + * + * @param clusterId + */ +export declare const resetKubeConfig: (clusterId: number) => Promise<{}>; +/** getKubernetesVersions + * + * Returns a paginated list of available Kubernetes versions. + * + */ +export declare const getKubernetesVersions: (params?: any, filters?: any) => Promise>; +/** getKubernetesVersion + * + * Returns a single Kubernetes version by ID. + * + */ +export declare const getKubernetesVersion: (versionID: string) => Promise; +/** getKubernetesClusterEndpoint + * + * Returns the endpoint URL for a single Kubernetes cluster by ID. + * + */ +export declare const getKubernetesClusterEndpoints: (clusterID: number, params?: any, filters?: any) => Promise>; +/** getKubernetesClusterDashboard + * Returns the URL for a single Kubernetes Dashboard for a single Kubernetes Cluster by ID. + * + */ +export declare const getKubernetesClusterDashboard: (clusterID: number) => Promise; +/** recycleClusterNodes + * + * Recycle all nodes in the target cluster (across all node pools) + * + */ +export declare const recycleClusterNodes: (clusterID: number) => Promise<{}>; +//# sourceMappingURL=kubernetes.d.ts.map \ No newline at end of file diff --git a/generator/test/generators/linode/dummyData/invalidDataset_1/serviceClass.json b/generator/test/generators/linode/dummyData/invalidDataset_1/serviceClass.json new file mode 100644 index 00000000..70062b56 --- /dev/null +++ b/generator/test/generators/linode/dummyData/invalidDataset_1/serviceClass.json @@ -0,0 +1,8 @@ +{ + "create": "kubernetes kubernetes.d.ts createKubernetesCluster", + "delete": "kubernetes kubernetes.d.ts", + "getNodePool": "kubernetes nodePools.d.ts getNodePool", + "createNodePool": "kubernetes nodePools.d.ts createNodePool", + "updateNodePool": "kubernetes nodePools.d.ts updateNodePool", + "deleteNodePool": "kubernetes nodePools.d.ts deleteNodePool" +} diff --git a/generator/test/generators/linode/dummyData/invalidDataset_2/sdkFile.txt b/generator/test/generators/linode/dummyData/invalidDataset_2/sdkFile.txt new file mode 100644 index 00000000..579a6b39 --- /dev/null +++ b/generator/test/generators/linode/dummyData/invalidDataset_2/sdkFile.txt @@ -0,0 +1,2 @@ +import { ResourcePage as Page } from '../types'; +import { CreateKubeClusterPayload, KubeConfigResponse, KubernetesCluster, KubernetesEndpointResponse, KubernetesDashboardResponse, KubernetesVersion } from './types'; \ No newline at end of file diff --git a/generator/test/generators/linode/dummyData/invalidDataset_2/serviceClass.json b/generator/test/generators/linode/dummyData/invalidDataset_2/serviceClass.json new file mode 100644 index 00000000..3d7c929a --- /dev/null +++ b/generator/test/generators/linode/dummyData/invalidDataset_2/serviceClass.json @@ -0,0 +1,7 @@ +{ + "create": "kubernetes kubernetes.d.ts createKubernetesCluster", + "getNodePool": "kubernetes nodePools.d.ts getNodePool", + "createNodePool": "kubernetes nodePools.d.ts createNodePool", + "updateNodePool": "kubernetes nodePools.d.ts updateNodePool", + "deleteNodePool": "kubernetes nodePools.d.ts deleteNodePool" +} diff --git a/generator/test/generators/linode/dummyData/validDataset/sdkFile.txt b/generator/test/generators/linode/dummyData/validDataset/sdkFile.txt new file mode 100644 index 00000000..d2a6e413 --- /dev/null +++ b/generator/test/generators/linode/dummyData/validDataset/sdkFile.txt @@ -0,0 +1,82 @@ +import { ResourcePage as Page } from '../types'; +import { CreateKubeClusterPayload, KubeConfigResponse, KubernetesCluster, KubernetesEndpointResponse, KubernetesDashboardResponse, KubernetesVersion } from './types'; +/** + * getKubernetesClusters + * + * Gets a list of a uinterface ClassData { + className: string; + functions: FunctionData[]; + serviceName: string; +}ser's Kubernetes clusters + */ +export declare const getKubernetesClusters: (params?: any, filters?: any) => Promise>; +/** + * getKubernetesCluster + * + * Return details about a single Kubernetes cluster + */ +export declare const getKubernetesCluster: (clusterID: number) => Promise; +/** + * createKubernetesClusters + * + * Create a new cluster. + */ +export declare const createKubernetesCluster: (data: CreateKubeClusterPayload) => Promise; +/** + * updateKubernetesCluster + * + * Update an existing cluster. + */ +export declare const updateKubernetesCluster: (clusterID: number, data: Partial) => Promise; +/** + * deleteKubernetesCluster + * + * Delete the specified Cluster. + */ +export declare const deleteKubernetesCluster: (clusterID: number) => Promise<{}>; +/** + * getKubeConfig + * + * Returns a base64 encoded string of a cluster's kubeconfig.yaml + * + * @param clusterId + */ +export declare const getKubeConfig: (clusterId: number) => Promise; +/** + * resetKubeConfig + * + * Regenerates the cluster's kubeconfig.yaml + * + * @param clusterId + */ +export declare const resetKubeConfig: (clusterId: number) => Promise<{}>; +/** getKubernetesVersions + * + * Returns a paginated list of available Kubernetes versions. + * + */ +export declare const getKubernetesVersions: (params?: any, filters?: any) => Promise>; +/** getKubernetesVersion + * + * Returns a single Kubernetes version by ID. + * + */ +export declare const getKubernetesVersion: (versionID: string) => Promise; +/** getKubernetesClusterEndpoint + * + * Returns the endpoint URL for a single Kubernetes cluster by ID. + * + */ +export declare const getKubernetesClusterEndpoints: (clusterID: number, params?: any, filters?: any) => Promise>; +/** getKubernetesClusterDashboard + * Returns the URL for a single Kubernetes Dashboard for a single Kubernetes Cluster by ID. + * + */ +export declare const getKubernetesClusterDashboard: (clusterID: number) => Promise; +/** recycleClusterNodes + * + * Recycle all nodes in the target cluster (across all node pools) + * + */ +export declare const recycleClusterNodes: (clusterID: number) => Promise<{}>; +//# sourceMappingURL=kubernetes.d.ts.map \ No newline at end of file diff --git a/generator/test/generators/linode/dummyData/validDataset/serviceClass.json b/generator/test/generators/linode/dummyData/validDataset/serviceClass.json new file mode 100644 index 00000000..8c0cefa3 --- /dev/null +++ b/generator/test/generators/linode/dummyData/validDataset/serviceClass.json @@ -0,0 +1,8 @@ +{ + "create": "kubernetes kubernetes.d.ts createKubernetesCluster", + "delete": "kubernetes kubernetes.d.ts deleteKubernetesCluster", + "getNodePool": "kubernetes nodePools.d.ts getNodePool", + "createNodePool": "kubernetes nodePools.d.ts createNodePool", + "updateNodePool": "kubernetes nodePools.d.ts updateNodePool", + "deleteNodePool": "kubernetes nodePools.d.ts deleteNodePool" +} diff --git a/generator/test/generators/linode/generator.test.ts b/generator/test/generators/linode/generator.test.ts new file mode 100644 index 00000000..d4ebbe72 --- /dev/null +++ b/generator/test/generators/linode/generator.test.ts @@ -0,0 +1,91 @@ +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; + +import { extractSDKData } from '../../../generators/linode/generator'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +describe('Linode generator extractSDKData', () => { + context('with valid methods and valid AST', () => { + it('should return extracted functions array', async () => { + const sdkFile: any = await readSourceFile('validDataset', 'linode'); + const data: any = await readJsonData( + 'validDataset', + 'linode', + 'serviceClass' + ); + const cloned = []; + let tmp = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'FirstStatement') { + tmp = Object.assign({}, child); + cloned.push(tmp.declarationList.declarations[0]); + } + }); + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('array'); + } 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', + 'linode' + ); + const data: any = await readJsonData( + 'invalidDataset_1', + 'linode', + 'serviceClass' + ); + const cloned = []; + let tmp = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'FirstStatement') { + tmp = Object.assign({}, child); + cloned.push(tmp.declarationList.declarations[0]); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result.length < Object.keys(data).length).to.be.true; + } else { + console.error('Error in cloning class'); + } + }); + }); + + context('Linode with no functions', () => { + it('should return empty array of methods', async () => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_2', + 'linode' + ); + const data: any = await readJsonData( + 'invalidDataset_2', + 'linode', + 'serviceClass' + ); + const cloned = []; + let tmp = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'FirstStatement') { + tmp = Object.assign({}, child); + cloned.push(tmp.declarationList.declarations[0]); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('array'); + expect(result.length).to.eql(0); + } else { + console.error('Error in cloning class'); + } + }); + }); +}); diff --git a/generator/test/generators/oracle/dummyData/invalidDataset_1/sdkFile.txt b/generator/test/generators/oracle/dummyData/invalidDataset_1/sdkFile.txt new file mode 100644 index 00000000..2d780bd6 --- /dev/null +++ b/generator/test/generators/oracle/dummyData/invalidDataset_1/sdkFile.txt @@ -0,0 +1,926 @@ +import common = require("oci-common"); +import * as requests from "./request"; +import * as model from "./model"; +import * as responses from "./response"; +import { LoadBalancerWaiter } from "./loadbalancer-waiter"; +export declare enum LoadBalancerApiKeys { +} +/** + * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user. + */ +export declare class LoadBalancerClient { + protected static serviceEndpointTemplate: string; + protected static endpointServiceName: string; + protected "_realmSpecificEndpointTemplateEnabled": boolean; + protected "_endpoint": string; + protected "_defaultHeaders": any; + protected "_waiters": LoadBalancerWaiter; + protected "_clientConfiguration": common.ClientConfiguration; + protected _circuitBreaker: null; + protected _httpOptions: any; + targetService: string; + protected _regionId: string; + protected "_region": common.Region; + protected _lastSetRegionOrRegionId: string; + protected _httpClient: common.HttpClient; + constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration); + /** + * Get the endpoint that is being used to call (ex, https://www.example.com). + */ + get endpoint(): string; + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + set endpoint(endpoint: string); + get logger(): import("oci-common/lib/log").Logger; + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled: boolean); + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint. + * @param region The region of the service. + */ + set region(region: common.Region); + /** + * Sets the regionId to call (ex, 'us-phoenix-1'). + * + * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}. + * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1 + * and then call {@link #endpoint(String) endpoint}. + * @param regionId The public region ID. + */ + set regionId(regionId: string); + /** + * Creates a new LoadBalancerWaiter for resources for this service. + * + * @param config The waiter configuration for termination and delay strategy + * @return The service waiters. + */ + createWaiters(config?: common.WaiterConfiguration): LoadBalancerWaiter; + /** + * Gets the waiters available for resources for this service. + * + * @return The service waiters. + */ + getWaiters(): LoadBalancerWaiter; + /** + * Moves a load balancer into a different compartment within the same tenancy. For information about moving resources + * between compartments, see [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param ChangeLoadBalancerCompartmentRequest + * @return ChangeLoadBalancerCompartmentResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/ChangeLoadBalancerCompartment.ts.html |here} to see how to use ChangeLoadBalancerCompartment API. + */ + changeLoadBalancerCompartment(changeLoadBalancerCompartmentRequest: requests.ChangeLoadBalancerCompartmentRequest): Promise; + /** + * Adds a backend server to a backend set. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendRequest + * @return CreateBackendResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackend.ts.html |here} to see how to use CreateBackend API. + */ + createBackend(createBackendRequest: requests.CreateBackendRequest): Promise; + /** + * Adds a backend set to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateBackendSetRequest + * @return CreateBackendSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateBackendSet.ts.html |here} to see how to use CreateBackendSet API. + */ + createBackendSet(createBackendSetRequest: requests.CreateBackendSetRequest): Promise; + /** + * Creates an asynchronous request to add an SSL certificate bundle. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateCertificateRequest + * @return CreateCertificateResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateCertificate.ts.html |here} to see how to use CreateCertificate API. + */ + createCertificate(createCertificateRequest: requests.CreateCertificateRequest): Promise; + /** + * Adds a hostname resource to the specified load balancer. For more information, see + * [Managing Request Routing](https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateHostnameRequest + * @return CreateHostnameResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateHostname.ts.html |here} to see how to use CreateHostname API. + */ + createHostname(createHostnameRequest: requests.CreateHostnameRequest): Promise; + /** + * Adds a listener to a load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param CreateListenerRequest + * @return CreateListenerResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/CreateListener.ts.html |here} to see how to use CreateListener API. + */ + createListener(createListenerRequest: requests.CreateListenerRequest): Promise; + /** + * Creates a new load balancer in the specified compartment. For general information about load balancers, + * see [Overview of the Load Balancing Service](https://docs.cloud.oracle.com/Content/Balance/Concepts/balanceoverview.htm). + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      + To add a new rule to a set, the body must include both the new rule to add and the existing rules to retain. + * + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateRuleSetRequest + * @return UpdateRuleSetResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateRuleSet.ts.html |here} to see how to use UpdateRuleSet API. + */ + updateRuleSet(updateRuleSetRequest: requests.UpdateRuleSetRequest): Promise; + /** + * Updates an existing SSL cipher suite for the specified load balancer. + * This operation does not retry by default if the user has not defined a retry configuration. + * @param UpdateSSLCipherSuiteRequest + * @return UpdateSSLCipherSuiteResponse + * @throws OciError when an error occurs + * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.66.0/loadbalancer/UpdateSSLCipherSuite.ts.html |here} to see how to use UpdateSSLCipherSuite API. + */ + updateSSLCipherSuite(updateSSLCipherSuiteRequest: requests.UpdateSSLCipherSuiteRequest): Promise; +} \ No newline at end of file diff --git a/generator/test/generators/oracle/dummyData/validDataset/serviceClass.json b/generator/test/generators/oracle/dummyData/validDataset/serviceClass.json new file mode 100644 index 00000000..78f92f4a --- /dev/null +++ b/generator/test/generators/oracle/dummyData/validDataset/serviceClass.json @@ -0,0 +1,7 @@ +{ + "create": "loadbalancer createLoadBalancer", + "delete": "loadbalancer deleteLoadBalancer", + "get": "loadbalancer getLoadBalancer", + "update": "loadbalancer updateLoadBalancer", + "list": "loadbalancer listLoadBalancers" +} diff --git a/generator/test/generators/oracle/generator.test.ts b/generator/test/generators/oracle/generator.test.ts new file mode 100644 index 00000000..3b5550b6 --- /dev/null +++ b/generator/test/generators/oracle/generator.test.ts @@ -0,0 +1,92 @@ +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; + +import { extractSDKData } from '../../../generators/oracle/generator'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +describe('Oracle generator extractSDKData', () => { + context('with valid methods and valid AST', () => { + it('should return extracted class data', async () => { + const sdkFile: any = await readSourceFile('validDataset', 'oracle'); + const data: any = await readJsonData( + 'validDataset', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('object'); + expect(result.functions).to.be.an('array'); + expect(result.className).to.be.string; + } else { + console.error('Error in cloning class'); + } + }); + }); + + context('with invalid method data:missing method name', () => { + it('should drop invalid method', async () => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_1', + 'oracle' + ); + const data: any = await readJsonData( + 'invalidDataset_1', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + expect( + extractSDKData(cloned, data).functions.length < + Object.keys(data).length + ).to.be.true; + } else { + console.error('Error in cloning class'); + } + }); + }); + + context('Oracle with no functions', () => { + it('should return empty array of methods', async () => { + const sdkFile: any = await readSourceFile( + 'invalidDataset_2', + 'oracle' + ); + const data: any = await readJsonData( + 'invalidDataset_2', + 'oracle', + 'serviceClass' + ); + let cloned = null; + sdkFile.forEachChild(child => { + if (SyntaxKind[child.kind] === 'ClassDeclaration') { + cloned = Object.assign({}, child); + } + }); + + if (cloned) { + const result = extractSDKData(cloned, data); + expect(result).to.be.an('object'); + expect(result.functions).to.be.an('array'); + expect(result.className).to.be.string; + expect(result.functions.length).to.eql(0); + } else { + console.error('Error in cloning class'); + } + }); + }); +}); diff --git a/generator/test/parsers/linode/parser.test.ts b/generator/test/parsers/linode/parser.test.ts new file mode 100644 index 00000000..e866aa4e --- /dev/null +++ b/generator/test/parsers/linode/parser.test.ts @@ -0,0 +1,39 @@ +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; + +import { getAST } from '../../../parsers/linode/parser'; + +describe('Linode parser getAST', () => { + context('With existing file', () => { + it('Should return Abstract syntax tree of the class', async () => { + const ast: any = await getAST({ + pkgName: 'kubernetes', + fileName: 'kubernetes.d.ts', + }); + expect(ast).to.be.an('array'); + }); + }); + + context('With non-existing file', () => { + it('should return File not found Error', async () => { + try { + await getAST({ + pkgName: 'kubernetes', + fileName: '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({ pkgName: 'kubernetes', fileName: 'types.d.ts' }); + } catch (error) { + expect(error.message).to.eql('Class not found!'); + } + }); + }); +}); diff --git a/generator/test/parsers/oracle/parser.test.ts b/generator/test/parsers/oracle/parser.test.ts new file mode 100644 index 00000000..99e53585 --- /dev/null +++ b/generator/test/parsers/oracle/parser.test.ts @@ -0,0 +1,35 @@ +import { expect } from 'chai'; +import { SyntaxKind } from 'typescript'; + +import { getAST } from '../../../parsers/oracle/parser'; + +describe('Oracle Cloud parser getAST', () => { + context('With existing file', () => { + it('Should return Abstract syntax tree of the class', async () => { + const ast: any = await getAST('objectstorage'); + expect(ast).to.be.an('object'); + expect(SyntaxKind[ast.kind] === 'ClassDeclaration').to.be.true; + }); + }); + + context('With non-existing file', () => { + it('should return File not found Error', async () => { + try { + await getAST('unknown'); + } catch (error) { + expect(error.message).to.eql('File not found!'); + } + }); + }); + + context('With wrong format file', () => { + it('Should return class not found Error', async () => { + try { + await getAST('objectstorage'); + // `../../../node_modules/oci-${sdkFileName.toLowerCase()}/lib/client.d.ts` + } catch (error) { + expect(error.message).to.eql('Class not found!'); + } + }); + }); +}); diff --git a/generator/test/transformers/linode/dummyData/invalidDataset_1/data.json b/generator/test/transformers/linode/dummyData/invalidDataset_1/data.json new file mode 100644 index 00000000..5a3e3bff --- /dev/null +++ b/generator/test/transformers/linode/dummyData/invalidDataset_1/data.json @@ -0,0 +1,66 @@ +{ + "className": "BlockStorageLinodeClass", + "functions": [ + { + "functionName": "list", + "SDKFunctionName": "getVolumes", + "params": [ + { + "name": "params", + "optional": true, + "type": "AnyKeyword", + "typeName": null + }, + { + "name": "filters", + "optional": true, + "type": "AnyKeyword", + "typeName": null + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteVolume", + "params": [ + { + "name": "volumeId", + "optional": false, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateVolume", + "params": [ + { + "name": "volumeId", + "optional": false, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "data", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateVolumeRequest" + } + ] + }, + { + "functionName": "create", + "SDKFunctionName": "createVolume", + "params": [ + { + "name": "data", + "optional": false, + "type": "TypeReference", + "typeName": "VolumeRequestPayload" + } + ] + } + ], + "serviceName": "BlockStorage" +} diff --git a/generator/test/transformers/linode/dummyData/invalidDataset_1/sourceFile.js b/generator/test/transformers/linode/dummyData/invalidDataset_1/sourceFile.js new file mode 100644 index 00000000..f7c98732 --- /dev/null +++ b/generator/test/transformers/linode/dummyData/invalidDataset_1/sourceFile.js @@ -0,0 +1,8 @@ +class ClassName { + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/linode/dummyData/invalidDataset_2/data.json b/generator/test/transformers/linode/dummyData/invalidDataset_2/data.json new file mode 100644 index 00000000..0e792ed5 --- /dev/null +++ b/generator/test/transformers/linode/dummyData/invalidDataset_2/data.json @@ -0,0 +1,21 @@ +{ + "functions": [ + { + "SDKFunctionName": "getVolumes", + "params": [ + { + "name": "params", + "optional": true, + "type": "AnyKeyword", + "typeName": null + }, + { + "name": "filters", + "optional": true, + "type": "AnyKeyword", + "typeName": null + } + ] + } + ] +} diff --git a/generator/test/transformers/linode/dummyData/invalidDataset_2/sourceFile.js b/generator/test/transformers/linode/dummyData/invalidDataset_2/sourceFile.js new file mode 100644 index 00000000..1e3401bf --- /dev/null +++ b/generator/test/transformers/linode/dummyData/invalidDataset_2/sourceFile.js @@ -0,0 +1,18 @@ +class ClassName { + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + } + + function() { + this._linode.setToken(this._linodeToken); + return new Promise((resolve, reject) => { + this._linode + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/linode/dummyData/validDataset/data.json b/generator/test/transformers/linode/dummyData/validDataset/data.json new file mode 100644 index 00000000..5a3e3bff --- /dev/null +++ b/generator/test/transformers/linode/dummyData/validDataset/data.json @@ -0,0 +1,66 @@ +{ + "className": "BlockStorageLinodeClass", + "functions": [ + { + "functionName": "list", + "SDKFunctionName": "getVolumes", + "params": [ + { + "name": "params", + "optional": true, + "type": "AnyKeyword", + "typeName": null + }, + { + "name": "filters", + "optional": true, + "type": "AnyKeyword", + "typeName": null + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteVolume", + "params": [ + { + "name": "volumeId", + "optional": false, + "type": "NumberKeyword", + "typeName": null + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateVolume", + "params": [ + { + "name": "volumeId", + "optional": false, + "type": "NumberKeyword", + "typeName": null + }, + { + "name": "data", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateVolumeRequest" + } + ] + }, + { + "functionName": "create", + "SDKFunctionName": "createVolume", + "params": [ + { + "name": "data", + "optional": false, + "type": "TypeReference", + "typeName": "VolumeRequestPayload" + } + ] + } + ], + "serviceName": "BlockStorage" +} diff --git a/generator/test/transformers/linode/dummyData/validDataset/sourceFile.js b/generator/test/transformers/linode/dummyData/validDataset/sourceFile.js new file mode 100644 index 00000000..02304d27 --- /dev/null +++ b/generator/test/transformers/linode/dummyData/validDataset/sourceFile.js @@ -0,0 +1,23 @@ +class ClassName { + /** + * + * @param {module} do Linode SDK + * @param {object} options SDK options + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + } + + function() { + this._linode.setToken(this._linodeToken); + return new Promise((resolve, reject) => { + this._linode + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/linode/transformer.test.ts b/generator/test/transformers/linode/transformer.test.ts new file mode 100644 index 00000000..2aacc497 --- /dev/null +++ b/generator/test/transformers/linode/transformer.test.ts @@ -0,0 +1,71 @@ +import { expect } from 'chai'; +import { createSourceFile, isSourceFile, ScriptTarget } from 'typescript'; + +import { transform } from '../../../transformers/linode/transformer'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +interface TestData { + AST: any; + data: any; +} + +describe('Linode transformer transform', () => { + context('Valid source code and valid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('validDataset', 'linode'); + testData.data = await readJsonData('validDataset', 'linode'); + }); + + 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', 'linode'); + testData.data = await readJsonData('invalidDataset_1', 'linode'); + }); + + 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', 'linode'); + testData.data = await readJsonData('invalidDataset_2', 'linode'); + }); + + 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/test/transformers/oracle/dummyData/invalidDataset_1/data.json b/generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json new file mode 100644 index 00000000..e0a597b8 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_1/data.json @@ -0,0 +1,54 @@ +{ + "className": "ObjectStorageClient", + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteBucket", + "params": [ + { + "name": "deleteBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "DeleteBucketRequest" + } + ] + }, + { + "functionName": "list", + "SDKFunctionName": "listBuckets", + "params": [ + { + "name": "listBucketsRequest", + "optional": false, + "type": "TypeReference", + "typeName": "ListBucketsRequest" + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateBucket", + "params": [ + { + "name": "updateBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateBucketRequest" + } + ] + } + ], + "serviceName": "ArchivalStorage" +} diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js b/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js new file mode 100644 index 00000000..13e04383 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_1/sourceFile.js @@ -0,0 +1,11 @@ +class ClassName { + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json b/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json new file mode 100644 index 00000000..1a7d3593 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_2/data.json @@ -0,0 +1,16 @@ +{ + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + } + ] +} diff --git a/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js b/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js new file mode 100644 index 00000000..2f5ce226 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/invalidDataset_2/sourceFile.js @@ -0,0 +1,20 @@ +class ClassName { + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/dummyData/validDataset/data.json b/generator/test/transformers/oracle/dummyData/validDataset/data.json new file mode 100644 index 00000000..e0a597b8 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/validDataset/data.json @@ -0,0 +1,54 @@ +{ + "className": "ObjectStorageClient", + "functions": [ + { + "functionName": "create", + "SDKFunctionName": "createBucket", + "params": [ + { + "name": "createBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "CreateBucketRequest" + } + ] + }, + { + "functionName": "delete", + "SDKFunctionName": "deleteBucket", + "params": [ + { + "name": "deleteBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "DeleteBucketRequest" + } + ] + }, + { + "functionName": "list", + "SDKFunctionName": "listBuckets", + "params": [ + { + "name": "listBucketsRequest", + "optional": false, + "type": "TypeReference", + "typeName": "ListBucketsRequest" + } + ] + }, + { + "functionName": "update", + "SDKFunctionName": "updateBucket", + "params": [ + { + "name": "updateBucketRequest", + "optional": false, + "type": "TypeReference", + "typeName": "UpdateBucketRequest" + } + ] + } + ], + "serviceName": "ArchivalStorage" +} diff --git a/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js b/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js new file mode 100644 index 00000000..80202db6 --- /dev/null +++ b/generator/test/transformers/oracle/dummyData/validDataset/sourceFile.js @@ -0,0 +1,25 @@ +class ClassName { + /** + * + * @param {module} do Oracle SDK + * @param {object} options SDK options + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk; + this._sdkclassName = this._oci.SDKClassName( + params, + clientConfiguration + ); + } + + function() { + return new Promise((resolve, reject) => { + this._sdkClassName + .SDKFunctionName() + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} + +module.exports = ClassName; diff --git a/generator/test/transformers/oracle/transformer.test.ts b/generator/test/transformers/oracle/transformer.test.ts new file mode 100644 index 00000000..54ddb3b7 --- /dev/null +++ b/generator/test/transformers/oracle/transformer.test.ts @@ -0,0 +1,69 @@ +import { expect } from 'chai'; +import { createSourceFile, isSourceFile, ScriptTarget } from 'typescript'; + +import { transform } from '../../../transformers/oracle/transformer'; +import { readJsonData, readSourceFile } from '../lib/helper'; + +interface TestData { + AST: any; + data: any; +} + +describe('Oracle transformer transform', () => { + context('Valid source code and valid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('validDataset', 'oracle'); + testData.data = await readJsonData('validDataset', 'oracle'); + }); + it('Should return a String', async () => { + const result = await transform(testData.AST, testData.data); + expect(result).to.be.string; + }); + it('Should return a Javascript code in String format', async () => { + const result = await transform(testData.AST, testData.data); + try { + const sourceCode = createSourceFile( + 'someClass.js', + result, + ScriptTarget.Latest + ); + expect(isSourceFile(sourceCode)).to.be.true; + } catch (error) { + console.log(error); + } + }); + }); + + context('Invalid source code and valid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('invalidDataset_1', 'oracle'); + testData.data = await readJsonData('invalidDataset_1', 'oracle'); + }); + + it('Should return a validation Error', async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql('Code is invalid'); + } + }); + }); + + context('Valid source code and invalid data', () => { + const testData: TestData = { AST: null, data: null }; + before(async () => { + testData.AST = await readSourceFile('invalidDataset_2', 'oracle'); + testData.data = await readJsonData('invalidDataset_2', 'oracle'); + }); + + it('Should return a validation Error', async () => { + try { + await transform(testData.AST, testData.data); + } catch (error) { + expect(error.message).to.eql('Input is invalid'); + } + }); + }); +}); diff --git a/generator/transformers/aws/transformer.js b/generator/transformers/aws/transformer.js index 90312335..da809d1a 100644 --- a/generator/transformers/aws/transformer.js +++ b/generator/transformers/aws/transformer.js @@ -1,407 +1,450 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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 lodash_1 = require('lodash'); +var ts = require('typescript'); var dummyIdentifiers = [ - "ClassName", - "_sdkClassName", - "SDKClassName", - "SDKFunctionName" + 'ClassName', + '_sdkClassName', + 'SDKClassName', + 'SDKFunctionName', ]; var printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } 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]); - 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("AWS_" + 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) - ); - 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 AWS \n "; - addMultiLineComment(node, comment); - } - if (ts.isMethodDeclaration(node)) { - var parameters = classData.functions[count].params.map( - function(param) { - var statment; - if (param.optional) { - statment = - "* @param {" + - param.typeName + - "} [" + - param.name + - "] - Data required for " + - classData.functions[count].SDKFunctionName; - } else { - statment = - "* @param {" + - param.typeName + - "} " + - 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]; - } - }); - }); + 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] + ); + 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( + 'AWS_' + + 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 + ) + ); + 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 AWS \n '; + addMultiLineComment(node, comment); + } + if (ts.isMethodDeclaration(node)) { + var parameters = classData.functions[ + count + ].params.map(function(param) { + var statment; + if (param.optional) { + statment = + '* @param {' + + param.typeName + + '} [' + + param.name + + '] - Data required for ' + + classData.functions[count] + .SDKFunctionName; + } else { + statment = + '* @param {' + + param.typeName + + '} ' + + 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/aws/transformer.ts b/generator/transformers/aws/transformer.ts index 31230633..ed063fe9 100644 --- a/generator/transformers/aws/transformer.ts +++ b/generator/transformers/aws/transformer.ts @@ -1,239 +1,252 @@ -import { cloneDeep } from "lodash"; -import * as ts from "typescript"; +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; const dummyIdentifiers = [ - "ClassName", - "_sdkClassName", - "SDKClassName", - "SDKFunctionName" + 'ClassName', + '_sdkClassName', + 'SDKClassName', + 'SDKFunctionName', ]; const printer: ts.Printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment: string) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } export async function transform( - code: ts.SourceFile, - classData: any + code: ts.SourceFile, + classData: any ): Promise { - 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]); - 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); - }; - - 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("AWS_" + 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) - ); - 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); - }; - - 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 = `* + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const functions: any = []; + classData.functions.map(method => { + const clonedNode = Object.assign({}, node.members[1]); + 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); + }; + + 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('AWS_' + 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) + ); + 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); + }; + + 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 AWS `; - addMultiLineComment(node, comment); - } - - if (ts.isMethodDeclaration(node)) { - let parameters = classData.functions[count].params.map(param => { - let statment; - - if (param.optional) { - statment = `* @param {${param.typeName}} [${param.name}] - Data required for ${classData.functions[count].SDKFunctionName}`; - } else { - statment = `* @param {${param.typeName}} ${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 = `* + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + const parameters = classData.functions[count].params.map( + param => { + let statment; + + if (param.optional) { + statment = `* @param {${param.typeName}} [${param.name}] - Data required for ${classData.functions[count].SDKFunctionName}`; + } else { + statment = `* @param {${param.typeName}} ${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 = `* + } 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); - }; - - 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; + } + + addMultiLineComment(node, comment); + count++; + } + + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + 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/generator/transformers/azure/transformer.js b/generator/transformers/azure/transformer.js index 1ae0748d..069cea3a 100644 --- a/generator/transformers/azure/transformer.js +++ b/generator/transformers/azure/transformer.js @@ -1,428 +1,480 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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 lodash_1 = require('lodash'); +var ts = require('typescript'); var dummyIdentifiers = [ - "ClassName", - "SDKClassName", - "SDKFunctionName", - "ClientName", - "functionClient" + 'ClassName', + 'SDKClassName', + 'SDKFunctionName', + 'ClientName', + 'functionClient', ]; var printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } function transform(code, classData) { - return __awaiter(this, void 0, void 0, function() { - var node, - importStatments, - addFunctions, - addIdentifiers, - addComments, - result_1, - result_2, - result_3; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - node = code.statements.find(function(stm) { - return ts.isClassDeclaration(stm); - }); - if (!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); - // import related - classData.clients = Array.from( - new Set( - classData.functions.map(function(method) { - return method.client; - }) - ) - ); - importStatments = new Array(classData.clients.length); - importStatments.fill(Object.assign({}, code.statements[0])); - code.statements = importStatments.concat(code.statements.slice(1)); - 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]); - 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; - var clientCount = 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.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@azure/" + classData.functions[0].pkgName - ); - } - if ( - ts.isIdentifier(node) && - dummyIdentifiers.includes(node.text) - ) { - var updatedIdentifier = void 0; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("Azure_" + classData.serviceName) - ); - break; - case "SDKClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - classData.functions[count].fileName.split(".")[0] - ) - ); - break; - case "functionClient": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.functions[count].client) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientCount]) - ); - clientCount++; - 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; - } - }); - } - 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.serviceName + - " object\n * @category Azure\n "; - addMultiLineComment(node, comment); - } - if (ts.isMethodDeclaration(node)) { - var parameters = classData.functions[count].params.map( - function(param) { - var statment; - if (param.optional) { - statment = - "* @param {" + - param.type + - "} [" + - param.name + - "] - Optional parameter"; - } else { - statment = - "* @param {" + - param.type + - "} " + - param.name + - " - Mandatory parameter"; - } - 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.functions[0].pkgName.split("-")[1] + - "\n " + - paramStatments_1 + - "\n * @returns {Promise<" + - classData.functions[count].SDKFunctionName + - "Response>}\n "; - } else { - comment = - "*\n * Trigers the " + - classData.functions[count].SDKFunctionName + - " function of " + - classData.functions[0].pkgName.split("-")[1] + - "\n * @returns {Promise<" + - classData.functions[count].SDKFunctionName + - "Response>}\n "; - } - addMultiLineComment(node, comment); - count++; - } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; - }; - 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]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var node, + importStatments, + addFunctions, + addIdentifiers, + addComments, + result_1, + result_2, + result_3; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + node = code.statements.find(function(stm) { + return ts.isClassDeclaration(stm); + }); + if (!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); + // import related + classData.clients = Array.from( + new Set( + classData.functions.map(function(method) { + return method.client; + }) + ) + ); + importStatments = new Array(classData.clients.length); + importStatments.fill(Object.assign({}, code.statements[0])); + code.statements = importStatments.concat( + code.statements.slice(1) + ); + 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] + ); + 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; + var clientCount = 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.isStringLiteral(node) && + node.text === 'pkgName' + ) { + return ts.createStringLiteral( + '@azure/' + + classData.functions[0].pkgName + ); + } + if ( + ts.isIdentifier(node) && + dummyIdentifiers.includes(node.text) + ) { + var updatedIdentifier = void 0; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + 'Azure_' + + classData.serviceName + ) + ); + break; + case 'SDKClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[ + count + ].fileName.split('.')[0] + ) + ); + break; + case 'functionClient': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count] + .client + ) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.clients[ + clientCount + ] + ) + ); + clientCount++; + 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; + } + }); + } + 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.serviceName + + ' object\n * @category Azure\n '; + addMultiLineComment(node, comment); + } + if (ts.isMethodDeclaration(node)) { + var parameters = classData.functions[ + count + ].params.map(function(param) { + var statment; + if (param.optional) { + statment = + '* @param {' + + param.type + + '} [' + + param.name + + '] - Optional parameter'; + } else { + statment = + '* @param {' + + param.type + + '} ' + + param.name + + ' - Mandatory parameter'; + } + 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.functions[0].pkgName.split( + '-' + )[1] + + '\n ' + + paramStatments_1 + + '\n * @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } else { + comment = + '*\n * Trigers the ' + + classData.functions[count] + .SDKFunctionName + + ' function of ' + + classData.functions[0].pkgName.split( + '-' + )[1] + + '\n * @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } + addMultiLineComment(node, comment); + count++; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + 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/azure/transformer.ts b/generator/transformers/azure/transformer.ts index 1c9fd106..e27a4ef6 100644 --- a/generator/transformers/azure/transformer.ts +++ b/generator/transformers/azure/transformer.ts @@ -1,262 +1,279 @@ -import { cloneDeep } from "lodash"; -import * as ts from "typescript"; +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; const dummyIdentifiers = [ - "ClassName", - "SDKClassName", - "SDKFunctionName", - "ClientName", - "functionClient" + 'ClassName', + 'SDKClassName', + 'SDKFunctionName', + 'ClientName', + 'functionClient', ]; const printer: ts.Printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment: string) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } export async function transform( - code: ts.SourceFile, - classData: any + code: ts.SourceFile, + classData: any ): Promise { - const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); + const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); - if (!classData.functions) { - throw new Error("Input is invalid"); - } + if (!classData.functions) { + throw new Error('Input is invalid'); + } - if (!node || !node.members.some(member => ts.isMethodDeclaration(member))) { - throw new Error("Code is invalid"); - } + if (!node || !node.members.some(member => ts.isMethodDeclaration(member))) { + throw new Error('Code is invalid'); + } - code = cloneDeep(code); + code = cloneDeep(code); - // import related - classData.clients = Array.from( - new Set(classData.functions.map(method => method.client)) - ); - const importStatments: any = new Array(classData.clients.length); - importStatments.fill(Object.assign({}, code.statements[0])); - code.statements = importStatments.concat(code.statements.slice(1)); - // import related + // import related + classData.clients = Array.from( + new Set(classData.functions.map(method => method.client)) + ); + const importStatments: any = new Array(classData.clients.length); + importStatments.fill(Object.assign({}, code.statements[0])); + code.statements = importStatments.concat(code.statements.slice(1)); + // import related - 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]); - clonedNode.name = ts.createIdentifier(method.functionName); - functions.push(clonedNode); - }); + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const functions: any = []; + classData.functions.map(method => { + const clonedNode = Object.assign({}, node.members[1]); + 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)) - ); + 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); - }; + return updatedClass; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - const addIdentifiers = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - let count = 0; - let clientCount = 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 - ); + const addIdentifiers = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + let count = 0; + let clientCount = 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"); - } + if (param.optional) { + paramNode.initializer = ts.createIdentifier( + 'undefined' + ); + } - return paramNode; - }); + return paramNode; + } + ); - node.parameters = parameters; - } + node.parameters = parameters; + } - if (ts.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@azure/" + classData.functions[0].pkgName - ); - } + if (ts.isStringLiteral(node) && node.text === 'pkgName') { + return ts.createStringLiteral( + '@azure/' + classData.functions[0].pkgName + ); + } - if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { - let updatedIdentifier; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("Azure_" + classData.serviceName) - ); - break; - case "SDKClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - classData.functions[count].fileName.split(".")[0] - ) - ); - break; - case "functionClient": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.functions[count].client) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientCount]) - ); - clientCount++; - break; - case "SDKFunctionName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.functions[count].SDKFunctionName) - ); - count++; - } - return updatedIdentifier; - } + if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { + let updatedIdentifier; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + 'Azure_' + classData.serviceName + ) + ); + break; + case 'SDKClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count].fileName.split( + '.' + )[0] + ) + ); + break; + case 'functionClient': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count].client + ) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier(classData.clients[clientCount]) + ); + clientCount++; + 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; - } - }); - } + 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; + } + }); + } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - const addComments = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - let count = 0; + 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 = `* + 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.serviceName} object * @category Azure `; - addMultiLineComment(node, comment); - } + addMultiLineComment(node, comment); + } - if (ts.isMethodDeclaration(node)) { - let parameters = classData.functions[count].params.map(param => { - let statment; + if (ts.isMethodDeclaration(node)) { + const parameters = classData.functions[count].params.map( + param => { + let statment; - if (param.optional) { - statment = `* @param {${param.type}} [${param.name}] - Optional parameter`; - } else { - statment = `* @param {${param.type}} ${param.name} - Mandatory parameter`; - } - return statment; - }); + if (param.optional) { + statment = `* @param {${param.type}} [${param.name}] - Optional parameter`; + } else { + statment = `* @param {${param.type}} ${param.name} - Mandatory parameter`; + } + return statment; + } + ); - let comment; - if (parameters.length > 0) { - let paramStatments: string = ""; - parameters.map(param => { - paramStatments = paramStatments.concat( - paramStatments === "" ? `${param}` : `\n ${param}` - ); - }); + let comment; + if (parameters.length > 0) { + let paramStatments: string = ''; + parameters.map(param => { + paramStatments = paramStatments.concat( + paramStatments === '' ? `${param}` : `\n ${param}` + ); + }); - comment = `* + comment = `* * Trigers the ${classData.functions[count].SDKFunctionName} function of ${ - classData.functions[0].pkgName.split("-")[1] - } + classData.functions[0].pkgName.split('-')[1] + } ${paramStatments} * @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} `; - } else { - comment = `* + } else { + comment = `* * Trigers the ${classData.functions[count].SDKFunctionName} function of ${ - classData.functions[0].pkgName.split("-")[1] - } + classData.functions[0].pkgName.split('-')[1] + } * @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} `; - } + } - addMultiLineComment(node, comment); - count++; - } + addMultiLineComment(node, comment); + count++; + } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - 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; + 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/generator/transformers/do/transformer.js b/generator/transformers/do/transformer.js index 81a0bc68..30e4c2fb 100644 --- a/generator/transformers/do/transformer.js +++ b/generator/transformers/do/transformer.js @@ -1,433 +1,480 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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 lodash_1 = require('lodash'); +var ts = require('typescript'); var dummyIdentifiers = [ - "ClassName", - "_sdkClassName", - "SDKClassName", - "SDKFunctionName" + 'ClassName', + '_sdkClassName', + 'SDKClassName', + 'SDKFunctionName', ]; var printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + 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]; - } - }); - }); + 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 index 3f063962..115ed946 100644 --- a/generator/transformers/do/transformer.ts +++ b/generator/transformers/do/transformer.ts @@ -1,51 +1,51 @@ -import { cloneDeep } from "lodash"; -import * as ts from "typescript"; +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; const dummyIdentifiers = [ - "ClassName", - "_sdkClassName", - "SDKClassName", - "SDKFunctionName" + 'ClassName', + '_sdkClassName', + 'SDKClassName', + 'SDKFunctionName', ]; const printer: ts.Printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment: string) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } /* @@ -53,215 +53,228 @@ function toSourceFile(sourceCode: string): ts.SourceFile { */ export async function transform( - code: ts.SourceFile, - classData: any + 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 = `* + /* + * Transformation function for adding Functions + */ + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const 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 = `* + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + const 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 = `* + } 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; + } + + 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/generator/transformers/googleCloud/classBasedTransformer.js b/generator/transformers/googleCloud/classBasedTransformer.js index a92ac78b..48c30b18 100644 --- a/generator/transformers/googleCloud/classBasedTransformer.js +++ b/generator/transformers/googleCloud/classBasedTransformer.js @@ -1,477 +1,553 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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.classBasedTransform = void 0; -var ts = require("typescript"); -var lodash_1 = require("lodash"); +var lodash_1 = require('lodash'); +var ts = require('typescript'); var dummyIdentifiers = [ - "ClassName", - "SDKFunctionName", - "ClientName", - "_client", - "_clientObj", - "Client", - "_className" + 'ClassName', + 'SDKFunctionName', + 'ClientName', + '_client', + '_clientObj', + 'Client', + '_className', ]; var printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } function classBasedTransform(code, data) { - return __awaiter(this, void 0, void 0, function() { - var node, - addFunctions, - addIdentifiers, - addComments, - result_1, - result_2, - result_3; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - node = code.statements.find(function(stm) { - return ts.isClassDeclaration(stm); - }); - if (!data.functions || !data.classData) { - 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); - addFunctions = function(context) { - return function(rootNode) { - function visit(node) { - if (ts.isClassDeclaration(node)) { - var functions_1 = []; - data.functions.map(function(method) { - var clonedNode; - if (method.returnTypeName === "Promise") { - if ( - (method.classConstructorData.parameters[0].type = - "TypeReference" && - !method.classConstructorData.parameters[0].optional) - ) { - clonedNode = Object.assign({}, node.members[3]); - } else { - clonedNode = Object.assign({}, node.members[1]); - } - } else { - clonedNode = Object.assign({}, node.members[2]); - } - 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)) { - data.functions[count].allParams = []; - var params = []; - if ( - (data.functions[ - count - ].classConstructorData.parameters[0].type = - "TypeReference" && - !data.functions[count].classConstructorData.parameters[0] - .optional) - ) { - params.push( - data.functions[count].classConstructorData.parameters[0] - ); - data.functions[count].allParams.push({ - name: "identifier", - optional: true, - type: "string" - }); - } - params = params.concat(data.functions[count].params); - data.functions[count].allParams = data.functions[ - count - ].allParams.concat(params); - var parameters = 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.concat(node.parameters); - } - if (ts.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@google-cloud/" + data.functions[0].pkgName - ); - } - if ( - ts.isIdentifier(node) && - dummyIdentifiers.includes(node.text) - ) { - var updatedIdentifier = void 0; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("GCP_" + data.functions[0].pkgName) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.mainClass) - ); - break; - case "SDKFunctionName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - data.functions[count].SDKFunctionName - ) - ); - count++; - break; - case "_className": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - data.functions[count].client.toLowerCase() - ) - ); - break; - case "_client": - if ( - (data.functions[ - count - ].classConstructorData.parameters[0].type = - "TypeReference" && - !data.functions[count].classConstructorData - .parameters[0].optional) - ) { - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - data.functions[count].classConstructorData - .parameters[0].name - ) - ); - } else { - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - "_" + data.mainClass.toLowerCase() - ) - ); - } - break; - case "_clientObj": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("_" + data.mainClass.toLowerCase()) - ); - break; - case "Client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.mainClass) - ); - break; - } - return updatedIdentifier; - } - if (ts.isCallExpression(node)) { - node.expression.forEachChild(function(childNode) { - if ( - ts.isIdentifier(childNode) && - childNode.text === "SDKFunctionName" - ) { - var args = data.functions[count].params.map(function( - param - ) { - return ts.createIdentifier(param.name); - }); - node.arguments = args; - } - }); - } - 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 " + - data.functions[0].pkgName + - " object\n * @category Google Cloud\n "; - addMultiLineComment(node, comment); - } - if (ts.isMethodDeclaration(node)) { - var parameters = data.functions[count].allParams.map(function( - param - ) { - var statment; - if (param.optional) { - statment = - "* @param {" + - (param.typeRefName ? param.typeRefName : param.type) + - "} [" + - param.name + - "] - Optional parameter"; - } else { - statment = - "* @param {" + - (param.typeRefName ? param.typeRefName : param.type) + - "} " + - param.name + - " - Mandatory parameter"; - } - 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 " + - data.functions[count].SDKFunctionName + - " function of " + - data.functions[0].pkgName + - "\n " + - paramStatments_1 + - "\n * @returns {Promise<" + - data.functions[count].SDKFunctionName + - "Response>}\n "; - } else { - comment = - "*\n * Trigers the " + - data.functions[count].SDKFunctionName + - " function of " + - data.functions[0].pkgName + - "\n * @returns {Promise<" + - data.functions[count].SDKFunctionName + - "Response>}\n "; - } - addMultiLineComment(node, comment); - count++; - } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; - }; - 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]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var node, + addFunctions, + addIdentifiers, + addComments, + result_1, + result_2, + result_3; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + node = code.statements.find(function(stm) { + return ts.isClassDeclaration(stm); + }); + if (!data.functions || !data.classData) { + 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); + addFunctions = function(context) { + return function(rootNode) { + function visit(node) { + if (ts.isClassDeclaration(node)) { + var functions_1 = []; + data.functions.map(function(method) { + var clonedNode; + if ( + method.returnTypeName === 'Promise' + ) { + if ( + (method.classConstructorData.parameters[0].type = + 'TypeReference' && + !method.classConstructorData + .parameters[0].optional) + ) { + clonedNode = Object.assign( + {}, + node.members[3] + ); + } else { + clonedNode = Object.assign( + {}, + node.members[1] + ); + } + } else { + clonedNode = Object.assign( + {}, + node.members[2] + ); + } + 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)) { + data.functions[count].allParams = []; + var params = []; + if ( + (data.functions[ + count + ].classConstructorData.parameters[0].type = + 'TypeReference' && + !data.functions[count] + .classConstructorData + .parameters[0].optional) + ) { + params.push( + data.functions[count] + .classConstructorData + .parameters[0] + ); + data.functions[count].allParams.push({ + name: 'identifier', + optional: true, + type: 'string', + }); + } + params = params.concat( + data.functions[count].params + ); + data.functions[ + count + ].allParams = data.functions[ + count + ].allParams.concat(params); + var parameters = 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.concat( + node.parameters + ); + } + if ( + ts.isStringLiteral(node) && + node.text === 'pkgName' + ) { + return ts.createStringLiteral( + '@google-cloud/' + + data.functions[0].pkgName + ); + } + if ( + ts.isIdentifier(node) && + dummyIdentifiers.includes(node.text) + ) { + var updatedIdentifier = void 0; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + 'GCP_' + + data.functions[0] + .pkgName + ) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.mainClass + ) + ); + break; + case 'SDKFunctionName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[count] + .SDKFunctionName + ) + ); + count++; + break; + case '_className': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[ + count + ].client.toLowerCase() + ) + ); + break; + case '_client': + if ( + (data.functions[ + count + ].classConstructorData.parameters[0].type = + 'TypeReference' && + !data.functions[count] + .classConstructorData + .parameters[0].optional) + ) { + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[count] + .classConstructorData + .parameters[0].name + ) + ); + } else { + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + data.mainClass.toLowerCase() + ) + ); + } + break; + case '_clientObj': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + data.mainClass.toLowerCase() + ) + ); + break; + case 'Client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.mainClass + ) + ); + break; + } + return updatedIdentifier; + } + if (ts.isCallExpression(node)) { + node.expression.forEachChild(function( + childNode + ) { + if ( + ts.isIdentifier(childNode) && + childNode.text === 'SDKFunctionName' + ) { + var args = data.functions[ + count + ].params.map(function(param) { + return ts.createIdentifier( + param.name + ); + }); + node.arguments = args; + } + }); + } + 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 ' + + data.functions[0].pkgName + + ' object\n * @category Google Cloud\n '; + addMultiLineComment(node, comment); + } + if (ts.isMethodDeclaration(node)) { + var parameters = data.functions[ + count + ].allParams.map(function(param) { + var statment; + if (param.optional) { + statment = + '* @param {' + + (param.typeRefName + ? param.typeRefName + : param.type) + + '} [' + + param.name + + '] - Optional parameter'; + } else { + statment = + '* @param {' + + (param.typeRefName + ? param.typeRefName + : param.type) + + '} ' + + param.name + + ' - Mandatory parameter'; + } + 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 ' + + data.functions[count] + .SDKFunctionName + + ' function of ' + + data.functions[0].pkgName + + '\n ' + + paramStatments_1 + + '\n * @returns {Promise<' + + data.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } else { + comment = + '*\n * Trigers the ' + + data.functions[count] + .SDKFunctionName + + ' function of ' + + data.functions[0].pkgName + + '\n * @returns {Promise<' + + data.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } + addMultiLineComment(node, comment); + count++; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + 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.classBasedTransform = classBasedTransform; diff --git a/generator/transformers/googleCloud/classBasedTransformer.ts b/generator/transformers/googleCloud/classBasedTransformer.ts index a68f9365..06f0f729 100644 --- a/generator/transformers/googleCloud/classBasedTransformer.ts +++ b/generator/transformers/googleCloud/classBasedTransformer.ts @@ -1,310 +1,340 @@ -import { cloneDeep } from "lodash"; -import * as ts from "typescript"; +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; const dummyIdentifiers = [ - "ClassName", - "SDKFunctionName", - "ClientName", - "_client", - "_clientObj", - "Client", - "_className" + 'ClassName', + 'SDKFunctionName', + 'ClientName', + '_client', + '_clientObj', + 'Client', + '_className', ]; const printer: ts.Printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment: string) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } export async function classBasedTransform( - code: ts.SourceFile, - data: any + code: ts.SourceFile, + data: any ): Promise { - const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); - - if (!data.functions || !data.classData) { - 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 addFunctions = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - function visit(node: ts.Node): ts.Node { - if (ts.isClassDeclaration(node)) { - let functions: any = []; - data.functions.map(method => { - let clonedNode; - if (method.returnTypeName === "Promise") { - if ( - (method.classConstructorData.parameters[0].type = - "TypeReference" && - !method.classConstructorData.parameters[0].optional) - ) { - clonedNode = Object.assign({}, node.members[3]); - } else { - clonedNode = Object.assign({}, node.members[1]); - } - } else { - clonedNode = Object.assign({}, node.members[2]); - } - 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); - }; - - const addIdentifiers = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - let count = 0; - function visit(node: ts.Node): ts.Node { - if (ts.isMethodDeclaration(node)) { - data.functions[count].allParams = []; - - let params = []; - if ( - (data.functions[count].classConstructorData.parameters[0].type = - "TypeReference" && - !data.functions[count].classConstructorData.parameters[0].optional) - ) { - params.push(data.functions[count].classConstructorData.parameters[0]); - - data.functions[count].allParams.push({ - name: "identifier", - optional: true, - type: "string" - }); - } - - params = params.concat(data.functions[count].params); - data.functions[count].allParams = data.functions[ - count - ].allParams.concat(params); - - const parameters: any = 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.concat(node.parameters); - } - - if (ts.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@google-cloud/" + data.functions[0].pkgName - ); - } - - if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { - let updatedIdentifier; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("GCP_" + data.functions[0].pkgName) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.mainClass) - ); - break; - case "SDKFunctionName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.functions[count].SDKFunctionName) - ); - count++; - break; - case "_className": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.functions[count].client.toLowerCase()) - ); - break; - case "_client": - if ( - (data.functions[count].classConstructorData.parameters[0].type = - "TypeReference" && - !data.functions[count].classConstructorData.parameters[0] - .optional) - ) { - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - data.functions[count].classConstructorData.parameters[0].name - ) - ); - } else { - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("_" + data.mainClass.toLowerCase()) - ); - } - break; - case "_clientObj": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("_" + data.mainClass.toLowerCase()) - ); - break; - case "Client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(data.mainClass) - ); - break; - } - return updatedIdentifier; - } - - if (ts.isCallExpression(node)) { - node.expression.forEachChild(childNode => { - if ( - ts.isIdentifier(childNode) && - childNode.text === "SDKFunctionName" - ) { - const args = data.functions[count].params.map(param => - ts.createIdentifier(param.name) - ); - node.arguments = args; - } - }); - } - - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; - - 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 = `* + const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); + + if (!data.functions || !data.classData) { + 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 addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const functions: any = []; + data.functions.map(method => { + let clonedNode; + if (method.returnTypeName === 'Promise') { + if ( + (method.classConstructorData.parameters[0].type = + 'TypeReference' && + !method.classConstructorData.parameters[0] + .optional) + ) { + clonedNode = Object.assign({}, node.members[3]); + } else { + clonedNode = Object.assign({}, node.members[1]); + } + } else { + clonedNode = Object.assign({}, node.members[2]); + } + 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); + }; + + const addIdentifiers = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + let count = 0; + function visit(node: ts.Node): ts.Node { + if (ts.isMethodDeclaration(node)) { + data.functions[count].allParams = []; + + let params = []; + if ( + (data.functions[ + count + ].classConstructorData.parameters[0].type = + 'TypeReference' && + !data.functions[count].classConstructorData + .parameters[0].optional) + ) { + params.push( + data.functions[count].classConstructorData.parameters[0] + ); + + data.functions[count].allParams.push({ + name: 'identifier', + optional: true, + type: 'string', + }); + } + + params = params.concat(data.functions[count].params); + data.functions[count].allParams = data.functions[ + count + ].allParams.concat(params); + + const parameters: any = 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.concat(node.parameters); + } + + if (ts.isStringLiteral(node) && node.text === 'pkgName') { + return ts.createStringLiteral( + '@google-cloud/' + data.functions[0].pkgName + ); + } + + if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { + let updatedIdentifier; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + 'GCP_' + data.functions[0].pkgName + ) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier(data.mainClass) + ); + break; + case 'SDKFunctionName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[count].SDKFunctionName + ) + ); + count++; + break; + case '_className': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[count].client.toLowerCase() + ) + ); + break; + case '_client': + if ( + (data.functions[ + count + ].classConstructorData.parameters[0].type = + 'TypeReference' && + !data.functions[count].classConstructorData + .parameters[0].optional) + ) { + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + data.functions[count].classConstructorData + .parameters[0].name + ) + ); + } else { + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + data.mainClass.toLowerCase() + ) + ); + } + break; + case '_clientObj': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + data.mainClass.toLowerCase() + ) + ); + break; + case 'Client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier(data.mainClass) + ); + break; + } + return updatedIdentifier; + } + + if (ts.isCallExpression(node)) { + node.expression.forEachChild(childNode => { + if ( + ts.isIdentifier(childNode) && + childNode.text === 'SDKFunctionName' + ) { + const args = data.functions[count].params.map(param => + ts.createIdentifier(param.name) + ); + node.arguments = args; + } + }); + } + + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + 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 ${data.functions[0].pkgName} object * @category Google Cloud `; - addMultiLineComment(node, comment); - } - - if (ts.isMethodDeclaration(node)) { - let parameters = data.functions[count].allParams.map(param => { - let statment; - - if (param.optional) { - statment = `* @param {${ - param.typeRefName ? param.typeRefName : param.type - }} [${param.name}] - Optional parameter`; - } else { - statment = `* @param {${ - param.typeRefName ? param.typeRefName : param.type - }} ${param.name} - Mandatory parameter`; - } - return statment; - }); - - let comment; - if (parameters.length > 0) { - let paramStatments: string = ""; - parameters.map(param => { - paramStatments = paramStatments.concat( - paramStatments === "" ? `${param}` : `\n ${param}` - ); - }); - - comment = `* + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + const parameters = data.functions[count].allParams.map( + param => { + let statment; + + if (param.optional) { + statment = `* @param {${ + param.typeRefName + ? param.typeRefName + : param.type + }} [${param.name}] - Optional parameter`; + } else { + statment = `* @param {${ + param.typeRefName + ? param.typeRefName + : param.type + }} ${param.name} - Mandatory parameter`; + } + return statment; + } + ); + + let comment; + if (parameters.length > 0) { + let paramStatments: string = ''; + parameters.map(param => { + paramStatments = paramStatments.concat( + paramStatments === '' ? `${param}` : `\n ${param}` + ); + }); + + comment = `* * Trigers the ${data.functions[count].SDKFunctionName} function of ${data.functions[0].pkgName} ${paramStatments} * @returns {Promise<${data.functions[count].SDKFunctionName}Response>} `; - } else { - comment = `* + } else { + comment = `* * Trigers the ${data.functions[count].SDKFunctionName} function of ${data.functions[0].pkgName} * @returns {Promise<${data.functions[count].SDKFunctionName}Response>} `; - } - - addMultiLineComment(node, comment); - count++; - } - - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; - - 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; + } + + addMultiLineComment(node, comment); + count++; + } + + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + + 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/generator/transformers/googleCloud/clientBasedTransformer.js b/generator/transformers/googleCloud/clientBasedTransformer.js index 509837e6..715482e2 100644 --- a/generator/transformers/googleCloud/clientBasedTransformer.js +++ b/generator/transformers/googleCloud/clientBasedTransformer.js @@ -1,468 +1,536 @@ -"use strict"; +'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()); - }); - }; + (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 }; - } - }; + (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.clientBasedTransform = void 0; -var ts = require("typescript"); -var lodash_1 = require("lodash"); +var lodash_1 = require('lodash'); +var ts = require('typescript'); var dummyIdentifiers = [ - "ClassName", - "SDKFunctionName", - "ClientName", - "_client", - "_clientObj", - "Client" + 'ClassName', + 'SDKFunctionName', + 'ClientName', + '_client', + '_clientObj', + 'Client', ]; var printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } function clientBasedTransform(code, classData) { - return __awaiter(this, void 0, void 0, function() { - var node, - importStatments, - classDeclarationNode, - constructorNode, - clientObjects, - addFunctions, - addIdentifiers, - addComments, - result_1, - result_2, - result_3; - return __generator(this, function(_a) { - switch (_a.label) { - case 0: - node = code.statements.find(function(stm) { - return ts.isClassDeclaration(stm); - }); - if (!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); - // import related - classData.clients = Array.from( - new Set( - classData.functions.map(function(method) { - return method.client; - }) - ) - ); - importStatments = new Array(classData.clients.length); - importStatments.fill(Object.assign({}, code.statements[0])); - code.statements = importStatments.concat(code.statements.slice(1)); - classDeclarationNode = code.statements.find(function(node) { - return ts.isClassDeclaration(node); - }); - constructorNode = classDeclarationNode.members.find(function(node) { - return ts.SyntaxKind[node.kind] === "Constructor"; - }); - clientObjects = new Array(classData.clients.length); - clientObjects.fill( - Object.assign({}, constructorNode.body.statements[0]) - ); - constructorNode.body.statements = clientObjects; - addFunctions = function(context) { - return function(rootNode) { - function visit(node) { - if (ts.isClassDeclaration(node)) { - var functions_1 = []; - classData.functions.map(function(method) { - var clonedNode; - if (method.returnTypeName === "Promise") { - clonedNode = Object.assign({}, node.members[1]); - } else { - clonedNode = Object.assign({}, node.members[2]); - } - 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; - var clientCount = 0; - var clientObjCount = 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.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@google-cloud/" + classData.functions[0].pkgName - ); - } - if ( - ts.isIdentifier(node) && - dummyIdentifiers.includes(node.text) - ) { - var updatedIdentifier = void 0; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("GCP_" + classData.serviceName) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientCount]) - ); - clientCount++; - break; - case "SDKFunctionName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - classData.functions[count].SDKFunctionName - ) - ); - count++; - break; - case "_client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - "_" + - classData.functions[count].client - .toLowerCase() - .charAt(0) + - classData.functions[count].client.substr(1) - ) - ); - break; - case "_clientObj": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - "_" + - classData.clients[clientObjCount] - .toLowerCase() - .charAt(0) + - classData.clients[clientObjCount].substr(1) - ) - ); - break; - case "Client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientObjCount]) - ); - clientObjCount++; - break; - } - 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; - } - }); - } - 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.serviceName + - " object\n * @category Google Cloud\n "; - addMultiLineComment(node, comment); - } - if (ts.isMethodDeclaration(node)) { - var parameters = classData.functions[count].params.map( - function(param) { - var statment; - if (param.optional) { - statment = - "* @param {" + - param.type + - "} [" + - 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.functions[0].pkgName.split("-")[1] + - "\n " + - paramStatments_1 + - "\n * @returns {Promise<" + - classData.functions[count].SDKFunctionName + - "Response>}\n "; - } else { - comment = - "*\n * Trigers the " + - classData.functions[count].SDKFunctionName + - " function of " + - classData.functions[0].pkgName.split("-")[1] + - "\n * @returns {Promise<" + - classData.functions[count].SDKFunctionName + - "Response>}\n "; - } - addMultiLineComment(node, comment); - count++; - } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; - }; - 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]; - } - }); - }); + return __awaiter(this, void 0, void 0, function() { + var node, + importStatments, + classDeclarationNode, + constructorNode, + clientObjects, + addFunctions, + addIdentifiers, + addComments, + result_1, + result_2, + result_3; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + node = code.statements.find(function(stm) { + return ts.isClassDeclaration(stm); + }); + if (!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); + // import related + classData.clients = Array.from( + new Set( + classData.functions.map(function(method) { + return method.client; + }) + ) + ); + importStatments = new Array(classData.clients.length); + importStatments.fill(Object.assign({}, code.statements[0])); + code.statements = importStatments.concat( + code.statements.slice(1) + ); + classDeclarationNode = code.statements.find(function(node) { + return ts.isClassDeclaration(node); + }); + constructorNode = classDeclarationNode.members.find( + function(node) { + return ts.SyntaxKind[node.kind] === 'Constructor'; + } + ); + clientObjects = new Array(classData.clients.length); + clientObjects.fill( + Object.assign({}, constructorNode.body.statements[0]) + ); + constructorNode.body.statements = clientObjects; + addFunctions = function(context) { + return function(rootNode) { + function visit(node) { + if (ts.isClassDeclaration(node)) { + var functions_1 = []; + classData.functions.map(function(method) { + var clonedNode; + if ( + method.returnTypeName === 'Promise' + ) { + clonedNode = Object.assign( + {}, + node.members[1] + ); + } else { + clonedNode = Object.assign( + {}, + node.members[2] + ); + } + 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; + var clientCount = 0; + var clientObjCount = 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.isStringLiteral(node) && + node.text === 'pkgName' + ) { + return ts.createStringLiteral( + '@google-cloud/' + + classData.functions[0].pkgName + ); + } + if ( + ts.isIdentifier(node) && + dummyIdentifiers.includes(node.text) + ) { + var updatedIdentifier = void 0; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + 'GCP_' + + classData.serviceName + ) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.clients[ + clientCount + ] + ) + ); + clientCount++; + break; + case 'SDKFunctionName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count] + .SDKFunctionName + ) + ); + count++; + break; + case '_client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + classData.functions[ + count + ].client + .toLowerCase() + .charAt(0) + + classData.functions[ + count + ].client.substr(1) + ) + ); + break; + case '_clientObj': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + classData.clients[ + clientObjCount + ] + .toLowerCase() + .charAt(0) + + classData.clients[ + clientObjCount + ].substr(1) + ) + ); + break; + case 'Client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.clients[ + clientObjCount + ] + ) + ); + clientObjCount++; + break; + } + 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; + } + }); + } + 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.serviceName + + ' object\n * @category Google Cloud\n '; + addMultiLineComment(node, comment); + } + if (ts.isMethodDeclaration(node)) { + var parameters = classData.functions[ + count + ].params.map(function(param) { + var statment; + if (param.optional) { + statment = + '* @param {' + + param.type + + '} [' + + 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.functions[0].pkgName.split( + '-' + )[1] + + '\n ' + + paramStatments_1 + + '\n * @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } else { + comment = + '*\n * Trigers the ' + + classData.functions[count] + .SDKFunctionName + + ' function of ' + + classData.functions[0].pkgName.split( + '-' + )[1] + + '\n * @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n '; + } + addMultiLineComment(node, comment); + count++; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; + }; + 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.clientBasedTransform = clientBasedTransform; diff --git a/generator/transformers/googleCloud/clientBasedTransformer.ts b/generator/transformers/googleCloud/clientBasedTransformer.ts index 525086dd..b2819e53 100644 --- a/generator/transformers/googleCloud/clientBasedTransformer.ts +++ b/generator/transformers/googleCloud/clientBasedTransformer.ts @@ -1,292 +1,309 @@ -import { cloneDeep } from "lodash"; -import * as ts from "typescript"; +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; const dummyIdentifiers = [ - "ClassName", - "SDKFunctionName", - "ClientName", - "_client", - "_clientObj", - "Client" + 'ClassName', + 'SDKFunctionName', + 'ClientName', + '_client', + '_clientObj', + 'Client', ]; const printer: ts.Printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - removeComments: false + newLine: ts.NewLineKind.LineFeed, + removeComments: false, }); function addMultiLineComment(node, comment: string) { - ts.addSyntheticLeadingComment( - node, - ts.SyntaxKind.MultiLineCommentTrivia, - comment, - true - ); + 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); - } - }); + 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 - ); + return ts.createSourceFile( + 'dummyClass.js', + sourceCode, + ts.ScriptTarget.Latest, + true + ); } export async function clientBasedTransform( - code: ts.SourceFile, - classData: any + code: ts.SourceFile, + classData: any ): Promise { - const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); + const node: any = code.statements.find(stm => ts.isClassDeclaration(stm)); - if (!classData.functions) { - throw new Error("Input is invalid"); - } + if (!classData.functions) { + throw new Error('Input is invalid'); + } - if (!node || !node.members.some(member => ts.isMethodDeclaration(member))) { - throw new Error("Code is invalid"); - } + if (!node || !node.members.some(member => ts.isMethodDeclaration(member))) { + throw new Error('Code is invalid'); + } - code = cloneDeep(code); + code = cloneDeep(code); - // import related - classData.clients = Array.from( - new Set(classData.functions.map(method => method.client)) - ); - const importStatments: any = new Array(classData.clients.length); - importStatments.fill(Object.assign({}, code.statements[0])); - code.statements = importStatments.concat(code.statements.slice(1)); + // import related + classData.clients = Array.from( + new Set(classData.functions.map(method => method.client)) + ); + const importStatments: any = new Array(classData.clients.length); + importStatments.fill(Object.assign({}, code.statements[0])); + code.statements = importStatments.concat(code.statements.slice(1)); - let classDeclarationNode: any = code.statements.find(node => - ts.isClassDeclaration(node) - ); - let constructorNode: any = classDeclarationNode.members.find( - node => ts.SyntaxKind[node.kind] === "Constructor" - ); - const clientObjects: any = new Array(classData.clients.length); - clientObjects.fill(Object.assign({}, constructorNode.body.statements[0])); - constructorNode.body.statements = clientObjects; - // import related + const classDeclarationNode: any = code.statements.find(node => + ts.isClassDeclaration(node) + ); + const constructorNode: any = classDeclarationNode.members.find( + node => ts.SyntaxKind[node.kind] === 'Constructor' + ); + const clientObjects: any = new Array(classData.clients.length); + clientObjects.fill(Object.assign({}, constructorNode.body.statements[0])); + constructorNode.body.statements = clientObjects; + // import related - 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 => { - let clonedNode; - if (method.returnTypeName === "Promise") { - clonedNode = Object.assign({}, node.members[1]); - } else { - clonedNode = Object.assign({}, node.members[2]); - } - clonedNode.name = ts.createIdentifier(method.functionName); - functions.push(clonedNode); - }); + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const functions: any = []; + classData.functions.map(method => { + let clonedNode; + if (method.returnTypeName === 'Promise') { + clonedNode = Object.assign({}, node.members[1]); + } else { + clonedNode = Object.assign({}, node.members[2]); + } + 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)) - ); + 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); - }; + return updatedClass; + } + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - const addIdentifiers = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - let count = 0; - let clientCount = 0; - let clientObjCount = 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 - ); + const addIdentifiers = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + let count = 0; + let clientCount = 0; + let clientObjCount = 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"); - } + if (param.optional) { + paramNode.initializer = ts.createIdentifier( + 'undefined' + ); + } - return paramNode; - }); + return paramNode; + } + ); - node.parameters = parameters; - } + node.parameters = parameters; + } - if (ts.isStringLiteral(node) && node.text === "pkgName") { - return ts.createStringLiteral( - "@google-cloud/" + classData.functions[0].pkgName - ); - } + if (ts.isStringLiteral(node) && node.text === 'pkgName') { + return ts.createStringLiteral( + '@google-cloud/' + classData.functions[0].pkgName + ); + } - if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { - let updatedIdentifier; - switch (node.text) { - case "ClassName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier("GCP_" + classData.serviceName) - ); - break; - case "ClientName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientCount]) - ); - clientCount++; - break; - case "SDKFunctionName": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.functions[count].SDKFunctionName) - ); - count++; - break; - case "_client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - "_" + - classData.functions[count].client.toLowerCase().charAt(0) + - classData.functions[count].client.substr(1) - ) - ); - break; - case "_clientObj": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier( - "_" + - classData.clients[clientObjCount].toLowerCase().charAt(0) + - classData.clients[clientObjCount].substr(1) - ) - ); - break; - case "Client": - updatedIdentifier = ts.updateIdentifier( - ts.createIdentifier(classData.clients[clientObjCount]) - ); - clientObjCount++; - break; - } - return updatedIdentifier; - } + if (ts.isIdentifier(node) && dummyIdentifiers.includes(node.text)) { + let updatedIdentifier; + switch (node.text) { + case 'ClassName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier('GCP_' + classData.serviceName) + ); + break; + case 'ClientName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier(classData.clients[clientCount]) + ); + clientCount++; + break; + case 'SDKFunctionName': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.functions[count].SDKFunctionName + ) + ); + count++; + break; + case '_client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + classData.functions[count].client + .toLowerCase() + .charAt(0) + + classData.functions[count].client.substr(1) + ) + ); + break; + case '_clientObj': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + '_' + + classData.clients[clientObjCount] + .toLowerCase() + .charAt(0) + + classData.clients[clientObjCount].substr(1) + ) + ); + break; + case 'Client': + updatedIdentifier = ts.updateIdentifier( + ts.createIdentifier( + classData.clients[clientObjCount] + ) + ); + clientObjCount++; + break; + } + 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; - } - }); - } + 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; + } + }); + } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - const addComments = ( - context: ts.TransformationContext - ) => (rootNode: T) => { - let count = 0; + 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 = `* + 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.serviceName} object * @category Google Cloud `; - addMultiLineComment(node, comment); - } + addMultiLineComment(node, comment); + } - if (ts.isMethodDeclaration(node)) { - let parameters = classData.functions[count].params.map(param => { - let statment; + if (ts.isMethodDeclaration(node)) { + const parameters = classData.functions[count].params.map( + param => { + let statment; - if (param.optional) { - statment = `* @param {${param.type}} [${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; - }); + if (param.optional) { + statment = `* @param {${param.type}} [${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}` - ); - }); + let comment; + if (parameters.length > 0) { + let paramStatments: string = ''; + parameters.map(param => { + paramStatments = paramStatments.concat( + paramStatments === '' ? `${param}` : `\n ${param}` + ); + }); - comment = `* + comment = `* * Trigers the ${classData.functions[count].SDKFunctionName} function of ${ - classData.functions[0].pkgName.split("-")[1] - } + classData.functions[0].pkgName.split('-')[1] + } ${paramStatments} * @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} `; - } else { - comment = `* + } else { + comment = `* * Trigers the ${classData.functions[count].SDKFunctionName} function of ${ - classData.functions[0].pkgName.split("-")[1] - } + classData.functions[0].pkgName.split('-')[1] + } * @returns {Promise<${classData.functions[count].SDKFunctionName}Response>} `; - } + } - addMultiLineComment(node, comment); - count++; - } + addMultiLineComment(node, comment); + count++; + } - return ts.visitEachChild(node, visit, context); - } - return ts.visitNode(rootNode, visit); - }; + return ts.visitEachChild(node, visit, context); + } + return ts.visitNode(rootNode, visit); + }; - 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; + 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/generator/transformers/linode/transformer.js b/generator/transformers/linode/transformer.js new file mode 100644 index 00000000..e185ea3b --- /dev/null +++ b/generator/transformers/linode/transformer.js @@ -0,0 +1,445 @@ +'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 lodash_1 = require('lodash'); +var ts = require('typescript'); +var dummyIdentifiers = ['ClassName', '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 + ); +} +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] + ); + 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( + 'Linode_' + + classData.serviceName + ) + ); + 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\t* Class to create a ' + + classData.className + + ' object\n\t* @category Linode \n\t'; + 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\t* Trigers the ' + + classData.functions[count] + .SDKFunctionName + + ' function of ' + + classData.className + + '\n\t' + + paramStatments_1 + + '\n\t* @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n\t'; + } else { + comment = + '*\n\t* Trigers the ' + + classData.functions[count] + .SDKFunctionName + + ' function of ' + + classData.className + + '\n\t* @returns {Promise<' + + classData.functions[count] + .SDKFunctionName + + 'Response>}\n\t'; + } + 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/linode/transformer.ts b/generator/transformers/linode/transformer.ts new file mode 100644 index 00000000..cf3e6c2b --- /dev/null +++ b/generator/transformers/linode/transformer.ts @@ -0,0 +1,237 @@ +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; + +const dummyIdentifiers = ['ClassName', '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 + ); +} + +export async function transform( + code: ts.SourceFile, + classData: any +): Promise { + const addFunctions = ( + context: ts.TransformationContext + ) => (rootNode: T) => { + function visit(node: ts.Node): ts.Node { + if (ts.isClassDeclaration(node)) { + const functions: any = []; + classData.functions.map(method => { + const clonedNode = Object.assign({}, node.members[1]); + 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); + }; + + 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( + 'Linode_' + classData.serviceName + ) + ); + 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); + }; + + 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 Linode + `; + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + const 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); + }; + + 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/generator/transformers/oracle/transformer.js b/generator/transformers/oracle/transformer.js new file mode 100644 index 00000000..f672f8cc --- /dev/null +++ b/generator/transformers/oracle/transformer.js @@ -0,0 +1,470 @@ +'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 lodash_1 = require('lodash'); +var ts = require('typescript'); +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 + ); +} +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] + ); + 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( + 'Oracle_' + + 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 + ) + ); + 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 Oracle Cloud \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/oracle/transformer.ts b/generator/transformers/oracle/transformer.ts new file mode 100644 index 00000000..d01a42d9 --- /dev/null +++ b/generator/transformers/oracle/transformer.ts @@ -0,0 +1,272 @@ +import { cloneDeep } from 'lodash'; +import * as ts from 'typescript'; + +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 + ); +} +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)) { + const functions: any = []; + classData.functions.map(method => { + const clonedNode = Object.assign({}, node.members[1]); + 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( + 'Oracle_' + 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) + ); + 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 Oracle Cloud + `; + addMultiLineComment(node, comment); + } + + if (ts.isMethodDeclaration(node)) { + const 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/packages/common/core/providers-list.js b/packages/common/core/providers-list.js index 2ffdc810..dcc06def 100644 --- a/packages/common/core/providers-list.js +++ b/packages/common/core/providers-list.js @@ -1,3 +1,10 @@ -const providers = ["aws", "google", "azure", "digitalocean", "alicloud"]; +const providers = [ + 'aws', + 'google', + 'azure', + 'digitalocean', + 'alicloud', + 'linode', +]; module.exports = providers; diff --git a/packages/linode-plugin/compute/linode-computeInstance.js b/packages/linode-plugin/compute/linode-computeInstance.js new file mode 100644 index 00000000..07d14748 --- /dev/null +++ b/packages/linode-plugin/compute/linode-computeInstance.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ComputeInstanceLinodeClass object + * @category Linode + */ +class Linode_ComputeInstance { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getLinodes function of ComputeInstanceLinodeClass + * @param {Params} params - Data required for getLinodes + * @param {Filter} filter - Data required for getLinodes + * @returns {Promise} + */ + list(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getLinodes(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createLinode function of ComputeInstanceLinodeClass + * @param {CreateLinodeRequest} data - Data required for createLinode + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createLinode(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for updateLinode + * @param {DeepPartial} values - Data required for updateLinode + * @returns {Promise} + */ + update(linodeId, values) { + return new Promise((resolve, reject) => { + this._linode + .updateLinode(linodeId, values) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLinode function of ComputeInstanceLinodeClass + * @param {NumberKeyword} linodeId - Data required for deleteLinode + * @returns {Promise} + */ + delete(linodeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteLinode(linodeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_ComputeInstance; diff --git a/packages/linode-plugin/compute/linode-kubernetes.js b/packages/linode-plugin/compute/linode-kubernetes.js new file mode 100644 index 00000000..5b73741d --- /dev/null +++ b/packages/linode-plugin/compute/linode-kubernetes.js @@ -0,0 +1,130 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a KubernetesLinodeClass object + * @category Linode + */ +class Linode_Kubernetes { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getKubernetesClusters function of KubernetesLinodeClass + * @param {Params} params - Data required for getKubernetesClusters + * @param {Filter} filters - Data required for getKubernetesClusters + * @returns {Promise} + */ + getAllClusters(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getKubernetesClusters(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createKubernetesCluster function of KubernetesLinodeClass + * @param {CreateKubeClusterPayload} data - Data required for createKubernetesCluster + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createKubernetesCluster(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteKubernetesCluster function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteKubernetesCluster + * @returns {Promise} + */ + delete(clusterID) { + return new Promise((resolve, reject) => { + this._linode + .deleteKubernetesCluster(clusterID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePools function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePools + * @param {Params} params - Data required for getNodePools + * @param {Filter} filters - Data required for getNodePools + * @returns {Promise} + */ + getNodePools(clusterID, params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodePools(clusterID, params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for getNodePool + * @param {NumberKeyword} nodePoolID - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .getNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for createNodePool + * @param {CreateNodePoolData} data - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(clusterID, data) { + return new Promise((resolve, reject) => { + this._linode + .createNodePool(clusterID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for updateNodePool + * @param {NumberKeyword} nodePoolID - Data required for updateNodePool + * @param {Partial} data - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(clusterID, nodePoolID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodePool(clusterID, nodePoolID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of KubernetesLinodeClass + * @param {NumberKeyword} clusterID - Data required for deleteNodePool + * @param {NumberKeyword} nodePoolID - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(clusterID, nodePoolID) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodePool(clusterID, nodePoolID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Kubernetes; diff --git a/packages/linode-plugin/database/linode-RDBMS.js b/packages/linode-plugin/database/linode-RDBMS.js new file mode 100644 index 00000000..a3b2b0f7 --- /dev/null +++ b/packages/linode-plugin/database/linode-RDBMS.js @@ -0,0 +1,103 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a RDBMSLinodeClass object + * @category Linode + */ +class Linode_RDBMS { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDatabases function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabases + * @param {Filter} filter - Data required for getDatabases + * @returns {Promise} + */ + getDatabases(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabases(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDatabaseEngines function of RDBMSLinodeClass + * @param {Params} params - Data required for getDatabaseEngines + * @param {Filter} filter - Data required for getDatabaseEngines + * @returns {Promise} + */ + getDatabaseEngines(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDatabaseEngines(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDatabase function of RDBMSLinodeClass + * @param {UnionType} engine - Data required for createDatabase + * @param {CreateDatabasePayload} data - Data required for createDatabase + * @returns {Promise} + */ + createDatabase(engine, data) { + return new Promise((resolve, reject) => { + this._linode + .createDatabase(engine, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getEngineDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for getEngineDatabase + * @param {NumberKeyword} databaseID - Data required for getEngineDatabase + * @returns {Promise} + */ + getEngineDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .getEngineDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for updateDatabase + * @param {NumberKeyword} databaseID - Data required for updateDatabase + * @param {UpdateDatabasePayload} data - Data required for updateDatabase + * @returns {Promise} + */ + updateDatabase(engine, databaseID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDatabase(engine, databaseID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDatabase function of RDBMSLinodeClass + * @param {Engine} engine - Data required for deleteDatabase + * @param {NumberKeyword} databaseID - Data required for deleteDatabase + * @returns {Promise} + */ + deleteDatabase(engine, databaseID) { + return new Promise((resolve, reject) => { + this._linode + .deleteDatabase(engine, databaseID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_RDBMS; diff --git a/packages/linode-plugin/firewalls/linode-firewalls.js b/packages/linode-plugin/firewalls/linode-firewalls.js new file mode 100644 index 00000000..2cfc10f0 --- /dev/null +++ b/packages/linode-plugin/firewalls/linode-firewalls.js @@ -0,0 +1,111 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a FirewallsLinodeClass object + * @category Linode + */ +class Linode_Firewalls { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getFirewalls function of FirewallsLinodeClass + * @param {Params} params - Data required for getFirewalls + * @param {Filter} filter - Data required for getFirewalls + * @returns {Promise} + */ + getFirewalls(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getFirewalls(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for getFirewall + * @returns {Promise} + */ + getFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .getFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createFirewall function of FirewallsLinodeClass + * @param {CreateFirewallPayload} data - Data required for createFirewall + * @returns {Promise} + */ + createFirewall(data) { + return new Promise((resolve, reject) => { + this._linode + .createFirewall(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for updateFirewall + * @param {UpdateFirewallPayload} data - Data required for updateFirewall + * @returns {Promise} + */ + updateFirewall(firewallID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateFirewall(firewallID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for enableFirewall + * @returns {Promise} + */ + enableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .enableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for disableFirewall + * @returns {Promise} + */ + disableFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .disableFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteFirewall function of FirewallsLinodeClass + * @param {NumberKeyword} firewallID - Data required for deleteFirewall + * @returns {Promise} + */ + deleteFirewall(firewallID) { + return new Promise((resolve, reject) => { + this._linode + .deleteFirewall(firewallID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Firewalls; diff --git a/packages/linode-plugin/images/linode-images.js b/packages/linode-plugin/images/linode-images.js new file mode 100644 index 00000000..2d0651fc --- /dev/null +++ b/packages/linode-plugin/images/linode-images.js @@ -0,0 +1,107 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ImagesLinodeClass object + * @category Linode + */ +class Linode_Images { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for getImage + * @returns {Promise} + */ + getImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .getImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getImages function of ImagesLinodeClass + * @param {Params} params - Data required for getImages + * @param {Filter} filters - Data required for getImages + * @returns {Promise} + */ + getImages(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getImages(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createImage function of ImagesLinodeClass + * @param {NumberKeyword} diskId - Data required for createImage + * @param {StringKeyword} label - Data required for createImage + * @param {StringKeyword} description - Data required for createImage + * @param {BooleanKeyword} cloud_init - Data required for createImage + * @returns {Promise} + */ + createImage( + diskId, + label = undefined, + description = undefined, + cloud_init = undefined + ) { + return new Promise((resolve, reject) => { + this._linode + .createImage(diskId, label, description, cloud_init) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for updateImage + * @param {StringKeyword} label - Data required for updateImage + * @param {StringKeyword} description - Data required for updateImage + * @returns {Promise} + */ + updateImage(imageId, label = undefined, description = undefined) { + return new Promise((resolve, reject) => { + this._linode + .updateImage(imageId, label, description) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteImage function of ImagesLinodeClass + * @param {StringKeyword} imageId - Data required for deleteImage + * @returns {Promise} + */ + deleteImage(imageId) { + return new Promise((resolve, reject) => { + this._linode + .deleteImage(imageId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the uploadImage function of ImagesLinodeClass + * @param {ImageUploadPayload} data - Data required for uploadImage + * @returns {Promise} + */ + uploadImage(data) { + return new Promise((resolve, reject) => { + this._linode + .uploadImage(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Images; diff --git a/packages/linode-plugin/index.js b/packages/linode-plugin/index.js new file mode 100644 index 00000000..f7cffedd --- /dev/null +++ b/packages/linode-plugin/index.js @@ -0,0 +1,7 @@ +const linodeSdk = require('@linode/api-v4'); +const lindoePlugin = require('./linode'); + +const ncLinodePlugin = () => { + return new lindoePlugin(linodeSdk); +}; +module.exports = ncLinodePlugin; diff --git a/packages/linode-plugin/linode.js b/packages/linode-plugin/linode.js new file mode 100644 index 00000000..fa81e8e9 --- /dev/null +++ b/packages/linode-plugin/linode.js @@ -0,0 +1,65 @@ +const computeInstance = require('./compute/linode-computeInstance'); +const kubernetes = require('./compute/linode-kubernetes'); +const sql = require('./database/linode-RDBMS'); +const loadBalancer = require('./network/linode-loadBalancer'); +const linodeDns = require('./network/linode-DNS'); +const volume = require('./storage/linode-blockStorage'); +const images = require('./images/linode-images'); +const firewalls = require('./firewalls/linode-firewalls'); +const objectStorage = require('./storage/linode-storageBucket'); +const monitoring = require('./management/linode-monitoring'); +class Linode { + constructor(linodeSdk) { + this._linodeSdk = linodeSdk; + if (!process.env.LINODE_TOKEN) { + throw new Error('Provide Credentials'); + } + this.token = process.env.LINODE_TOKEN; + return { + getSDK: () => this._linodeSdk, + getToken: () => this.token, + compute: this.computeInstance, + blockStorage: this.volume, + loadBalancer: this.loadBalancer, + dns: this.linodeDns, + sql: this.sql, + kubernetes: this.kubernetes, + firewalls: this.firewalls, + images: this.images, + objectStorage: this.objectStorage, + monitoring: this.monitoring, + }; + } + + computeInstance() { + return new computeInstance(this.getSDK(), this.getToken()); + } + kubernetes() { + return new kubernetes(this.getSDK(), this.getToken()); + } + sql() { + return new sql(this.getSDK(), this.getToken()); + } + linodeDns() { + return new linodeDns(this.getSDK(), this.getToken()); + } + loadBalancer() { + return new loadBalancer(this.getSDK(), this.getToken()); + } + volume() { + return new volume(this.getSDK(), this.getToken()); + } + images() { + return new images(this.getSDK(), this.getToken()); + } + firewalls() { + return new firewalls(this.getSDK(), this.getToken()); + } + objectStorage() { + return new objectStorage(this.getSDK(), this.getToken()); + } + monitoring() { + return new monitoring(this.getSDK(), this.getToken()); + } +} +module.exports = Linode; diff --git a/packages/linode-plugin/management/linode-monitoring.js b/packages/linode-plugin/management/linode-monitoring.js new file mode 100644 index 00000000..87bd1334 --- /dev/null +++ b/packages/linode-plugin/management/linode-monitoring.js @@ -0,0 +1,139 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a MonitoringLinodeClass object + * @category Linode + */ +class Linode_Monitoring { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getServices function of MonitoringLinodeClass + * @param {Params} params - Data required for getServices + * @param {Filter} filters - Data required for getServices + * @returns {Promise} + */ + getServices(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getServices(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for disableServiceMonitor + * @returns {Promise} + */ + disableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .disableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for enableServiceMonitor + * @returns {Promise} + */ + enableServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .enableServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} serviceID - Data required for deleteServiceMonitor + * @returns {Promise} + */ + deleteServiceMonitor(serviceID) { + return new Promise((resolve, reject) => { + this._linode + .deleteServiceMonitor(serviceID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createServiceMonitor function of MonitoringLinodeClass + * @param {ManagedServicePayload} data - Data required for createServiceMonitor + * @returns {Promise} + */ + createServiceMonitor(data) { + return new Promise((resolve, reject) => { + this._linode + .createServiceMonitor(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateServiceMonitor function of MonitoringLinodeClass + * @param {NumberKeyword} monitorID - Data required for updateServiceMonitor + * @param {Partial} data - Data required for updateServiceMonitor + * @returns {Promise} + */ + updateServiceMonitor(monitorID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateServiceMonitor(monitorID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCredentials function of MonitoringLinodeClass + * @param {Params} params - Data required for getCredentials + * @param {Filter} filters - Data required for getCredentials + * @returns {Promise} + */ + getCredentials(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getCredentials(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for updateCredential + * @param {UpdateCredentialPayload} data - Data required for updateCredential + * @returns {Promise} + */ + updateCredential(credentialID, data) { + return new Promise((resolve, reject) => { + this._linode + .updateCredential(credentialID, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCredential function of MonitoringLinodeClass + * @param {NumberKeyword} credentialID - Data required for deleteCredential + * @returns {Promise} + */ + deleteCredential(credentialID) { + return new Promise((resolve, reject) => { + this._linode + .deleteCredential(credentialID) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_Monitoring; diff --git a/packages/linode-plugin/network/linode-DNS.js b/packages/linode-plugin/network/linode-DNS.js new file mode 100644 index 00000000..a3c1d066 --- /dev/null +++ b/packages/linode-plugin/network/linode-DNS.js @@ -0,0 +1,99 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DNSLinodeClass object + * @category Linode + */ +class Linode_DNS { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getDomains function of DNSLinodeClass + * @param {Params} params - Data required for getDomains + * @param {Filter} filter - Data required for getDomains + * @returns {Promise} + */ + getDomains(params = undefined, filter = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getDomains(params, filter) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for getDomain + * @returns {Promise} + */ + getDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .getDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDomain function of DNSLinodeClass + * @param {CreateDomainPayload} data - Data required for createDomain + * @returns {Promise} + */ + createDomain(data) { + return new Promise((resolve, reject) => { + this._linode + .createDomain(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for updateDomain + * @param {UpdateDomainPayload} data - Data required for updateDomain + * @returns {Promise} + */ + updateDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for deleteDomain + * @returns {Promise} + */ + deleteDomain(domainId) { + return new Promise((resolve, reject) => { + this._linode + .deleteDomain(domainId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the cloneDomain function of DNSLinodeClass + * @param {NumberKeyword} domainId - Data required for cloneDomain + * @param {CloneDomainPayload} data - Data required for cloneDomain + * @returns {Promise} + */ + cloneDomain(domainId, data) { + return new Promise((resolve, reject) => { + this._linode + .cloneDomain(domainId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_DNS; diff --git a/packages/linode-plugin/network/linode-loadBalancer.js b/packages/linode-plugin/network/linode-loadBalancer.js new file mode 100644 index 00000000..7af0d984 --- /dev/null +++ b/packages/linode-plugin/network/linode-loadBalancer.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancerLinodeClass object + * @category Linode + */ +class Linode_LoadBalancer { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getNodeBalancers function of LoadBalancerLinodeClass + * @param {Params} params - Data required for getNodeBalancers + * @param {Filter} filters - Data required for getNodeBalancers + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getNodeBalancers(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for updateNodeBalancer + * @param {Partial} data - Data required for updateNodeBalancer + * @returns {Promise} + */ + update(nodeBalancerId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateNodeBalancer(nodeBalancerId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodeBalancer function of LoadBalancerLinodeClass + * @param {CreateNodeBalancerPayload} data - Data required for createNodeBalancer + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createNodeBalancer(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodeBalancer function of LoadBalancerLinodeClass + * @param {NumberKeyword} nodeBalancerId - Data required for deleteNodeBalancer + * @returns {Promise} + */ + delete(nodeBalancerId) { + return new Promise((resolve, reject) => { + this._linode + .deleteNodeBalancer(nodeBalancerId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_LoadBalancer; diff --git a/packages/linode-plugin/package.json b/packages/linode-plugin/package.json new file mode 100644 index 00000000..012170b8 --- /dev/null +++ b/packages/linode-plugin/package.json @@ -0,0 +1,18 @@ +{ + "name": "@nodecloud/linode-plugin", + "version": "2.0.0", + "description": "Nodecloud Linode Plugin", + "main": "index.js", + "scripts": { + "prettier": "yarn pretty-quick" + }, + "keywords": [ + "nodecloud", + "nodecloud-Linode" + ], + "author": "Scorelab", + "license": "Apache-2.0", + "dependencies": { + "@linode/api-v4": "^0.97.0" + } +} diff --git a/packages/linode-plugin/storage/linode-blockStorage.js b/packages/linode-plugin/storage/linode-blockStorage.js new file mode 100644 index 00000000..29846fc6 --- /dev/null +++ b/packages/linode-plugin/storage/linode-blockStorage.js @@ -0,0 +1,72 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockStorageLinodeClass object + * @category Linode + */ +class Linode_BlockStorage { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getVolumes function of BlockStorageLinodeClass + * @param {Params} params - Data required for getVolumes + * @param {Filter} filters - Data required for getVolumes + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getVolumes(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for deleteVolume + * @returns {Promise} + */ + delete(volumeId) { + return new Promise((resolve, reject) => { + this._linode + .deleteVolume(volumeId) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateVolume function of BlockStorageLinodeClass + * @param {NumberKeyword} volumeId - Data required for updateVolume + * @param {UpdateVolumeRequest} data - Data required for updateVolume + * @returns {Promise} + */ + update(volumeId, data) { + return new Promise((resolve, reject) => { + this._linode + .updateVolume(volumeId, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createVolume function of BlockStorageLinodeClass + * @param {VolumeRequestPayload} data - Data required for createVolume + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createVolume(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_BlockStorage; diff --git a/packages/linode-plugin/storage/linode-storageBucket.js b/packages/linode-plugin/storage/linode-storageBucket.js new file mode 100644 index 00000000..54b7b993 --- /dev/null +++ b/packages/linode-plugin/storage/linode-storageBucket.js @@ -0,0 +1,101 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a StorageBucketLinodeClass object + * @category Linode + */ +class Linode_StorageBucket { + /** + * + * @param {module} linodeSdk Linode SDK + * @param {string} linodeToken Linode Token + */ + constructor(linodeSdk, linodeToken) { + this._linode = linodeSdk; + this._linodeToken = linodeToken; + this._linode.setToken(this._linodeToken); + } + /** + * Trigers the getBucket function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucket + * @param {StringKeyword} bucketName - Data required for getBucket + * @returns {Promise} + */ + get(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucket(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBuckets function of StorageBucketLinodeClass + * @param {Params} params - Data required for getBuckets + * @param {Filter} filters - Data required for getBuckets + * @returns {Promise} + */ + list(params = undefined, filters = undefined) { + return new Promise((resolve, reject) => { + this._linode + .getBuckets(params, filters) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createBucket function of StorageBucketLinodeClass + * @param {ObjectStorageBucketRequestPayload} data - Data required for createBucket + * @returns {Promise} + */ + create(data) { + return new Promise((resolve, reject) => { + this._linode + .createBucket(data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of StorageBucketLinodeClass + * @param {ObjectStorageDeleteBucketRequestPayload} {cluster,label} - Data required for deleteBucket + * @returns {Promise} + */ + delete({ cluster, label }) { + return new Promise((resolve, reject) => { + this._linode + .deleteBucket({ cluster, label }) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for getBucketAccess + * @param {StringKeyword} bucketName - Data required for getBucketAccess + * @returns {Promise} + */ + getBucketAccess(clusterId, bucketName) { + return new Promise((resolve, reject) => { + this._linode + .getBucketAccess(clusterId, bucketName) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucketAccess function of StorageBucketLinodeClass + * @param {StringKeyword} clusterId - Data required for updateBucketAccess + * @param {StringKeyword} bucketName - Data required for updateBucketAccess + * @param {ObjectStorageBucketAccessRequest} data - Data required for updateBucketAccess + * @returns {Promise} + */ + updateBucketAccess(clusterId, bucketName, data) { + return new Promise((resolve, reject) => { + this._linode + .updateBucketAccess(clusterId, bucketName, data) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Linode_StorageBucket; diff --git a/packages/oracle-plugin/blockchain/oci-blockChain.js b/packages/oracle-plugin/blockchain/oci-blockChain.js new file mode 100644 index 00000000..b69a1a5e --- /dev/null +++ b/packages/oracle-plugin/blockchain/oci-blockChain.js @@ -0,0 +1,150 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockchainPlatformClient object + * @category Oracle Cloud + */ +class Oracle_BlockChain { + /** + * + * @param {module} do Oracle SDK + * @param {object} options SDK options + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._sdkclassName = this._oci.BlockchainPlatformClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBlockchainPlatform function of BlockchainPlatformClient + * @param {CreateBlockchainPlatformRequest} createBlockchainPlatformRequest - Data required for createBlockchainPlatform + * @returns {Promise} + */ + createBlockchainPlatform(createBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createBlockchainPlatform(createBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createOsn function of BlockchainPlatformClient + * @param {CreateOsnRequest} createOsnRequest - Data required for createOsn + * @returns {Promise} + */ + createOsn(createOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createOsn(createOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createPeer function of BlockchainPlatformClient + * @param {CreatePeerRequest} createPeerRequest - Data required for createPeer + * @returns {Promise} + */ + createPeer(createPeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .createPeer(createPeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBlockchainPlatform function of BlockchainPlatformClient + * @param {DeleteBlockchainPlatformRequest} deleteBlockchainPlatformRequest - Data required for deleteBlockchainPlatform + * @returns {Promise} + */ + deleteBlockchainPlatform(deleteBlockchainPlatformRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteBlockchainPlatform(deleteBlockchainPlatformRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteOsn function of BlockchainPlatformClient + * @param {DeleteOsnRequest} deleteOsnRequest - Data required for deleteOsn + * @returns {Promise} + */ + deleteOsn(deleteOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deleteOsn(deleteOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deletePeer function of BlockchainPlatformClient + * @param {DeletePeerRequest} deletePeerRequest - Data required for deletePeer + * @returns {Promise} + */ + deletePeer(deletePeerRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .deletePeer(deletePeerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getOsn function of BlockchainPlatformClient + * @param {GetOsnRequest} getOsnRequest - Data required for getOsn + * @returns {Promise} + */ + getOsn(getOsnRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .getOsn(getOsnRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBlockchainPlatforms function of BlockchainPlatformClient + * @param {ListBlockchainPlatformsRequest} listBlockchainPlatformsRequest - Data required for listBlockchainPlatforms + * @returns {Promise} + */ + listBlockchainPlatforms(listBlockchainPlatformsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listBlockchainPlatforms(listBlockchainPlatformsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listOsns function of BlockchainPlatformClient + * @param {ListOsnsRequest} listOsnsRequest - Data required for listOsns + * @returns {Promise} + */ + listOsns(listOsnsRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listOsns(listOsnsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listPeers function of BlockchainPlatformClient + * @param {ListPeersRequest} listPeersRequest - Data required for listPeers + * @returns {Promise} + */ + listPeers(listPeersRequest) { + return new Promise((resolve, reject) => { + this._blockchainPlatformClient + .listPeers(listPeersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_BlockChain; diff --git a/packages/oracle-plugin/compute/oci-computeInstance.js b/packages/oracle-plugin/compute/oci-computeInstance.js new file mode 100644 index 00000000..041d1d7b --- /dev/null +++ b/packages/oracle-plugin/compute/oci-computeInstance.js @@ -0,0 +1,137 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ +class Oracle_ComputeInstance { + /** + * + * @param {module} do Oracle SDK + * @param {object} options SDK options + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._sdkclassName = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + getAll(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainerInstance function of ContainerInstanceClient + * @param {GetContainerInstanceRequest} getContainerInstanceRequest - Data required for getContainerInstance + * @returns {Promise} + */ + get(getContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainerInstance(getContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartContainerInstance function of ContainerInstanceClient + * @param {RestartContainerInstanceRequest} restartContainerInstanceRequest - Data required for restartContainerInstance + * @returns {Promise} + */ + restart(restartContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .restartContainerInstance(restartContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateContainer function of ContainerInstanceClient + * @param {UpdateContainerRequest} updateContainerRequest - Data required for updateContainer + * @returns {Promise} + */ + update(updateContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .updateContainer(updateContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_ComputeInstance; diff --git a/packages/oracle-plugin/compute/oci-container.js b/packages/oracle-plugin/compute/oci-container.js new file mode 100644 index 00000000..c6d2446a --- /dev/null +++ b/packages/oracle-plugin/compute/oci-container.js @@ -0,0 +1,98 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerInstanceClient object + * @category Oracle Cloud + */ +class Oracle_Container { + /** + * + * @param {module} do Oracle SDK + * @param {object} options SDK options + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._sdkclassName = this._oci.ContainerInstanceClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createContainerInstance function of ContainerInstanceClient + * @param {CreateContainerInstanceRequest} createContainerInstanceRequest - Data required for createContainerInstance + * @returns {Promise} + */ + create(createContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .createContainerInstance(createContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteContainerInstance function of ContainerInstanceClient + * @param {DeleteContainerInstanceRequest} deleteContainerInstanceRequest - Data required for deleteContainerInstance + * @returns {Promise} + */ + delete(deleteContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .deleteContainerInstance(deleteContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getContainer function of ContainerInstanceClient + * @param {GetContainerRequest} getContainerRequest - Data required for getContainer + * @returns {Promise} + */ + describe(getContainerRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .getContainer(getContainerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listContainers function of ContainerInstanceClient + * @param {ListContainersRequest} listContainersRequest - Data required for listContainers + * @returns {Promise} + */ + list(listContainersRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .listContainers(listContainersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startContainerInstance function of ContainerInstanceClient + * @param {StartContainerInstanceRequest} startContainerInstanceRequest - Data required for startContainerInstance + * @returns {Promise} + */ + start(startContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .startContainerInstance(startContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopContainerInstance function of ContainerInstanceClient + * @param {StopContainerInstanceRequest} stopContainerInstanceRequest - Data required for stopContainerInstance + * @returns {Promise} + */ + stop(stopContainerInstanceRequest) { + return new Promise((resolve, reject) => { + this._containerInstanceClient + .stopContainerInstance(stopContainerInstanceRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Container; diff --git a/packages/oracle-plugin/compute/oci-kubernetes.js b/packages/oracle-plugin/compute/oci-kubernetes.js new file mode 100644 index 00000000..f2a468c8 --- /dev/null +++ b/packages/oracle-plugin/compute/oci-kubernetes.js @@ -0,0 +1,151 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ContainerEngineClient object + * @category Oracle Cloud + */ +class Oracle_Kubernetes { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._containerEngineClient = this._oci.ContainerEngineClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createCluster function of ContainerEngineClient + * @param {CreateClusterRequest} createClusterRequest - Data required for createCluster + * @returns {Promise} + */ + create(createClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createCluster(createClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createNodePool function of ContainerEngineClient + * @param {CreateNodePoolRequest} createNodePoolRequest - Data required for createNodePool + * @returns {Promise} + */ + createNodePool(createNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .createNodePool(createNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteCluster function of ContainerEngineClient + * @param {DeleteClusterRequest} deleteClusterRequest - Data required for deleteCluster + * @returns {Promise} + */ + delete(deleteClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteCluster(deleteClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNode function of ContainerEngineClient + * @param {DeleteNodeRequest} deleteNodeRequest - Data required for deleteNode + * @returns {Promise} + */ + deleteNode(deleteNodeRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNode(deleteNodeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteNodePool function of ContainerEngineClient + * @param {DeleteNodePoolRequest} deleteNodePoolRequest - Data required for deleteNodePool + * @returns {Promise} + */ + deleteNodePool(deleteNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .deleteNodePool(deleteNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getCluster function of ContainerEngineClient + * @param {GetClusterRequest} getClusterRequest - Data required for getCluster + * @returns {Promise} + */ + get(getClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getCluster(getClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getNodePool function of ContainerEngineClient + * @param {GetNodePoolRequest} getNodePoolRequest - Data required for getNodePool + * @returns {Promise} + */ + getNodePool(getNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .getNodePool(getNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listClusters function of ContainerEngineClient + * @param {ListClustersRequest} listClustersRequest - Data required for listClusters + * @returns {Promise} + */ + list(listClustersRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .listClusters(listClustersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateCluster function of ContainerEngineClient + * @param {UpdateClusterRequest} updateClusterRequest - Data required for updateCluster + * @returns {Promise} + */ + update(updateClusterRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateCluster(updateClusterRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateNodePool function of ContainerEngineClient + * @param {UpdateNodePoolRequest} updateNodePoolRequest - Data required for updateNodePool + * @returns {Promise} + */ + updateNodePool(updateNodePoolRequest) { + return new Promise((resolve, reject) => { + this._containerEngineClient + .updateNodePool(updateNodePoolRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Kubernetes; diff --git a/packages/oracle-plugin/database/oci-RDBMS.js b/packages/oracle-plugin/database/oci-RDBMS.js new file mode 100644 index 00000000..4032123f --- /dev/null +++ b/packages/oracle-plugin/database/oci-RDBMS.js @@ -0,0 +1,112 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DbSystemClient object + * @category Oracle Cloud + */ +class Oracle_RDBMS { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dbSystemClient = this._oci.DbSystemClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDbSystem function of DbSystemClient + * @param {CreateDbSystemRequest} createDbSystemRequest - Data required for createDbSystem + * @returns {Promise} + */ + createDBSystem(createDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .createDbSystem(createDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDbSystem function of DbSystemClient + * @param {DeleteDbSystemRequest} deleteDbSystemRequest - Data required for deleteDbSystem + * @returns {Promise} + */ + deleteDBSystem(deleteDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .deleteDbSystem(deleteDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDbSystem function of DbSystemClient + * @param {GetDbSystemRequest} getDbSystemRequest - Data required for getDbSystem + * @returns {Promise} + */ + getDBSystem(getDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .getDbSystem(getDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the restartDbSystem function of DbSystemClient + * @param {RestartDbSystemRequest} restartDbSystemRequest - Data required for restartDbSystem + * @returns {Promise} + */ + restartDBSystem(restartDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .restartDbSystem(restartDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the startDbSystem function of DbSystemClient + * @param {StartDbSystemRequest} startDbSystemRequest - Data required for startDbSystem + * @returns {Promise} + */ + startDBSystem(startDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .startDbSystem(startDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the stopDbSystem function of DbSystemClient + * @param {StopDbSystemRequest} stopDbSystemRequest - Data required for stopDbSystem + * @returns {Promise} + */ + stopDBSystem(stopDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .stopDbSystem(stopDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateDbSystem function of DbSystemClient + * @param {UpdateDbSystemRequest} updateDbSystemRequest - Data required for updateDbSystem + * @returns {Promise} + */ + updateDBSystem(updateDbSystemRequest) { + return new Promise((resolve, reject) => { + this._dbSystemClient + .updateDbSystem(updateDbSystemRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_RDBMS; diff --git a/packages/oracle-plugin/database/oci-noSql.js b/packages/oracle-plugin/database/oci-noSql.js new file mode 100644 index 00000000..d049fbfd --- /dev/null +++ b/packages/oracle-plugin/database/oci-noSql.js @@ -0,0 +1,122 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a NosqlClient object + * @category Oracle Cloud + */ +class Oracle_NoSql { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._nosqlClient = this._oci.NosqlClient(params, clientConfiguration); + } + /** + * Trigers the createTable function of NosqlClient + * @param {CreateTableRequest} createTableRequest - Data required for createTable + * @returns {Promise} + */ + createTable(createTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .createTable(createTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRow function of NosqlClient + * @param {DeleteRowRequest} deleteRowRequest - Data required for deleteRow + * @returns {Promise} + */ + deleteRow(deleteRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteRow(deleteRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteTable function of NosqlClient + * @param {DeleteTableRequest} deleteTableRequest - Data required for deleteTable + * @returns {Promise} + */ + deleteTable(deleteTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .deleteTable(deleteTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getRow function of NosqlClient + * @param {GetRowRequest} getRowRequest - Data required for getRow + * @returns {Promise} + */ + getRow(getRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getRow(getRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getTable function of NosqlClient + * @param {GetTableRequest} getTableRequest - Data required for getTable + * @returns {Promise} + */ + getTable(getTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .getTable(getTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listTables function of NosqlClient + * @param {ListTablesRequest} listTablesRequest - Data required for listTables + * @returns {Promise} + */ + listTables(listTablesRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .listTables(listTablesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateRow function of NosqlClient + * @param {UpdateRowRequest} updateRowRequest - Data required for updateRow + * @returns {Promise} + */ + updateRow(updateRowRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateRow(updateRowRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateTable function of NosqlClient + * @param {UpdateTableRequest} updateTableRequest - Data required for updateTable + * @returns {Promise} + */ + updateTable(updateTableRequest) { + return new Promise((resolve, reject) => { + this._nosqlClient + .updateTable(updateTableRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_NoSql; diff --git a/packages/oracle-plugin/devops/oci-devops.js b/packages/oracle-plugin/devops/oci-devops.js new file mode 100644 index 00000000..f0943636 --- /dev/null +++ b/packages/oracle-plugin/devops/oci-devops.js @@ -0,0 +1,190 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DevopsClient object + * @category Oracle Cloud + */ +class Oracle_Devops { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._devopsClient = this._oci.DevopsClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createDeployArtifact function of DevopsClient + * @param {CreateDeployArtifactRequest} createDeployArtifactRequest - Data required for createDeployArtifact + * @returns {Promise} + */ + createDeployArtifact(createDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployArtifact(createDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployPipeline function of DevopsClient + * @param {CreateDeployPipelineRequest} createDeployPipelineRequest - Data required for createDeployPipeline + * @returns {Promise} + */ + createDeployPipeline(createDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployPipeline(createDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createDeployment function of DevopsClient + * @param {CreateDeploymentRequest} createDeploymentRequest - Data required for createDeployment + * @returns {Promise} + */ + createDeployment(createDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createDeployment(createDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createProject function of DevopsClient + * @param {CreateProjectRequest} createProjectRequest - Data required for createProject + * @returns {Promise} + */ + createProject(createProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createProject(createProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the createRepository function of DevopsClient + * @param {CreateRepositoryRequest} createRepositoryRequest - Data required for createRepository + * @returns {Promise} + */ + createRepository(createRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .createRepository(createRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployArtifact function of DevopsClient + * @param {DeleteDeployArtifactRequest} deleteDeployArtifactRequest - Data required for deleteDeployArtifact + * @returns {Promise} + */ + deleteDeployArtifact(deleteDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployArtifact(deleteDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteDeployPipeline function of DevopsClient + * @param {DeleteDeployPipelineRequest} deleteDeployPipelineRequest - Data required for deleteDeployPipeline + * @returns {Promise} + */ + deleteDeployPipeline(deleteDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteDeployPipeline(deleteDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteProject function of DevopsClient + * @param {DeleteProjectRequest} deleteProjectRequest - Data required for deleteProject + * @returns {Promise} + */ + deleteProject(deleteProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteProject(deleteProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteRepository function of DevopsClient + * @param {DeleteRepositoryRequest} deleteRepositoryRequest - Data required for deleteRepository + * @returns {Promise} + */ + deleteRepository(deleteRepositoryRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .deleteRepository(deleteRepositoryRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployArtifact function of DevopsClient + * @param {GetDeployArtifactRequest} getDeployArtifactRequest - Data required for getDeployArtifact + * @returns {Promise} + */ + getDeployArtifact(getDeployArtifactRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployArtifact(getDeployArtifactRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployPipeline function of DevopsClient + * @param {GetDeployPipelineRequest} getDeployPipelineRequest - Data required for getDeployPipeline + * @returns {Promise} + */ + getDeployPipeline(getDeployPipelineRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployPipeline(getDeployPipelineRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getDeployment function of DevopsClient + * @param {GetDeploymentRequest} getDeploymentRequest - Data required for getDeployment + * @returns {Promise} + */ + getDeployment(getDeploymentRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getDeployment(getDeploymentRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getProject function of DevopsClient + * @param {GetProjectRequest} getProjectRequest - Data required for getProject + * @returns {Promise} + */ + getProject(getProjectRequest) { + return new Promise((resolve, reject) => { + this._devopsClient + .getProject(getProjectRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_Devops; diff --git a/packages/oracle-plugin/index.js b/packages/oracle-plugin/index.js new file mode 100644 index 00000000..89b3c2b7 --- /dev/null +++ b/packages/oracle-plugin/index.js @@ -0,0 +1,8 @@ +const ociSdk = require('oci-sdk'); +const oraclePlugin = require('./oracle'); + +const ncOraclePlugin = config => { + return new oraclePlugin(ociSdk, config); +}; + +module.exports = ncOraclePlugin; diff --git a/packages/oracle-plugin/management/oci-keyManagement.js b/packages/oracle-plugin/management/oci-keyManagement.js new file mode 100644 index 00000000..49c34874 --- /dev/null +++ b/packages/oracle-plugin/management/oci-keyManagement.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a KmsManagementClient object + * @category Oracle Cloud + */ +class Oracle_KeyManagement { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._kmsManagementClient = this._oci.KmsManagementClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createKey function of KmsManagementClient + * @param {CreateKeyRequest} createKeyRequest - Data required for createKey + * @returns {Promise} + */ + createKey(createKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .createKey(createKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the disableKey function of KmsManagementClient + * @param {DisableKeyRequest} disableKeyRequest - Data required for disableKey + * @returns {Promise} + */ + disableKey(disableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .disableKey(disableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the enableKey function of KmsManagementClient + * @param {EnableKeyRequest} enableKeyRequest - Data required for enableKey + * @returns {Promise} + */ + enableKey(enableKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .enableKey(enableKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateKey function of KmsManagementClient + * @param {UpdateKeyRequest} updateKeyRequest - Data required for updateKey + * @returns {Promise} + */ + update(updateKeyRequest) { + return new Promise((resolve, reject) => { + this._kmsManagementClient + .updateKey(updateKeyRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_KeyManagement; diff --git a/packages/oracle-plugin/management/oci-notificationService.js b/packages/oracle-plugin/management/oci-notificationService.js new file mode 100644 index 00000000..0bc11a1b --- /dev/null +++ b/packages/oracle-plugin/management/oci-notificationService.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a NotificationDataPlaneClient object + * @category Oracle Cloud + */ +class Oracle_NotificationService { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._notificationDataPlaneClient = this._oci.NotificationDataPlaneClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createSubscription function of NotificationDataPlaneClient + * @param {CreateSubscriptionRequest} createSubscriptionRequest - Data required for createSubscription + * @returns {Promise} + */ + subscribe(createSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .createSubscription(createSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteSubscription function of NotificationDataPlaneClient + * @param {DeleteSubscriptionRequest} deleteSubscriptionRequest - Data required for deleteSubscription + * @returns {Promise} + */ + unsubscribe(deleteSubscriptionRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .deleteSubscription(deleteSubscriptionRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listSubscriptions function of NotificationDataPlaneClient + * @param {ListSubscriptionsRequest} listSubscriptionsRequest - Data required for listSubscriptions + * @returns {Promise} + */ + listSubscriptions(listSubscriptionsRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .listSubscriptions(listSubscriptionsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the publishMessage function of NotificationDataPlaneClient + * @param {PublishMessageRequest} publishMessageRequest - Data required for publishMessage + * @returns {Promise} + */ + publish(publishMessageRequest) { + return new Promise((resolve, reject) => { + this._notificationDataPlaneClient + .publishMessage(publishMessageRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_NotificationService; diff --git a/packages/oracle-plugin/network/oci-DNS.js b/packages/oracle-plugin/network/oci-DNS.js new file mode 100644 index 00000000..52cd67f9 --- /dev/null +++ b/packages/oracle-plugin/network/oci-DNS.js @@ -0,0 +1,70 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a DnsClient object + * @category Oracle Cloud + */ +class Oracle_DNS { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._dnsClient = this._oci.DnsClient(params, clientConfiguration); + } + /** + * Trigers the createZone function of DnsClient + * @param {CreateZoneRequest} createZoneRequest - Data required for createZone + * @returns {Promise} + */ + create(createZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .createZone(createZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteZone function of DnsClient + * @param {DeleteZoneRequest} deleteZoneRequest - Data required for deleteZone + * @returns {Promise} + */ + delete(deleteZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .deleteZone(deleteZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listZones function of DnsClient + * @param {ListZonesRequest} listZonesRequest - Data required for listZones + * @returns {Promise} + */ + list(listZonesRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .listZones(listZonesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateZone function of DnsClient + * @param {UpdateZoneRequest} updateZoneRequest - Data required for updateZone + * @returns {Promise} + */ + update(updateZoneRequest) { + return new Promise((resolve, reject) => { + this._dnsClient + .updateZone(updateZoneRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_DNS; diff --git a/packages/oracle-plugin/network/oci-loadBalancer.js b/packages/oracle-plugin/network/oci-loadBalancer.js new file mode 100644 index 00000000..21faafa6 --- /dev/null +++ b/packages/oracle-plugin/network/oci-loadBalancer.js @@ -0,0 +1,86 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a LoadBalancerClient object + * @category Oracle Cloud + */ +class Oracle_LoadBalancer { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._loadBalancerClient = this._oci.LoadBalancerClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createLoadBalancer function of LoadBalancerClient + * @param {CreateLoadBalancerRequest} createLoadBalancerRequest - Data required for createLoadBalancer + * @returns {Promise} + */ + create(createLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .createLoadBalancer(createLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteLoadBalancer function of LoadBalancerClient + * @param {DeleteLoadBalancerRequest} deleteLoadBalancerRequest - Data required for deleteLoadBalancer + * @returns {Promise} + */ + delete(deleteLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .deleteLoadBalancer(deleteLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getLoadBalancer function of LoadBalancerClient + * @param {GetLoadBalancerRequest} getLoadBalancerRequest - Data required for getLoadBalancer + * @returns {Promise} + */ + get(getLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .getLoadBalancer(getLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listLoadBalancers function of LoadBalancerClient + * @param {ListLoadBalancersRequest} listLoadBalancersRequest - Data required for listLoadBalancers + * @returns {Promise} + */ + list(listLoadBalancersRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .listLoadBalancers(listLoadBalancersRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateLoadBalancer function of LoadBalancerClient + * @param {UpdateLoadBalancerRequest} updateLoadBalancerRequest - Data required for updateLoadBalancer + * @returns {Promise} + */ + update(updateLoadBalancerRequest) { + return new Promise((resolve, reject) => { + this._loadBalancerClient + .updateLoadBalancer(updateLoadBalancerRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_LoadBalancer; diff --git a/packages/oracle-plugin/oracle.js b/packages/oracle-plugin/oracle.js new file mode 100644 index 00000000..3f2665e3 --- /dev/null +++ b/packages/oracle-plugin/oracle.js @@ -0,0 +1,133 @@ +const computeInstance = require('./compute/oci-computeInstance'); +const kubernetes = require('./compute/oci-kubernetes'); +const nosql = require('./database/oci-noSql'); +const sql = require('./database/oci-RDBMS'); +const keyManagement = require('./management/oci-keyManagement'); +const dns = require('./network/oci-DNS'); +const loadBalancer = require('./network/oci-loadBalancer'); +const storage = require('./storage/oci-storageBucket'); +const devops = require('./devops/oci-devops'); +const blockchain = require('./blockchain/oci-blockChain'); +const archivalStorage = require('./storage/oci-archivalStorage'); +const objectStorage = require('./storage/oci-storageBucket'); +const blockStorage = require('./storage/oci-blockStorage'); + +class Oracle { + constructor(ocisdk, clientConfiguration) { + this._oci = ocisdk; + this._clientConfiguration = clientConfiguration; + if (!process.env.OCI_PARAMS) { + throw new Error('Provide Params'); + } + this._params = process.env.ORACLE_PARAMS; + return { + getSDK: () => this._oci, + getParams: () => this._params, + getConfigurations: () => this._clientConfiguration, + computeInstance: this.computeInstance, + kubernetes: this.kubernetes, + nosql: this.nosql, + sql: this.sql, + keyManagement: this.keyManagement, + dns: this.dns, + loadBalancer: this.loadBalancer, + storage: this.storage, + blockchain: this.blockchain, + devops: this.devops, + objectStorage: this.objectStorage, + archivalStorage: this.archivalStorage, + }; + } + computeInstance() { + return new computeInstance( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + kubernetes() { + return new kubernetes( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + nosql() { + return new nosql( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + sql() { + return new sql( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + keyManagement() { + return new keyManagement( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + dns() { + return new dns( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + loadBalancer() { + return new loadBalancer( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + storage() { + return new storage( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + archivalStorage() { + return new archivalStorage( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + blockStorage() { + return new blockStorage( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + devops() { + return new devops( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + blockchain() { + return new blockchain( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } + objectStorage() { + return new objectStorage( + this.getSDK(), + this.getParams(), + this.getConfigurations() + ); + } +} +module.exports = Oracle; diff --git a/packages/oracle-plugin/package.json b/packages/oracle-plugin/package.json new file mode 100644 index 00000000..e1995d46 --- /dev/null +++ b/packages/oracle-plugin/package.json @@ -0,0 +1,14 @@ +{ + "name": "@nodecloud/oracle-plugin", + "version": "2.0.0", + "description": "Nodecloud Oracle Cloud Plugin", + "main": "index.js", + "scripts": { + "prettier": "yarn pretty-quick" + }, + "author": "Scorelab", + "license": "Apache-2.0", + "dependencies": { + "oci-sdk": "^2.66.0" + } +} diff --git a/packages/oracle-plugin/storage/oci-archivalStorage.js b/packages/oracle-plugin/storage/oci-archivalStorage.js new file mode 100644 index 00000000..fe306c87 --- /dev/null +++ b/packages/oracle-plugin/storage/oci-archivalStorage.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ +class Oracle_ArchivalStorage { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the updateBucket function of ObjectStorageClient + * @param {UpdateBucketRequest} updateBucketRequest - Data required for updateBucket + * @returns {Promise} + */ + update(updateBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .updateBucket(updateBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_ArchivalStorage; diff --git a/packages/oracle-plugin/storage/oci-blockStorage.js b/packages/oracle-plugin/storage/oci-blockStorage.js new file mode 100644 index 00000000..26dc83ac --- /dev/null +++ b/packages/oracle-plugin/storage/oci-blockStorage.js @@ -0,0 +1,73 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a BlockstorageClient object + * @category Oracle Cloud + */ +class Oracle_BlockStorage { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._blockstorageClient = this._oci.BlockstorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createVolume function of BlockstorageClient + * @param {CreateVolumeRequest} createVolumeRequest - Data required for createVolume + * @returns {Promise} + */ + create(createVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .createVolume(createVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteVolume function of BlockstorageClient + * @param {DeleteVolumeRequest} deleteVolumeRequest - Data required for deleteVolume + * @returns {Promise} + */ + delete(deleteVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .deleteVolume(deleteVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getVolume function of BlockstorageClient + * @param {GetVolumeRequest} getVolumeRequest - Data required for getVolume + * @returns {Promise} + */ + get(getVolumeRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .getVolume(getVolumeRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listVolumes function of BlockstorageClient + * @param {ListVolumesRequest} listVolumesRequest - Data required for listVolumes + * @returns {Promise} + */ + list(listVolumesRequest) { + return new Promise((resolve, reject) => { + this._blockstorageClient + .listVolumes(listVolumesRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_BlockStorage; diff --git a/packages/oracle-plugin/storage/oci-storageBucket.js b/packages/oracle-plugin/storage/oci-storageBucket.js new file mode 100644 index 00000000..b7d643ed --- /dev/null +++ b/packages/oracle-plugin/storage/oci-storageBucket.js @@ -0,0 +1,86 @@ +/*This is an auto generated class, please do not change.*/ +/** + * Class to create a ObjectStorageClient object + * @category Oracle Cloud + */ +class Oracle_StorageBucket { + /** + * + * @param {module} ocisdk Oracle SDK + * @param {object} params SDK params + * @param {string} clientConfiguration SDK ClientConfiguration + */ + constructor(ocisdk, params, clientConfiguration) { + this._oci = ocisdk._sdkFileName; + this._objectStorageClient = this._oci.ObjectStorageClient( + params, + clientConfiguration + ); + } + /** + * Trigers the createBucket function of ObjectStorageClient + * @param {CreateBucketRequest} createBucketRequest - Data required for createBucket + * @returns {Promise} + */ + create(createBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .createBucket(createBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the deleteBucket function of ObjectStorageClient + * @param {DeleteBucketRequest} deleteBucketRequest - Data required for deleteBucket + * @returns {Promise} + */ + delete(deleteBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .deleteBucket(deleteBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the getBucket function of ObjectStorageClient + * @param {GetBucketRequest} getBucketRequest - Data required for getBucket + * @returns {Promise} + */ + get(getBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .getBucket(getBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the listBuckets function of ObjectStorageClient + * @param {ListBucketsRequest} listBucketsRequest - Data required for listBuckets + * @returns {Promise} + */ + list(listBucketsRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .listBuckets(listBucketsRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } + /** + * Trigers the reencryptBucket function of ObjectStorageClient + * @param {ReencryptBucketRequest} reencryptBucketRequest - Data required for reencryptBucket + * @returns {Promise} + */ + reencrypt(reencryptBucketRequest) { + return new Promise((resolve, reject) => { + this._objectStorageClient + .reencryptBucket(reencryptBucketRequest) + .then(data => resolve(data)) + .catch(err => reject(err)); + }); + } +} +module.exports = Oracle_StorageBucket;