25.0.0 • Published 7 months ago

jarqvi-sdk v25.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@liara/sdk

The liara sdk, with TypeScript/JavaScript languages for client that utilizes fetch-api.

Development

Note: You must have Node and NPM, Docker, Docker Compose installed on the system.

First, clone the project with the following command:

git clone https://github.com/liara-cloud/node-sdk.git

Second, run one of the following commands depending on your operating system:

windows:

npm run config:cmd

Linux/Mac:

npm run config:bash

Third, run one of the following commands for installing packages:

npm install

Fourth, run one of the following commands for build project:

npm run prepare

Publish new version

To publish the package, first increase the version of the package in the package.json file, then publish the package with the following command:

npm publish

Usage

Note: The type argument in the package.json file must be equal to commonjs.

npm install @liara/sdk

TypeScript example:

import liaraSDK from '@liara/sdk';

const { paas, dbaas, dns, mail, objectStorage } = liaraSDK('your-api-token');

paas.AppsApi.getApps()
    .then((res) => console.log(res))
    .catch((err) => console.log(err));

JavaScript example:

const { default: liaraSDK } = require('@liara/sdk');

const { paas, dbaas, dns, mail, objectStorage } = liaraSDK('your-api-token');

paas.AppsApi.getApps()
    .then((res) => console.log(res))
    .catch((err) => console.log(err));

Documentation of all methods:

Openapi documentation link

DNS:

CheckNameServersApi

DnsRecordApi

ZoneApi

Mail:

AccountsApi

AttachmentsApi

EventApi

ForwardApi

MailsApi

MessagesApi

SmtpApi

PaaS:

AppsApi

DeployApi

DisksApi

DomainsApi

ReportsApi

SettingsApi

DBaaS:

BackupsApi

DatabasesApi

ReportsApi

Object Storage:

BucketApi

FolderApi

KeyApi

MetricsApi

ObjectApi

25.0.0

7 months ago

23.0.0

7 months ago

21.0.0

7 months ago

20.0.0

7 months ago

17.0.0

7 months ago

16.0.0

7 months ago

12.0.0

7 months ago

11.0.0

7 months ago

6.0.0

7 months ago

5.0.0

7 months ago

4.0.0

7 months ago

2.0.0

7 months ago

0.3.0

7 months ago

0.2.0

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago