Class: Google::Apis::CloudbillingV1::BillingAccount
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::BillingAccount
- Defined in:
- generated/google/apis/cloudbilling_v1/classes.rb,
generated/google/apis/cloudbilling_v1/representations.rb,
generated/google/apis/cloudbilling_v1/representations.rb
Overview
A billing account in Google Cloud Console. You can assign a billing account to one or more projects.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name given to the billing account, such as
My Billing Account
. -
#name ⇒ String
The resource name of the billing account.
-
#open ⇒ Boolean
(also: #open?)
True if the billing account is open, and will therefore be charged for any usage on associated projects.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BillingAccount
constructor
A new instance of BillingAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ BillingAccount
Returns a new instance of BillingAccount
86 87 88 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 86 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
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
68 69 70 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 68 def display_name @display_name end |
#name ⇒ String
The resource name of the billing account. The resource name has the form
billingAccounts/
billing_account_id`. For example,
billingAccounts/012345-567890-ABCDEFwould be the resource name for
billing account
012345-567890-ABCDEF.
Corresponds to the JSON property
name`
76 77 78 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 76 def name @name end |
#open ⇒ Boolean Also known as: open?
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
83 84 85 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 83 def open @open end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
91 92 93 94 95 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 91 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @open = args[:open] if args.key?(:open) end |