Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

BillingBudgets

import { BillingBudgets } from "https://googleapis.deno.dev/v1/billingbudgets:v1.ts";

The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan.

class BillingBudgets {
constructor(client?: CredentialsClient, baseUrl?: string);
async billingAccountsBudgetsCreate(parent: string, req: GoogleCloudBillingBudgetsV1Budget): Promise<GoogleCloudBillingBudgetsV1Budget>;
async billingAccountsBudgetsDelete(name: string): Promise<GoogleProtobufEmpty>;
async billingAccountsBudgetsGet(name: string): Promise<GoogleCloudBillingBudgetsV1Budget>;
async billingAccountsBudgetsList(parent: string, opts?: BillingAccountsBudgetsListOptions): Promise<GoogleCloudBillingBudgetsV1ListBudgetsResponse>;
async billingAccountsBudgetsPatch(
name: string,
): Promise<GoogleCloudBillingBudgetsV1Budget>;
}

§Constructors

§
new BillingBudgets(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
billingAccountsBudgetsCreate(parent: string, req: GoogleCloudBillingBudgetsV1Budget): Promise<GoogleCloudBillingBudgetsV1Budget>
[src]

Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create.

@param parent

Required. The name of the billing account to create the budget in. Values are of the form billingAccounts/{billingAccountId}.

§
billingAccountsBudgetsDelete(name: string): Promise<GoogleProtobufEmpty>
[src]

Deletes a budget. Returns successfully if already deleted.

@param name

Required. Name of the budget to delete. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

§
billingAccountsBudgetsGet(name: string): Promise<GoogleCloudBillingBudgetsV1Budget>
[src]

Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

@param name

Required. Name of budget to get. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.

§
billingAccountsBudgetsList(parent: string, opts?: BillingAccountsBudgetsListOptions): Promise<GoogleCloudBillingBudgetsV1ListBudgetsResponse>
[src]

Returns a list of budgets for a billing account. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

@param parent

Required. Name of billing account to list budgets under. Values are of the form billingAccounts/{billingAccountId}.

§

Updates a budget and returns the updated budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. Budget fields that are not exposed in this API will not be changed by this method.

@param name

Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form billingAccounts/{billingAccountId}/budgets/{budgetId}.