Skip to content

Commit

Permalink
Update EBS default encrypted APIs from private to public.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 10, 2024
1 parent 5672446 commit 5987275
Show file tree
Hide file tree
Showing 54 changed files with 2,380 additions and 137 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ecs/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-09-10 Version: 5.11.8
- Update EBS default encrypted APIs from private to public.

2024-05-23 Version: 5.11.7
- Add SnapshotLinkId for DescribeSnapshots.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ecs/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-ecs</artifactId>
<packaging>jar</packaging>
<version>5.11.7</version>
<version>5.11.8</version>
<name>aliyun-java-sdk-ecs</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 @@ -30,6 +30,8 @@ public class CopySnapshotRequest extends RpcAcsRequest<CopySnapshotResponse> {

private String snapshotId;

private String clientToken;

private String destinationRegionId;

private String resourceGroupId;
Expand Down Expand Up @@ -84,6 +86,17 @@ public void setSnapshotId(String snapshotId) {
}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getDestinationRegionId() {
return this.destinationRegionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl

private String systemDiskAutoSnapshotPolicyId;

private Integer autoRenewPeriod;

private Integer period;

private Integer ipv6AddressCount;
Expand All @@ -70,8 +72,12 @@ public class CreateLaunchTemplateRequest extends RpcAcsRequest<CreateLaunchTempl

private Boolean systemDiskBurstingEnabled;

private String periodUnit;

private String instanceName;

private Boolean autoRenew;

private String internetChargeType;

private String zoneId;
Expand Down Expand Up @@ -306,6 +312,17 @@ public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolic
}
}

public Integer getAutoRenewPeriod() {
return this.autoRenewPeriod;
}

public void setAutoRenewPeriod(Integer autoRenewPeriod) {
this.autoRenewPeriod = autoRenewPeriod;
if(autoRenewPeriod != null){
putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString());
}
}

public Integer getPeriod() {
return this.period;
}
Expand Down Expand Up @@ -394,6 +411,17 @@ public void setSystemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled) {
}
}

public String getPeriodUnit() {
return this.periodUnit;
}

public void setPeriodUnit(String periodUnit) {
this.periodUnit = periodUnit;
if(periodUnit != null){
putQueryParameter("PeriodUnit", periodUnit);
}
}

public String getInstanceName() {
return this.instanceName;
}
Expand All @@ -405,6 +433,17 @@ public void setInstanceName(String instanceName) {
}
}

public Boolean getAutoRenew() {
return this.autoRenew;
}

public void setAutoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
if(autoRenew != null){
putQueryParameter("AutoRenew", autoRenew.toString());
}
}

public String getInternetChargeType() {
return this.internetChargeType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private String systemDiskAutoSnapshotPolicyId;

private Integer autoRenewPeriod;

private Integer period;

private String launchTemplateId;
Expand All @@ -68,8 +70,12 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private Boolean systemDiskBurstingEnabled;

private String periodUnit;

private String instanceName;

private Boolean autoRenew;

private String internetChargeType;

private String zoneId;
Expand Down Expand Up @@ -290,6 +296,17 @@ public void setSystemDiskAutoSnapshotPolicyId(String systemDiskAutoSnapshotPolic
}
}

public Integer getAutoRenewPeriod() {
return this.autoRenewPeriod;
}

public void setAutoRenewPeriod(Integer autoRenewPeriod) {
this.autoRenewPeriod = autoRenewPeriod;
if(autoRenewPeriod != null){
putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString());
}
}

public Integer getPeriod() {
return this.period;
}
Expand Down Expand Up @@ -378,6 +395,17 @@ public void setSystemDiskBurstingEnabled(Boolean systemDiskBurstingEnabled) {
}
}

public String getPeriodUnit() {
return this.periodUnit;
}

public void setPeriodUnit(String periodUnit) {
this.periodUnit = periodUnit;
if(periodUnit != null){
putQueryParameter("PeriodUnit", periodUnit);
}
}

public String getInstanceName() {
return this.instanceName;
}
Expand All @@ -389,6 +417,17 @@ public void setInstanceName(String instanceName) {
}
}

public Boolean getAutoRenew() {
return this.autoRenew;
}

public void setAutoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
if(autoRenew != null){
putQueryParameter("AutoRenew", autoRenew.toString());
}
}

public String getInternetChargeType() {
return this.internetChargeType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class CreateNetworkInterfaceRequest extends RpcAcsRequest<CreateNetworkIn

private String resourceGroupId;

private EnhancedNetwork enhancedNetwork;

private List<Tag> tags;

private String networkInterfaceName;
Expand Down Expand Up @@ -182,6 +184,18 @@ public void setResourceGroupId(String resourceGroupId) {
}
}

public EnhancedNetwork getEnhancedNetwork() {
return this.enhancedNetwork;
}

public void setEnhancedNetwork(EnhancedNetwork enhancedNetwork) {
this.enhancedNetwork = enhancedNetwork;
if (enhancedNetwork != null) {

putQueryParameter("EnhancedNetwork.EnableSriov" , enhancedNetwork.getEnableSriov());
}
}

public List<Tag> getTags() {
return this.tags;
}
Expand Down Expand Up @@ -524,6 +538,19 @@ public void setRxQueueSize(Integer rxQueueSize) {
}
}

public static class EnhancedNetwork {

private Boolean enableSriov;

public Boolean getEnableSriov() {
return this.enableSriov;
}

public void setEnableSriov(Boolean enableSriov) {
this.enableSriov = enableSriov;
}
}

public static class Tag {

private String key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class CreateSnapshotGroupRequest extends RpcAcsRequest<CreateSnapshotGrou

private Long resourceOwnerId;

private String clientToken;

private Boolean instantAccess;

private List<String> excludeDiskIds;
Expand Down Expand Up @@ -73,6 +75,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public Boolean getInstantAccess() {
return this.instantAccess;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ecs.model.v20140526;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecs.Endpoint;

/**
* @author auto create
* @version
*/
public class DescribeDiskDefaultKMSKeyIdRequest extends RpcAcsRequest<DescribeDiskDefaultKMSKeyIdResponse> {


private Long resourceOwnerId;
public DescribeDiskDefaultKMSKeyIdRequest() {
super("Ecs", "2014-05-26", "DescribeDiskDefaultKMSKeyId", "ecs");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public Long getResourceOwnerId() {
return this.resourceOwnerId;
}

public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}

@Override
public Class<DescribeDiskDefaultKMSKeyIdResponse> getResponseClass() {
return DescribeDiskDefaultKMSKeyIdResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ecs.model.v20140526;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.ecs.transform.v20140526.DescribeDiskDefaultKMSKeyIdResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class DescribeDiskDefaultKMSKeyIdResponse extends AcsResponse {

private String requestId;

private String kMSKeyId;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getKMSKeyId() {
return this.kMSKeyId;
}

public void setKMSKeyId(String kMSKeyId) {
this.kMSKeyId = kMSKeyId;
}

@Override
public DescribeDiskDefaultKMSKeyIdResponse getInstance(UnmarshallerContext context) {
return DescribeDiskDefaultKMSKeyIdResponseUnmarshaller.unmarshall(this, context);
}

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

0 comments on commit 5987275

Please sign in to comment.