Skip to main content

projects

project_exists_ui

async def project_exists_ui(
    page:fastcdp.core.Page, project_id:str, timeout:int=10
):

Whether the signed-in Console account can open project_id

create_project_ui

async def create_project_ui(
    page:fastcdp.core.Page, project_id:str, name:str=None, timeout:int=30
):

Create a Google Cloud project through its Console

ensure_project_ui

async def ensure_project_ui(
    page:fastcdp.core.Page, project_id:str, name:str=None, timeout:int=30
):

Create project_id through the Console unless it already exists

cloud_creds

async def cloud_creds(
    account
):

Load the owner’s stored token, which must carry Google Cloud access

find_organization

async def find_organization(
    creds, domain
):

Find the single visible Google Cloud organization for a Workspace domain

create_project

async def create_project(
    creds, project_id, name=None, parent=None
):

Create a Google Cloud project through Resource Manager

find_project

async def find_project(
    creds, project_id
):

Find an accessible Cloud project by its globally unique project ID

enabled_apis

async def enabled_apis(
    creds, project
):

Service names currently enabled on a project

enable_apis

async def enable_apis(
    creds, project, apis
):

Enable only missing Google APIs through Service Usage, returning the newly enabled names

grant_project_roles

async def grant_project_roles(
    creds, project, member, roles:tuple=('roles/serviceusage.serviceUsageConsumer',)
):

Idempotently grant project IAM roles to a member

provision_project

async def provision_project(
    account, project_id, name=None, domain=None, apis:tuple=()
):

Create an optionally organization-owned project and enable its APIs

delete_project

async def delete_project(
    account, project
):

Soft-delete a Cloud project through Resource Manager