Documentation

Google_Service_Cloudbilling_Resource_Projects extends Google_Service_Resource
in package

The "projects" collection of methods.

Typical usage is: $cloudbillingService = new Google_Service_Cloudbilling(...); $projects = $cloudbillingService->projects;

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.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
getBillingInfo()  : Google_Service_Cloudbilling_ProjectBillingInfo
Gets the billing information for a project. The current authenticated user must have [permission to view the project](https://cloud.google.com/docs /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo)
updateBillingInfo()  : Google_Service_Cloudbilling_ProjectBillingInfo
Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account.
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

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

getBillingInfo()

Gets the billing information for a project. The current authenticated user must have [permission to view the project](https://cloud.google.com/docs /permissions-overview#h.bgs0oxofvnoo ). (projects.getBillingInfo)

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

Required. The resource name of the project for which billing information is retrieved. For example, projects/tokyo-rain-123.

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

Optional parameters.

Return values
Google_Service_Cloudbilling_ProjectBillingInfo

updateBillingInfo()

Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account.

public updateBillingInfo(string $name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Cloudbilling_ProjectBillingInfo

Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. Note: Incurred charges that have not yet been reported in the transaction history of the Google Cloud Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs /permissions-overview#h.bgs0oxofvnoo ) and the billing account. You can disable billing on the project by setting the billing_account_name field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a closed billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an open billing account. (projects.updateBillingInfo)

Parameters
$name : string

Required. The resource name of the project associated with the billing information that you want to update. For example, projects /tokyo-rain-123.

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

Optional parameters.

Return values
Google_Service_Cloudbilling_ProjectBillingInfo

convertToArrayAndStripNulls()

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

Search results