netsparker-cloud
Version:
JavaScript client for consuming the Netsparker Cloud API.
175 lines (168 loc) • 4.5 kB
text/typescript
/**
* Invicti Enterprise API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
/**
* Initializes a new instance of the {Netsparker.Cloud.Infrastructure.Models.AgentListApiModel} class.
*/
export class AgentListApiModel {
/**
* Gets or sets the unique identifier of agent.
*/
'id'?: string;
/**
* Gets or sets the date and time at which the instance last notified its active status.
*/
'heartbeat'?: Date;
/**
* Gets or sets the public ip address of the instance in which this agent runs.
*/
'ipAddress'?: string;
/**
* Gets or sets the date and time at which the instance was launched.
*/
'launched'?: Date;
/**
* Gets or sets the agent name.
*/
'name'?: string;
/**
* Gets or sets a value that represents the status of this agent instance.
*/
'state'?: AgentListApiModel.StateEnum;
/**
* Gets or sets the version of agent.
*/
'version'?: string;
/**
* Determines whether is auto update enabled for the agent.
*/
'autoUpdateEnabled'?: boolean;
/**
* Returns an agent has any uncompleted command.
*/
'hasWaitingCommand'?: boolean;
/**
* Gets or sets the vdb version
*/
'vdbVersion'?: string;
/**
* Gets or sets the OS Description
*/
'osDescription'?: string;
/**
* Gets or sets the framework description.
*/
'frameworkDescription'?: string;
/**
* Gets or sets the OS architecture
*/
'osArchitecture'?: string;
/**
* Gets or sets the process architecture
*/
'processArchitecture'?: string;
/**
* Gets the agent needs update
*/
'isAgentNeedsUpdate'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "id",
"baseName": "Id",
"type": "string"
},
{
"name": "heartbeat",
"baseName": "Heartbeat",
"type": "Date"
},
{
"name": "ipAddress",
"baseName": "IpAddress",
"type": "string"
},
{
"name": "launched",
"baseName": "Launched",
"type": "Date"
},
{
"name": "name",
"baseName": "Name",
"type": "string"
},
{
"name": "state",
"baseName": "State",
"type": "AgentListApiModel.StateEnum"
},
{
"name": "version",
"baseName": "Version",
"type": "string"
},
{
"name": "autoUpdateEnabled",
"baseName": "AutoUpdateEnabled",
"type": "boolean"
},
{
"name": "hasWaitingCommand",
"baseName": "HasWaitingCommand",
"type": "boolean"
},
{
"name": "vdbVersion",
"baseName": "VdbVersion",
"type": "string"
},
{
"name": "osDescription",
"baseName": "OsDescription",
"type": "string"
},
{
"name": "frameworkDescription",
"baseName": "FrameworkDescription",
"type": "string"
},
{
"name": "osArchitecture",
"baseName": "OsArchitecture",
"type": "string"
},
{
"name": "processArchitecture",
"baseName": "ProcessArchitecture",
"type": "string"
},
{
"name": "isAgentNeedsUpdate",
"baseName": "IsAgentNeedsUpdate",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return AgentListApiModel.attributeTypeMap;
}
}
export namespace AgentListApiModel {
export enum StateEnum {
Launching = <any> 'Launching',
Waiting = <any> 'Waiting',
Scanning = <any> 'Scanning',
Terminated = <any> 'Terminated',
NotAvailable = <any> 'NotAvailable',
Disabled = <any> 'Disabled',
Updating = <any> 'Updating'
}
}