Search in sources :

Example 1 with NicSecurityGroupsRequest

use of com.vmware.photon.controller.model.adapterapi.NicSecurityGroupsRequest in project photon-model by vmware.

the class NicSecurityGroupsTaskService method toReq.

private NicSecurityGroupsRequest toReq(NicSecurityGroupsTaskState taskState, SecurityGroupState securityGroupState) {
    NicSecurityGroupsRequest req = new NicSecurityGroupsRequest();
    req.requestType = taskState.requestType;
    req.resourceReference = createInventoryUri(this.getHost(), taskState.networkInterfaceLink);
    req.securityGroupLinks = taskState.securityGroupLinks;
    req.authCredentialsLink = securityGroupState.authCredentialsLink;
    req.taskReference = this.getUri();
    req.isMockRequest = taskState.isMockRequest;
    req.customProperties = taskState.customProperties;
    return req;
}
Also used : NicSecurityGroupsRequest(com.vmware.photon.controller.model.adapterapi.NicSecurityGroupsRequest)

Aggregations

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