using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Model {
///
///
///
[DataContract]
public class Deployment {
///
/// Unique UUID
///
/// Unique UUID
[DataMember(Name="request_id", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "request_id")]
public string RequestId { get; set; }
///
/// The public IP
///
/// The public IP
[DataMember(Name="public_ip", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "public_ip")]
public string PublicIp { get; set; }
///
/// Current status of Deployment
///
/// Current status of Deployment
[DataMember(Name="status", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
///
/// if the deployment is ready
///
/// if the deployment is ready
[DataMember(Name="ready", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "ready")]
public bool? Ready { get; set; }
///
/// if the deployment ACL is active
///
/// if the deployment ACL is active
[DataMember(Name="whitelisting_active", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "whitelisting_active")]
public bool? WhitelistingActive { get; set; }
///
///
///
///
[DataMember(Name="fqdn", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "fqdn")]
public string Fqdn { get; set; }
///
/// Gets or Sets Ports
///
[DataMember(Name="ports", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "ports")]
public Dictionary Ports { get; set; }
///
/// Location related information
///
/// Location related information
[DataMember(Name="location", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "location")]
public DeploymentLocation Location { get; set; }
///
/// List of tags associated with the deployment
///
/// List of tags associated with the deployment
[DataMember(Name="tags", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "tags")]
public List Tags { get; set; }
///
/// The Capacity of the Deployment
///
/// The Capacity of the Deployment
[DataMember(Name="sockets", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sockets")]
public int? Sockets { get; set; }
///
/// The Capacity Usage of the Deployment
///
/// The Capacity Usage of the Deployment
[DataMember(Name="sockets_usage", EmitDefaultValue=false)]
[JsonProperty(PropertyName = "sockets_usage")]
public int? SocketsUsage { get; set; }
///
/// Get the string presentation of the object
///
/// String presentation of the object
public override string ToString() {
StringBuilder sb = new StringBuilder();
sb.Append("class Deployment {\n");
sb.Append(" RequestId: ").Append(RequestId).Append("\n");
sb.Append(" PublicIp: ").Append(PublicIp).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" Ready: ").Append(Ready).Append("\n");
sb.Append(" WhitelistingActive: ").Append(WhitelistingActive).Append("\n");
sb.Append(" Fqdn: ").Append(Fqdn).Append("\n");
sb.Append(" Ports: ").Append(Ports).Append("\n");
sb.Append(" Location: ").Append(Location).Append("\n");
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" Sockets: ").Append(Sockets).Append("\n");
sb.Append(" SocketsUsage: ").Append(SocketsUsage).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
///
/// Get the JSON string presentation of the object
///
/// JSON string presentation of the object
public string ToJson() {
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
}
}