All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.Compute.RegionDisks.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250320-2.0.0
Show newest version






Compute.RegionDisks (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute

Class Compute.RegionDisks

  • Enclosing class:
    Compute


    public class Compute.RegionDisks
    extends Object
    The "regionDisks" collection of methods.
    • Constructor Detail

      • RegionDisks

        public RegionDisks()
    • Method Detail

      • addResourcePolicies

        public Compute.RegionDisks.AddResourcePolicies addResourcePolicies(String project,
                                                                           String region,
                                                                           String disk,
                                                                           RegionDisksAddResourcePoliciesRequest content)
                                                                    throws IOException
        Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation. Create a request for the method "regionDisks.addResourcePolicies". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        disk - The disk name for this request.
        content - the RegionDisksAddResourcePoliciesRequest
        Returns:
        the request
        Throws:
        IOException
      • bulkInsert

        public Compute.RegionDisks.BulkInsert bulkInsert(String project,
                                                         String region,
                                                         BulkInsertDiskResource content)
                                                  throws IOException
        Bulk create a set of disks. Create a request for the method "regionDisks.bulkInsert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        content - the BulkInsertDiskResource
        Returns:
        the request
        Throws:
        IOException
      • createSnapshot

        public Compute.RegionDisks.CreateSnapshot createSnapshot(String project,
                                                                 String region,
                                                                 String disk,
                                                                 Snapshot content)
                                                          throws IOException
        Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. Create a request for the method "regionDisks.createSnapshot". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        disk - Name of the regional persistent disk to snapshot.
        content - the Snapshot
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Compute.RegionDisks.Delete delete(String project,
                                                 String region,
                                                 String disk)
                                          throws IOException
        Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of 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. Create a request for the method "regionDisks.delete". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        disk - Name of the regional persistent disk to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.RegionDisks.Get get(String project,
                                           String region,
                                           String disk)
                                    throws IOException
        Returns a specified regional persistent disk. Create a request for the method "regionDisks.get". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        disk - Name of the regional persistent disk to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.RegionDisks.GetIamPolicy getIamPolicy(String project,
                                                             String region,
                                                             String resource)
                                                      throws IOException
        Gets the access control policy for a resource. May be empty if no such policy or resource exists. Create a request for the method "regionDisks.getIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Compute.RegionDisks.Insert insert(String project,
                                                 String region,
                                                 Disk content)
                                          throws IOException
        Creates a persistent regional disk in the specified project using the data included in the request. Create a request for the method "regionDisks.insert". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        content - the Disk
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.RegionDisks.List list(String project,
                                             String region)
                                      throws IOException
        Retrieves the list of persistent disks contained within the specified region. Create a request for the method "regionDisks.list". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - Name of the region for this request.
        Returns:
        the request
        Throws:
        IOException
      • resize

        public Compute.RegionDisks.Resize resize(String project,
                                                 String region,
                                                 String disk,
                                                 RegionDisksResizeRequest content)
                                          throws IOException
        Resizes the specified regional persistent disk. Create a request for the method "regionDisks.resize". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - The project ID for this request.
        region - Name of the region for this request.
        disk - Name of the regional persistent disk.
        content - the RegionDisksResizeRequest
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.RegionDisks.SetIamPolicy setIamPolicy(String project,
                                                             String region,
                                                             String resource,
                                                             RegionSetPolicyRequest content)
                                                      throws IOException
        Sets the access control policy on the specified resource. Replaces any existing policy. Create a request for the method "regionDisks.setIamPolicy". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the RegionSetPolicyRequest
        Returns:
        the request
        Throws:
        IOException
      • setLabels

        public Compute.RegionDisks.SetLabels setLabels(String project,
                                                       String region,
                                                       String resource,
                                                       RegionSetLabelsRequest content)
                                                throws IOException
        Sets the labels on the target regional disk. Create a request for the method "regionDisks.setLabels". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The region for this request.
        resource - Name or id of the resource for this request.
        content - the RegionSetLabelsRequest
        Returns:
        the request
        Throws:
        IOException
      • stopAsyncReplication

        public Compute.RegionDisks.StopAsyncReplication stopAsyncReplication(String project,
                                                                             String region,
                                                                             String disk)
                                                                      throws IOException
        Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. Create a request for the method "regionDisks.stopAsyncReplication". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        disk - The name of the persistent disk.
        Returns:
        the request
        Throws:
        IOException
      • stopGroupAsyncReplication

        public Compute.RegionDisks.StopGroupAsyncReplication stopGroupAsyncReplication(String project,
                                                                                       String region,
                                                                                       DisksStopGroupAsyncReplicationResource content)
                                                                                throws IOException
        Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope. Create a request for the method "regionDisks.stopGroupAsyncReplication". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group.
        content - the DisksStopGroupAsyncReplicationResource
        Returns:
        the request
        Throws:
        IOException
      • testIamPermissions

        public Compute.RegionDisks.TestIamPermissions testIamPermissions(String project,
                                                                         String region,
                                                                         String resource,
                                                                         TestPermissionsRequest content)
                                                                  throws IOException
        Returns permissions that a caller has on the specified resource. Create a request for the method "regionDisks.testIamPermissions". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        resource - Name or id of the resource for this request.
        content - the TestPermissionsRequest
        Returns:
        the request
        Throws:
        IOException
      • update

        public Compute.RegionDisks.Update update(String project,
                                                 String region,
                                                 String disk,
                                                 Disk content)
                                          throws IOException
        Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. Create a request for the method "regionDisks.update". This request holds the parameters needed by the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        project - Project ID for this request.
        region - The name of the region for this request.
        disk - The disk name for this request.
        content - the Disk
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy