public class DeleteSecretRequest extends AbstractModel
Constructor and Description |
---|
DeleteSecretRequest() |
DeleteSecretRequest(DeleteSecretRequest 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 |
---|---|
Boolean |
getCleanSSHKey()
Get Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console.
|
Long |
getRecoveryWindowInDays()
Get Scheduled deletion time (in days), indicating the number of retention days for the secret.
|
String |
getSecretName()
Get Name of the Secret to be deleted.
|
void |
setCleanSSHKey(Boolean CleanSSHKey)
Set Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console.
|
void |
setRecoveryWindowInDays(Long RecoveryWindowInDays)
Set Scheduled deletion time (in days), indicating the number of retention days for the secret.
|
void |
setSecretName(String SecretName)
Set Name of the Secret to be deleted.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public DeleteSecretRequest()
public DeleteSecretRequest(DeleteSecretRequest source)
public String getSecretName()
public void setSecretName(String SecretName)
SecretName
- Name of the Secret to be deleted.public Long getRecoveryWindowInDays()
public void setRecoveryWindowInDays(Long RecoveryWindowInDays)
RecoveryWindowInDays
- Scheduled deletion time (in days), indicating the number of retention days for the secret. Value range: 0-30. If it is `0`, the secret is deleted immediately.
For an SSH key secret, this field can only be `0`.public Boolean getCleanSSHKey()
public void setCleanSSHKey(Boolean CleanSSHKey)
CleanSSHKey
- Specifies whether to delete the SSH key from both the secret and the SSH key list in the CVM console. This field is only valid for SSH key secrets. Valid values:
`True`: deletes SSH key from both the secret and SSH key list in the CVM console. Note that the deletion will fail if the SSH key is already bound to a CVM instance.
`False`: only deletes the SSH key information in the secret.Copyright © 2023. All rights reserved.