google-cloudresourcemanager/src/testFixtures/java/bio/terra/cloudres/google/cloudresourcemanager/testing/ProjectUtils.java
/** Creates a new Google Project in GCP for testing. */
Creates a new Google Project in GCP for testing.
Creates a new Google Project in GCP for testing .
public static Project executeCreateProject() throws Exception {
    Project project = new Project().setProjectId(randomProjectId()).setParent(PARENT_RESOURCE);
    Operation operation = getManagerCow().projects().create(project).execute();
    OperationCow<Operation> operationCow = managerCow.operations().operationCow(operation);
    OperationTestUtils.pollAndAssertSuccess(
        operationCow, Duration.ofSeconds(5), Duration.ofSeconds(30));
    return managerCow.projects().get(project.getProjectId()).execute();
  }
public static Project executeCreateProject ( ) throws Exception { Project project = new Project ( ) . setProjectId ( randomProjectId ( ) ) . setParent ( PARENT_RESOURCE ) ; Operation operation = getManagerCow ( ) . projects ( ) . create ( project ) . execute ( ) ; OperationCow < Operation > operationCow = managerCow . operations ( ) . operationCow ( operation ) ; OperationTestUtils . pollAndAssertSuccess ( operationCow , Duration . ofSeconds ( 5 ) , Duration . ofSeconds ( 30 ) ) ; return managerCow . projects ( ) . get ( project . getProjectId ( ) ) . execute ( ) ; }
Creates a new Google Project in GCP for testing.
Creates a new Google Project in GCP for testing .