/* * 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 InvokeRequest : AbstractModel { /// /// 函数名称 /// [JsonProperty("FunctionName")] public string FunctionName{ get; set; } /// /// RequestResponse(同步) 和 Event(异步),默认为同步 /// [JsonProperty("InvocationType")] public string InvocationType{ get; set; } /// /// 触发函数的版本号 /// [JsonProperty("Qualifier")] public string Qualifier{ get; set; } /// /// 运行函数时的参数,以json格式传入,最大支持的参数长度是 1M /// [JsonProperty("ClientContext")] public string ClientContext{ get; set; } /// /// 同步调用时指定该字段,返回值会包含4K的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的logMsg字段会包含对应的函数执行日志 /// [JsonProperty("LogType")] public string LogType{ get; set; } /// /// 命名空间 /// [JsonProperty("Namespace")] public string Namespace{ get; set; } /// /// 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 /// [JsonProperty("RoutingKey")] public string RoutingKey{ 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 + "InvocationType", this.InvocationType); this.SetParamSimple(map, prefix + "Qualifier", this.Qualifier); this.SetParamSimple(map, prefix + "ClientContext", this.ClientContext); this.SetParamSimple(map, prefix + "LogType", this.LogType); this.SetParamSimple(map, prefix + "Namespace", this.Namespace); this.SetParamSimple(map, prefix + "RoutingKey", this.RoutingKey); } } }