Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 454 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 classes

Google_Service_Cloudbilling:: (1 method):
  __construct()

Google_Service_Cloudbilling_BillingAccounts_Resource:: (2 methods):
  get()
  listBillingAccounts()

Google_Service_Cloudbilling_BillingAccountsProjects_Resource:: (1 method):
  listBillingAccountsProjects()

Google_Service_Cloudbilling_Projects_Resource:: (2 methods):
  getBillingInfo()
  updateBillingInfo()

Google_Service_Cloudbilling_BillingAccount:: (6 methods):
  setDisplayName()
  getDisplayName()
  setName()
  getName()
  setOpen()
  getOpen()

Google_Service_Cloudbilling_ListBillingAccountsResponse:: (4 methods):
  setBillingAccounts()
  getBillingAccounts()
  setNextPageToken()
  getNextPageToken()

Google_Service_Cloudbilling_ListProjectBillingInfoResponse:: (4 methods):
  setNextPageToken()
  getNextPageToken()
  setProjectBillingInfo()
  getProjectBillingInfo()

Google_Service_Cloudbilling_ProjectBillingInfo:: (8 methods):
  setBillingAccountName()
  getBillingAccountName()
  setBillingEnabled()
  getBillingEnabled()
  setName()
  getName()
  setProjectId()
  getProjectId()


Class: Google_Service_Cloudbilling  - X-Ref

Service definition for Cloudbilling (v1).

<p>
Retrieves Google Developers Console billing accounts and associates them with
projects.</p>

<p>
For more information about this service, see the API
<a href="https://cloud.google.com/billing/" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the Cloudbilling service.

param: Google_Client $client

Class: Google_Service_Cloudbilling_BillingAccounts_Resource  - X-Ref

The "billingAccounts" collection of methods.
Typical usage is:
<code>
$cloudbillingService = new Google_Service_Cloudbilling(...);
$billingAccounts = $cloudbillingService->billingAccounts;
</code>

get($name, $optParams = array()   X-Ref
Gets information about a billing account. The current authenticated user must
be an [owner of the billing
account](https://support.google.com/cloud/answer/4430947).
(billingAccounts.get)

param: string $name The resource name of the billing account to retrieve. For
param: array $optParams Optional parameters.
return: Google_Service_Cloudbilling_BillingAccount

listBillingAccounts($optParams = array()   X-Ref
Lists the billing accounts that the current authenticated user
[owns](https://support.google.com/cloud/answer/4430947).
(billingAccounts.listBillingAccounts)

param: array $optParams Optional parameters.
return: Google_Service_Cloudbilling_ListBillingAccountsResponse

Class: Google_Service_Cloudbilling_BillingAccountsProjects_Resource  - X-Ref

The "projects" collection of methods.
Typical usage is:
<code>
$cloudbillingService = new Google_Service_Cloudbilling(...);
$projects = $cloudbillingService->projects;
</code>

listBillingAccountsProjects($name, $optParams = array()   X-Ref
Lists the projects associated with a billing account. The current
authenticated user must be an [owner of the billing
account](https://support.google.com/cloud/answer/4430947).
(projects.listBillingAccountsProjects)

param: string $name The resource name of the billing account associated with
param: array $optParams Optional parameters.
return: Google_Service_Cloudbilling_ListProjectBillingInfoResponse

Class: Google_Service_Cloudbilling_Projects_Resource  - X-Ref

The "projects" collection of methods.
Typical usage is:
<code>
$cloudbillingService = new Google_Service_Cloudbilling(...);
$projects = $cloudbillingService->projects;
</code>

getBillingInfo($name, $optParams = array()   X-Ref
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)

param: string $name The resource name of the project for which billing
param: array $optParams Optional parameters.
return: Google_Service_Cloudbilling_ProjectBillingInfo

updateBillingInfo($name, Google_Service_Cloudbilling_ProjectBillingInfo $postBody, $optParams = array()   X-Ref
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.
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 Developers Console may 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](https://support.google.com/cloud/answer/4430947). 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)

param: string $name The resource name of the project associated with the
param: Google_ProjectBillingInfo $postBody
param: array $optParams Optional parameters.
return: Google_Service_Cloudbilling_ProjectBillingInfo

Class: Google_Service_Cloudbilling_BillingAccount  - X-Ref

setDisplayName($displayName)   X-Ref
No description

getDisplayName()   X-Ref
No description

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setOpen($open)   X-Ref
No description

getOpen()   X-Ref
No description

Class: Google_Service_Cloudbilling_ProjectBillingInfo  - X-Ref

setBillingAccountName($billingAccountName)   X-Ref
No description

getBillingAccountName()   X-Ref
No description

setBillingEnabled($billingEnabled)   X-Ref
No description

getBillingEnabled()   X-Ref
No description

setName($name)   X-Ref
No description

getName()   X-Ref
No description

setProjectId($projectId)   X-Ref
No description

getProjectId()   X-Ref
No description