/*
* 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';
import {CustomPatch} from './CustomPatch';
import {EnvOp} from './EnvOp';
import {Image} from './Image';
/**
* The SandboxCustomizations model module.
* @module model/SandboxCustomizations
*/
export class SandboxCustomizations {
/**
* Constructs a new <code>SandboxCustomizations</code>.
* @alias module:model/SandboxCustomizations
* @class
*/
constructor() {
}
/**
* Constructs a <code>SandboxCustomizations</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/SandboxCustomizations} obj Optional instance to populate.
* @return {module:model/SandboxCustomizations} The populated <code>SandboxCustomizations</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new SandboxCustomizations();
if (data.hasOwnProperty('env'))
obj.env = ApiClient.convertToType(data['env'], [EnvOp]);
if (data.hasOwnProperty('images'))
obj.images = ApiClient.convertToType(data['images'], [Image]);
if (data.hasOwnProperty('patch'))
obj.patch = CustomPatch.constructFromObject(data['patch']);
}
return obj;
}
}
/**
* Env var modifications that will be applied to the forked workload
* @member {Array.<module:model/EnvOp>} env
*/
SandboxCustomizations.prototype.env = undefined;
/**
* One or more docker images that will be applied to the forked workload
* @member {Array.<module:model/Image>} images
*/
SandboxCustomizations.prototype.images = undefined;
/**
* @member {module:model/CustomPatch} patch
*/
SandboxCustomizations.prototype.patch = undefined;