gcp package

Submodules

gcp.client module

gcp.client.cache_key(project_id, version, product, subproduct, call='list', id_value='na')[source]

Returns the fullname (directory and filename) for a cached GCP API call.

>>> cache_key("123", "v1", "compute", "firewalls")
'pytest_gcp/123/v1/compute/firewalls/list:na.json'
>>> cache_key("123", "v1", "compute", "firewalls", "get", "321")
'pytest_gcp/123/v1/compute/firewalls/get:321.json'
gcp.client.get_all_projects_in_folder(folder_id=None)[source]
gcp.client.get_all_folders_in_folder(crm, folder_id=None)[source]
class gcp.client.GCPClient(project_id, folder_id, cache, debug_calls, debug_cache, offline)[source]

Bases: object

get_project_iam_policies()[source]
get_project_container_config()[source]
get(project_id, product, subproduct, id_key, id_value, version='v1', call_kwargs=None)[source]
list(product, subproduct, version='v1', results_key='items', call_kwargs=None)[source]

Public list func. See _list func docstring for more info

gcp.conftest module

gcp.conftest.pytest_configure(config)[source]

Module contents