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

The "disks" collection of methods. More...

Inheritance diagram for Google_Service_Compute_Disks_Resource:
Google_Service_Resource

Public Member Functions

 aggregatedList ($project, $optParams=array())
 Retrieves the list of disks grouped by scope.
 
 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 createSnapshot ($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams=array())
 Creates a snapshot of this disk.
 
 delete ($project, $zone, $disk, $optParams=array())
 Deletes the specified persistent disk.
 
 get ($project, $zone, $disk, $optParams=array())
 Returns a specified persistent disk.
 
 insert ($project, $zone, Google_Service_Compute_Disk $postBody, $optParams=array())
 Creates a persistent disk in the specified project using the data included in the request.
 
 listDisks ($project, $zone, $optParams=array())
 Retrieves the list of persistent disks contained within the specified zone.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "disks" collection of methods.

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

Member Function Documentation

◆ aggregatedList()

Google_Service_Compute_Disks_Resource::aggregatedList ( $project,
$optParams = array() )

Retrieves the list of disks grouped by scope.

(disks.aggregatedList)

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

@opt_param string filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: FIELD_NAME COMPARISON_STRING LITERAL_STRING.

The FIELD_NAME is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The COMPARISON_STRING must be either eq (equals) or ne (not equals). The LITERAL_STRING is the string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.

For example, filter=name ne example-instance. @opt_param string pageToken Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request. @opt_param string maxResults Maximum count of results to be returned.

Return values
Google_Service_Compute_DiskAggregatedList

◆ 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

◆ createSnapshot()

Google_Service_Compute_Disks_Resource::createSnapshot ( $project,
$zone,
$disk,
Google_Service_Compute_Snapshot $postBody,
$optParams = array() )

Creates a snapshot of this disk.

(disks.createSnapshot)

Parameters
string$projectProject ID for this request.
string$zoneThe name of the zone for this request.
string$diskName of the persistent disk to snapshot.
Google_Snapshot$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

◆ delete()

Google_Service_Compute_Disks_Resource::delete ( $project,
$zone,
$disk,
$optParams = array() )

Deletes the specified persistent disk.

Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. (disks.delete)

Parameters
string$projectProject ID for this request.
string$zoneThe name of the zone for this request.
string$diskName of the persistent disk to delete.
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Operation

◆ get()

Google_Service_Compute_Disks_Resource::get ( $project,
$zone,
$disk,
$optParams = array() )

Returns a specified persistent disk.

(disks.get)

Parameters
string$projectProject ID for this request.
string$zoneThe name of the zone for this request.
string$diskName of the persistent disk to return.
array$optParamsOptional parameters.
Return values
Google_Service_Compute_Disk

◆ insert()

Google_Service_Compute_Disks_Resource::insert ( $project,
$zone,
Google_Service_Compute_Disk $postBody,
$optParams = array() )

Creates a persistent disk in the specified project using the data included in the request.

(disks.insert)

Parameters
string$projectProject ID for this request.
string$zoneThe name of the zone for this request.
Google_Disk$postBody
array$optParamsOptional parameters.

@opt_param string sourceImage Optional. Source image to restore onto a disk.

Return values
Google_Service_Compute_Operation

◆ listDisks()

Google_Service_Compute_Disks_Resource::listDisks ( $project,
$zone,
$optParams = array() )

Retrieves the list of persistent disks contained within the specified zone.

(disks.listDisks)

Parameters
string$projectProject ID for this request.
string$zoneThe name of the zone for this request.
array$optParamsOptional parameters.

@opt_param string filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: FIELD_NAME COMPARISON_STRING LITERAL_STRING.

The FIELD_NAME is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The COMPARISON_STRING must be either eq (equals) or ne (not equals). The LITERAL_STRING is the string value to filter to. The literal value must be valid for the type of field (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.

For example, filter=name ne example-instance. @opt_param string pageToken Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request. @opt_param string maxResults Maximum count of results to be returned.

Return values
Google_Service_Compute_DiskList

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