| 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 | 
| class  | Compute.Disks.Update | 
| Constructor and Description | 
|---|
| Disks() | 
| Modifier and Type | Method and Description | 
|---|---|
| Compute.Disks.AddResourcePolicies | addResourcePolicies(String project,
                   String zone,
                   String disk,
                   DisksAddResourcePoliciesRequest content)Adds existing resource policies to a disk. | 
| Compute.Disks.AggregatedList | aggregatedList(String project)Retrieves an aggregated list of persistent disks. | 
| Compute.Disks.CreateSnapshot | createSnapshot(String project,
              String zone,
              String disk,
              Snapshot content)Creates a snapshot of a specified persistent disk. | 
| Compute.Disks.Delete | delete(String project,
      String zone,
      String disk)Deletes the specified persistent disk. | 
| Compute.Disks.Get | get(String project,
   String zone,
   String disk)Returns a specified persistent disk. | 
| Compute.Disks.GetIamPolicy | getIamPolicy(String project,
            String zone,
            String resource)Gets the access control policy for a resource. | 
| Compute.Disks.Insert | insert(String project,
      String zone,
      Disk content)Creates a persistent disk in the specified project using the data in the request. | 
| Compute.Disks.List | list(String project,
    String zone)Retrieves a list of persistent disks contained within the specified zone. | 
| Compute.Disks.RemoveResourcePolicies | removeResourcePolicies(String project,
                      String zone,
                      String disk,
                      DisksRemoveResourcePoliciesRequest content)Removes resource policies from a disk. | 
| Compute.Disks.Resize | resize(String project,
      String zone,
      String disk,
      DisksResizeRequest content)Resizes the specified persistent disk. | 
| Compute.Disks.SetIamPolicy | setIamPolicy(String project,
            String zone,
            String resource,
            ZoneSetPolicyRequest content)Sets the access control policy on the specified resource. | 
| Compute.Disks.SetLabels | setLabels(String project,
         String zone,
         String resource,
         ZoneSetLabelsRequest content)Sets the labels on a disk. | 
| Compute.Disks.TestIamPermissions | testIamPermissions(String project,
                  String zone,
                  String resource,
                  TestPermissionsRequest content)Returns permissions that a caller has on the specified resource. | 
| Compute.Disks.Update | update(String project,
      String zone,
      String disk,
      Disk content)Updates the specified disk with the data included in the request. | 
public Compute.Disks.AddResourcePolicies addResourcePolicies(String project, String zone, String disk, DisksAddResourcePoliciesRequest content) throws 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 DisksAddResourcePoliciesRequestIOExceptionpublic Compute.Disks.AggregatedList aggregatedList(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.IOExceptionpublic Compute.Disks.CreateSnapshot createSnapshot(String project, String zone, String disk, Snapshot content) throws 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 SnapshotIOExceptionpublic Compute.Disks.Delete delete(String project, String zone, String disk) throws 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.IOExceptionpublic Compute.Disks.Get get(String project, String zone, String disk) throws 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.IOExceptionpublic Compute.Disks.GetIamPolicy getIamPolicy(String project, String zone, String resource) throws 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.IOExceptionpublic Compute.Disks.Insert insert(String project, String zone, Disk content) throws 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 DiskIOExceptionpublic Compute.Disks.List list(String project, String zone) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.zone - The name of the zone for this request.IOExceptionpublic Compute.Disks.RemoveResourcePolicies removeResourcePolicies(String project, String zone, String disk, DisksRemoveResourcePoliciesRequest content) throws 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 DisksRemoveResourcePoliciesRequestIOExceptionpublic Compute.Disks.Resize resize(String project, String zone, String disk, DisksResizeRequest content) throws 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 DisksResizeRequestIOExceptionpublic Compute.Disks.SetIamPolicy setIamPolicy(String project, String zone, String resource, ZoneSetPolicyRequest content) throws 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 ZoneSetPolicyRequestIOExceptionpublic Compute.Disks.SetLabels setLabels(String project, String zone, String resource, ZoneSetLabelsRequest content) throws 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 ZoneSetLabelsRequestIOExceptionpublic Compute.Disks.TestIamPermissions testIamPermissions(String project, String zone, String resource, TestPermissionsRequest content) throws 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 TestPermissionsRequestIOExceptionpublic Compute.Disks.Update update(String project, String zone, String disk, Disk content) throws 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 DiskIOExceptionCopyright © 2011–2022 Google. All rights reserved.