Files
2026-02-07 15:48:27 +08:00

76 lines
2.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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.Ie.V20200304.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CosAuthMode : AbstractModel
{
/// <summary>
/// 授权类型,可选值:
/// 0bucket授权需要将对应bucket授权给本服务帐号3020447271否则会读写cos失败
/// 1key托管把cos的账号id和key托管于本服务本服务会提供一个托管id
/// 3临时key授权。
/// 注意目前智能编辑还不支持临时key授权。
/// </summary>
[JsonProperty("Type")]
public long? Type{ get; set; }
/// <summary>
/// cos账号托管idType等于1时必选。
/// </summary>
[JsonProperty("HostedId")]
public string HostedId{ get; set; }
/// <summary>
/// cos身份识别idType等于3时必选。
/// </summary>
[JsonProperty("SecretId")]
public string SecretId{ get; set; }
/// <summary>
/// cos身份秘钥Type等于3时必选。
/// </summary>
[JsonProperty("SecretKey")]
public string SecretKey{ get; set; }
/// <summary>
/// 临时授权 tokenType等于3时必选。
/// </summary>
[JsonProperty("Token")]
public string Token{ 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 + "Type", this.Type);
this.SetParamSimple(map, prefix + "HostedId", this.HostedId);
this.SetParamSimple(map, prefix + "SecretId", this.SecretId);
this.SetParamSimple(map, prefix + "SecretKey", this.SecretKey);
this.SetParamSimple(map, prefix + "Token", this.Token);
}
}
}