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

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







Compute.Instances.AttachDisk (Compute Engine API v1-rev20200104-1.30.8)












com.google.api.services.compute

Class Compute.Instances.AttachDisk

    • Constructor Detail

      • AttachDisk

        protected AttachDisk(String project,
                             String zone,
                             String instance,
                             AttachedDisk content)
        Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance. Create a request for the method "instances.attachDisk". This request holds the parameters needed by the the compute server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

        Compute.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance immediately after invoking the constructor.

        Parameters:
        project - Project ID for this request.
        zone - The name of the zone for this request.
        instance - The instance name for this request.
        content - the AttachedDisk
        Since:
        1.13

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy