public class Compute.Disks
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Compute.Disks.AddResourcePolicies |
class |
Compute.Disks.AggregatedList |
class |
Compute.Disks.CreateSnapshot |
class |
Compute.Disks.Delete |
class |
Compute.Disks.Get |
class |
Compute.Disks.GetIamPolicy |
class |
Compute.Disks.Insert |
class |
Compute.Disks.List |
class |
Compute.Disks.RemoveResourcePolicies |
class |
Compute.Disks.Resize |
class |
Compute.Disks.SetIamPolicy |
class |
Compute.Disks.SetLabels |
class |
Compute.Disks.TestIamPermissions |
Constructor and Description |
---|
Disks() |
Modifier and Type | Method and Description |
---|---|
Compute.Disks.AddResourcePolicies |
addResourcePolicies(java.lang.String project,
java.lang.String zone,
java.lang.String disk,
DisksAddResourcePoliciesRequest content)
Adds existing resource policies to a disk.
|
Compute.Disks.AggregatedList |
aggregatedList(java.lang.String project)
Retrieves an aggregated list of persistent disks.
|
Compute.Disks.CreateSnapshot |
createSnapshot(java.lang.String project,
java.lang.String zone,
java.lang.String disk,
Snapshot content)
Creates a snapshot of a specified persistent disk.
|
Compute.Disks.Delete |
delete(java.lang.String project,
java.lang.String zone,
java.lang.String disk)
Deletes the specified persistent disk.
|
Compute.Disks.Get |
get(java.lang.String project,
java.lang.String zone,
java.lang.String disk)
Returns a specified persistent disk.
|
Compute.Disks.GetIamPolicy |
getIamPolicy(java.lang.String project,
java.lang.String zone,
java.lang.String resource)
Gets the access control policy for a resource.
|
Compute.Disks.Insert |
insert(java.lang.String project,
java.lang.String zone,
Disk content)
Creates a persistent disk in the specified project using the data in the request.
|
Compute.Disks.List |
list(java.lang.String project,
java.lang.String zone)
Retrieves a list of persistent disks contained within the specified zone.
|
Compute.Disks.RemoveResourcePolicies |
removeResourcePolicies(java.lang.String project,
java.lang.String zone,
java.lang.String disk,
DisksRemoveResourcePoliciesRequest content)
Removes resource policies from a disk.
|
Compute.Disks.Resize |
resize(java.lang.String project,
java.lang.String zone,
java.lang.String disk,
DisksResizeRequest content)
Resizes the specified persistent disk.
|
Compute.Disks.SetIamPolicy |
setIamPolicy(java.lang.String project,
java.lang.String zone,
java.lang.String resource,
ZoneSetPolicyRequest content)
Sets the access control policy on the specified resource.
|
Compute.Disks.SetLabels |
setLabels(java.lang.String project,
java.lang.String zone,
java.lang.String resource,
ZoneSetLabelsRequest content)
Sets the labels on a disk.
|
Compute.Disks.TestIamPermissions |
testIamPermissions(java.lang.String project,
java.lang.String zone,
java.lang.String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Compute.Disks.AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, DisksAddResourcePoliciesRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- The disk name for this request.content
- the DisksAddResourcePoliciesRequest
java.io.IOException
public Compute.Disks.AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.java.io.IOException
public Compute.Disks.CreateSnapshot createSnapshot(java.lang.String project, java.lang.String zone, java.lang.String disk, Snapshot content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- Name of the persistent disk to snapshot.content
- the Snapshot
java.io.IOException
public Compute.Disks.Delete delete(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- Name of the persistent disk to delete.java.io.IOException
public Compute.Disks.Get get(java.lang.String project, java.lang.String zone, java.lang.String disk) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- Name of the persistent disk to return.java.io.IOException
public Compute.Disks.GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.resource
- Name or id of the resource for this request.java.io.IOException
public Compute.Disks.Insert insert(java.lang.String project, java.lang.String zone, Disk content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.content
- the Disk
java.io.IOException
public Compute.Disks.List list(java.lang.String project, java.lang.String zone) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.java.io.IOException
public Compute.Disks.RemoveResourcePolicies removeResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String disk, DisksRemoveResourcePoliciesRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- The disk name for this request.content
- the DisksRemoveResourcePoliciesRequest
java.io.IOException
public Compute.Disks.Resize resize(java.lang.String project, java.lang.String zone, java.lang.String disk, DisksResizeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.disk
- The name of the persistent disk.content
- the DisksResizeRequest
java.io.IOException
public Compute.Disks.SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, ZoneSetPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.resource
- Name or id of the resource for this request.content
- the ZoneSetPolicyRequest
java.io.IOException
public Compute.Disks.SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, ZoneSetLabelsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.resource
- Name or id of the resource for this request.content
- the ZoneSetLabelsRequest
java.io.IOException
public Compute.Disks.TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, TestPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.zone
- The name of the zone for this request.resource
- Name or id of the resource for this request.content
- the TestPermissionsRequest
java.io.IOException