Skip to content

Commit

Permalink
CreateAutoProvisioningGroup support SecurityOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 6, 2023
1 parent b357a06 commit 78dde98
Show file tree
Hide file tree
Showing 27 changed files with 935 additions and 156 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 @@
2023-11-06 Version: 5.11.1
- CreateAutoProvisioningGroup support SecurityOptions.

2023-10-17 Version: 5.11.0
- Update ALL.

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.0</version>
<version>5.11.1</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 CreateActivationRequest extends RpcAcsRequest<CreateActivationRespo

private String description;

private String resourceGroupId;

private Integer instanceCount;

private List<Tag> tags;
Expand Down Expand Up @@ -76,6 +78,17 @@ public void setDescription(String description) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public Integer getInstanceCount() {
return this.instanceCount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public class CreateAutoProvisioningGroupRequest extends RpcAcsRequest<CreateAuto

private Long ownerId;

private String launchConfigurationImageFamily;

private Integer launchConfigurationSystemDiskSize;

private Integer launchConfigurationInternetMaxBandwidthOut;
Expand Down Expand Up @@ -393,6 +395,17 @@ public void setOwnerId(Long ownerId) {
}
}

public String getLaunchConfigurationImageFamily() {
return this.launchConfigurationImageFamily;
}

public void setLaunchConfigurationImageFamily(String launchConfigurationImageFamily) {
this.launchConfigurationImageFamily = launchConfigurationImageFamily;
if(launchConfigurationImageFamily != null){
putQueryParameter("LaunchConfiguration.ImageFamily", launchConfigurationImageFamily);
}
}

public Integer getLaunchConfigurationSystemDiskSize() {
return this.launchConfigurationSystemDiskSize;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class CreateCommandRequest extends RpcAcsRequest<CreateCommandResponse> {

private Long timeout;

private String resourceGroupId;

private String contentEncoding;

private List<Tag> tags;
Expand Down Expand Up @@ -126,6 +128,17 @@ public void setTimeout(Long timeout) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

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

private String autoReleaseTime;

private String creditSpecification;

private Integer spotDuration;

private List<String> securityGroupIdss;
Expand Down Expand Up @@ -680,6 +682,17 @@ public void setAutoReleaseTime(String autoReleaseTime) {
}
}

public String getCreditSpecification() {
return this.creditSpecification;
}

public void setCreditSpecification(String creditSpecification) {
this.creditSpecification = creditSpecification;
if(creditSpecification != null){
putQueryParameter("CreditSpecification", creditSpecification);
}
}

public Integer getSpotDuration() {
return this.spotDuration;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public class CreateLaunchTemplateVersionRequest extends RpcAcsRequest<CreateLaun

private String autoReleaseTime;

private String creditSpecification;

private Integer spotDuration;

private List<String> securityGroupIdss;
Expand Down Expand Up @@ -664,6 +666,17 @@ public void setAutoReleaseTime(String autoReleaseTime) {
}
}

public String getCreditSpecification() {
return this.creditSpecification;
}

public void setCreditSpecification(String creditSpecification) {
this.creditSpecification = creditSpecification;
if(creditSpecification != null){
putQueryParameter("CreditSpecification", creditSpecification);
}
}

public Integer getSpotDuration() {
return this.spotDuration;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/*
* 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 java.util.List;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.ecs.Endpoint;

/**
* @author auto create
* @version
*/
public class CreateSavingsPlanRequest extends RpcAcsRequest<CreateSavingsPlanResponse> {


private String period;

private List<String> resourceIds;

private String instanceTypeFamily;

private String planType;

private String periodUnit;

private String offeringType;

private String chargeType;

private String committedAmount;
public CreateSavingsPlanRequest() {
super("Ecs", "2014-05-26", "CreateSavingsPlan", "ecs");
setProtocol(ProtocolType.HTTPS);
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 String getPeriod() {
return this.period;
}

public void setPeriod(String period) {
this.period = period;
if(period != null){
putQueryParameter("Period", period);
}
}

public List<String> getResourceIds() {
return this.resourceIds;
}

public void setResourceIds(List<String> resourceIds) {
this.resourceIds = resourceIds;
if (resourceIds != null) {
for (int i = 0; i < resourceIds.size(); i++) {
putQueryParameter("ResourceId." + (i + 1) , resourceIds.get(i));
}
}
}

public String getInstanceTypeFamily() {
return this.instanceTypeFamily;
}

public void setInstanceTypeFamily(String instanceTypeFamily) {
this.instanceTypeFamily = instanceTypeFamily;
if(instanceTypeFamily != null){
putQueryParameter("InstanceTypeFamily", instanceTypeFamily);
}
}

public String getPlanType() {
return this.planType;
}

public void setPlanType(String planType) {
this.planType = planType;
if(planType != null){
putQueryParameter("PlanType", planType);
}
}

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

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

public String getOfferingType() {
return this.offeringType;
}

public void setOfferingType(String offeringType) {
this.offeringType = offeringType;
if(offeringType != null){
putQueryParameter("OfferingType", offeringType);
}
}

public String getChargeType() {
return this.chargeType;
}

public void setChargeType(String chargeType) {
this.chargeType = chargeType;
if(chargeType != null){
putQueryParameter("ChargeType", chargeType);
}
}

public String getCommittedAmount() {
return this.committedAmount;
}

public void setCommittedAmount(String committedAmount) {
this.committedAmount = committedAmount;
if(committedAmount != null){
putQueryParameter("CommittedAmount", committedAmount);
}
}

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
package com.aliyuncs.ecs.model.v20140526;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.ecs.transform.v20140526.ImportSnapshotResponseUnmarshaller;
import com.aliyuncs.ecs.transform.v20140526.CreateSavingsPlanResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private String taskId;
private String savingsPlanId;

private String snapshotId;
private String orderId;

public String getRequestId() {
return this.requestId;
Expand All @@ -38,24 +38,29 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getTaskId() {
return this.taskId;
public String getSavingsPlanId() {
return this.savingsPlanId;
}

public void setTaskId(String taskId) {
this.taskId = taskId;
public void setSavingsPlanId(String savingsPlanId) {
this.savingsPlanId = savingsPlanId;
}

public String getSnapshotId() {
return this.snapshotId;
public String getOrderId() {
return this.orderId;
}

public void setSnapshotId(String snapshotId) {
this.snapshotId = snapshotId;
public void setOrderId(String orderId) {
this.orderId = orderId;
}

@Override
public ImportSnapshotResponse getInstance(UnmarshallerContext context) {
return ImportSnapshotResponseUnmarshaller.unmarshall(this, context);
public CreateSavingsPlanResponse getInstance(UnmarshallerContext context) {
return CreateSavingsPlanResponseUnmarshaller.unmarshall(this, context);
}

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

0 comments on commit 78dde98

Please sign in to comment.