/*
* 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.Tcb.V20180608.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnvInfo : AbstractModel
{
///
/// 账户下该环境唯一标识
///
[JsonProperty("EnvId")]
public string EnvId{ get; set; }
///
/// 环境来源。包含以下取值:
/// miniapp:微信小程序
/// qcloud :腾讯云
///
[JsonProperty("Source")]
public string Source{ get; set; }
///
/// 环境别名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符
///
[JsonProperty("Alias")]
public string Alias{ get; set; }
///
/// 创建时间
///
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
///
/// 最后修改时间
///
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
///
/// 环境状态。包含以下取值:
/// NORMAL:正常可用
/// UNAVAILABLE:服务不可用,可能是尚未初始化或者初始化过程中
///
[JsonProperty("Status")]
public string Status{ get; set; }
///
/// 数据库列表
///
[JsonProperty("Databases")]
public DatabasesInfo[] Databases{ get; set; }
///
/// 存储列表
///
[JsonProperty("Storages")]
public StorageInfo[] Storages{ get; set; }
///
/// 函数列表
///
[JsonProperty("Functions")]
public FunctionInfo[] Functions{ get; set; }
///
/// tcb产品套餐ID,参考DescribePackages接口的返回值。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("PackageId")]
public string PackageId{ get; set; }
///
/// 套餐中文名称,参考DescribePackages接口的返回值。
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("PackageName")]
public string PackageName{ get; set; }
///
/// 云日志服务列表
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("LogServices")]
public LogServiceInfo[] LogServices{ get; set; }
///
/// 静态资源信息
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("StaticStorages")]
public StaticStorageInfo[] StaticStorages{ get; set; }
///
/// 是否到期自动降为免费版
/// 注意:此字段可能返回 null,表示取不到有效值。
///
[JsonProperty("IsAutoDegrade")]
public bool? IsAutoDegrade{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "EnvId", this.EnvId);
this.SetParamSimple(map, prefix + "Source", this.Source);
this.SetParamSimple(map, prefix + "Alias", this.Alias);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamArrayObj(map, prefix + "Databases.", this.Databases);
this.SetParamArrayObj(map, prefix + "Storages.", this.Storages);
this.SetParamArrayObj(map, prefix + "Functions.", this.Functions);
this.SetParamSimple(map, prefix + "PackageId", this.PackageId);
this.SetParamSimple(map, prefix + "PackageName", this.PackageName);
this.SetParamArrayObj(map, prefix + "LogServices.", this.LogServices);
this.SetParamArrayObj(map, prefix + "StaticStorages.", this.StaticStorages);
this.SetParamSimple(map, prefix + "IsAutoDegrade", this.IsAutoDegrade);
}
}
}