class Google::Apis::CloudbillingV1::ProjectBillingInfo

Encapsulation of billing information for a Google Cloud Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).

Attributes

billing_account_name[RW]

The resource name of the billing account associated with the project, if any. For example, `billingAccounts/012345-567890-ABCDEF`. Corresponds to the JSON property `billingAccountName` @return [String]

billing_enabled[RW]

True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only. Corresponds to the JSON property `billingEnabled` @return [Boolean]

billing_enabled?[RW]

True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only. Corresponds to the JSON property `billingEnabled` @return [Boolean]

name[RW]

The resource name for the `ProjectBillingInfo`; has the form `projects/` project_id`/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/ billingInfo`. This field is read-only. Corresponds to the JSON property `name` @return [String]

project_id[RW]

The ID of the project that this `ProjectBillingInfo` represents, such as ` tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only. Corresponds to the JSON property `projectId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbilling_v1/classes.rb, line 765
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 770
def update!(**args)
  @billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name)
  @billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled)
  @name = args[:name] if args.key?(:name)
  @project_id = args[:project_id] if args.key?(:project_id)
end