google.cloud.forseti.common.gcp_type.billing_account module

A Billing Account Resource.

class BillingAccount(billing_account_id, full_name=None, data=None, name=None, display_name=None, parent=None, lifecycle_state='LIFECYCLE_STATE_UNSPECIFIED')[source]

Bases: google.cloud.forseti.common.gcp_type.resource.Resource

BillingAccount Resource.

RESOURCE_NAME_FMT = 'billingAccounts/%s'
_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 199
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_json(parent, json_string)[source]

Creates a billing account from a JSON string.

Parameters:
  • parent (Resource) – resource this billing account belongs to.
  • json_string (str) – JSON string of a billing account GCP resource.
Returns:

billing account resource.

Return type:

BillingAccount

class BillingAccountLifecycleState[source]

Bases: google.cloud.forseti.common.gcp_type.resource.LifecycleState

Represents the Billing Account’s LifecycleState.