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

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







Compute.Licenses (Compute Engine API v1-rev20200104-1.30.8)












com.google.api.services.compute

Class Compute.Licenses

  • Enclosing class:
    Compute


    public class Compute.Licenses
    extends Object
    The "licenses" collection of methods.
    • Constructor Detail

      • Licenses

        public Licenses()
    • Method Detail

      • delete

        public Compute.Licenses.Delete delete(String project,
                                              String license)
                                       throws IOException
        Deletes the specified license. Create a request for the method "licenses.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.
        license - Name of the license resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.Licenses.Get get(String project,
                                        String license)
                                 throws IOException
        Returns the specified License resource. Create a request for the method "licenses.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.
        license - Name of the License resource to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.Licenses.GetIamPolicy getIamPolicy(String project,
                                                          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 "licenses.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.
        resource - Name or id of the resource for this request.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.Licenses.List list(String project)
                                   throws IOException
        Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. Create a request for the method "licenses.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.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy