Documentation

Google_Service_CloudBillingBudget_Resource_BillingAccountsBudgets extends Google_Service_Resource
in package

The "budgets" collection of methods.

Typical usage is: $billingbudgetsService = new Google_Service_CloudBillingBudget(...); $budgets = $billingbudgetsService->budgets;

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
create()  : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget
Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create. (budgets.create)
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_CloudBillingBudget_GoogleProtobufEmpty
Deletes a budget. Returns successfully if already deleted. (budgets.delete)
get()  : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget
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. (budgets.get)
listBillingAccountsBudgets()  : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse
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.
patch()  : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget
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.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$serviceName

private string $serviceName

$servicePath

private string $servicePath

$stackParameters

private mixed $stackParameters = array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))

Methods

__construct()

public __construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
$service : mixed
$serviceName : mixed
$resourceName : mixed
$resource : mixed
Return values
mixed

call()

TODO: This function needs simplifying.

public call( $name,  $arguments[,  $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

create()

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

public create(string $parent, Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget
Parameters
$parent : string

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

$postBody : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1CreateBudgetRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget

createRequestUri()

Parse/expand request parameters and create a fully qualified request uri.

public createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
$restPath : string
$params : array<string|int, mixed>
Tags
static
Return values
string

$requestUrl

delete()

Deletes a budget. Returns successfully if already deleted. (budgets.delete)

public delete(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBillingBudget_GoogleProtobufEmpty
Parameters
$name : string

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

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudBillingBudget_GoogleProtobufEmpty

get()

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. (budgets.get)

public get(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget
Parameters
$name : string

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

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget

listBillingAccountsBudgets()

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.

public listBillingAccountsBudgets(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse

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. (budgets.listBillingAccountsBudgets)

Parameters
$parent : string

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

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string pageToken Optional. The value returned by the last ListBudgetsResponse which indicates that this is a continuation of a prior ListBudgets call, and that the system should return the next page of data.

opt_param

int pageSize Optional. The maximum number of budgets to return per page. The default and maximum value are 100.

Return values
Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1ListBudgetsResponse

patch()

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.

public patch(string $name, Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget

Budget fields that are not exposed in this API will not be changed by this method. (budgets.patch)

Parameters
$name : string

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

$postBody : Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1UpdateBudgetRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1beta1Budget

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results