@devopness/sdk-js
Version:
Devopness API JS/TS SDK - Painless essential DevOps to everyone
73 lines (72 loc) • 3.37 kB
TypeScript
import { ActionService } from './services/ActionService';
import { ConfigurationOptions } from './services/ApiBaseService';
import { ApplicationService } from './services/ApplicationService';
import { CredentialService } from './services/CredentialService';
import { CronJobService } from './services/CronJobService';
import { DaemonService } from './services/DaemonService';
import { EnvironmentService } from './services/EnvironmentService';
import { HookRequestService } from './services/HookRequestService';
import { HookService } from './services/HookService';
import { LogService } from './services/LogService';
import { NetworkRuleService } from './services/NetworkRuleService';
import { NetworkService } from './services/NetworkService';
import { OrganizationService } from './services/OrganizationService';
import { PipelineService } from './services/PipelineService';
import { ProjectService } from './services/ProjectService';
import { ResourceEventService } from './services/ResourceEventService';
import { ResourceLinkService } from './services/ResourceLinkService';
import { RoleService } from './services/RoleService';
import { ServerService } from './services/ServerService';
import { ServiceService } from './services/ServiceService';
import { SocialAccountService } from './services/SocialAccountService';
import { SshKeyService } from './services/SshKeyService';
import { SslCertificateService } from './services/SslCertificateService';
import { StaticService } from './services/StaticService';
import { SubnetService } from './services/SubnetService';
import { TeamInvitationService } from './services/TeamInvitationService';
import { TeamService } from './services/TeamService';
import { UserService } from './services/UserService';
import { VariableService } from './services/VariableService';
import { VirtualHostService } from './services/VirtualHostService';
export declare class DevopnessApiClient {
actions: ActionService;
applications: ApplicationService;
credentials: CredentialService;
cronjobs: CronJobService;
daemons: DaemonService;
environments: EnvironmentService;
hookRequests: HookRequestService;
hooks: HookService;
logs: LogService;
networkRules: NetworkRuleService;
networks: NetworkService;
organizations: OrganizationService;
pipelines: PipelineService;
projects: ProjectService;
resourceEvents: ResourceEventService;
resourceLinks: ResourceLinkService;
roles: RoleService;
servers: ServerService;
services: ServiceService;
socialAccounts: SocialAccountService;
sshKeys: SshKeyService;
sslCertificates: SslCertificateService;
static: StaticService;
subnets: SubnetService;
teamInvitations: TeamInvitationService;
teams: TeamService;
users: UserService;
variables: VariableService;
virtualHosts: VirtualHostService;
constructor(options?: ConfigurationOptions);
get accessToken(): string;
set accessToken(accessToken: string);
/**
*
* @summary Sets the callback function to be executed when the access token expires.
* @static
* @param {function(string)} callback - The callback function to be executed.
* This function should accept a single string parameter representing the expired access token.
*/
set onTokenExpired(callback: (accessToken: string) => void);
}