Search in sources :

Example 1 with NetworkInstanceRequest

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;
}
Also used : NetworkInstanceRequest(com.vmware.photon.controller.model.adapterapi.NetworkInstanceRequest)

Aggregations

NetworkInstanceRequest (com.vmware.photon.controller.model.adapterapi.NetworkInstanceRequest)1