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

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

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






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












com.google.api.services.compute

Class Compute.NodeTemplates

  • Enclosing class:
    Compute


    public class Compute.NodeTemplates
    extends Object
    The "nodeTemplates" collection of methods.
    • Constructor Detail

      • NodeTemplates

        public NodeTemplates()
    • Method Detail

      • aggregatedList

        public Compute.NodeTemplates.AggregatedList aggregatedList(String project)
                                                            throws IOException
        Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Create a request for the method "nodeTemplates.aggregatedList". 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
      • delete

        public Compute.NodeTemplates.Delete delete(String project,
                                                   String region,
                                                   String nodeTemplate)
                                            throws IOException
        Deletes the specified NodeTemplate resource. Create a request for the method "nodeTemplates.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 - The name of the region for this request.
        nodeTemplate - Name of the NodeTemplate resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Compute.NodeTemplates.Get get(String project,
                                             String region,
                                             String nodeTemplate)
                                      throws IOException
        Returns the specified node template. Create a request for the method "nodeTemplates.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 - The name of the region for this request.
        nodeTemplate - Name of the node template to return.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public Compute.NodeTemplates.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 "nodeTemplates.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.NodeTemplates.Insert insert(String project,
                                                   String region,
                                                   NodeTemplate content)
                                            throws IOException
        Creates a NodeTemplate resource in the specified project using the data included in the request. Create a request for the method "nodeTemplates.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 - The name of the region for this request.
        content - the NodeTemplate
        Returns:
        the request
        Throws:
        IOException
      • list

        public Compute.NodeTemplates.List list(String project,
                                               String region)
                                        throws IOException
        Retrieves a list of node templates available to the specified project. Create a request for the method "nodeTemplates.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 - The name of the region for this request.
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public Compute.NodeTemplates.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 "nodeTemplates.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
      • testIamPermissions

        public Compute.NodeTemplates.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 "nodeTemplates.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

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy