Search in sources :

Example 1 with CreateRawlsBillingProjectFullRequest

use of org.pmiops.workbench.firecloud.model.CreateRawlsBillingProjectFullRequest in project workbench by all-of-us.

the class FireCloudServiceImpl method createAllOfUsBillingProject.

@Override
public void createAllOfUsBillingProject(String projectName) throws ApiException {
    BillingApi billingApi = billingApiProvider.get();
    CreateRawlsBillingProjectFullRequest request = new CreateRawlsBillingProjectFullRequest();
    request.setBillingAccount("billingAccounts/" + configProvider.get().firecloud.billingAccountId);
    request.setProjectName(projectName);
    billingApi.createBillingProjectFull(request);
}
Also used : CreateRawlsBillingProjectFullRequest(org.pmiops.workbench.firecloud.model.CreateRawlsBillingProjectFullRequest) BillingApi(org.pmiops.workbench.firecloud.api.BillingApi)

Aggregations

BillingApi (org.pmiops.workbench.firecloud.api.BillingApi)1 CreateRawlsBillingProjectFullRequest (org.pmiops.workbench.firecloud.model.CreateRawlsBillingProjectFullRequest)1