Socket
Socket
Sign inDemoInstall

s9s-cloudlink-api

Package Overview
Dependencies
2
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.10 to 1.0.12

27

dist/CloudlinkApi.js

@@ -394,2 +394,29 @@ 'use strict';

}
/**
* Creates a new internet gateway
* @returns {Promise}
*/
}, {
key: 'addInternetGateway',
value: function addInternetGateway() {
return _CloudlinkHttp2.default.request(this.config, 'addInternetGateway', {});
}
/**
* Attaches internet gateway to VPC
* @param vpcId
* @param gatewayId
* @returns {Promise}
*/
}, {
key: 'attachInternetGateway',
value: function attachInternetGateway(vpcId, gatewayId) {
return _CloudlinkHttp2.default.request(this.config, 'attachInternetGateway', {
vpcId: vpcId,
gatewayId: gatewayId
});
}
}]);

@@ -396,0 +423,0 @@

10

docs/coverage.json
{
"coverage": "96.29%",
"expectCount": 27,
"actualCount": 26,
"coverage": "96.55%",
"expectCount": 29,
"actualCount": 28,
"files": {
"src/CloudlinkApi.js": {
"expectCount": 24,
"actualCount": 23,
"expectCount": 26,
"actualCount": 25,
"undocumentLines": [

@@ -10,0 +10,0 @@ 35

@@ -13,3 +13,3 @@ [

"lineNumber": 1,
"content": "import CloudlinkApiError from './CloudlinkApiError';\nimport CloudlinkHttp from './CloudlinkHttp';\n\n/**\n * CloudlinkApi class\n * @property {{\n * auth: object,\n * cloud: string,\n * server: {host:string,port:number,secure:boolean}\n * }} config\n */\nexport class CloudlinkApi {\n\n /**\n * A list of supported cloud (Cloud providers) codes\n * @returns {string[]}\n */\n static get supportedClouds() {\n return [\n 'aws',\n 'digitalocean'\n ];\n }\n\n /**\n * CloudlinkApi constructor\n * @param {{}} config Configurations object (must include \"auth\" and \"server\" properties)\n * @throws {CloudlinkApiError}\n */\n constructor(config) {\n\n /* eslint max-statements: [\"error\", 20] */\n // noinspection JSValidateTypes\n\n this.config = config || {};\n if (!this.config.cloud) {\n throw new CloudlinkApiError(\n 'Missing \"cloud\" definition in config'\n );\n }\n if (CloudlinkApi.supportedClouds.indexOf(this.config.cloud) === -1) {\n throw new CloudlinkApiError(\n `\"${this.config.cloud}\" is not a supported cloud provider`\n );\n }\n if (!this.config.server) {\n throw new CloudlinkApiError(\n 'Missing \"server\" object in config'\n );\n }\n if (!this.config.server.host) {\n throw new CloudlinkApiError(\n 'Messing \"server.host\" in config'\n );\n }\n if (!this.config.server.port) {\n this.config.server.port = 80;\n }\n if (!this.config.server.secure) {\n this.config.server.secure = false;\n }\n if (!this.config.auth) {\n throw new CloudlinkApiError(\n 'Missing \"auth\" object in config'\n );\n }\n }\n\n /**\n * Returns a list of instances (Virtual machines)\n * @param {Array} [ids]\n * @returns {Promise}\n */\n listInstances(ids = []) {\n return CloudlinkHttp.request(this.config, 'listInstances', {ids});\n }\n\n /**\n * Adds a new instance (Virtual machine)\n * @returns {Promise}\n * @param {Array} names New instance/s names\n * @param {string} region Region to create the instance/s at\n * @param {string} image Image/ami to create the instance/s from\n * @param {number} disk Disk size in GB\n * @param {string} size Diskspace size\n * @param {string} sshKeys SSH key to deploy to the new instance/s\n * @param {number|string} [subnet] Subnet id\n * @param {Array} [securityGroups] List of security groups ids\n */\n addInstance(names, region, image, disk, size, sshKeys, subnet, securityGroups) {\n return CloudlinkHttp.request(this.config, 'addInstance', {\n names,\n region,\n image,\n disk,\n size,\n subnet,\n sshKeys,\n securityGroups\n });\n }\n\n /**\n * Deletes an instance/list of instances\n * @param instanceIds\n * @returns {Promise}\n */\n deleteInstance(instanceIds) {\n return CloudlinkHttp.request(this.config, 'deleteInstance', {\n instanceIds\n });\n }\n\n /**\n * Returns the status of an instance (Virtual machine)\n * @param {string|number} instanceId The id of an instance\n * @returns {Promise}\n */\n getInstanceStatus(instanceId) {\n return CloudlinkHttp.request(this.config, 'getInstanceStatus', {\n instanceId\n });\n }\n\n /**\n * Returns a list of regions available on cloud provider\n * @returns {Promise}\n */\n listRegions() {\n return CloudlinkHttp.request(this.config, 'listRegions', {});\n }\n\n /**\n * Returns a list of sizes available on cloud provider\n * @returns {Promise}\n */\n listSizes() {\n return CloudlinkHttp.request(this.config, 'listSizes', {});\n }\n\n /**\n * Returns a list of distributions available on cloud provider\n * @param {{}} filters Filters object\n * @returns {Promise}\n */\n listDistributions(filters = {}) {\n return CloudlinkHttp.request(this.config, 'listDistributions', {\n filters\n });\n }\n\n /**\n * Returns a list of volumes (Virtual/disks)\n * @returns {Promise}\n */\n listVolumes() {\n return CloudlinkHttp.request(this.config, 'listVolumes', {});\n }\n\n /**\n * Returns a list of SSH keys registered on cloud provider\n * @returns {Promise}\n */\n listKeys() {\n return CloudlinkHttp.request(this.config, 'listKeys', {});\n }\n\n /**\n * Registers a new public key on cloud provider\n * @param {string} name Name of the new key\n * @param {string} publicKey Public key contents\n * @returns {Promise}\n */\n addKey(name, publicKey) {\n return CloudlinkHttp.request(this.config, 'addKey', {\n name,\n publicKey\n });\n }\n\n /**\n * Deletes a key from cloud provider\n * @param {string|number} id Key name/id\n * @returns {Promise}\n */\n deleteKey(id) {\n return CloudlinkHttp.request(this.config, 'deleteKey', {\n id\n });\n }\n\n /**\n * Returns a list of VPCs (Virtual private network)\n * @param {{}} filters Filters object\n * @param {Array} ids Ids list\n * @returns {Promise}\n */\n listVpcs(filters = {}, ids = []) {\n return CloudlinkHttp.request(this.config, 'listVpcs', {\n filters,\n ids\n });\n }\n\n /**\n * Creates a new VPC (Virtual private network)\n * @param cidr CIDR block, network range\n * @param tenancy Tenancy default/dedicated/host\n * @returns {Promise}\n */\n addVpc(cidr, tenancy) {\n return CloudlinkHttp.request(this.config, 'addVpc', {\n cidr,\n tenancy\n });\n }\n\n /**\n * Sets/adds vpc attribute\n * @param vpcId\n * @param attributes\n * @returns {Promise}\n */\n addVpcAttribute(vpcId, attributes) {\n return CloudlinkHttp.request(this.config, 'addVpcAttribute', {\n vpcId,\n attributes\n });\n }\n\n /**\n * Returns vpc attribute value\n * @param vpcId\n * @param attribute\n * @returns {Promise}\n */\n getVpcAttribute(vpcId, attribute) {\n return CloudlinkHttp.request(this.config, 'getVpcAttribute', {\n vpcId,\n attribute\n });\n }\n\n /**\n * Returns a list of subnets\n * @param ids\n * @param filters\n * @returns {Promise}\n */\n listSubNets(ids = [], filters = []) {\n return CloudlinkHttp.request(this.config, 'listSubNets', {\n ids,\n filters\n });\n }\n\n /**\n * Creates a new subnet within a VPC\n * @param cidr CIDR block, network range\n * @param vpcId VPC id\n * @returns {Promise}\n */\n addSubNet(cidr, vpcId) {\n return CloudlinkHttp.request(this.config, 'addSubNet', {\n cidr,\n vpcId\n });\n }\n\n /**\n * Creates a new security group under a vpcId\n * @param vpcId\n * @param name\n * @param description\n * @returns {Promise}\n */\n addSecurityGroup(vpcId, name, description) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroup', {\n vpcId,\n name,\n description\n });\n }\n\n /**\n * Creates a set of inbound security group rules\n * @param groupId\n * @param rules\n * @returns {Promise}\n */\n addSecurityGroupInboundRules(groupId, rules) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroupInboundRules', {\n groupId,\n rules\n });\n }\n\n /**\n * Creates a set of outbound security group rules\n * @param groupId\n * @param rules\n * @returns {Promise}\n */\n addSecurityGroupOutboundRules(groupId, rules) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroupOutboundRules', {\n groupId,\n rules\n });\n }\n\n}\n"
"content": "import CloudlinkApiError from './CloudlinkApiError';\nimport CloudlinkHttp from './CloudlinkHttp';\n\n/**\n * CloudlinkApi class\n * @property {{\n * auth: object,\n * cloud: string,\n * server: {host:string,port:number,secure:boolean}\n * }} config\n */\nexport class CloudlinkApi {\n\n /**\n * A list of supported cloud (Cloud providers) codes\n * @returns {string[]}\n */\n static get supportedClouds() {\n return [\n 'aws',\n 'digitalocean'\n ];\n }\n\n /**\n * CloudlinkApi constructor\n * @param {{}} config Configurations object (must include \"auth\" and \"server\" properties)\n * @throws {CloudlinkApiError}\n */\n constructor(config) {\n\n /* eslint max-statements: [\"error\", 20] */\n // noinspection JSValidateTypes\n\n this.config = config || {};\n if (!this.config.cloud) {\n throw new CloudlinkApiError(\n 'Missing \"cloud\" definition in config'\n );\n }\n if (CloudlinkApi.supportedClouds.indexOf(this.config.cloud) === -1) {\n throw new CloudlinkApiError(\n `\"${this.config.cloud}\" is not a supported cloud provider`\n );\n }\n if (!this.config.server) {\n throw new CloudlinkApiError(\n 'Missing \"server\" object in config'\n );\n }\n if (!this.config.server.host) {\n throw new CloudlinkApiError(\n 'Messing \"server.host\" in config'\n );\n }\n if (!this.config.server.port) {\n this.config.server.port = 80;\n }\n if (!this.config.server.secure) {\n this.config.server.secure = false;\n }\n if (!this.config.auth) {\n throw new CloudlinkApiError(\n 'Missing \"auth\" object in config'\n );\n }\n }\n\n /**\n * Returns a list of instances (Virtual machines)\n * @param {Array} [ids]\n * @returns {Promise}\n */\n listInstances(ids = []) {\n return CloudlinkHttp.request(this.config, 'listInstances', {ids});\n }\n\n /**\n * Adds a new instance (Virtual machine)\n * @returns {Promise}\n * @param {Array} names New instance/s names\n * @param {string} region Region to create the instance/s at\n * @param {string} image Image/ami to create the instance/s from\n * @param {number} disk Disk size in GB\n * @param {string} size Diskspace size\n * @param {string} sshKeys SSH key to deploy to the new instance/s\n * @param {number|string} [subnet] Subnet id\n * @param {Array} [securityGroups] List of security groups ids\n */\n addInstance(names, region, image, disk, size, sshKeys, subnet, securityGroups) {\n return CloudlinkHttp.request(this.config, 'addInstance', {\n names,\n region,\n image,\n disk,\n size,\n subnet,\n sshKeys,\n securityGroups\n });\n }\n\n /**\n * Deletes an instance/list of instances\n * @param instanceIds\n * @returns {Promise}\n */\n deleteInstance(instanceIds) {\n return CloudlinkHttp.request(this.config, 'deleteInstance', {\n instanceIds\n });\n }\n\n /**\n * Returns the status of an instance (Virtual machine)\n * @param {string|number} instanceId The id of an instance\n * @returns {Promise}\n */\n getInstanceStatus(instanceId) {\n return CloudlinkHttp.request(this.config, 'getInstanceStatus', {\n instanceId\n });\n }\n\n /**\n * Returns a list of regions available on cloud provider\n * @returns {Promise}\n */\n listRegions() {\n return CloudlinkHttp.request(this.config, 'listRegions', {});\n }\n\n /**\n * Returns a list of sizes available on cloud provider\n * @returns {Promise}\n */\n listSizes() {\n return CloudlinkHttp.request(this.config, 'listSizes', {});\n }\n\n /**\n * Returns a list of distributions available on cloud provider\n * @param {{}} filters Filters object\n * @returns {Promise}\n */\n listDistributions(filters = {}) {\n return CloudlinkHttp.request(this.config, 'listDistributions', {\n filters\n });\n }\n\n /**\n * Returns a list of volumes (Virtual/disks)\n * @returns {Promise}\n */\n listVolumes() {\n return CloudlinkHttp.request(this.config, 'listVolumes', {});\n }\n\n /**\n * Returns a list of SSH keys registered on cloud provider\n * @returns {Promise}\n */\n listKeys() {\n return CloudlinkHttp.request(this.config, 'listKeys', {});\n }\n\n /**\n * Registers a new public key on cloud provider\n * @param {string} name Name of the new key\n * @param {string} publicKey Public key contents\n * @returns {Promise}\n */\n addKey(name, publicKey) {\n return CloudlinkHttp.request(this.config, 'addKey', {\n name,\n publicKey\n });\n }\n\n /**\n * Deletes a key from cloud provider\n * @param {string|number} id Key name/id\n * @returns {Promise}\n */\n deleteKey(id) {\n return CloudlinkHttp.request(this.config, 'deleteKey', {\n id\n });\n }\n\n /**\n * Returns a list of VPCs (Virtual private network)\n * @param {{}} filters Filters object\n * @param {Array} ids Ids list\n * @returns {Promise}\n */\n listVpcs(filters = {}, ids = []) {\n return CloudlinkHttp.request(this.config, 'listVpcs', {\n filters,\n ids\n });\n }\n\n /**\n * Creates a new VPC (Virtual private network)\n * @param cidr CIDR block, network range\n * @param tenancy Tenancy default/dedicated/host\n * @returns {Promise}\n */\n addVpc(cidr, tenancy) {\n return CloudlinkHttp.request(this.config, 'addVpc', {\n cidr,\n tenancy\n });\n }\n\n /**\n * Sets/adds vpc attribute\n * @param vpcId\n * @param attributes\n * @returns {Promise}\n */\n addVpcAttribute(vpcId, attributes) {\n return CloudlinkHttp.request(this.config, 'addVpcAttribute', {\n vpcId,\n attributes\n });\n }\n\n /**\n * Returns vpc attribute value\n * @param vpcId\n * @param attribute\n * @returns {Promise}\n */\n getVpcAttribute(vpcId, attribute) {\n return CloudlinkHttp.request(this.config, 'getVpcAttribute', {\n vpcId,\n attribute\n });\n }\n\n /**\n * Returns a list of subnets\n * @param ids\n * @param filters\n * @returns {Promise}\n */\n listSubNets(ids = [], filters = []) {\n return CloudlinkHttp.request(this.config, 'listSubNets', {\n ids,\n filters\n });\n }\n\n /**\n * Creates a new subnet within a VPC\n * @param cidr CIDR block, network range\n * @param vpcId VPC id\n * @returns {Promise}\n */\n addSubNet(cidr, vpcId) {\n return CloudlinkHttp.request(this.config, 'addSubNet', {\n cidr,\n vpcId\n });\n }\n\n /**\n * Creates a new security group under a vpcId\n * @param vpcId\n * @param name\n * @param description\n * @returns {Promise}\n */\n addSecurityGroup(vpcId, name, description) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroup', {\n vpcId,\n name,\n description\n });\n }\n\n /**\n * Creates a set of inbound security group rules\n * @param groupId\n * @param rules\n * @returns {Promise}\n */\n addSecurityGroupInboundRules(groupId, rules) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroupInboundRules', {\n groupId,\n rules\n });\n }\n\n /**\n * Creates a set of outbound security group rules\n * @param groupId\n * @param rules\n * @returns {Promise}\n */\n addSecurityGroupOutboundRules(groupId, rules) {\n return CloudlinkHttp.request(this.config, 'addSecurityGroupOutboundRules', {\n groupId,\n rules\n });\n }\n\n /**\n * Creates a new internet gateway\n * @returns {Promise}\n */\n addInternetGateway() {\n return CloudlinkHttp.request(this.config, 'addInternetGateway', {});\n }\n\n /**\n * Attaches internet gateway to VPC\n * @param vpcId\n * @param gatewayId\n * @returns {Promise}\n */\n attachInternetGateway(vpcId, gatewayId) {\n return CloudlinkHttp.request(this.config, 'attachInternetGateway', {\n vpcId,\n gatewayId\n });\n }\n\n}\n"
},

@@ -1048,2 +1048,79 @@ {

"__docId__": 25,
"kind": "method",
"static": false,
"variation": null,
"name": "addInternetGateway",
"memberof": "src/CloudlinkApi.js~CloudlinkApi",
"longname": "src/CloudlinkApi.js~CloudlinkApi#addInternetGateway",
"access": null,
"description": "Creates a new internet gateway",
"lineNumber": 315,
"unknown": [
{
"tagName": "@returns",
"tagValue": "{Promise}"
}
],
"params": [],
"return": {
"nullable": null,
"types": [
"Promise"
],
"spread": false,
"description": ""
},
"generator": false
},
{
"__docId__": 26,
"kind": "method",
"static": false,
"variation": null,
"name": "attachInternetGateway",
"memberof": "src/CloudlinkApi.js~CloudlinkApi",
"longname": "src/CloudlinkApi.js~CloudlinkApi#attachInternetGateway",
"access": null,
"description": "Attaches internet gateway to VPC",
"lineNumber": 325,
"unknown": [
{
"tagName": "@returns",
"tagValue": "{Promise}"
}
],
"params": [
{
"nullable": null,
"types": [
"*"
],
"spread": false,
"optional": false,
"name": "vpcId",
"description": ""
},
{
"nullable": null,
"types": [
"*"
],
"spread": false,
"optional": false,
"name": "gatewayId",
"description": ""
}
],
"return": {
"nullable": null,
"types": [
"Promise"
],
"spread": false,
"description": ""
},
"generator": false
},
{
"__docId__": 27,
"kind": "file",

@@ -1061,3 +1138,3 @@ "static": true,

{
"__docId__": 26,
"__docId__": 28,
"kind": "class",

@@ -1087,3 +1164,3 @@ "static": true,

{
"__docId__": 27,
"__docId__": 29,
"kind": "file",

@@ -1101,3 +1178,3 @@ "static": true,

{
"__docId__": 28,
"__docId__": 30,
"kind": "class",

@@ -1118,3 +1195,3 @@ "static": true,

{
"__docId__": 29,
"__docId__": 31,
"kind": "method",

@@ -1178,3 +1255,3 @@ "static": true,

{
"__docId__": 31,
"__docId__": 33,
"kind": "external",

@@ -1192,3 +1269,3 @@ "static": true,

{
"__docId__": 32,
"__docId__": 34,
"kind": "external",

@@ -1206,3 +1283,3 @@ "static": true,

{
"__docId__": 33,
"__docId__": 35,
"kind": "external",

@@ -1220,3 +1297,3 @@ "static": true,

{
"__docId__": 34,
"__docId__": 36,
"kind": "external",

@@ -1234,3 +1311,3 @@ "static": true,

{
"__docId__": 35,
"__docId__": 37,
"kind": "external",

@@ -1248,3 +1325,3 @@ "static": true,

{
"__docId__": 36,
"__docId__": 38,
"kind": "external",

@@ -1262,3 +1339,3 @@ "static": true,

{
"__docId__": 37,
"__docId__": 39,
"kind": "external",

@@ -1276,3 +1353,3 @@ "static": true,

{
"__docId__": 38,
"__docId__": 40,
"kind": "external",

@@ -1290,3 +1367,3 @@ "static": true,

{
"__docId__": 39,
"__docId__": 41,
"kind": "external",

@@ -1304,3 +1381,3 @@ "static": true,

{
"__docId__": 40,
"__docId__": 42,
"kind": "external",

@@ -1318,3 +1395,3 @@ "static": true,

{
"__docId__": 41,
"__docId__": 43,
"kind": "external",

@@ -1332,3 +1409,3 @@ "static": true,

{
"__docId__": 42,
"__docId__": 44,
"kind": "external",

@@ -1346,3 +1423,3 @@ "static": true,

{
"__docId__": 43,
"__docId__": 45,
"kind": "external",

@@ -1360,3 +1437,3 @@ "static": true,

{
"__docId__": 44,
"__docId__": 46,
"kind": "external",

@@ -1374,3 +1451,3 @@ "static": true,

{
"__docId__": 45,
"__docId__": 47,
"kind": "external",

@@ -1388,3 +1465,3 @@ "static": true,

{
"__docId__": 46,
"__docId__": 48,
"kind": "external",

@@ -1402,3 +1479,3 @@ "static": true,

{
"__docId__": 47,
"__docId__": 49,
"kind": "external",

@@ -1416,3 +1493,3 @@ "static": true,

{
"__docId__": 48,
"__docId__": 50,
"kind": "external",

@@ -1430,3 +1507,3 @@ "static": true,

{
"__docId__": 49,
"__docId__": 51,
"kind": "external",

@@ -1444,3 +1521,3 @@ "static": true,

{
"__docId__": 50,
"__docId__": 52,
"kind": "external",

@@ -1458,3 +1535,3 @@ "static": true,

{
"__docId__": 51,
"__docId__": 53,
"kind": "external",

@@ -1472,3 +1549,3 @@ "static": true,

{
"__docId__": 52,
"__docId__": 54,
"kind": "external",

@@ -1486,3 +1563,3 @@ "static": true,

{
"__docId__": 53,
"__docId__": 55,
"kind": "external",

@@ -1500,3 +1577,3 @@ "static": true,

{
"__docId__": 54,
"__docId__": 56,
"kind": "external",

@@ -1514,3 +1591,3 @@ "static": true,

{
"__docId__": 55,
"__docId__": 57,
"kind": "external",

@@ -1528,3 +1605,3 @@ "static": true,

{
"__docId__": 56,
"__docId__": 58,
"kind": "external",

@@ -1542,3 +1619,3 @@ "static": true,

{
"__docId__": 57,
"__docId__": 59,
"kind": "external",

@@ -1556,3 +1633,3 @@ "static": true,

{
"__docId__": 58,
"__docId__": 60,
"kind": "external",

@@ -1570,3 +1647,3 @@ "static": true,

{
"__docId__": 59,
"__docId__": 61,
"kind": "external",

@@ -1584,3 +1661,3 @@ "static": true,

{
"__docId__": 60,
"__docId__": 62,
"kind": "external",

@@ -1598,3 +1675,3 @@ "static": true,

{
"__docId__": 61,
"__docId__": 63,
"kind": "external",

@@ -1612,3 +1689,3 @@ "static": true,

{
"__docId__": 62,
"__docId__": 64,
"kind": "external",

@@ -1626,3 +1703,3 @@ "static": true,

{
"__docId__": 63,
"__docId__": 65,
"kind": "external",

@@ -1640,3 +1717,3 @@ "static": true,

{
"__docId__": 64,
"__docId__": 66,
"kind": "external",

@@ -1654,3 +1731,3 @@ "static": true,

{
"__docId__": 65,
"__docId__": 67,
"kind": "external",

@@ -1668,3 +1745,3 @@ "static": true,

{
"__docId__": 66,
"__docId__": 68,
"kind": "external",

@@ -1682,3 +1759,3 @@ "static": true,

{
"__docId__": 67,
"__docId__": 69,
"kind": "external",

@@ -1696,3 +1773,3 @@ "static": true,

{
"__docId__": 68,
"__docId__": 70,
"kind": "external",

@@ -1710,3 +1787,3 @@ "static": true,

{
"__docId__": 69,
"__docId__": 71,
"kind": "external",

@@ -1724,3 +1801,3 @@ "static": true,

{
"__docId__": 70,
"__docId__": 72,
"kind": "external",

@@ -1738,3 +1815,3 @@ "static": true,

{
"__docId__": 71,
"__docId__": 73,
"kind": "external",

@@ -1752,3 +1829,3 @@ "static": true,

{
"__docId__": 72,
"__docId__": 74,
"kind": "external",

@@ -1766,3 +1843,3 @@ "static": true,

{
"__docId__": 73,
"__docId__": 75,
"kind": "external",

@@ -1780,3 +1857,3 @@ "static": true,

{
"__docId__": 74,
"__docId__": 76,
"kind": "external",

@@ -1794,3 +1871,3 @@ "static": true,

{
"__docId__": 75,
"__docId__": 77,
"kind": "external",

@@ -1808,3 +1885,3 @@ "static": true,

{
"__docId__": 76,
"__docId__": 78,
"kind": "external",

@@ -1822,3 +1899,3 @@ "static": true,

{
"__docId__": 77,
"__docId__": 79,
"kind": "external",

@@ -1836,3 +1913,3 @@ "static": true,

{
"__docId__": 79,
"__docId__": 81,
"kind": "external",

@@ -1850,3 +1927,3 @@ "static": true,

{
"__docId__": 80,
"__docId__": 82,
"kind": "external",

@@ -1864,3 +1941,3 @@ "static": true,

{
"__docId__": 81,
"__docId__": 83,
"kind": "external",

@@ -1878,3 +1955,3 @@ "static": true,

{
"__docId__": 82,
"__docId__": 84,
"kind": "external",

@@ -1892,3 +1969,3 @@ "static": true,

{
"__docId__": 83,
"__docId__": 85,
"kind": "external",

@@ -1906,3 +1983,3 @@ "static": true,

{
"__docId__": 84,
"__docId__": 86,
"kind": "external",

@@ -1920,3 +1997,3 @@ "static": true,

{
"__docId__": 85,
"__docId__": 87,
"kind": "external",

@@ -1934,3 +2011,3 @@ "static": true,

{
"__docId__": 86,
"__docId__": 88,
"kind": "external",

@@ -1937,0 +2014,0 @@ "static": true,

{
"name": "s9s-cloudlink-api",
"version": "1.0.9",
"version": "1.0.12",
"main": "api.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -363,2 +363,8 @@ window.esdocSearchIndex = [

[
"src/cloudlinkapi.js~cloudlinkapi#addinternetgateway",
"class/src/CloudlinkApi.js~CloudlinkApi.html#instance-method-addInternetGateway",
"src/CloudlinkApi.js~CloudlinkApi#addInternetGateway",
"method"
],
[
"src/cloudlinkapi.js~cloudlinkapi#addkey",

@@ -406,2 +412,8 @@ "class/src/CloudlinkApi.js~CloudlinkApi.html#instance-method-addKey",

[
"src/cloudlinkapi.js~cloudlinkapi#attachinternetgateway",
"class/src/CloudlinkApi.js~CloudlinkApi.html#instance-method-attachInternetGateway",
"src/CloudlinkApi.js~CloudlinkApi#attachInternetGateway",
"method"
],
[
"src/cloudlinkapi.js~cloudlinkapi#config",

@@ -408,0 +420,0 @@ "class/src/CloudlinkApi.js~CloudlinkApi.html#instance-member-config",

{
"name": "s9s-cloudlink-api",
"version": "1.0.10",
"version": "1.0.12",
"main": "api.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -9,3 +9,3 @@ # CloudLink API

* [Documentation](https://cdn.rawgit.com/simon-s9/s9s-cloudlink-api/v1.0.10/docs/index.html)
* [Documentation](https://cdn.rawgit.com/simon-s9/s9s-cloudlink-api/v1.0.12/docs/index.html)
* [Installation](#installation)

@@ -59,3 +59,3 @@ * [Examples](#examples)

[travis-url]: https://travis-ci.org/simon-s9/s9s-cloudlink-api
[document-image]: https://rawgit.com/simon-s9/s9s-cloudlink-api/v1.0.10/docs/badge.svg
[document-image]: https://rawgit.com/simon-s9/s9s-cloudlink-api/v1.0.12/docs/badge.svg
[document-url]: https://github.com/simon-s9/s9s-cloudlink-api/releases

@@ -311,2 +311,23 @@ import CloudlinkApiError from './CloudlinkApiError';

/**
* Creates a new internet gateway
* @returns {Promise}
*/
addInternetGateway() {
return CloudlinkHttp.request(this.config, 'addInternetGateway', {});
}
/**
* Attaches internet gateway to VPC
* @param vpcId
* @param gatewayId
* @returns {Promise}
*/
attachInternetGateway(vpcId, gatewayId) {
return CloudlinkHttp.request(this.config, 'attachInternetGateway', {
vpcId,
gatewayId
});
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc