google.cloud.forseti.services.inventory.base.gcp module

GCP API client fassade.

class ApiClient[source]

Bases: object

The gcp api client interface

fetch_organization(orgid)[source]

Not Implemented.

Parameters:orgid (str) – id of the organization to get
Raises:NotImplementedError – Because not implemented.
get_organization_iam_policy(orgid)[source]

Not Implemented.

Parameters:orgid (str) – id of the organization to get
Raises:NotImplementedError – Because not implemented.
get_project_iam_policy(projectid)[source]

Not Implemented.

Parameters:projectid (str) – id of the project to query
Raises:NotImplementedError – Because not implemented.
iter_buckets(projectid)[source]

Not Implemented.

Parameters:projectid (str) – id of the project to query
Raises:NotImplementedError – Because not implemented.
iter_folders(orgid)[source]

Not Implemented.

Parameters:orgid (str) – id of the organization to get
Raises:NotImplementedError – Because not implemented.
iter_objects(bucket_id)[source]

Not Implemented.

Parameters:bucket_id (str) – id of the bucket to get
Raises:NotImplementedError – Because not implemented.
iter_projects(orgid)[source]

Not Implemented.

Parameters:orgid (str) – id of the organization to get
Raises:NotImplementedError – Because not implemented.
class ApiClientImpl(config)[source]

Bases: google.cloud.forseti.services.inventory.base.gcp.ApiClient

The gcp api client Implementation

_create_ad()[source]

Create admin directory API client

Returns:Client
Return type:object
_create_appengine()[source]

Create AppEngine API client

Returns:Client
Return type:object
_create_bq()[source]

Create bigquery API client :returns: Client :rtype: object

_create_cloudbilling()[source]

Create cloud billing API client

Returns:Client
Return type:object
_create_cloudsql()[source]

Create cloud sql API client

Returns:Client
Return type:object
_create_compute()[source]

Create compute API client

Returns:Client
Return type:object
_create_container()[source]

Create Kubernetes Engine API client

Returns:Client
Return type:object
_create_crm()[source]

Create resource manager API client

Returns:Client
Return type:object
_create_iam()[source]

Create IAM API client

Returns:Client
Return type:object
_create_servicemanagement()[source]

Create servicemanagement API client

Returns:Client
Return type:object
_create_stackdriver_logging()[source]

Create stackdriver_logging API client

Returns:Client
Return type:object
_create_storage()[source]

Create storage API client

Returns:Client
Return type:object
fetch_compute_project(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

fetch_container_serviceconfig(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

fetch_folder(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

fetch_gae_app(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

fetch_organization(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

fetch_project(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_billing_account_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_bucket_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_dataset_dataset_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_enabled_apis(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_folder_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_object_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_organization_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_project_billing_info(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_project_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

get_serviceaccount_iam_policy(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

is_compute_api_enabled(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_backendservices(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_billing_account_sinks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_billing_accounts(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_buckets(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_cloudsqlinstances(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_computedisks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_computefirewalls(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_computeinstancegroups(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_computeinstances(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_container_clusters(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_curated_roles(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_datasets(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_folder_sinks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_folders(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_forwardingrules(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_gae_instances(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_gae_services(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_gae_versions(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_group_members(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_groups(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_ig_managers(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_images(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_instancetemplates(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_networks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_objects(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_organization_roles(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_organization_sinks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_project_roles(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_project_sinks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_projects(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_serviceaccount_exported_keys(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_serviceaccounts(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_snapshots(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_subnetworks(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

iter_users(**kwargs)[source]

Decorator implementation

Parameters:
  • *args (list) – Original func arguments
  • **kwargs (dict) – Original func arguments
Returns:

Result produced by the wrapped func

Return type:

object

create_lazy(attribute, factory)[source]

Create attributes right before they are needed.

Parameters:
  • attribute (str) – Attribute name to check/create
  • factory (function) – Factory to create object
Returns:

Decorator

Return type:

function