@Path("{action: (?:attach|detach|updatevirtualfunctionsconfiguration)}/{oid}") public V3ActionServer getActionResource(@PathParam("action") String action, @PathParam("oid") String oid) { return new V3ActionServer(getDelegate().getActionResource(action, oid)); } }
@Test public void testGet() throws Exception { HostNicResource subresource = collection.getNicResource(GUIDS[SINGLE_NIC_IDX].toString()); setGetVdsQueryExpectations(1); setGetNetworksQueryExpectations(1); setUriInfo(setUpBasicUriExpectations()); setUpQueryExpectations(""); verifyModel(subresource.get(), SINGLE_NIC_IDX); }
@Path("networkattachments") public V3NetworkAttachmentsServer getNetworkAttachmentsResource() { return new V3NetworkAttachmentsServer(getDelegate().getNetworkAttachmentsResource()); }
@Path("statistics") public V3StatisticsServer getStatisticsResource() { return new V3StatisticsServer(getDelegate().getStatisticsResource()); }
@Path("labels") public V3LabelsServer getLabelsResource() { return new V3LabelsServer(getDelegate().getNetworkLabelsResource()); }
@Path("virtualfunctionallowedlabels") public V3LabelsServer getVirtualFunctionAllowedLabelsResource() { return new V3LabelsServer(getDelegate().getVirtualFunctionAllowedLabelsResource()); }
@Path("virtualfunctionallowednetworks") public V3VirtualFunctionAllowedNetworksServer getVirtualFunctionAllowedNetworksResource() { return new V3VirtualFunctionAllowedNetworksServer(getDelegate().getVirtualFunctionAllowedNetworksResource()); }