Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Compute_Projects_Resource Class Reference

The "projects" collection of methods. More...

Inheritance diagram for Google_Service_Compute_Projects_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($project, $optParams=array())
 Returns the specified project resource.
 
 moveDisk ($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams=array())
 Moves a persistent disk from one zone to another.
 
 moveInstance ($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams=array())
 Moves an instance and its attached persistent disks from one zone to another.
 
 setCommonInstanceMetadata ($project, Google_Service_Compute_Metadata $postBody, $optParams=array())
 Sets metadata common to all instances within the specified project using the data included in the request.
 
 setUsageExportBucket ($project, Google_Service_Compute_UsageExportLocation $postBody, $optParams=array())
 Enables the usage export feature and sets the usage export bucket where reports are stored.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "projects" collection of methods.

Typical usage is: $computeService = new Google_Service_Compute(...); $projects = $computeService->projects;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ get()

Google_Service_Compute_Projects_Resource::get ( $project,
$optParams = array() )

Returns the specified project resource.

(projects.get)

Parameters
string$projectProject ID for this request.
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Project

◆ moveDisk()

Google_Service_Compute_Projects_Resource::moveDisk ( $project,
Google_Service_Compute_DiskMoveRequest $postBody,
$optParams = array() )

Moves a persistent disk from one zone to another.

(projects.moveDisk)

Parameters
string$projectProject ID for this request.
Google_DiskMoveRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

◆ moveInstance()

Google_Service_Compute_Projects_Resource::moveInstance ( $project,
Google_Service_Compute_InstanceMoveRequest $postBody,
$optParams = array() )

Moves an instance and its attached persistent disks from one zone to another.

(projects.moveInstance)

Parameters
string$projectProject ID for this request.
Google_InstanceMoveRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

◆ setCommonInstanceMetadata()

Google_Service_Compute_Projects_Resource::setCommonInstanceMetadata ( $project,
Google_Service_Compute_Metadata $postBody,
$optParams = array() )

Sets metadata common to all instances within the specified project using the data included in the request.

(projects.setCommonInstanceMetadata)

Parameters
string$projectProject ID for this request.
Google_Metadata$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

◆ setUsageExportBucket()

Google_Service_Compute_Projects_Resource::setUsageExportBucket ( $project,
Google_Service_Compute_UsageExportLocation $postBody,
$optParams = array() )

Enables the usage export feature and sets the usage export bucket where reports are stored.

If you provide an empty request body using this method, the usage export feature will be disabled. (projects.setUsageExportBucket)

Parameters
string$projectProject ID for this request.
Google_UsageExportLocation$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

The documentation for this class was generated from the following file: