/*
* 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 ForkOf model module.
* @module model/ForkOf
*/
export class ForkOf {
/**
* Constructs a new <code>ForkOf</code>.
* @alias module:model/ForkOf
* @class
* @param kind {String} Kind of entity that we want to route to. One of (Service or Deployment or Rollout).
* @param name {String} Name of the entity within the Kubernetes cluster.
* @param namespace {String} Namespace within which the entity lives in the Kubernetes cluster.
*/
constructor(kind, name, namespace) {
this.kind = kind;
this.name = name;
this.namespace = namespace;
}
/**
* Constructs a <code>ForkOf</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/ForkOf} obj Optional instance to populate.
* @return {module:model/ForkOf} The populated <code>ForkOf</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ForkOf();
if (data.hasOwnProperty('kind'))
obj.kind = ApiClient.convertToType(data['kind'], 'String');
if (data.hasOwnProperty('name'))
obj.name = ApiClient.convertToType(data['name'], 'String');
if (data.hasOwnProperty('namespace'))
obj.namespace = ApiClient.convertToType(data['namespace'], 'String');
}
return obj;
}
}
/**
* Kind of entity that we want to route to. One of (Service or Deployment or Rollout).
* @member {String} kind
*/
ForkOf.prototype.kind = undefined;
/**
* Name of the entity within the Kubernetes cluster.
* @member {String} name
*/
ForkOf.prototype.name = undefined;
/**
* Namespace within which the entity lives in the Kubernetes cluster.
* @member {String} namespace
*/
ForkOf.prototype.namespace = undefined;