Compute Engine API v1beta14 (revision 19)



com.google.api.services.compute
Class Compute.Projects

java.lang.Object
  extended by com.google.api.services.compute.Compute.Projects
Enclosing class:
Compute

public class Compute.Projects
extends Object

The "projects" collection of methods.


Nested Class Summary
 class Compute.Projects.Get
           
 class Compute.Projects.SetCommonInstanceMetadata
           
 
Constructor Summary
Compute.Projects()
           
 
Method Summary
 Compute.Projects.Get get(String project)
          Returns the specified project resource.
 Compute.Projects.SetCommonInstanceMetadata setCommonInstanceMetadata(String project, Metadata content)
          Sets metadata common to all instances within the specified project using the data included in the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compute.Projects

public Compute.Projects()
Method Detail

get

public Compute.Projects.Get get(String project)
                         throws IOException
Returns the specified project resource. Create a request for the method "projects.get". 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.

Parameters:
project - Name of the project resource to retrieve.
Returns:
the request
Throws:
IOException

setCommonInstanceMetadata

public Compute.Projects.SetCommonInstanceMetadata setCommonInstanceMetadata(String project,
                                                                            Metadata content)
                                                                     throws IOException
Sets metadata common to all instances within the specified project using the data included in the request. Create a request for the method "projects.setCommonInstanceMetadata". 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.

Parameters:
project - Name of the project scoping this request.
content - the Metadata
Returns:
the request
Throws:
IOException