cloudstack/server/src/com/cloud/network/vpc/PrivateGatewayProfile.java
Alena Prokharchyk b565f63e42 VPC: listPrivateGateways command is available for regular user too (he needs to know the gatewayId for the static route creation)
Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	server/src/com/cloud/api/ApiResponseHelper.java
2012-07-02 17:44:28 -07:00

97 lines
2.3 KiB
Java

// Copyright 2012 Citrix Systems, Inc. Licensed under the
// Apache License, Version 2.0 (the "License"); you may not use this
// file except in compliance with the License. Citrix Systems, Inc.
// reserves all rights not expressly granted by 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.
//
// Automatically generated by addcopyright.py at 04/03/2012
package com.cloud.network.vpc;
/**
* @author Alena Prokharchyk
*/
public class PrivateGatewayProfile implements PrivateGateway{
VpcGateway vpcGateway;
long physicalNetworkId;
/**
* @param vpcGateway
* @param physicalNetworkId TODO
*/
public PrivateGatewayProfile(VpcGateway vpcGateway, long physicalNetworkId) {
super();
this.vpcGateway = vpcGateway;
this.physicalNetworkId = physicalNetworkId;
}
@Override
public long getId() {
return vpcGateway.getId();
}
@Override
public String getIp4Address() {
return vpcGateway.getIp4Address();
}
@Override
public Type getType() {
return vpcGateway.getType();
}
@Override
public Long getVpcId() {
return vpcGateway.getVpcId();
}
@Override
public long getZoneId() {
return vpcGateway.getZoneId();
}
@Override
public Long getNetworkId() {
return vpcGateway.getNetworkId();
}
@Override
public String getUuid() {
return vpcGateway.getUuid();
}
@Override
public String getVlanTag() {
return vpcGateway.getVlanTag();
}
@Override
public String getGateway() {
return vpcGateway.getGateway();
}
@Override
public String getNetmask() {
return vpcGateway.getNetmask();
}
@Override
public long getPhysicalNetworkId() {
return physicalNetworkId;
}
@Override
public long getAccountId() {
return vpcGateway.getAccountId();
}
@Override
public long getDomainId() {
return vpcGateway.getDomainId();
}
}