/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Cis.V20180408.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class Container : AbstractModel { /// /// 容器启动命令 /// [JsonProperty("Command")] public string Command{ get; set; } /// /// 容器启动参数 /// [JsonProperty("Args")] public string[] Args{ get; set; } /// /// 容器环境变量 /// [JsonProperty("EnvironmentVars")] public EnvironmentVar[] EnvironmentVars{ get; set; } /// /// 镜像 /// [JsonProperty("Image")] public string Image{ get; set; } /// /// 容器名,由小写字母、数字和 - 组成,由小写字母开头,小写字母或数字结尾,且长度不超过 63个字符 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// CPU,单位:核 /// [JsonProperty("Cpu")] public float? Cpu{ get; set; } /// /// 内存,单位:Gi /// [JsonProperty("Memory")] public float? Memory{ get; set; } /// /// 重启次数 /// [JsonProperty("RestartCount")] public ulong? RestartCount{ get; set; } /// /// 当前状态 /// [JsonProperty("CurrentState")] public ContainerState CurrentState{ get; set; } /// /// 上一次状态 /// [JsonProperty("PreviousState")] public ContainerState PreviousState{ get; set; } /// /// 容器工作目录 /// [JsonProperty("WorkingDir")] public string WorkingDir{ get; set; } /// /// 容器ID /// [JsonProperty("ContainerId")] public string ContainerId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "Command", this.Command); this.SetParamArraySimple(map, prefix + "Args.", this.Args); this.SetParamArrayObj(map, prefix + "EnvironmentVars.", this.EnvironmentVars); this.SetParamSimple(map, prefix + "Image", this.Image); this.SetParamSimple(map, prefix + "Name", this.Name); this.SetParamSimple(map, prefix + "Cpu", this.Cpu); this.SetParamSimple(map, prefix + "Memory", this.Memory); this.SetParamSimple(map, prefix + "RestartCount", this.RestartCount); this.SetParamObj(map, prefix + "CurrentState.", this.CurrentState); this.SetParamObj(map, prefix + "PreviousState.", this.PreviousState); this.SetParamSimple(map, prefix + "WorkingDir", this.WorkingDir); this.SetParamSimple(map, prefix + "ContainerId", this.ContainerId); } } }