Search in sources :

Example 1 with AzureSubscriptionEndpointsEnumerationRequest

use of com.vmware.photon.controller.model.adapters.azure.ea.enumeration.AzureSubscriptionEndpointsEnumerationService.AzureSubscriptionEndpointsEnumerationRequest in project photon-model by vmware.

the class AzureSubscriptionEndpointsEnumerationServiceTest method createAzureEndpointsForSubscriptions.

private void createAzureEndpointsForSubscriptions(Collection<AzureSubscription> subscriptions) {
    AzureSubscriptionEndpointsEnumerationRequest request = new AzureSubscriptionEndpointsEnumerationRequest();
    request.resourceReference = UriUtils.buildUri(this.host, this.computeLink);
    request.azureSubscriptions = subscriptions;
    TestRequestSender sender = new TestRequestSender(this.host);
    Operation op = Operation.createPatch(this.host, AzureSubscriptionEndpointsEnumerationService.SELF_LINK).setBody(request);
    sender.sendAndWait(op);
}
Also used : AzureSubscriptionEndpointsEnumerationRequest(com.vmware.photon.controller.model.adapters.azure.ea.enumeration.AzureSubscriptionEndpointsEnumerationService.AzureSubscriptionEndpointsEnumerationRequest) TestRequestSender(com.vmware.xenon.common.test.TestRequestSender) Operation(com.vmware.xenon.common.Operation)

Aggregations

AzureSubscriptionEndpointsEnumerationRequest (com.vmware.photon.controller.model.adapters.azure.ea.enumeration.AzureSubscriptionEndpointsEnumerationService.AzureSubscriptionEndpointsEnumerationRequest)1 Operation (com.vmware.xenon.common.Operation)1 TestRequestSender (com.vmware.xenon.common.test.TestRequestSender)1