public class Compute.Snapshots
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Compute.Snapshots.Delete |
class |
Compute.Snapshots.Get |
class |
Compute.Snapshots.GetIamPolicy |
class |
Compute.Snapshots.List |
class |
Compute.Snapshots.SetIamPolicy |
class |
Compute.Snapshots.SetLabels |
class |
Compute.Snapshots.TestIamPermissions |
Constructor and Description |
---|
Snapshots() |
Modifier and Type | Method and Description |
---|---|
Compute.Snapshots.Delete |
delete(java.lang.String project,
java.lang.String snapshot)
Deletes the specified Snapshot resource.
|
Compute.Snapshots.Get |
get(java.lang.String project,
java.lang.String snapshot)
Returns the specified Snapshot resource.
|
Compute.Snapshots.GetIamPolicy |
getIamPolicy(java.lang.String project,
java.lang.String resource)
Gets the access control policy for a resource.
|
Compute.Snapshots.List |
list(java.lang.String project)
Retrieves the list of Snapshot resources contained within the specified project.
|
Compute.Snapshots.SetIamPolicy |
setIamPolicy(java.lang.String project,
java.lang.String resource,
GlobalSetPolicyRequest content)
Sets the access control policy on the specified resource.
|
Compute.Snapshots.SetLabels |
setLabels(java.lang.String project,
java.lang.String resource,
GlobalSetLabelsRequest content)
Sets the labels on a snapshot.
|
Compute.Snapshots.TestIamPermissions |
testIamPermissions(java.lang.String project,
java.lang.String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Compute.Snapshots.Delete delete(java.lang.String project, java.lang.String snapshot) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.snapshot
- Name of the Snapshot resource to delete.java.io.IOException
public Compute.Snapshots.Get get(java.lang.String project, java.lang.String snapshot) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.snapshot
- Name of the Snapshot resource to return.java.io.IOException
public Compute.Snapshots.GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.resource
- Name or id of the resource for this request.java.io.IOException
public Compute.Snapshots.List list(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.java.io.IOException
public Compute.Snapshots.SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, GlobalSetPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.resource
- Name or id of the resource for this request.content
- the GlobalSetPolicyRequest
java.io.IOException
public Compute.Snapshots.SetLabels setLabels(java.lang.String project, java.lang.String resource, GlobalSetLabelsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.resource
- Name or id of the resource for this request.content
- the GlobalSetLabelsRequest
java.io.IOException
public Compute.Snapshots.TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, TestPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- Project ID for this request.resource
- Name or id of the resource for this request.content
- the TestPermissionsRequest
java.io.IOException