/*
* 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 Image model module.
* @module model/Image
*/
export class Image {
/**
* Constructs a new <code>Image</code>.
* @alias module:model/Image
* @class
*/
constructor() {
}
/**
* Constructs a <code>Image</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/Image} obj Optional instance to populate.
* @return {module:model/Image} The populated <code>Image</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Image();
if (data.hasOwnProperty('container'))
obj.container = ApiClient.convertToType(data['container'], 'String');
if (data.hasOwnProperty('image'))
obj.image = ApiClient.convertToType(data['image'], 'String');
}
return obj;
}
}
/**
* Container is the container this image must apply to in the forked workload
* @member {String} container
*/
Image.prototype.container = undefined;
/**
* Name of the image (e.g. gcr.io/my-image/repo:my-tag)
* @member {String} image
*/
Image.prototype.image = undefined;