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