Skip to content

Commit

Permalink
Add sshkey apis.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 16, 2020
1 parent 71e4d4f commit 14ba8f0
Show file tree
Hide file tree
Showing 74 changed files with 4,471 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ens/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2020-06-16 Version: 1.3.0
- Add sshkey apis.

2020-01-09 Version: 1.2.0
- Add New Interface DescribeInstanceTypes.
- Deprecated New Interface DescribeReservedResource.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ens/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-ens</artifactId>
<packaging>jar</packaging>
<version>1.2.0</version>
<version>1.3.0</version>
<name>aliyun-java-sdk-ens</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 @@ -24,6 +24,8 @@
public class AllocateEipAddressRequest extends RpcAcsRequest<AllocateEipAddressResponse> {


private Integer minCount;

private String ensRegionId;

private Integer count;
Expand All @@ -34,6 +36,17 @@ public AllocateEipAddressRequest() {
setMethod(MethodType.POST);
}

public Integer getMinCount() {
return this.minCount;
}

public void setMinCount(Integer minCount) {
this.minCount = minCount;
if(minCount != null){
putQueryParameter("MinCount", minCount.toString());
}
}

public String getEnsRegionId() {
return this.ensRegionId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class AllocateEipAddressResponse extends AcsResponse {

private String requestId;

private String bizStatusCode;

private List<EipAddress> eipAddresses;

public String getRequestId() {
Expand All @@ -37,6 +39,14 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getBizStatusCode() {
return this.bizStatusCode;
}

public void setBizStatusCode(String bizStatusCode) {
this.bizStatusCode = bizStatusCode;
}

public List<EipAddress> getEipAddresses() {
return this.eipAddresses;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* 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.ens.model.v20171110;

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

/**
* @author auto create
* @version
*/
public class AuthorizeSecurityGroupEgressRequest extends RpcAcsRequest<AuthorizeSecurityGroupEgressResponse> {


private String sourcePortRange;

private String securityGroupId;

private String policy;

private String portRange;

private String ipProtocol;

private Integer priority;

private String version;

private String destCidrIp;
public AuthorizeSecurityGroupEgressRequest() {
super("Ens", "2017-11-10", "AuthorizeSecurityGroupEgress", "ens");
setMethod(MethodType.POST);
}

public String getSourcePortRange() {
return this.sourcePortRange;
}

public void setSourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
if(sourcePortRange != null){
putQueryParameter("SourcePortRange", sourcePortRange);
}
}

public String getSecurityGroupId() {
return this.securityGroupId;
}

public void setSecurityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
if(securityGroupId != null){
putQueryParameter("SecurityGroupId", securityGroupId);
}
}

public String getPolicy() {
return this.policy;
}

public void setPolicy(String policy) {
this.policy = policy;
if(policy != null){
putQueryParameter("Policy", policy);
}
}

public String getPortRange() {
return this.portRange;
}

public void setPortRange(String portRange) {
this.portRange = portRange;
if(portRange != null){
putQueryParameter("PortRange", portRange);
}
}

public String getIpProtocol() {
return this.ipProtocol;
}

public void setIpProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
if(ipProtocol != null){
putQueryParameter("IpProtocol", ipProtocol);
}
}

public Integer getPriority() {
return this.priority;
}

public void setPriority(Integer priority) {
this.priority = priority;
if(priority != null){
putQueryParameter("Priority", priority.toString());
}
}

public String getVersion() {
return this.version;
}

public void setVersion(String version) {
this.version = version;
if(version != null){
putQueryParameter("Version", version);
}
}

public String getDestCidrIp() {
return this.destCidrIp;
}

public void setDestCidrIp(String destCidrIp) {
this.destCidrIp = destCidrIp;
if(destCidrIp != null){
putQueryParameter("DestCidrIp", destCidrIp);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* 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.ens.model.v20171110;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.AuthorizeSecurityGroupEgressResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

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

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

@Override
public AuthorizeSecurityGroupEgressResponse getInstance(UnmarshallerContext context) {
return AuthorizeSecurityGroupEgressResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* 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.ens.model.v20171110;

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

/**
* @author auto create
* @version
*/
public class AuthorizeSecurityGroupRequest extends RpcAcsRequest<AuthorizeSecurityGroupResponse> {


private String sourcePortRange;

private String securityGroupId;

private String policy;

private String portRange;

private String ipProtocol;

private String sourceCidrIp;

private Integer priority;

private String version;
public AuthorizeSecurityGroupRequest() {
super("Ens", "2017-11-10", "AuthorizeSecurityGroup", "ens");
setMethod(MethodType.POST);
}

public String getSourcePortRange() {
return this.sourcePortRange;
}

public void setSourcePortRange(String sourcePortRange) {
this.sourcePortRange = sourcePortRange;
if(sourcePortRange != null){
putQueryParameter("SourcePortRange", sourcePortRange);
}
}

public String getSecurityGroupId() {
return this.securityGroupId;
}

public void setSecurityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
if(securityGroupId != null){
putQueryParameter("SecurityGroupId", securityGroupId);
}
}

public String getPolicy() {
return this.policy;
}

public void setPolicy(String policy) {
this.policy = policy;
if(policy != null){
putQueryParameter("Policy", policy);
}
}

public String getPortRange() {
return this.portRange;
}

public void setPortRange(String portRange) {
this.portRange = portRange;
if(portRange != null){
putQueryParameter("PortRange", portRange);
}
}

public String getIpProtocol() {
return this.ipProtocol;
}

public void setIpProtocol(String ipProtocol) {
this.ipProtocol = ipProtocol;
if(ipProtocol != null){
putQueryParameter("IpProtocol", ipProtocol);
}
}

public String getSourceCidrIp() {
return this.sourceCidrIp;
}

public void setSourceCidrIp(String sourceCidrIp) {
this.sourceCidrIp = sourceCidrIp;
if(sourceCidrIp != null){
putQueryParameter("SourceCidrIp", sourceCidrIp);
}
}

public Integer getPriority() {
return this.priority;
}

public void setPriority(Integer priority) {
this.priority = priority;
if(priority != null){
putQueryParameter("Priority", priority.toString());
}
}

public String getVersion() {
return this.version;
}

public void setVersion(String version) {
this.version = version;
if(version != null){
putQueryParameter("Version", version);
}
}

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

}
Loading

0 comments on commit 14ba8f0

Please sign in to comment.