Package types (1.3.4)

API documentation for billing_v1.types package.

Classes

AggregationInfo

Represents the aggregation level and interval for pricing of a single SKU.

BillingAccount

A billing account in GCP Console <https://console.cloud.google.com/>__. You can assign a billing account to one or more projects.

Category

Represents the category hierarchy of a SKU. .. attribute:: service_display_name

The display name of the service this SKU belongs to.

:type: str

CreateBillingAccountRequest

Request message for CreateBillingAccount. .. attribute:: billing_account

Required. The billing account resource to create. Currently CreateBillingAccount only supports subaccount creation, so any created billing accounts must be under a provided master billing account.

:type: google.cloud.billing_v1.types.BillingAccount

GetBillingAccountRequest

Request message for GetBillingAccount. .. attribute:: name

Required. The resource name of the billing account to retrieve. For example, billingAccounts/012345-567890-ABCDEF.

:type: str

GetProjectBillingInfoRequest

Request message for GetProjectBillingInfo. .. attribute:: name

Required. The resource name of the project for which billing information is retrieved. For example, projects/tokyo-rain-123.

:type: str

ListBillingAccountsRequest

Request message for ListBillingAccounts. .. attribute:: page_size

Requested page size. The maximum page size is 100; this is also the default.

:type: int

ListBillingAccountsResponse

Response message for ListBillingAccounts. .. attribute:: billing_accounts

A list of billing accounts.

:type: Sequence[google.cloud.billing_v1.types.BillingAccount]

ListProjectBillingInfoRequest

Request message for ListProjectBillingInfo. .. attribute:: name

Required. The resource name of the billing account associated with the projects that you want to list. For example, billingAccounts/012345-567890-ABCDEF.

:type: str

ListProjectBillingInfoResponse

Request message for ListProjectBillingInfoResponse. .. attribute:: project_billing_info

A list of ProjectBillingInfo resources representing the projects associated with the billing account.

:type: Sequence[google.cloud.billing_v1.types.ProjectBillingInfo]

ListServicesRequest

Request message for ListServices. .. attribute:: page_size

Requested page size. Defaults to 5000.

:type: int

ListServicesResponse

Response message for ListServices. .. attribute:: services

A list of services.

:type: Sequence[google.cloud.billing_v1.types.Service]

ListSkusRequest

Request message for ListSkus. .. attribute:: parent

Required. The name of the service. Example: "services/DA34-426B-A397".

:type: str

ListSkusResponse

Response message for ListSkus. .. attribute:: skus

The list of public SKUs of the given service.

:type: Sequence[google.cloud.billing_v1.types.Sku]

PricingExpression

Expresses a mathematical pricing formula. For Example:-

usage_unit: GBy tiered_rates: [start_usage_amount: 20, unit_price: $10] [start_usage_amount: 100, unit_price: $5]

The above expresses a pricing formula where the first 20GB is free, the next 80GB is priced at $10 per GB followed by $5 per GB for additional usage.

PricingInfo

Represents the pricing information for a SKU at a single point of time.

ProjectBillingInfo

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

Service

Encapsulates a single service in Google Cloud Platform. .. attribute:: name

The resource name for the service. Example: "services/DA34-426B-A397".

:type: str

Sku

Encapsulates a single SKU in Google Cloud Platform .. attribute:: name

The resource name for the SKU. Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE".

:type: str

UpdateBillingAccountRequest

Request message for UpdateBillingAccount. .. attribute:: name

Required. The name of the billing account resource to be updated.

:type: str

UpdateProjectBillingInfoRequest

Request message for UpdateProjectBillingInfo. .. attribute:: name

Required. The resource name of the project associated with the billing information that you want to update. For example, projects/tokyo-rain-123.

:type: str