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);
}
Aggregations