Class: Google::Cloud::Billing::V1::ProjectBillingInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Billing::V1::ProjectBillingInfo
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/billing/v1/cloud_billing.rb
Overview
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).
Instance Attribute Summary collapse
-
#billing_account_name ⇒ ::String
The resource name of the billing account associated with the project, if any.
-
#billing_enabled ⇒ ::Boolean
readonly
Output only.
-
#name ⇒ ::String
readonly
Output only.
-
#project_id ⇒ ::String
readonly
Output only.
Instance Attribute Details
#billing_account_name ⇒ ::String
Returns The resource name of the billing account associated with the project, if
any. For example, billingAccounts/012345-567890-ABCDEF
.
89 90 91 92 |
# File 'proto_docs/google/cloud/billing/v1/cloud_billing.rb', line 89 class ProjectBillingInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#billing_enabled ⇒ ::Boolean (readonly)
Returns Output only. 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.
89 90 91 92 |
# File 'proto_docs/google/cloud/billing/v1/cloud_billing.rb', line 89 class ProjectBillingInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String (readonly)
Returns Output only. 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
.
89 90 91 92 |
# File 'proto_docs/google/cloud/billing/v1/cloud_billing.rb', line 89 class ProjectBillingInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#project_id ⇒ ::String (readonly)
Returns Output only. 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.
89 90 91 92 |
# File 'proto_docs/google/cloud/billing/v1/cloud_billing.rb', line 89 class ProjectBillingInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |