public class SecretMetadata extends AbstractModel
header, skipSign
Constructor and Description |
---|
SecretMetadata() |
SecretMetadata(SecretMetadata source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAssociatedInstanceIDs()
Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getCreateTime()
Get 凭据创建时间,unix时间戳
|
Long |
getCreateUin()
Get 创建者UIN
|
Long |
getDeleteTime()
Get 凭据删除日期,对于status为PendingDelete 的有效,unix时间戳
|
String |
getDescription()
Get 凭据的描述信息
|
String |
getKmsKeyId()
Get 用于加密凭据的KMS KeyId
|
String |
getKmsKeyType()
Get 用于加密凭据的KMS CMK类型,DEFAULT 表示SecretsManager 创建的默认密钥, CUSTOMER 表示用户指定的密钥
|
Long |
getNextRotationTime()
Get 下一次轮转开始时间,uinx 时间戳
|
String |
getProductName()
Get 云产品名称,仅在SecretType为1,即凭据类型为云产品凭据时生效
|
Long |
getProjectID()
Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
|
String |
getResourceID()
Get 云产品凭据对应的云产品实例 ID 号。
|
String |
getResourceName()
Get 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
|
String |
getRotationBeginTime()
Get 用户指定的轮转开始时间。
|
Long |
getRotationFrequency()
Get 轮转的频率,以天作为单位,在轮转开启状态下生效。
|
Long |
getRotationStatus()
Get 1:--开启轮转;0--禁止轮转
|
String |
getSecretName()
Get 凭据名称
|
Long |
getSecretType()
Get 0 -- 用户自定义凭据;
1 -- 云产品凭据;
2 -- SSH密钥对凭据;
3 -- 云API密钥对凭据;
4 -- Redis类型凭据;
|
String |
getStatus()
Get 凭据状态:Enabled、Disabled、PendingDelete、Creating、Failed
|
Long |
getTargetUin()
Get 当凭据类型为云API密钥对凭据时,此字段有效,用于表示云API密钥对所属的用户UIN。
|
void |
setAssociatedInstanceIDs(String[] AssociatedInstanceIDs)
Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCreateTime(Long CreateTime)
Set 凭据创建时间,unix时间戳
|
void |
setCreateUin(Long CreateUin)
Set 创建者UIN
|
void |
setDeleteTime(Long DeleteTime)
Set 凭据删除日期,对于status为PendingDelete 的有效,unix时间戳
|
void |
setDescription(String Description)
Set 凭据的描述信息
|
void |
setKmsKeyId(String KmsKeyId)
Set 用于加密凭据的KMS KeyId
|
void |
setKmsKeyType(String KmsKeyType)
Set 用于加密凭据的KMS CMK类型,DEFAULT 表示SecretsManager 创建的默认密钥, CUSTOMER 表示用户指定的密钥
|
void |
setNextRotationTime(Long NextRotationTime)
Set 下一次轮转开始时间,uinx 时间戳
|
void |
setProductName(String ProductName)
Set 云产品名称,仅在SecretType为1,即凭据类型为云产品凭据时生效
|
void |
setProjectID(Long ProjectID)
Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。
|
void |
setResourceID(String ResourceID)
Set 云产品凭据对应的云产品实例 ID 号。
|
void |
setResourceName(String ResourceName)
Set 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。
|
void |
setRotationBeginTime(String RotationBeginTime)
Set 用户指定的轮转开始时间。
|
void |
setRotationFrequency(Long RotationFrequency)
Set 轮转的频率,以天作为单位,在轮转开启状态下生效。
|
void |
setRotationStatus(Long RotationStatus)
Set 1:--开启轮转;0--禁止轮转
|
void |
setSecretName(String SecretName)
Set 凭据名称
|
void |
setSecretType(Long SecretType)
Set 0 -- 用户自定义凭据;
1 -- 云产品凭据;
2 -- SSH密钥对凭据;
3 -- 云API密钥对凭据;
4 -- Redis类型凭据;
|
void |
setStatus(String Status)
Set 凭据状态:Enabled、Disabled、PendingDelete、Creating、Failed
|
void |
setTargetUin(Long TargetUin)
Set 当凭据类型为云API密钥对凭据时,此字段有效,用于表示云API密钥对所属的用户UIN。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SecretMetadata()
public SecretMetadata(SecretMetadata source)
public String getSecretName()
public void setSecretName(String SecretName)
SecretName
- 凭据名称public String getDescription()
public void setDescription(String Description)
Description
- 凭据的描述信息public String getKmsKeyId()
public void setKmsKeyId(String KmsKeyId)
KmsKeyId
- 用于加密凭据的KMS KeyIdpublic Long getCreateUin()
public void setCreateUin(Long CreateUin)
CreateUin
- 创建者UINpublic String getStatus()
public void setStatus(String Status)
Status
- 凭据状态:Enabled、Disabled、PendingDelete、Creating、Failedpublic Long getDeleteTime()
public void setDeleteTime(Long DeleteTime)
DeleteTime
- 凭据删除日期,对于status为PendingDelete 的有效,unix时间戳public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- 凭据创建时间,unix时间戳public String getKmsKeyType()
public void setKmsKeyType(String KmsKeyType)
KmsKeyType
- 用于加密凭据的KMS CMK类型,DEFAULT 表示SecretsManager 创建的默认密钥, CUSTOMER 表示用户指定的密钥public Long getRotationStatus()
public void setRotationStatus(Long RotationStatus)
RotationStatus
- 1:--开启轮转;0--禁止轮转public Long getNextRotationTime()
public void setNextRotationTime(Long NextRotationTime)
NextRotationTime
- 下一次轮转开始时间,uinx 时间戳public Long getSecretType()
public void setSecretType(Long SecretType)
SecretType
- 0 -- 用户自定义凭据;
1 -- 云产品凭据;
2 -- SSH密钥对凭据;
3 -- 云API密钥对凭据;
4 -- Redis类型凭据;public String getProductName()
public void setProductName(String ProductName)
ProductName
- 云产品名称,仅在SecretType为1,即凭据类型为云产品凭据时生效public String getResourceName()
public void setResourceName(String ResourceName)
ResourceName
- 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对凭据的名称。public Long getProjectID()
public void setProjectID(Long ProjectID)
ProjectID
- 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所属的项目ID。public String[] getAssociatedInstanceIDs()
public void setAssociatedInstanceIDs(String[] AssociatedInstanceIDs)
AssociatedInstanceIDs
- 当凭据类型为SSH密钥对凭据时,此字段有效,用于表示SSH密钥对所关联的CVM实例ID。
注意:此字段可能返回 null,表示取不到有效值。public Long getTargetUin()
public void setTargetUin(Long TargetUin)
TargetUin
- 当凭据类型为云API密钥对凭据时,此字段有效,用于表示云API密钥对所属的用户UIN。public Long getRotationFrequency()
public void setRotationFrequency(Long RotationFrequency)
RotationFrequency
- 轮转的频率,以天作为单位,在轮转开启状态下生效。public String getResourceID()
public void setResourceID(String ResourceID)
ResourceID
- 云产品凭据对应的云产品实例 ID 号。public String getRotationBeginTime()
public void setRotationBeginTime(String RotationBeginTime)
RotationBeginTime
- 用户指定的轮转开始时间。Copyright © 2024. All rights reserved.