# Cloud Billing Budget v1beta1 API - Namespace Google.Cloud.Billing.Budgets.V1Beta1 (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/2.0.0-beta06/Google.Cloud.Billing.Budgets.V1Beta1)
- [1.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/1.0.0-beta05/Google.Cloud.Billing.Budgets.V1Beta1)

## Classes

### [AllUpdatesRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.AllUpdatesRule)

AllUpdatesRule defines notifications that are sent based on budget spend
and thresholds.

### [Budget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.Budget)

A budget is a plan that describes what you expect to spend on Cloud
projects, plus the rules to execute as spend is tracked against that plan,
(for example, send an alert when 90% of the target spend is met).
The budget time period is configurable, with options such as month (default),
quarter, year, or custom time period.

### [BudgetAmount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount)

The budgeted amount for each usage period.

### [BudgetName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetName)

Resource name for the `Budget` resource.

### [BudgetService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetService)

BudgetService stores Cloud Billing budgets, which define a
budget plan and rules to execute as we track spend against that plan.

### [BudgetService.BudgetServiceBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetService.BudgetServiceBase)

Base class for server-side implementations of BudgetService

### [BudgetService.BudgetServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetService.BudgetServiceClient)

Client for BudgetService

### [BudgetServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClient)

BudgetService client wrapper, for convenient use.

### [BudgetServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClientBuilder)

Builder class for [BudgetServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClient) to provide simple configuration of credentials, endpoint
etc.

### [BudgetServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClientImpl)

BudgetService client wrapper implementation, for convenient use.

### [BudgetServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceSettings)

Settings for [BudgetServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClient) instances.

### [CreateBudgetRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CreateBudgetRequest)

Request for CreateBudget

### [CustomPeriod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod)

All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).

### [DeleteBudgetRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.DeleteBudgetRequest)

Request for DeleteBudget

### [Filter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.Filter)

A filter for a budget, limiting the scope of the cost to calculate.

### [Filter.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.Filter.Types)

Container for nested types declared in the Filter message type.

### [GetBudgetRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.GetBudgetRequest)

Request for GetBudget

### [LastPeriodAmount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.LastPeriodAmount)

Describes a budget amount targeted to the last
\[Filter.calendar_period\]\[google.cloud.billing.budgets.v1beta1.Filter.calendar_period\]
spend. At this time, the amount is automatically 100% of the last calendar
period's spend; that is, there are no other options yet.
Future configuration options will be described here (for example, configuring
a percentage of last period's spend).
LastPeriodAmount cannot be set for a budget configured with
a
\[Filter.custom_period\]\[google.cloud.billing.budgets.v1beta1.Filter.custom_period\].

### [ListBudgetsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.ListBudgetsRequest)

Request for ListBudgets

### [ListBudgetsResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.ListBudgetsResponse)

Response for ListBudgets

### [ThresholdRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.ThresholdRule)

ThresholdRule contains the definition of a threshold. Threshold rules define
the triggering events used to generate a budget notification email. When a
threshold is crossed (spend exceeds the specified percentages of the
budget), budget alert emails are sent to the email recipients you specify
in the
[NotificationsRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1#notificationsrule).

Threshold rules also affect the fields included in the
[JSON data
object](https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format)
sent to a Pub/Sub topic.

Threshold rules are *required* if using email notifications.

Threshold rules are *optional* if only setting a
[`pubsubTopic` NotificationsRule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1#NotificationsRule),
unless you want your JSON data object to include data about the thresholds
you set.

For more information, see
[set budget threshold rules and
actions](https://cloud.google.com/billing/docs/how-to/budgets#budget-actions).

### [ThresholdRule.Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.ThresholdRule.Types)

Container for nested types declared in the ThresholdRule message type.

### [UpdateBudgetRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.UpdateBudgetRequest)

Request for UpdateBudget

## Enums

### [BudgetAmount.BudgetAmountOneofCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount.BudgetAmountOneofCase)

Enum of possible cases for the "budget_amount" oneof.

### [BudgetName.ResourceNameType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetName.ResourceNameType)

The possible contents of [BudgetName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetName).

### [CalendarPeriod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CalendarPeriod)

A `CalendarPeriod` represents the abstract concept of a time period that
has a canonical start. Grammatically, "the start of the current
`CalendarPeriod`". All calendar times begin at 12 AM US and Canadian
Pacific Time (UTC-8).

### [Filter.Types.CreditTypesTreatment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.Filter.Types.CreditTypesTreatment)

Specifies how credits are applied when determining the spend for
threshold calculations. Budgets track the total cost minus any applicable
selected credits.
[See the documentation for a list of credit
types](https://cloud.google.com/billing/docs/how-to/export-data-bigquery-tables#credits-type).

### [Filter.UsagePeriodOneofCase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.Filter.UsagePeriodOneofCase)

Enum of possible cases for the "usage_period" oneof.

### [ThresholdRule.Types.Basis](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.ThresholdRule.Types.Basis)

The type of basis used to determine if spend has passed the threshold.