HuanMengAdmin/admin-server/MiaoYu.Core.Cos/Models/CodeCosGenerateTemporaryKeyEntity.cs
2024-07-27 04:21:47 +08:00

57 lines
1.7 KiB
C#
Raw 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.

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; }
}
}