class Google::Apis::CloudbillingV1::BillingAccount

A billing account in [Google Developers Console](console.developers. 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 Developers Console. Corresponds to the JSON property `displayName` @return [String]

name[RW]

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]

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]

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 generated/google/apis/cloudbilling_v1/classes.rb, line 52
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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