Show / Hide Table of Contents

Class RegionDisksResource

The "regionDisks" collection of methods.

Inheritance
object
RegionDisksResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class RegionDisksResource

Constructors

RegionDisksResource(IClientService)

Constructs a new resource.

Declaration
public RegionDisksResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

AddResourcePolicies(RegionDisksAddResourcePoliciesRequest, string, string, string)

Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.

Declaration
public virtual RegionDisksResource.AddResourcePoliciesRequest AddResourcePolicies(RegionDisksAddResourcePoliciesRequest body, string project, string region, string disk)
Parameters
Type Name Description
RegionDisksAddResourcePoliciesRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string disk

The disk name for this request.

Returns
Type Description
RegionDisksResource.AddResourcePoliciesRequest

CreateSnapshot(Snapshot, string, string, string)

Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.

Declaration
public virtual RegionDisksResource.CreateSnapshotRequest CreateSnapshot(Snapshot body, string project, string region, string disk)
Parameters
Type Name Description
Snapshot body

The body of the request.

string project

Project ID for this request.

string region

Name of the region for this request.

string disk

Name of the regional persistent disk to snapshot.

Returns
Type Description
RegionDisksResource.CreateSnapshotRequest

Delete(string, string, string)

Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots.

Declaration
public virtual RegionDisksResource.DeleteRequest Delete(string project, string region, string disk)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region for this request.

string disk

Name of the regional persistent disk to delete.

Returns
Type Description
RegionDisksResource.DeleteRequest

Get(string, string, string)

Returns a specified regional persistent disk.

Declaration
public virtual RegionDisksResource.GetRequest Get(string project, string region, string disk)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region for this request.

string disk

Name of the regional persistent disk to return.

Returns
Type Description
RegionDisksResource.GetRequest

GetIamPolicy(string, string, string)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Declaration
public virtual RegionDisksResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
Type Name Description
string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
RegionDisksResource.GetIamPolicyRequest

Insert(Disk, string, string)

Creates a persistent regional disk in the specified project using the data included in the request.

Declaration
public virtual RegionDisksResource.InsertRequest Insert(Disk body, string project, string region)
Parameters
Type Name Description
Disk body

The body of the request.

string project

Project ID for this request.

string region

Name of the region for this request.

Returns
Type Description
RegionDisksResource.InsertRequest

List(string, string)

Retrieves the list of persistent disks contained within the specified region.

Declaration
public virtual RegionDisksResource.ListRequest List(string project, string region)
Parameters
Type Name Description
string project

Project ID for this request.

string region

Name of the region for this request.

Returns
Type Description
RegionDisksResource.ListRequest

RemoveResourcePolicies(RegionDisksRemoveResourcePoliciesRequest, string, string, string)

Removes resource policies from a regional disk.

Declaration
public virtual RegionDisksResource.RemoveResourcePoliciesRequest RemoveResourcePolicies(RegionDisksRemoveResourcePoliciesRequest body, string project, string region, string disk)
Parameters
Type Name Description
RegionDisksRemoveResourcePoliciesRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string disk

The disk name for this request.

Returns
Type Description
RegionDisksResource.RemoveResourcePoliciesRequest

Resize(RegionDisksResizeRequest, string, string, string)

Resizes the specified regional persistent disk.

Declaration
public virtual RegionDisksResource.ResizeRequest Resize(RegionDisksResizeRequest body, string project, string region, string disk)
Parameters
Type Name Description
RegionDisksResizeRequest body

The body of the request.

string project

The project ID for this request.

string region

Name of the region for this request.

string disk

Name of the regional persistent disk.

Returns
Type Description
RegionDisksResource.ResizeRequest

SetIamPolicy(RegionSetPolicyRequest, string, string, string)

Sets the access control policy on the specified resource. Replaces any existing policy.

Declaration
public virtual RegionDisksResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetPolicyRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
RegionDisksResource.SetIamPolicyRequest

SetLabels(RegionSetLabelsRequest, string, string, string)

Sets the labels on the target regional disk.

Declaration
public virtual RegionDisksResource.SetLabelsRequest SetLabels(RegionSetLabelsRequest body, string project, string region, string resource)
Parameters
Type Name Description
RegionSetLabelsRequest body

The body of the request.

string project

Project ID for this request.

string region

The region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
RegionDisksResource.SetLabelsRequest

TestIamPermissions(TestPermissionsRequest, string, string, string)

Returns permissions that a caller has on the specified resource.

Declaration
public virtual RegionDisksResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
Type Name Description
TestPermissionsRequest body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string resource

Name or id of the resource for this request.

Returns
Type Description
RegionDisksResource.TestIamPermissionsRequest

Update(Disk, string, string, string)

Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license.

Declaration
public virtual RegionDisksResource.UpdateRequest Update(Disk body, string project, string region, string disk)
Parameters
Type Name Description
Disk body

The body of the request.

string project

Project ID for this request.

string region

The name of the region for this request.

string disk

The disk name for this request.

Returns
Type Description
RegionDisksResource.UpdateRequest
In This Article
Back to top Generated by DocFX