Show / Hide Table of Contents

Class BillingAccountsResource.BudgetsResource

The "budgets" collection of methods.

Inheritance
object
BillingAccountsResource.BudgetsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudBillingBudget.v1
Assembly: Google.Apis.CloudBillingBudget.v1.dll
Syntax
public class BillingAccountsResource.BudgetsResource

Constructors

BudgetsResource(IClientService)

Constructs a new resource.

Declaration
public BudgetsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(GoogleCloudBillingBudgetsV1Budget, string)

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

Declaration
public virtual BillingAccountsResource.BudgetsResource.CreateRequest Create(GoogleCloudBillingBudgetsV1Budget body, string parent)
Parameters
Type Name Description
GoogleCloudBillingBudgetsV1Budget body

The body of the request.

string parent

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

Returns
Type Description
BillingAccountsResource.BudgetsResource.CreateRequest

Delete(string)

Deletes a budget. Returns successfully if already deleted.

Declaration
public virtual BillingAccountsResource.BudgetsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
BillingAccountsResource.BudgetsResource.DeleteRequest

Get(string)

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.

Declaration
public virtual BillingAccountsResource.BudgetsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
BillingAccountsResource.BudgetsResource.GetRequest

List(string)

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.

Declaration
public virtual BillingAccountsResource.BudgetsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

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

Returns
Type Description
BillingAccountsResource.BudgetsResource.ListRequest

Patch(GoogleCloudBillingBudgetsV1Budget, string)

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.

Declaration
public virtual BillingAccountsResource.BudgetsResource.PatchRequest Patch(GoogleCloudBillingBudgetsV1Budget body, string name)
Parameters
Type Name Description
GoogleCloudBillingBudgetsV1Budget body

The body of the request.

string 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}.

Returns
Type Description
BillingAccountsResource.BudgetsResource.PatchRequest
In this article
Back to top Generated by DocFX