/*
* 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 SandboxResource model module.
* @module model/SandboxResource
*/
export class SandboxResource {
/**
* Constructs a new <code>SandboxResource</code>.
* @alias module:model/SandboxResource
* @class
*/
constructor() {
}
/**
* Constructs a <code>SandboxResource</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/SandboxResource} obj Optional instance to populate.
* @return {module:model/SandboxResource} The populated <code>SandboxResource</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new SandboxResource();
if (data.hasOwnProperty('name'))
obj.name = ApiClient.convertToType(data['name'], 'String');
if (data.hasOwnProperty('params'))
obj.params = ApiClient.convertToType(data['params'], {'String': 'String'});
if (data.hasOwnProperty('plugin'))
obj.plugin = ApiClient.convertToType(data['plugin'], 'String');
}
return obj;
}
}
/**
* @member {String} name
*/
SandboxResource.prototype.name = undefined;
/**
* @member {Object.<String, String>} params
*/
SandboxResource.prototype.params = undefined;
/**
* @member {String} plugin
*/
SandboxResource.prototype.plugin = undefined;