/*
* Signadot API
* API for Signadot Sandboxes
*
* OpenAPI spec version: 1.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.25
*
* Do not edit the class manually.
*
*/
import {ApiClient} from '../ApiClient';
/**
* The SandboxStatus model module.
* @module model/SandboxStatus
*/
export class SandboxStatus {
/**
* Constructs a new <code>SandboxStatus</code>.
* @alias module:model/SandboxStatus
* @class
*/
constructor() {
}
/**
* Constructs a <code>SandboxStatus</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/SandboxStatus} obj Optional instance to populate.
* @return {module:model/SandboxStatus} The populated <code>SandboxStatus</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new SandboxStatus();
if (data.hasOwnProperty('id'))
obj.id = ApiClient.convertToType(data['id'], 'String');
if (data.hasOwnProperty('message'))
obj.message = ApiClient.convertToType(data['message'], 'String');
if (data.hasOwnProperty('ready'))
obj.ready = ApiClient.convertToType(data['ready'], 'Boolean');
if (data.hasOwnProperty('reason'))
obj.reason = ApiClient.convertToType(data['reason'], 'String');
}
return obj;
}
}
/**
* The id of the sandbox.
* @member {String} id
*/
SandboxStatus.prototype.id = undefined;
/**
* Message is a human readable explanation of why the sandbox is healthy or not.
* @member {String} message
*/
SandboxStatus.prototype.message = undefined;
/**
* Ready indicates whether the sandbox is ready, meaning that it can be used for testing.
* @member {Boolean} ready
*/
SandboxStatus.prototype.ready = undefined;
/**
* Reason is a machine readable explanation of why the sandbox is healthy or not.
* @member {String} reason
*/
SandboxStatus.prototype.reason = undefined;