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 DeployModel { /// /// The Name of the App you want to deploy /// /// The Name of the App you want to deploy [DataMember(Name="app_name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "app_name")] public string AppName { get; set; } /// /// The Name of the App Version you want to deploy, if not present, the last version created is picked /// /// The Name of the App Version you want to deploy, if not present, the last version created is picked [DataMember(Name="version_name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "version_name")] public string VersionName { get; set; } /// /// If the Application is public or private. If not specified, we will look for a private Application /// /// If the Application is public or private. If not specified, we will look for a private Application [DataMember(Name="is_public_app", EmitDefaultValue=false)] [JsonProperty(PropertyName = "is_public_app")] public bool? IsPublicApp { get; set; } /// /// The List of IP of your user /// /// The List of IP of your user [DataMember(Name="ip_list", EmitDefaultValue=false)] [JsonProperty(PropertyName = "ip_list")] public List IpList { get; set; } /// /// The list of IP of your user with their location (latitude, longitude) /// /// The list of IP of your user with their location (latitude, longitude) [DataMember(Name="geo_ip_list", EmitDefaultValue=false)] [JsonProperty(PropertyName = "geo_ip_list")] public List GeoIpList { get; set; } /// /// A list of deployment variables /// /// A list of deployment variables [DataMember(Name="env_vars", EmitDefaultValue=false)] [JsonProperty(PropertyName = "env_vars")] public List EnvVars { get; set; } /// /// If you want to skip the Telemetry and use a geolocations decision only /// /// If you want to skip the Telemetry and use a geolocations decision only [DataMember(Name="skip_telemetry", EmitDefaultValue=false)] [JsonProperty(PropertyName = "skip_telemetry")] public bool? SkipTelemetry { get; set; } /// /// If you want to specify a centroid for your deployment. /// /// If you want to specify a centroid for your deployment. [DataMember(Name="location", EmitDefaultValue=false)] [JsonProperty(PropertyName = "location")] public LocationModel Location { get; set; } /// /// If you want to deploy in a specific city /// /// If you want to deploy in a specific city [DataMember(Name="city", EmitDefaultValue=false)] [JsonProperty(PropertyName = "city")] public string City { get; set; } /// /// If you want to deploy in a specific country /// /// If you want to deploy in a specific country [DataMember(Name="country", EmitDefaultValue=false)] [JsonProperty(PropertyName = "country")] public string Country { get; set; } /// /// If you want to deploy in a specific continent /// /// If you want to deploy in a specific continent [DataMember(Name="continent", EmitDefaultValue=false)] [JsonProperty(PropertyName = "continent")] public string Continent { get; set; } /// /// If you want to deploy in a specific region /// /// If you want to deploy in a specific region [DataMember(Name="region", EmitDefaultValue=false)] [JsonProperty(PropertyName = "region")] public string Region { get; set; } /// /// If you want to deploy in a specific administrative division /// /// If you want to deploy in a specific administrative division [DataMember(Name="administrative_division", EmitDefaultValue=false)] [JsonProperty(PropertyName = "administrative_division")] public string AdministrativeDivision { get; set; } /// /// A web URL. This url will be called with method POST. The deployment status will be send in JSON format /// /// A web URL. This url will be called with method POST. The deployment status will be send in JSON format [DataMember(Name="webhook_url", EmitDefaultValue=false)] [JsonProperty(PropertyName = "webhook_url")] public string WebhookUrl { get; set; } /// /// The list of tags for your deployment /// /// The list of tags for your deployment [DataMember(Name="tags", EmitDefaultValue=false)] [JsonProperty(PropertyName = "tags")] public List Tags { get; set; } /// /// The container log storage options for the deployment /// /// The container log storage options for the deployment [DataMember(Name="container_log_storage", EmitDefaultValue=false)] [JsonProperty(PropertyName = "container_log_storage")] public ContainerLogStorageModel ContainerLogStorage { 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 DeployModel {\n"); sb.Append(" AppName: ").Append(AppName).Append("\n"); sb.Append(" VersionName: ").Append(VersionName).Append("\n"); sb.Append(" IsPublicApp: ").Append(IsPublicApp).Append("\n"); sb.Append(" IpList: ").Append(IpList).Append("\n"); sb.Append(" GeoIpList: ").Append(GeoIpList).Append("\n"); sb.Append(" EnvVars: ").Append(EnvVars).Append("\n"); sb.Append(" SkipTelemetry: ").Append(SkipTelemetry).Append("\n"); sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" City: ").Append(City).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); sb.Append(" Continent: ").Append(Continent).Append("\n"); sb.Append(" Region: ").Append(Region).Append("\n"); sb.Append(" AdministrativeDivision: ").Append(AdministrativeDivision).Append("\n"); sb.Append(" WebhookUrl: ").Append(WebhookUrl).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" ContainerLogStorage: ").Append(ContainerLogStorage).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); } } }