/*
* 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.Scf.V20180416.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateFunctionConfigurationRequest : AbstractModel
{
///
/// 要修改的函数名称
///
[JsonProperty("FunctionName")]
public string FunctionName{ get; set; }
///
/// 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文
///
[JsonProperty("Description")]
public string Description{ get; set; }
///
/// 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。
///
[JsonProperty("MemorySize")]
public long? MemorySize{ get; set; }
///
/// 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒
///
[JsonProperty("Timeout")]
public long? Timeout{ get; set; }
///
/// 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,PHP5, PHP7,Golang1 和 Java8
///
[JsonProperty("Runtime")]
public string Runtime{ get; set; }
///
/// 函数的环境变量
///
[JsonProperty("Environment")]
public Environment Environment{ get; set; }
///
/// 函数所属命名空间
///
[JsonProperty("Namespace")]
public string Namespace{ get; set; }
///
/// 函数的私有网络配置
///
[JsonProperty("VpcConfig")]
public VpcConfig VpcConfig{ get; set; }
///
/// 函数绑定的角色
///
[JsonProperty("Role")]
public string Role{ get; set; }
///
/// 日志投递到的cls日志集ID
///
[JsonProperty("ClsLogsetId")]
public string ClsLogsetId{ get; set; }
///
/// 日志投递到的cls Topic ID
///
[JsonProperty("ClsTopicId")]
public string ClsTopicId{ get; set; }
///
/// 在更新时是否同步发布新版本,默认为:FALSE,不发布
///
[JsonProperty("Publish")]
public string Publish{ get; set; }
///
/// 是否开启L5访问能力,TRUE 为开启,FALSE为关闭
///
[JsonProperty("L5Enable")]
public string L5Enable{ get; set; }
///
/// 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。
///
[JsonProperty("Layers")]
public LayerVersionSimple[] Layers{ get; set; }
///
/// 函数关联的死信队列信息
///
[JsonProperty("DeadLetterConfig")]
public DeadLetterConfig DeadLetterConfig{ get; set; }
///
/// 是否开启Ons访问能力,TRUE 为开启,FALSE为关闭
///
[JsonProperty("OnsEnable")]
public string OnsEnable{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "FunctionName", this.FunctionName);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "MemorySize", this.MemorySize);
this.SetParamSimple(map, prefix + "Timeout", this.Timeout);
this.SetParamSimple(map, prefix + "Runtime", this.Runtime);
this.SetParamObj(map, prefix + "Environment.", this.Environment);
this.SetParamSimple(map, prefix + "Namespace", this.Namespace);
this.SetParamObj(map, prefix + "VpcConfig.", this.VpcConfig);
this.SetParamSimple(map, prefix + "Role", this.Role);
this.SetParamSimple(map, prefix + "ClsLogsetId", this.ClsLogsetId);
this.SetParamSimple(map, prefix + "ClsTopicId", this.ClsTopicId);
this.SetParamSimple(map, prefix + "Publish", this.Publish);
this.SetParamSimple(map, prefix + "L5Enable", this.L5Enable);
this.SetParamArrayObj(map, prefix + "Layers.", this.Layers);
this.SetParamObj(map, prefix + "DeadLetterConfig.", this.DeadLetterConfig);
this.SetParamSimple(map, prefix + "OnsEnable", this.OnsEnable);
}
}
}