57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace MiaoYu.Core.Cos.Models
|
||
{
|
||
/// <summary>
|
||
/// 获取临时访问凭证
|
||
/// </summary>
|
||
public class CodeCosGenerateTemporaryKeyEntity
|
||
{
|
||
/// <summary>
|
||
/// 临时访问凭证
|
||
/// </summary>
|
||
public Credentials Credentials { get; set; }
|
||
/// <summary>
|
||
/// 临时访问凭证有效的时间,返回 Unix 时间戳,精确到秒
|
||
/// </summary>
|
||
public string Expiration { get; set; }
|
||
/// <summary>
|
||
/// 临时访问凭证有效的时间,以 iso8601 格式的 UTC 时间表示 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
public long ExpiredTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 开始时间
|
||
/// </summary>
|
||
public long StartTime { get; set; }
|
||
/// <summary>
|
||
/// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
||
/// </summary>
|
||
public string RequestId { get; set; }
|
||
}
|
||
|
||
/// <summary>
|
||
/// 临时访问凭证
|
||
/// </summary>
|
||
public class Credentials
|
||
{
|
||
/// <summary>
|
||
/// Token
|
||
/// </summary>
|
||
public string Token { get; set; }
|
||
/// <summary>
|
||
/// SecretId
|
||
/// </summary>
|
||
public string TmpSecretId { get; set; }
|
||
/// <summary>
|
||
/// SecretKey
|
||
/// </summary>
|
||
public string TmpSecretKey { get; set; }
|
||
}
|
||
|
||
}
|