class Google::Apis::CloudbillingV1::BillingAccount

A billing account in the [Google Cloud Console](console.cloud.google. com/). You can assign a billing account to one or more projects.

Attributes

display_name[RW]

The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Cloud Console. Corresponds to the JSON property `displayName` @return [String]

master_billing_account[RW]

If this account is a [subaccount](cloud.google.com/billing/docs/ concepts), then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty. Corresponds to the JSON property `masterBillingAccount` @return [String]

name[RW]

Output only. The resource name of the billing account. The resource name has the form `billingAccounts/`billing_account_id“. For example, `billingAccounts/ 012345-567890-ABCDEF` would be the resource name for billing account `012345- 567890-ABCDEF`. Corresponds to the JSON property `name` @return [String]

open[RW]

Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services. Corresponds to the JSON property `open` @return [Boolean]

open?[RW]

Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services. Corresponds to the JSON property `open` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbilling_v1/classes.rb, line 163
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbilling_v1/classes.rb, line 168
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @master_billing_account = args[:master_billing_account] if args.key?(:master_billing_account)
  @name = args[:name] if args.key?(:name)
  @open = args[:open] if args.key?(:open)
end