Skip to content

Commit

Permalink
Support DryRun parameter OpenAPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 13, 2024
1 parent 5f6b96e commit 8422fde
Show file tree
Hide file tree
Showing 18 changed files with 173 additions and 16 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-kms/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-13 Version: 2.16.5
- Support DryRun parameter OpenAPI.

2024-05-08 Version: 2.16.4
- Support key policy and secret policy OpenAPI.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-kms</artifactId>
<packaging>jar</packaging>
<version>2.16.4</version>
<version>2.16.5</version>
<name>aliyun-java-sdk-kms</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class AsymmetricDecryptRequest extends RpcAcsRequest<AsymmetricDecryptResponse> {


private String dryRun;

private String keyVersionId;

private String keyId;
Expand All @@ -43,6 +45,17 @@ public AsymmetricDecryptRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyVersionId() {
return this.keyVersionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class AsymmetricEncryptRequest extends RpcAcsRequest<AsymmetricEncryptResponse> {


private String dryRun;

private String keyVersionId;

private String keyId;
Expand All @@ -43,6 +45,17 @@ public AsymmetricEncryptRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyVersionId() {
return this.keyVersionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class AsymmetricSignRequest extends RpcAcsRequest<AsymmetricSignResponse> {


private String dryRun;

private String keyVersionId;

private String keyId;
Expand All @@ -43,6 +45,17 @@ public AsymmetricSignRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyVersionId() {
return this.keyVersionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class AsymmetricVerifyRequest extends RpcAcsRequest<AsymmetricVerifyResponse> {


private String dryRun;

private String keyVersionId;

private String keyId;
Expand All @@ -45,6 +47,17 @@ public AsymmetricVerifyRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyVersionId() {
return this.keyVersionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class DecryptRequest extends RpcAcsRequest<DecryptResponse> {


private String dryRun;

private String encryptionContext;

private String ciphertextBlob;
Expand All @@ -39,6 +41,17 @@ public DecryptRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getEncryptionContext() {
return this.encryptionContext;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class EncryptRequest extends RpcAcsRequest<EncryptResponse> {


private String dryRun;

private String keyId;

private String plaintext;
Expand All @@ -41,6 +43,17 @@ public EncryptRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyId() {
return this.keyId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class ExportDataKeyRequest extends RpcAcsRequest<ExportDataKeyResponse> {


private String dryRun;

private String publicKeyBlob;

private String encryptionContext;
Expand All @@ -45,6 +47,17 @@ public ExportDataKeyRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getPublicKeyBlob() {
return this.publicKeyBlob;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,4 @@ public void setExportedDataKey(String exportedDataKey) {
public ExportDataKeyResponse getInstance(UnmarshallerContext context) {
return ExportDataKeyResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class GenerateAndExportDataKeyRequest extends RpcAcsRequest<GenerateAndExportDataKeyResponse> {


private String dryRun;

private String keyId;

private String keySpec;
Expand All @@ -49,6 +51,17 @@ public GenerateAndExportDataKeyRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyId() {
return this.keyId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,4 @@ public void setExportedDataKey(String exportedDataKey) {
public GenerateAndExportDataKeyResponse getInstance(UnmarshallerContext context) {
return GenerateAndExportDataKeyResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class GenerateDataKeyRequest extends RpcAcsRequest<GenerateDataKeyResponse> {


private String dryRun;

private String keyId;

private String keySpec;
Expand All @@ -43,6 +45,17 @@ public GenerateDataKeyRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyId() {
return this.keyId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class GenerateDataKeyWithoutPlaintextRequest extends RpcAcsRequest<GenerateDataKeyWithoutPlaintextResponse> {


private String dryRun;

private String keyId;

private String keySpec;
Expand All @@ -43,6 +45,17 @@ public GenerateDataKeyWithoutPlaintextRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyId() {
return this.keyId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class GetPublicKeyRequest extends RpcAcsRequest<GetPublicKeyResponse> {


private String dryRun;

private String keyVersionId;

private String keyId;
Expand All @@ -39,6 +41,17 @@ public GetPublicKeyRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getKeyVersionId() {
return this.keyVersionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
public class GetSecretValueRequest extends RpcAcsRequest<GetSecretValueResponse> {


private String dryRun;

private String versionId;

private String versionStage;
Expand All @@ -43,6 +45,17 @@ public GetSecretValueRequest() {
} catch (Exception e) {}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getVersionId() {
return this.versionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class ReEncryptRequest extends RpcAcsRequest<ReEncryptResponse> {

private String destinationEncryptionContext;

private String dryRun;

private String sourceKeyId;

private String sourceEncryptionAlgorithm;
Expand Down Expand Up @@ -60,6 +62,17 @@ public void setDestinationEncryptionContext(String destinationEncryptionContext)
}
}

public String getDryRun() {
return this.dryRun;
}

public void setDryRun(String dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun);
}
}

public String getSourceKeyId() {
return this.sourceKeyId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,4 @@ public void setRequestId(String requestId) {
public ReEncryptResponse getInstance(UnmarshallerContext context) {
return ReEncryptResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}

0 comments on commit 8422fde

Please sign in to comment.