Google Cloud Billing Budgets V1 Client - Class ListBudgetsRequest (2.1.1) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Billing Budgets V1 Client class ListBudgetsRequest.
Request for ListBudgets
Generated from protobuf messagegoogle.cloud.billing.budgets.v1.ListBudgetsRequest
Namespace
Google \ Cloud \ Billing \ Budgets \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ parent | stringRequired. Name of billing account to list budgets under. Values are of the form |
↳ scope | stringOptional. Set the scope of the budgets to be returned, in the format of the resource name. The scope of a budget is the cost that it tracks, such as costs for a single project, or the costs for all projects in a folder. Only project scope (in the format of "projects/project-id" or "projects/123") is supported in this field. When this field is set to a project's resource name, the budgets returned are tracking the costs for that project. |
↳ page_size | intOptional. The maximum number of budgets to return per page. The default and maximum value are 100. |
↳ page_token | stringOptional. The value returned by the last |
getParent
Required. Name of billing account to list budgets under. Valuesare of the formbillingAccounts/{billingAccountId}.
| Returns | |
|---|---|
| Type | Description |
string | |
setParent
Required. Name of billing account to list budgets under. Valuesare of the formbillingAccounts/{billingAccountId}.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getScope
Optional. Set the scope of the budgets to be returned, in the format of theresource name. The scope of a budget is the cost that it tracks, such ascosts for a single project, or the costs for all projects in a folder. Onlyproject scope (in the format of "projects/project-id" or "projects/123") issupported in this field. When this field is set to a project's resourcename, the budgets returned are tracking the costs for that project.
| Returns | |
|---|---|
| Type | Description |
string | |
setScope
Optional. Set the scope of the budgets to be returned, in the format of theresource name. The scope of a budget is the cost that it tracks, such ascosts for a single project, or the costs for all projects in a folder. Onlyproject scope (in the format of "projects/project-id" or "projects/123") issupported in this field. When this field is set to a project's resourcename, the budgets returned are tracking the costs for that project.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getPageSize
Optional. The maximum number of budgets to return per page.
The default and maximum value are 100.
| Returns | |
|---|---|
| Type | Description |
int | |
setPageSize
Optional. The maximum number of budgets to return per page.
The default and maximum value are 100.
| Parameter | |
|---|---|
| Name | Description |
var | int |
| Returns | |
|---|---|
| Type | Description |
$this | |
getPageToken
Optional. The value returned by the lastListBudgetsResponse whichindicates that this is a continuation of a priorListBudgets call,and that the system should return the next page of data.
| Returns | |
|---|---|
| Type | Description |
string | |
setPageToken
Optional. The value returned by the lastListBudgetsResponse whichindicates that this is a continuation of a priorListBudgets call,and that the system should return the next page of data.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
static::build
| Parameter | |
|---|---|
| Name | Description |
parent | stringRequired. Name of billing account to list budgets under. Valuesare of the form |
| Returns | |
|---|---|
| Type | Description |
ListBudgetsRequest | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.