|
| 1 | +package org.apache.cloudstack.api.response; |
| 2 | + |
| 3 | +import com.cloud.serializer.Param; |
| 4 | +import com.google.gson.annotations.SerializedName; |
| 5 | +import org.apache.cloudstack.acl.RoleType; |
| 6 | +import org.apache.cloudstack.api.ApiConstants; |
| 7 | +import org.apache.cloudstack.api.BaseResponse; |
| 8 | + |
| 9 | +@SuppressWarnings("unused") |
| 10 | +public class CreateWgVpnResponse extends BaseResponse { |
| 11 | + |
| 12 | + @SerializedName(ApiConstants.ID) |
| 13 | + @Param(description = "the ID of the new wireguard vpn tunnel") |
| 14 | + private String id; |
| 15 | + |
| 16 | + @SerializedName(ApiConstants.PUBLIC_IP_ID) |
| 17 | + @Param(description = "the public ip address of the vpn server") |
| 18 | + private String publicIpId; |
| 19 | + |
| 20 | + @SerializedName(ApiConstants.PUBLIC_IP) |
| 21 | + @Param(description = "the public ip address of the vpn server") |
| 22 | + private String publicIp; |
| 23 | + |
| 24 | + @SerializedName("networkid") |
| 25 | + @Param(description = "id of the network accessible by this VPN") |
| 26 | + private String NetworkId; |
| 27 | + |
| 28 | + @SerializedName("publicport") |
| 29 | + @Param(description = "the public port used by this vpn server") |
| 30 | + private Integer PublicPort; |
| 31 | + |
| 32 | + @SerializedName("accountid") |
| 33 | + @Param(description = "the id of the account of the vpn") |
| 34 | + private String AccountId; |
| 35 | + |
| 36 | + @SerializedName(ApiConstants.ACCOUNT) |
| 37 | + @Param(description = "the account of the wireguard vpn") |
| 38 | + private String accountName; |
| 39 | + |
| 40 | + @SerializedName(ApiConstants.DOMAIN_ID) |
| 41 | + @Param(description = "the domain id of the account of the wireguard vpn") |
| 42 | + private String domainId; |
| 43 | + |
| 44 | + @SerializedName(ApiConstants.DOMAIN) |
| 45 | + @Param(description = "the domain name of the account of the wireguard vpn") |
| 46 | + private String domainName; |
| 47 | + |
| 48 | + @SerializedName(ApiConstants.FOR_DISPLAY) |
| 49 | + @Param(description = "is vpn for display to the regular user", since = "4.4", authorized = {RoleType.Admin}) |
| 50 | + private Boolean forDisplay; |
| 51 | + |
| 52 | + @SerializedName("ip4enable") |
| 53 | + @Param(description = "does the vpn support ipv4 addresses") |
| 54 | + private Boolean IP4Enable; |
| 55 | + |
| 56 | + @SerializedName("ip4range") |
| 57 | + @Param(description = "IPv4 network to use internally for the vpn (CIDR notation)") |
| 58 | + private String IP4Range; |
| 59 | + |
| 60 | + @SerializedName("ip6enable") |
| 61 | + @Param(description = "does the vpn support ipv6 addresses") |
| 62 | + private Boolean IP6Enable; |
| 63 | + |
| 64 | + @SerializedName("ip6range") |
| 65 | + @Param(description = "IPv6 network to use internally for the vpn (CIDR notation)") |
| 66 | + private String IP6Range; |
| 67 | + |
| 68 | + @SerializedName(ApiConstants.STATE) |
| 69 | + @Param(description = "the state of the wireguard server") |
| 70 | + private String state; |
| 71 | + |
| 72 | + @SerializedName("publickey") |
| 73 | + @Param(description = "the server's public Key") |
| 74 | + private String ServerPublicKey; |
| 75 | + |
| 76 | + public void setId(String id) { |
| 77 | + this.id = id; |
| 78 | + } |
| 79 | + |
| 80 | + public void setPublicIpId(String publicIpId) { |
| 81 | + this.publicIpId = publicIpId; |
| 82 | + } |
| 83 | + |
| 84 | + public void setPublicIp(String publicIp) { |
| 85 | + this.publicIp = publicIp; |
| 86 | + } |
| 87 | + |
| 88 | + public void setNetworkId(String networkId) { |
| 89 | + NetworkId = networkId; |
| 90 | + } |
| 91 | + |
| 92 | + public void setPublicPort(Integer publicPort) { |
| 93 | + PublicPort = publicPort; |
| 94 | + } |
| 95 | + |
| 96 | + public void setAccountId(String accountId) { |
| 97 | + AccountId = accountId; |
| 98 | + } |
| 99 | + |
| 100 | + public void setAccountName(String accountName) { |
| 101 | + this.accountName = accountName; |
| 102 | + } |
| 103 | + |
| 104 | + public void setDomainId(String domainId) { |
| 105 | + this.domainId = domainId; |
| 106 | + } |
| 107 | + |
| 108 | + public void setDomainName(String domainName) { |
| 109 | + this.domainName = domainName; |
| 110 | + } |
| 111 | + |
| 112 | + public void setForDisplay(Boolean forDisplay) { |
| 113 | + this.forDisplay = forDisplay; |
| 114 | + } |
| 115 | + |
| 116 | + public void setIP4Enable(Boolean IP4Enable) { |
| 117 | + this.IP4Enable = IP4Enable; |
| 118 | + } |
| 119 | + |
| 120 | + public void setIP4Range(String IP4Range) { |
| 121 | + this.IP4Range = IP4Range; |
| 122 | + } |
| 123 | + |
| 124 | + public void setIP6Enable(Boolean IP6Enable) { |
| 125 | + this.IP6Enable = IP6Enable; |
| 126 | + } |
| 127 | + |
| 128 | + public void setIP6Range(String IP6Range) { |
| 129 | + this.IP6Range = IP6Range; |
| 130 | + } |
| 131 | + |
| 132 | + public void setState(String state) { |
| 133 | + this.state = state; |
| 134 | + } |
| 135 | + |
| 136 | + public void setServerPublicKey(String serverPublicKey) { |
| 137 | + ServerPublicKey = serverPublicKey; |
| 138 | + } |
| 139 | +} |
0 commit comments