google-serviceusage/src/testFixtures/java/bio/terra/cloudres/google/serviceusage/testing/ServiceUsageUtils.java
/**
   * Enables batch services for a project.
   *
   * @param projectId: The projectId to enable services on.
   * @param services: Services to be enabled. See {@link BatchEnableServicesRequest}
   */
Enables batch services for a project.
@param projectId: The projectId to enable services on.
@param services: Services to be enabled.
Enables batch services for a project . @param projectId : The projectId to enable services on . @param services : Services to be enabled .
public static void enableServices(String projectId, List<String> services) throws Exception {
    Operation operation =
        getServiceUsageCow()
            .services()
            .batchEnable(
                projectIdToName(projectId),
                new BatchEnableServicesRequest().setServiceIds(services))
            .execute();
    OperationTestUtils.pollAndAssertSuccess(
        serviceUsageCow.operations().operationCow(operation),
        Duration.ofSeconds(5),
        Duration.ofSeconds(100));
  }
public static void enableServices ( String projectId , List < String > services ) throws Exception { Operation operation = getServiceUsageCow ( ) . services ( ) . batchEnable ( projectIdToName ( projectId ) , new BatchEnableServicesRequest ( ) . setServiceIds ( services ) ) . execute ( ) ; OperationTestUtils . pollAndAssertSuccess ( serviceUsageCow . operations ( ) . operationCow ( operation ) , Duration . ofSeconds ( 5 ) , Duration . ofSeconds ( 100 ) ) ; }
Enables batch services for a project.
Enables batch services for a project .