DisksResourceApi class

Constructors

DisksResourceApi(ApiRequester client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addResourcePolicies(DisksAddResourcePoliciesRequest request, String project, String zone, String disk, {String requestId, String $fields}) Future<Operation>
Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. [...]
aggregatedList(String project, {String filter, bool includeAllScopes, int maxResults, String orderBy, String pageToken, String $fields}) Future<DiskAggregatedList>
Retrieves an aggregated list of persistent disks. [...]
createSnapshot(Snapshot request, String project, String zone, String disk, {bool guestFlush, String requestId, String $fields}) Future<Operation>
Creates a snapshot of a specified persistent disk. [...]
delete(String project, String zone, String disk, {String requestId, String $fields}) Future<Operation>
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. [...]
get(String project, String zone, String disk, {String $fields}) Future<Disk>
Returns a specified persistent disk. Gets a list of available persistent disks by making a list() request. [...]
getIamPolicy(String project, String zone, String resource, {String $fields}) Future<Policy>
Gets the access control policy for a resource. May be empty if no such policy or resource exists. [...]
insert(Disk request, String project, String zone, {String requestId, String sourceImage, String $fields}) Future<Operation>
Creates a persistent disk in the specified project using the data in the request. You can create a disk with a sourceImage, a sourceSnapshot, or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property. [...]
list(String project, String zone, {String filter, int maxResults, String orderBy, String pageToken, String $fields}) Future<DiskList>
Retrieves a list of persistent disks contained within the specified zone. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeResourcePolicies(DisksRemoveResourcePoliciesRequest request, String project, String zone, String disk, {String requestId, String $fields}) Future<Operation>
Removes resource policies from a disk. [...]
resize(DisksResizeRequest request, String project, String zone, String disk, {String requestId, String $fields}) Future<Operation>
Resizes the specified persistent disk. You can only increase the size of the disk. [...]
setIamPolicy(ZoneSetPolicyRequest request, String project, String zone, String resource, {String $fields}) Future<Policy>
Sets the access control policy on the specified resource. Replaces any existing policy. [...]
setLabels(ZoneSetLabelsRequest request, String project, String zone, String resource, {String requestId, String $fields}) Future<Operation>
Sets the labels on a disk. To learn more about labels, read the Labeling Resources documentation. [...]
testIamPermissions(TestPermissionsRequest request, String project, String zone, String resource, {String $fields}) Future<TestPermissionsResponse>
Returns permissions that a caller has on the specified resource. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited