use of com.vmware.photon.controller.model.adapterapi.NetworkInstanceRequest in project photon-model by vmware.
the class ProvisionNetworkTaskService method toReq.
private NetworkInstanceRequest toReq(NetworkState networkState, ProvisionNetworkTaskState taskState) {
NetworkInstanceRequest req = new NetworkInstanceRequest();
req.requestType = taskState.requestType;
req.authCredentialsLink = networkState.authCredentialsLink;
req.resourcePoolLink = networkState.resourcePoolLink;
req.resourceReference = createInventoryUri(this.getHost(), taskState.networkDescriptionLink);
req.taskReference = this.getUri();
req.isMockRequest = taskState.isMockRequest;
return req;
}
Aggregations