UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

60 lines (57 loc) 3.18 kB
import { LicenseWorklightWorkLight } from '../models/LicenseWorklightWorkLight.js'; import { ServiceTerminationReasonEnum } from '../models/ServiceTerminationReasonEnum.js'; import { LicenseTask } from '../models/LicenseTask.js'; import { ServicesService } from '../models/ServicesService.js'; import { ServiceTerminationFutureUseEnum } from '../models/ServiceTerminationFutureUseEnum.js'; import { LicenseWorkLightOrderConfiguration } from '../models/LicenseWorkLightOrderConfiguration.js'; import { LicenseChangeIpStatus } from '../models/LicenseChangeIpStatus.js'; import OVHBase from '../ovh.js'; import '../models/LicenseStateEnum.js'; import '../models/LicenseWorkLightVersionEnum.js'; import '../models/LicenseActionType.js'; import '../models/LicenseTaskStateEnum.js'; import '../models/ServiceStateEnum.js'; import '../models/ServiceRenewType.js'; import '../models/ServiceRenewalTypeEnum.js'; import '../models/LicenseOrderableWorkLightCompatibilityInfos.js'; import '../models/LicenseLicenseTypeEnum.js'; import '../models/LicenseChangeIpMessageEnum.js'; import '../endpoints.js'; declare class LicenseWorklightHandler { ovh: OVHBase; constructor(ovh: OVHBase); /** List available services */ listWorklight: () => Promise<string[]>; /** Get the orderable WorkLight versions */ getWorklightOrderableVersions: () => Promise<LicenseWorkLightOrderConfiguration[]>; /** Get this object properties */ getWorklightByServiceName: (serviceName: string) => Promise<LicenseWorklightWorkLight>; /** Alter this object properties */ updateWorklightByServiceName: (serviceName: string, body: LicenseWorklightWorkLight) => Promise<void>; /** Returns an array of ips where the license can be moved to */ getWorklightAllowedDestinationIpByServiceName: (serviceName: string) => Promise<string[]>; /** Will tell if the ip can accept the license */ getWorklightCanLicenseBeMovedToByServiceName: (serviceName: string) => Promise<LicenseChangeIpStatus>; /** Move this license to another Ip */ postWorklightChangeIpByServiceName: (serviceName: string, body: { destinationIp: string; }) => Promise<LicenseTask>; /** Confirm termination of your service */ confirmWorklightTerminationByServiceName: (serviceName: string, body: { commentary?: string; futureUse?: ServiceTerminationFutureUseEnum; reason?: ServiceTerminationReasonEnum; token: string; }) => Promise<string>; /** Get this object properties */ getWorklightServiceInfosByServiceName: (serviceName: string) => Promise<ServicesService>; /** Alter this object properties */ updateWorklightServiceInfosByServiceName: (serviceName: string, body: ServicesService) => Promise<void>; /** Tasks linked to this license */ getWorklightTasksByServiceName: (serviceName: string) => Promise<number[]>; /** Get this object properties */ getWorklightTasksByServiceNameAndTaskId: (serviceName: string, taskId: number) => Promise<LicenseTask>; /** Terminate your service */ postWorklightTerminateByServiceName: (serviceName: string) => Promise<string>; } export { LicenseWorklightHandler };