Compute Engine API v1beta14 (revision 12)
com.google.api.services.compute
Class Compute.Projects
java.lang.Object
com.google.api.services.compute.Compute.Projects
- Enclosing class:
- Compute
public class Compute.Projects
- extends Object
The "projects" collection of methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Compute.Projects
public Compute.Projects()
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