Class SnapshotGroupsResource
The "snapshotGroups" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class SnapshotGroupsResource
Constructors
SnapshotGroupsResource(IClientService)
Constructs a new resource.
Declaration
public SnapshotGroupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes the specified SnapshotGroup resource
Declaration
public virtual SnapshotGroupsResource.DeleteRequest Delete(string project, string snapshotGroup)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | snapshotGroup | Name of the SnapshotGroup resource to delete. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.DeleteRequest |
Get(string, string)
returns the specified SnapshotGroup resource.
Declaration
public virtual SnapshotGroupsResource.GetRequest Get(string project, string snapshotGroup)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | snapshotGroup | Name of the SnapshotGroup resource to return. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.GetRequest |
GetIamPolicy(string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual SnapshotGroupsResource.GetIamPolicyRequest GetIamPolicy(string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.GetIamPolicyRequest |
Insert(SnapshotGroup, string)
Creates a snapshot group in the specified project using the data included in the request.
Declaration
public virtual SnapshotGroupsResource.InsertRequest Insert(SnapshotGroup body, string project)
Parameters
Type | Name | Description |
---|---|---|
SnapshotGroup | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.InsertRequest |
List(string)
retrieves the list of SnapshotGroup resources contained within the specified project.
Declaration
public virtual SnapshotGroupsResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.ListRequest |
SetIamPolicy(GlobalSetPolicyRequest, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual SnapshotGroupsResource.SetIamPolicyRequest SetIamPolicy(GlobalSetPolicyRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
GlobalSetPolicyRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual SnapshotGroupsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
SnapshotGroupsResource.TestIamPermissionsRequest |